*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8f7ff;
  --surface: #ffffff;
  --border: #e8e8f0;
  --text: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
}

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ── Layout ── */
.main-content--full {
  margin: 0 auto;
  padding: 48px 40px 60px;
  max-width: 1100px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Logo ── */
.page-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.page-logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* ── Section header ── */
.nlm-section { width: 100%; }
.nlm-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  text-align: center;
}
.nlm-section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  margin-bottom: 24px;
  text-align: center;
}

/* ── Grid ── */
.nlm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ── Card ── */
.nlm-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: box-shadow .2s ease, transform .2s ease;
  min-height: 120px;
}
.nlm-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.nlm-card-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #1a1a2e;
  margin-bottom: 5px;
}
.nlm-card-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.nlm-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f0f8;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: #6b6b9a;
  width: fit-content;
}
.nlm-card-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.nlm-card-badge--active { background: #e8f5e9; color: #2e7d32; }
.nlm-card-badge--active svg { color: #43a047; }
.nlm-active-label {
  margin-left: 6px;
  font-size: 10px;
  background: #43a047;
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nlm-grid { grid-template-columns: repeat(2, 1fr); }
  .main-content--full { padding: 32px 20px 40px; }
}
@media (max-width: 500px) {
  .nlm-grid { grid-template-columns: 1fr; }
}
