/* ═══════════════════════════════════════
   HOME PAGE STYLES
   Imports: tokens.css, base.css, nav.css
═══════════════════════════════════════ */

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0a0e1a 0%, #0e0b1f 35%, #0a1020 65%, #0d0a1a 100%);
  background-size: 400% 400%;
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .hero { animation: heroGradient 18s ease infinite; }
  @keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
}
.hero-canvas { display: none; }
#starfield { position: absolute; inset: 0; z-index: 1; pointer-events: none; width: 100%; height: 100%; }
.hero-glow { position: absolute; top: -20%; left: -10%; width: 60%; height: 80%; z-index: 2; background: radial-gradient(ellipse, rgba(124,109,255,0.10) 0%, transparent 70%); pointer-events: none; }
.hero-glow-2 { position: absolute; bottom: -20%; right: -5%; width: 50%; height: 70%; z-index: 2; background: radial-gradient(ellipse, rgba(167,139,250,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--indigo-400); margin-bottom: 18px; }
/* .hero-eyebrow-line { width: 28px; height: 2px; background: var(--indigo-400); border-radius: 2px; } */
.hero h1 { font-family: var(--font-serif); font-size: clamp(2.2rem,4.5vw,3.4rem); font-weight: 700; color: var(--white); line-height: 1.1; letter-spacing: -.5px; margin-bottom: 20px; }
.hero h1 strong { color: var(--indigo-400); }
.hero-sub { font-size: 1.05rem; color: var(--text-muted-on-dark); margin-bottom: 36px; line-height: 1.78; max-width: 460px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-meta { display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--dark-border); }
.hero-meta-num { font-size: 1.5rem; font-weight: 800; color: var(--white); font-family: var(--font-serif); }
.hero-meta-lbl { font-size: .78rem; color: var(--text-dim-on-dark); text-transform: uppercase; letter-spacing: .8px; margin-top: 2px; }
.hero-topics-col > nav + nav { margin-top: 22px; }
.hero-topics-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-dim-on-dark); margin-bottom: 14px; }
.hero-topic-row { display: flex; align-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 13px 16px; margin-bottom: 8px; transition: background .18s, border-color .18s; text-decoration: none; }
.hero-topic-row:hover { background: rgba(124,109,255,0.08); border-color: rgba(124,109,255,0.4); text-decoration: none; }
.hero-topic-icon { width: 32px; height: 32px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; margin-right: 13px; background: color-mix(in srgb, var(--topic-color, #7c6dff) 14%, transparent); color: var(--topic-color, #7c6dff); }
.hero-topic-icon svg { display: block; }
.hero-topic-name { font-size: .9rem; font-weight: 600; color: var(--text-on-dark); flex: 1; }
.hero-topic-count { font-size: .78rem; color: var(--text-dim-on-dark); margin-right: 10px; }
.hero-topic-arrow { font-size: .8rem; color: var(--text-dim-on-dark); transition: color .18s, transform .18s; }
.hero-topic-row:hover .hero-topic-arrow { color: var(--indigo-400); transform: translateX(3px); }
/* contrast fix: --indigo-400 (#7c6dff) on white = 3.5:1 (fail). --indigo-600 (#4f46e5) = 5.56:1 (pass AA) */
.btn-indigo { background: var(--indigo-600); color: #fff; border-color: var(--indigo-600); }
.btn-indigo:hover { background: var(--indigo-700); box-shadow: 0 0 24px rgba(79,70,229,0.4); transform: translateY(-1px); text-decoration: none; }

/* ── Trust bar ── */
.trust { background: var(--dark-surface); border-bottom: 1px solid rgba(124,109,255,.15); padding: 14px 0; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--dark-text); }
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-400); display: inline-block; flex-shrink: 0; }

/* ── Shared section ── */
section { padding: 80px 0; }
.sec-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--indigo-600); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.sec-title { font-family: var(--font-serif); font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 700; color: var(--ink); letter-spacing: -.3px; margin-bottom: 10px; line-height: 1.2; }
.sec-sub { font-size: .97rem; color: var(--ink-soft); max-width: 560px; line-height: 1.72; }
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-sub { margin: 0 auto; }
.sec-head.center .sec-eyebrow { justify-content: center; }

