/* 2AData Knowledge Base. Flat, readable, one accent colour. */
:root {
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --bg: #ffffff;
  --bg-2: #f4f4f5;
  --accent: #dc2626;
  --accent-dark: #b91c1c;
  --ok-bg: #ecfdf5; --ok-line: #a7f3d0; --ok-ink: #065f46;
  --warn-bg: #fffbeb; --warn-line: #fde68a; --warn-ink: #92400e;
  --err-bg: #fef2f2; --err-line: #fecaca; --err-ink: #991b1b;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 2rem; letter-spacing: -.01em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(220, 38, 38, .45); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.page-pad { padding-top: 28px; padding-bottom: 48px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { left: -10000px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { display: block; height: 36px; width: auto; }
.brand-kb { font-weight: 700; font-size: 1rem; padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.header-search { display: flex; flex: 1 1 260px; max-width: 440px; margin-left: auto; }
.header-search input { flex: 1; min-width: 0; border: 1px solid #d4d4d8; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 9px 12px; font: inherit; font-size: .95rem; }
.header-search button { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 0 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.header-link { font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink-2); }
.home .header-link { margin-left: auto; }

/* Buttons */
.btn { display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-size: .95rem; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius); cursor: pointer; text-decoration: none; line-height: 1.3; }
.btn:hover, .btn:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-ghost { background: #fff; color: var(--ink); border-color: #d4d4d8; }
.btn-ghost:hover, .btn-ghost:focus { background: var(--bg-2); color: var(--ink); border-color: #a1a1aa; }
.btn-ghost-red { background: #fff; color: var(--accent-dark); border-color: #fca5a5; }
.btn-ghost-red:hover, .btn-ghost-red:focus { background: var(--err-bg); color: var(--accent-dark); border-color: var(--accent); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* Home */
.hero { background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.hero h1 { font-size: 2.3rem; }
.big-search { display: flex; gap: 8px; margin-top: 18px; }
.big-search input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid #a1a1aa; border-radius: var(--radius); background: #fff; }
.section-h { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; display: flex; flex-direction: column; border-top: 3px solid var(--accent); }
.cat-card h3 a { color: var(--ink); text-decoration: none; }
.cat-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.cat-card p { color: var(--muted); font-size: .95rem; }
.cat-card ul { list-style: none; padding: 0; margin: 0 0 14px; }
.cat-card li { padding: 5px 0; border-top: 1px solid var(--bg-2); font-size: .97rem; line-height: 1.4; }
.cat-card li a { text-decoration: none; color: var(--ink-2); }
.cat-card li a:hover { color: var(--accent-dark); text-decoration: underline; }
.cat-more { margin-top: auto; font-size: .9rem; font-weight: 600; }

/* Article lists */
.art-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.art-item a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.art-item a:hover { background: var(--bg-2); }
.art-title { display: block; font-weight: 700; color: var(--accent-dark); }
.art-sum { display: block; color: var(--ink-2); font-size: .95rem; margin-top: 2px; }
.art-cat { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.result-count { color: var(--muted); margin-top: 18px; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 18px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; padding: 0 8px; color: #a1a1aa; }
.crumbs a { color: var(--muted); }

/* Article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0 48px; align-items: start; }
.article { grid-column: 1; min-width: 0; }
.related { grid-column: 2; grid-row: 1; position: sticky; top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 40px; }
.related h2 { font-size: 1rem; margin-bottom: 10px; }
.related ul { margin: 0; padding: 0; list-style: none; }
.related li { padding: 6px 0; border-top: 1px solid var(--bg-2); font-size: .93rem; line-height: 1.4; }
.comments { grid-column: 1; min-width: 0; }
.art-meta { color: var(--muted); font-size: .92rem; margin-top: -4px; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.8em; padding-top: .2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.2em 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--bg-2); color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); }
.art-help { margin-top: 32px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); font-size: .95rem; }

/* Notices */
.notice { padding: 12px 14px; border-radius: var(--radius); border: 1px solid; font-size: .95rem; }
.notice-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.notice-err { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }

/* Comments */
.comments { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments h2 .count { font-size: .9rem; font-weight: 600; color: var(--muted); vertical-align: middle; }
.cmt-list { list-style: none; padding: 0; margin: 0 0 28px; }
.cmt { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cmt-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.cmt-name { font-weight: 700; }
.cmt-head time { color: var(--muted); font-size: .88rem; }
.cmt-body p { margin: 0 0 .6em; overflow-wrap: anywhere; }
.cmt-form-wrap { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cmt-form-wrap h3 { margin-bottom: 12px; }
.field { margin-bottom: 14px; flex: 1 1 200px; min-width: 0; }
.field-sm { flex: 0 0 110px; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #a1a1aa; border-radius: var(--radius); background: #fff; color: var(--ink); }
.field textarea { resize: vertical; }
.field-row { display: flex; gap: 0 16px; flex-wrap: wrap; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.form-note { margin: 10px 0 14px; }
altcha-widget { display: block; margin: 4px 0 6px; --altcha-max-width: 100%; --altcha-color-border: #a1a1aa; --altcha-border-radius: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0 36px; font-size: .92rem; color: var(--ink-2); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-small { color: var(--muted); font-size: .85rem; margin: 0; }

/* Admin */
.admin-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-left: auto; font-size: .95rem; }
.admin-nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.admin-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.inline { display: inline; margin: 0; }
.pill { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; text-align: center; }
.pill-muted { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px 20px; margin-bottom: 16px; }
.card.empty { color: var(--muted); }
.login-card { max-width: 420px; margin: 32px auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }
.cmt-card-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .95rem; margin-bottom: 10px; }
.cmt-card .cmt-body { padding: 12px 14px; background: var(--bg-2); border-radius: 6px; margin-bottom: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.badge-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.badge-err { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.page-head h1 { margin: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--bg-2); font-size: .85rem; color: var(--ink-2); }
.table td a { text-decoration: none; }
.num { text-align: right !important; }
.addr { display: flex; align-items: stretch; }
.addr span { display: flex; align-items: center; padding: 0 10px; background: var(--bg-2); border: 1px solid #a1a1aa; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.addr input { border-radius: 0 var(--radius) var(--radius) 0 !important; }
.mono { font-family: var(--mono) !important; font-size: .93rem !important; line-height: 1.55; }
.preview { border-top: 3px solid var(--accent); }
.preview-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.danger-zone { border-color: #fecaca; }
.danger-zone h2 { font-size: 1.05rem; }
.check { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-weight: 600; }

/* Tablet */
@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-wrap { display: block; }
  .related { position: static; margin: 32px 0 0; }
}
/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 1.8rem; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 30px; width: auto; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-link { display: none; }
  .big-search { flex-direction: column; }
  .big-search .btn { width: 100%; }
  .cmt-form-wrap { padding: 16px; }
  .cmt-form button.btn { width: 100%; }
  .admin-nav { margin-left: 0; width: 100%; gap: 14px; }
  .table th:nth-child(4), .table td:nth-child(4), .table th:nth-child(6), .table td:nth-child(6) { display: none; }
}

/* Tweaks after the screenshot review */
.admin-nav .linkish { text-decoration: none; }
.edit-form .field-row .field:first-child { flex: 2 1 280px; }

/* ===== Front page and site chrome, 2026-10-09 redesign. Flat fills, 2AData navy, brand colour bar, no gradients. ===== */
:root { --navy: #0f172a; --navy-2: #1e293b; --navy-ink: #cbd5e1; --b-blue: #2563eb; --b-purple: #9333ea; --b-orange: #f97316; }
.brand-bar { display: flex; height: 4px; }
.brand-bar span { flex: 1; }
.brand-bar span:nth-child(1) { background: var(--b-blue); }
.brand-bar span:nth-child(2) { background: var(--b-purple); }
.brand-bar span:nth-child(3) { background: var(--b-orange); }

/* Dark header (front page) sits on the hero */
.site-header-dark { background: var(--navy); border-bottom: 1px solid var(--navy-2); }
.site-header-dark .brand, .site-header-dark .brand-kb { color: #fff; }
.site-header-dark .brand-kb { border-left-color: #334155; }
.site-header-dark .header-link { color: var(--navy-ink); }
.site-header-dark .header-link:hover { color: #fff; }

/* Hero */
.hero-home { background: var(--navy); color: #fff; padding: 56px 0 52px; }
.hero-inner { max-width: 820px; text-align: center; }
.hero-kicker { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border: 1px solid #334155; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-ink); }
.hero-home h1 { color: #fff; font-size: 3rem; letter-spacing: -.02em; margin-bottom: 12px; }
.hero-lead { color: var(--navy-ink); font-size: 1.15rem; max-width: 680px; margin: 0 auto 26px; }
.hero-search { position: relative; display: flex; gap: 10px; max-width: 680px; margin: 0 auto; }
.hero-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.hero-search input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 15px 16px 15px 46px; border: 2px solid transparent; border-radius: 10px; background: #fff; color: var(--ink); }
.hero-search input:focus { outline: none; border-color: var(--b-blue); }
.btn-lg { padding: 0 26px; font-size: 1rem; border-radius: 10px; }
.hero-quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; }
.hero-quick span { color: #94a3b8; margin-right: 2px; }
.hero-quick a { color: #e2e8f0; text-decoration: none; padding: 5px 12px; border: 1px solid #334155; border-radius: 999px; background: var(--navy-2); }
.hero-quick a:hover, .hero-quick a:focus { border-color: #64748b; color: #fff; }
.hero-stats { margin: 22px 0 0; color: #94a3b8; font-size: .92rem; }
.hero-stats strong { color: #fff; }

/* Sections */
.home-section { padding-top: 52px; padding-bottom: 52px; }
.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-top h2 { font-size: 1.6rem; margin: 0; letter-spacing: -.01em; }
.section-top p { margin: 0; color: var(--muted); }
.home-band { background: #f8fafc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Topic cards */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.suggest-card { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 26px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }
.suggest-card h3 { margin: 0; font-size: 1.15rem; }
.suggest-card p { margin: 0 0 12px; color: var(--ink-2); max-width: 520px; }
.suggest-card .btn { align-self: flex-start; }
.span-2 { grid-column: span 2; }
@media (max-width: 960px) { .span-2 { grid-column: span 1; } }
.topic-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.topic-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(15, 23, 42, .07); transform: translateY(-2px); }
.topic-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.topic-icon { flex: 0 0 auto; width: 46px; height: 46px; padding: 10px; border-radius: 10px; background: #eff6ff; color: var(--b-blue); }
.topic-card:nth-child(3n+2) .topic-icon { background: #faf5ff; color: var(--b-purple); }
.topic-card:nth-child(3n+3) .topic-icon { background: #fff7ed; color: #ea580c; }
.topic-head h3 { margin: 0; font-size: 1.15rem; }
.topic-head h3 a { color: var(--ink); text-decoration: none; }
.topic-head h3 a:hover { color: var(--accent-dark); }
.topic-count { font-size: .82rem; font-weight: 600; color: var(--muted); }
.topic-desc { color: var(--ink-2); font-size: .95rem; margin-bottom: 12px; }
.topic-links { list-style: none; margin: 0 0 16px; padding: 0; }
.topic-links li { border-top: 1px solid #f1f5f9; }
.topic-links a { display: block; padding: 8px 0; font-size: .95rem; line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.topic-links a:hover { color: var(--accent-dark); }
.topic-all { margin-top: auto; font-size: .9rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.topic-all:hover { text-decoration: underline; }
.topic-all::after { content: " \2192"; }

/* Latest guides */
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.latest-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.latest-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(15, 23, 42, .07); color: var(--ink); }
.latest-cat { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b-blue); }
.latest-title { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.latest-sum { color: var(--ink-2); font-size: .93rem; line-height: 1.55; }
.latest-read { margin-top: auto; padding-top: 6px; font-size: .9rem; font-weight: 700; color: var(--accent-dark); }
.latest-read::after { content: " \2192"; }

/* Help */
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.help-card { padding: 28px; border-radius: 12px; background: var(--navy); color: var(--navy-ink); }
.help-card h2 { color: #fff; font-size: 1.35rem; }
.help-card p { margin-bottom: 18px; }
.help-card-alt { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.help-card-alt h2 { color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-outline:hover, .btn-outline:focus { background: #f8fafc; color: var(--ink); border-color: #94a3b8; }

/* Footer (all public pages) */
.site-footer { background: var(--navy); color: var(--navy-ink); padding: 0 0 26px; border-top: 0; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.footer-brand img { display: block; height: 32px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; max-width: 340px; }
.footer-col h2 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--navy-ink); text-decoration: none; padding: 3px 0; }
.footer-col a:hover { color: #fff; }
.footer-base { border-top: 1px solid var(--navy-2); padding-top: 18px; font-size: .82rem; color: #94a3b8; }
.footer-base p { margin: 0 0 6px; }

@media (max-width: 960px) {
  .topic-grid, .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-home h1 { font-size: 2.5rem; }
}
@media (max-width: 640px) {
  .hero-home { padding: 36px 0 34px; }
  .hero-home h1 { font-size: 2rem; }
  .hero-lead { font-size: 1rem; }
  .hero-search { flex-direction: column; }
  .hero-search-icon { top: 26px; }
  .btn-lg { padding: 13px 20px; }
  .topic-grid, .latest-grid, .help-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .home-section { padding-top: 36px; padding-bottom: 36px; }
  .section-top h2 { font-size: 1.35rem; }
}