/* ── Topics ── */
.topics { background: var(--dark-bg); }
.topics .sec-title { color: var(--dark-text); }
.topics .sec-sub   { color: var(--dark-muted); }
/* contrast fix: --indigo-600 on --dark-bg (#0f1117) = 3.24:1 (fail). --indigo-300 (#a78bfa) = 6.97:1 (pass AA) */
.topics .sec-eyebrow { color: var(--indigo-300); }
.topics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--stone-200); border: 1px solid var(--stone-200); border-radius: var(--radius-lg); overflow: hidden; }
.topic-card { background: var(--white); padding: 32px 28px; display: flex; flex-direction: column; transition: background .18s; position: relative; }
.topic-card:hover { background: #f0eeff; }
.topic-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: transparent; transition: background .18s; }
.topic-card:hover::before { background: var(--indigo-600); }
.topic-card:hover .topic-arrow { color: var(--indigo-600); transform: translateX(3px); }
.topic-icon-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.topic-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.topic-count-badge { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: var(--stone-100); color: var(--ink-soft); }
.topic-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
.topic-card p { font-size: .9rem; color: var(--ink-soft); line-height: 1.65; margin-bottom: 20px; flex: 1; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.topic-tag { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 100px; background: var(--stone-100); color: var(--ink-soft); }
.topic-link-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.topic-link { font-size: .88rem; font-weight: 700; color: var(--indigo-700); }
.topic-link:hover { text-decoration: none; }
.topic-arrow { font-size: .85rem; color: var(--indigo-800); transition: color .18s, transform .18s; }
.topic-card.span2 { grid-column: span 2; }
.topic-card.span2 h3 { font-size: 1.2rem; }
.topic-card.dark { background: var(--dark-surface); }
.topic-card.dark:hover { background: var(--dark-surface2); }
.topic-card.dark h3 { color: var(--white); }
.topic-card.dark p { color: var(--dark-muted); }
.topic-card.dark .topic-tag { background: rgba(255,255,255,.12); color: var(--dark-muted); }
.topic-card.dark .topic-count-badge { background: rgba(255,255,255,.14); color: var(--dark-muted); }
.topic-card.dark .topic-link { color: var(--indigo-300); }
.topic-card.dark .topic-arrow { color: rgba(255,255,255,.35); }
.topic-card.dark:hover .topic-arrow { color: var(--indigo-300); }
.topic-card.dark::before { background: transparent; }
.topic-card.dark:hover::before { background: var(--indigo-400); }
.topic-card.amber-card { background: var(--amber-50); }
.topic-card.amber-card:hover { background: var(--amber-100); }
.topic-card.amber-card::before { background: transparent; }
.topic-card.amber-card:hover::before { background: var(--amber-500); }
.topic-card.amber-card .topic-link { color: #7c2d12; }
.topic-card.amber-card .topic-tag { background: var(--amber-100); color: #7c2d12; }

/* ── Topic rows (Option B layout) ── */
.topics-list { display: flex; flex-direction: column; gap: 2px; background: var(--stone-200); border: 1px solid var(--stone-200); border-radius: var(--radius-lg); overflow: hidden; }
.topic-row { display: grid; grid-template-columns: 52px 1fr 210px 28px; gap: 24px; align-items: center; background: var(--white); padding: 22px 28px; text-decoration: none; color: inherit; transition: background .18s; border-left: 3px solid transparent; position: relative; }
.topic-row:hover { background: #f0eeff; border-left-color: var(--indigo-600); text-decoration: none; }
.topic-row-amber:hover { background: var(--amber-50); border-left-color: var(--amber-500); }
.topic-row-purple:hover { background: #faf5ff; border-left-color: #7c3aed; }
.topic-row-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.topic-row-body { min-width: 0; }
.topic-row-title { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.topic-row-title h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0; line-height: 1.2; }
.topic-row-body p { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.topic-row-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.topic-row-arrow { color: var(--stone-400); flex-shrink: 0; transition: color .18s, transform .18s; }
.topic-row:hover .topic-row-arrow { color: var(--indigo-600); transform: translateX(3px); }
.topic-row-amber:hover .topic-row-arrow { color: var(--amber-600); }
.topic-row-purple:hover .topic-row-arrow { color: #7c3aed; }

/* ── Articles ── */
.latest { background: var(--stone-50); border-top: 1px solid var(--stone-200); }
.articles-list { display: flex; flex-direction: column; border: 1px solid var(--stone-200); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); }
.article-row { display: grid; grid-template-columns: 80px 1fr auto; align-items: stretch; border-bottom: 1px solid var(--stone-100); transition: background .15s; text-decoration: none; }
.article-row:last-child { border-bottom: none; }
.article-row:hover { background: #f0eeff; text-decoration: none; }
.article-row-num { display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--indigo-700); border-right: 1px solid var(--stone-100); padding: 24px 0; transition: color .15s; }
.article-row:hover .article-row-num { color: var(--indigo-300); }
.article-row-body { padding: 22px 24px; }
.article-row-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.article-cat { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; background: var(--indigo-100); color: var(--indigo-700); }
.article-date { font-size: .78rem; color: var(--ink-soft); }
.article-row h3 { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.article-row p { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }
.article-row-action { display: flex; align-items: center; padding: 0 24px; flex-shrink: 0; }
.article-row-arrow { font-size: .9rem; color: var(--ui-arrow); transition: color .15s, transform .15s; }
.article-row:hover .article-row-arrow { color: var(--indigo-600); transform: translateX(3px); }

/* ── UX ── */
.ux { background: var(--ink); }
.ux-inner { display: grid; grid-template-columns: auto 1fr 1fr; gap: 0 56px; align-items: stretch; }
.ux-eyebrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-right: 24px;
  border-right: 1px solid rgba(255,255,255,.1);
  font-family: Georgia, 'Times New Roman', Times, serif;
}
.ux-eyebrow-col::before,
.ux-eyebrow-col::after {
  content: '';
  flex: 1;
  /* width: 1px; */
  /* background: linear-gradient(to bottom, transparent, rgba(255,255,255,.15)); */
}
.ux-eyebrow-col::after {
  background: linear-gradient(to top, transparent, rgba(255,255,255,.15));
}
.ux-eyebrow-col .sec-eyebrow {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  margin: 16px 0;
  display: block;
  color: var(--indigo-300);
  letter-spacing: 3px;
  font-size: 2.5rem;
  font-weight: 400;
}
.ux .sec-title { color: var(--white); }
.ux .sec-sub { color: var(--text-muted-on-dark); }
.ux-list { list-style: none; margin: 24px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.ux-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .9rem; color: var(--text-muted-on-dark); line-height: 1.6; }
.ux-check { width: 18px; height: 18px; background: rgba(124,109,255,.18); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .65rem; color: var(--indigo-300); margin-top: 2px; }
.ux-cards { display: flex; flex-direction: column; gap: 10px; }
.ux-card-link { text-decoration: none; }
.ux-card-link:hover { text-decoration: none; }
.ux-card { background: var(--ink-mid); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 20px 22px; transition: border-color .18s; }
.ux-card:hover { border-color: rgba(124,109,255,.35); }
/* contrast fix: --indigo-400 on --ink-mid (#2d2d2d) = 3.39:1 (fail). --indigo-300 (#a78bfa) = 4.59:1 (pass AA) */
.ux-card-eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--indigo-300); margin-bottom: 5px; }
.ux-card-title { font-size: .92rem; font-weight: 700; color: var(--white); margin-bottom: 4px; line-height: 1.35; }
.ux-card-link:hover .ux-card-title { text-decoration: underline; text-underline-offset: 2px; }
.ux-card-sub { font-size: .84rem; color: var(--text-muted-on-dark); line-height: 1.5; }

/* ── VPAT Tool ── */
.vpat-tool-section { background: var(--dark-bg); padding: 80px 0; }
.vpat-tool-section .sec-eyebrow { color: var(--indigo-400); }
.vpat-tool-section .sec-title { color: var(--white); }
.vpat-tool-section .sec-sub { color: var(--dark-muted); }
.vpat-search-bar { display: flex; gap: 10px; margin-bottom: 20px; }
.vpat-search-input { flex: 1; padding: 12px 16px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.09); color: var(--white); font-size: .95rem; outline: none; font-family: inherit; transition: border-color .18s; }
.vpat-search-input::placeholder { color: var(--text-dim-on-dark); }
.vpat-search-input:focus { border-color: var(--indigo-400); }
.vpat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.vpat-filter-btn { padding: 7px 16px; border-radius: 100px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--dark-muted); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .18s; font-family: inherit; }
.vpat-filter-btn:hover { border-color: var(--indigo-400); color: var(--white); }
.vpat-filter-btn.active { background: var(--indigo-600); border-color: var(--indigo-600); color: var(--white); }
.vpat-results-count { font-size: .82rem; color: var(--dark-muted); margin-bottom: 12px; min-height: 20px; }
.vpat-table-wrap { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; }
.vpat-table { width: 100%; border-collapse: collapse; }
.vpat-table thead { background: rgba(255,255,255,.07); }
.vpat-table th { padding: 12px 16px; text-align: left; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--dark-muted); border-bottom: 1px solid rgba(255,255,255,.1); }
.vpat-table td { padding: 14px 16px; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.vpat-table tr:last-child td { border-bottom: none; }
.vpat-table tbody tr { transition: background .15s; cursor: pointer; }
.vpat-table tbody tr:hover { background: rgba(255,255,255,.05); }
.vpat-table tbody tr.expanded { background: rgba(124,109,255,.07); }
.vpat-criterion-id { font-family: var(--font-serif); font-weight: 700; color: var(--indigo-400); white-space: nowrap; }
.vpat-criterion-name { color: var(--white); font-weight: 600; }
.vpat-level-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.level-a   { background: rgba(124,109,255,.18); color: var(--indigo-300); }
.level-aa  { background: rgba(245,158,11,.18); color: var(--amber-400); }
.level-aaa { background: rgba(139,92,246,.18); color: #d8b4fe; }
.vpat-expand-icon { color: var(--text-dim-on-dark); font-size: .78rem; transition: transform .2s; }
.vpat-table tbody tr.expanded .vpat-expand-icon { transform: rotate(180deg); color: var(--indigo-400); }
.vpat-detail-row { display: none; }
.vpat-detail-row.open { display: table-row; }
.vpat-detail-cell { padding: 0 16px 20px 48px !important; background: rgba(124,109,255,.05); border-bottom: 1px solid rgba(255,255,255,.06) !important; }
.vpat-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 14px; }
.vpat-detail-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--dark-muted); margin-bottom: 6px; }
.vpat-detail-text { font-size: .88rem; color: var(--white); line-height: 1.68; }
.vpat-detail-text.highlight { color: var(--indigo-300); font-weight: 600; }
.vpat-w3c-link { color: var(--indigo-300); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: .85rem; transition: color .15s; }
.vpat-w3c-link:hover { color: var(--white); }
.vpat-empty-state { text-align: center; padding: 56px 24px; }
.vpat-empty-icon { font-size: 2.5rem; margin-bottom: 16px; opacity: .5; }
.vpat-empty-title { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.vpat-empty-sub { font-size: .9rem; color: var(--dark-muted); max-width: 420px; margin: 0 auto 20px; line-height: 1.65; }
.vpat-empty-examples { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--dark-muted); }
.vpat-example-btn { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); color: var(--indigo-300); font-size: .82rem; font-weight: 600; padding: 5px 13px; border-radius: 100px; cursor: pointer; font-family: inherit; transition: all .18s; }
.vpat-example-btn:hover { background: rgba(124,109,255,.18); border-color: var(--indigo-400); }
.vpat-no-results { text-align: center; padding: 48px 24px; color: var(--dark-muted); font-size: .9rem; display: none; }

/* ── About ── */
.about { background: var(--stone-50); border-top: 1px solid var(--stone-200); }
.about-inner { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: start; max-width: 780px; margin: 0 auto; }
.about-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--indigo-900); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 4px var(--white),0 0 0 6px var(--indigo-500); overflow: hidden; }
.about-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-inner h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.about-inner p { color: var(--ink-soft); line-height: 1.78; margin-bottom: 12px; font-size: .95rem; }
.about-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.about-link { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--indigo-700); font-weight: 600; }

/* ── Ko-fi ── */
.kofi-section { background: var(--ink); padding: 72px 0; }
.kofi-inner { display: flex; justify-content: center; }
.kofi-content { text-align: center; max-width: 520px; }
.kofi-section .sec-eyebrow { justify-content: center; color: var(--indigo-300); }
.kofi-section .sec-title { color: var(--white); margin-bottom: 14px; }
.kofi-sub { font-size: .97rem; color: var(--text-muted-on-dark); line-height: 1.75; margin-bottom: 28px; }
.kofi-btn { display: inline-flex; align-items: center; gap: 10px; background: #b91c1c; color: var(--white); padding: 14px 28px; border-radius: var(--radius); font-size: 1rem; font-weight: 700; font-family: inherit; transition: all .18s; text-decoration: none; box-shadow: 0 4px 20px rgba(185,28,28,.3); }
.kofi-btn:hover { background: #991b1b; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(185,28,28,.4); text-decoration: none; }
.kofi-icon { font-size: 1.2rem; }
.kofi-note { font-size: .82rem; color: var(--text-dim-on-dark); margin-top: 14px; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .topic-card.span2 { grid-column: span 2; }
  .topic-row { grid-template-columns: 52px 1fr 28px; gap: 16px; }
  .topic-row-tags { display: none; }
  .ux-inner { grid-template-columns: 1fr; gap: 40px; }
  .ux-eyebrow-col { display: none; }
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-avatar { margin: 0 auto; }
  .about-links { justify-content: center; }
  .nav-links { display: none; }
  .nav-search-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .trust-inner { gap: 20px; }
  .vpat-detail-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topics-grid { grid-template-columns: 1fr; }
  .topic-card.span2 { grid-column: span 1; }
  .topic-row { grid-template-columns: 44px 1fr; padding: 18px 20px; }
  .topic-row-arrow { display: none; }
  .article-row { grid-template-columns: 48px 1fr auto; }
  .article-row-num { font-size: 1rem; }
  .vpat-table th:nth-child(3), .vpat-table td:nth-child(3) { display: none; }
}

/* ── Scroll progress bar ── */

/* ── Topic card grid (new) ── */
.topics-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none; padding: 0;
}
.topic-card-new {
  position: relative; display: block;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-left: 4px solid var(--cat-color, var(--indigo-400));
  border-radius: var(--radius);
  padding: 20px 10px 10px 20px; 
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: inherit;
}
.topic-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  text-decoration: none;
}
.topic-card-new::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  transform: translateX(-100%); pointer-events: none;
}
.topic-card-new:hover::after { transform: translateX(100%); transition: transform 0.5s ease; }
.topic-card-new__badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--dark-border);
  border-radius: 20px; font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.6rem; color: var(--dark-muted);
}
.topic-card-new__icon  { margin-bottom: 0.85rem; display: block; }
.topic-card-new__title {
  font-size: 1rem; font-weight: 700; color: var(--dark-text);
  margin-bottom: 0.5rem; padding-right: 2.5rem; line-height: 1.3;
}
.topic-card-new__desc { font-size: 0.8rem; color: var(--dark-muted); line-height: 1.55; margin-bottom: 1rem; }
.topic-card-new__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; }
.tag-chip {
  font-size: 0.68rem; font-weight: 500;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--dark-border);
  color: var(--dark-muted);
}
@media (max-width: 1024px) { .topics-grid-new { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .topics-grid-new { grid-template-columns: 1fr; } }

/* ── Scroll-in animation utilities ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.is-visible  { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }
.reveal-clip .sec-title-inner {
  display: inline-block; clip-path: inset(0 100% 0 0);
  transition: clip-path 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-clip.is-visible .sec-title-inner { clip-path: inset(0 0% 0 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; transition: none; }
  .reveal-clip .sec-title-inner { clip-path: none; }
}
