/* ==========================================================
   SA Uni — public stylesheet
   ========================================================== */
:root {
  --bg: #f6f5f1;
  --bg-2: #efeee8;
  --surface: #ffffff;
  --surface-2: #f9f8f5;
  --ink: #0f1733;
  --ink-2: #3c4566;
  --muted: #6b7391;
  --line: #e3e2da;
  --brand: #1b3fd6;
  --brand-ink: #ffffff;
  --brand-soft: #e7ecff;
  --gold: #f0a531;
  --gold-soft: #fff1d6;
  --rose: #e2516b;
  --ok: #138a5a;
  --shadow: 0 1px 2px rgba(15, 23, 51, .05), 0 10px 30px -12px rgba(15, 23, 51, .18);
  --shadow-lg: 0 30px 60px -25px rgba(15, 23, 51, .35);
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --grid: rgba(15, 23, 51, .045);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0f1f;
  --bg-2: #0e1428;
  --surface: #121a31;
  --surface-2: #161f3a;
  --ink: #eef1fb;
  --ink-2: #c3c9de;
  --muted: #8d96b5;
  --line: #233056;
  --brand: #7c97ff;
  --brand-ink: #0a0f1f;
  --brand-soft: #1b2650;
  --gold: #f6b54a;
  --gold-soft: #3a2c12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, .8);
  --grid: rgba(160, 180, 255, .05);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 100% -10%, rgba(27, 63, 214, .10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(240, 165, 49, .10), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px;
  background-attachment: fixed;
  transition: background-color .3s, color .3s;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 600; }
.ic { flex: none; vertical-align: -0.18em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: 600 15px var(--sans); color: var(--brand-ink);
  background: var(--brand); padding: 12px 20px; border-radius: 12px; box-shadow: 0 8px 20px -10px var(--brand); transition: transform .15s, filter .15s; }
.btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font: 700 15px var(--sans); color: #fff;
  background: linear-gradient(135deg, #1b3fd6, #6a3fe0 60%, #f0a531); box-shadow: 0 6px 16px -6px rgba(27, 63, 214, .7); letter-spacing: .02em; }
.brand-name { font: 700 23px var(--serif); letter-spacing: -.01em; }
.brand-name em { font-style: italic; color: var(--brand); }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu > a, .dd-btn { color: var(--ink-2); font: 500 15px var(--sans); padding: 9px 14px; border-radius: 10px; background: none; border: 0; cursor: pointer; }
.menu > a:hover, .dd-btn:hover, .menu > a.on { color: var(--ink); background: var(--surface); text-decoration: none; }
.menu > a.on { box-shadow: inset 0 0 0 1px var(--line); }
.dd { position: relative; }
.dd-btn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.dd-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 300px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px; box-shadow: var(--shadow-lg); display: none; }
.dd:hover .dd-panel, .dd.open .dd-panel { display: grid; }
.dd:hover .dd-panel::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.dd-panel a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-size: 15px; }
.dd-panel a:hover { background: var(--brand-soft); text-decoration: none; }
.dd-panel a .ic { color: var(--brand); }
.nav-tools { display: flex; gap: 6px; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.theme-toggle .t-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .t-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .t-moon { display: block; }
.theme-toggle span { display: grid; }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 380px at 78% 45%, rgba(106, 63, 224, .18), transparent 70%), radial-gradient(500px 300px at 92% 85%, rgba(240, 165, 49, .2), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font: 600 13px var(--sans); color: var(--ink-2); box-shadow: var(--shadow); }
.eyebrow .ic { color: var(--brand); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); margin: 20px 0 18px; font-weight: 600; }
.hl { font-style: italic; color: var(--brand); }
.hl2 { font-style: italic; background: linear-gradient(transparent 62%, var(--gold-soft) 62%); padding: 0 .08em; }
:root[data-theme="dark"] .hl2 { color: var(--gold); background: none; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 60ch; }
.hero-search { display: flex; align-items: center; gap: 10px; margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 7px 7px 7px 16px; box-shadow: var(--shadow); max-width: 580px; }
.hero-search .ic { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 16px var(--sans); color: var(--ink); padding: 8px 0; }
.hero-search.slim { margin-top: 20px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-pills a { display: inline-flex; gap: 6px; align-items: center; font: 500 14px var(--sans); color: var(--ink-2); padding: 7px 12px; border-radius: 999px; border: 1px dashed var(--line); }
.hero-pills a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 460px; justify-self: center; width: 100%; }
.art-orb { position: absolute; inset: 12%; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: conic-gradient(from 200deg, #1b3fd6, #6a3fe0, #e2516b, #f0a531, #1b3fd6); box-shadow: var(--shadow-lg), inset 0 0 0 14px rgba(255, 255, 255, .14);
  animation: float 9s ease-in-out infinite; }
.art-orb::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: rgba(255, 255, 255, .1); backdrop-filter: blur(2px); }
.art-orb .ic { position: relative; z-index: 1; stroke-width: 1.4; }
.art-card { position: absolute; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 11px 15px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); font: 600 14px var(--sans); white-space: nowrap; }
.art-card .ic { color: var(--brand); }
.a1 { top: 6%; left: -4%; animation: float 7s ease-in-out infinite; }
.a2 { bottom: 16%; left: -10%; animation: float 8s ease-in-out -2s infinite; }
.a2 .ic { color: var(--rose); }
.a3 { top: 44%; right: -6%; animation: float 6.5s ease-in-out -4s infinite; }
.a3 .ic { color: var(--gold); }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* sections */
.section { padding: 40px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; white-space: nowrap; }

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 20px; margin: 0; line-height: 1.28; }
.card h3 a { color: var(--ink); }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.meta { margin-top: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.meta .dot { margin: 0 2px; }
.tag { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; font: 700 11.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
  background: var(--brand-soft); padding: 5px 10px; border-radius: 999px; }
.tag:hover { text-decoration: none; filter: brightness(.97); }
.feat-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; }
.card-big h3 { font-size: clamp(24px, 2.6vw, 32px); }
.card-big .card-body { padding: 24px 26px 26px; }
.feat-side { display: grid; gap: 18px; }
.feat-side .card { flex-direction: row; }
.feat-side .card-img { width: 42%; aspect-ratio: auto; flex: none; }
.feat-side .card-body { padding: 14px 16px; gap: 8px; }
.feat-side .card h3 { font-size: 17px; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile { --c: var(--brand); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, border-color .2s; }
.cat-tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .09; transition: transform .3s; }
.cat-tile:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--c); }
.cat-tile:hover::before { transform: scale(1.3); }
.cat-tile strong { font: 600 19px var(--serif); }
.cat-tile span { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.cat-tile em { margin-top: auto; font: 600 13px var(--sans); color: var(--c); display: inline-flex; align-items: center; gap: 4px; padding-top: 6px; }
.cat-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: #fff; background: var(--c); box-shadow: 0 10px 20px -10px var(--c); }
.cat-ic.big { width: 62px; height: 62px; margin-bottom: 14px; }
.c-college-admissions { --c: #3a3fc4; } .c-financial-aid { --c: #0e8a68; } .c-study-skills { --c: #7b3fe4; } .c-test-prep { --c: #e0513a; }
.c-campus-life { --c: #1d8fc7; } .c-online-learning { --c: #4257d8; } .c-career-planning { --c: #3d7b4c; }
.cat-grid .cat-tile:first-child { grid-column: span 1; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, #10204f, #1b3fd6 55%, #6a3fe0); color: #fff; box-shadow: var(--shadow-lg); }
.trust > div { padding: 30px 28px; border-right: 1px solid rgba(255, 255, 255, .12); }
.trust > div:last-child { border-right: 0; }
.trust h3 { font-size: 22px; margin: 14px 0 8px; }
.trust p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15.5px; }
.trust .ic { color: var(--gold); }

/* page hero */
.page-hero { padding: 48px 0 18px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 10px 0 10px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 14px var(--sans); }
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat-hero .cat-ic { background: var(--c); }
.result-note { color: var(--muted); margin: 0 0 18px; }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.pager a.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* post */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.post-head { padding-top: 40px; }
.post-head .crumbs { margin-bottom: 18px; }
.post-head h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 16px 0 14px; }
.dek { font-size: 20px; color: var(--ink-2); margin: 0 0 22px; }
.byline { display: flex; gap: 12px; align-items: center; padding: 16px 0 26px; }
.byline div { display: flex; flex-direction: column; font-size: 15px; }
.byline span { color: var(--muted); font-size: 14px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font: 700 14px var(--sans); background: linear-gradient(135deg, #1b3fd6, #6a3fe0); flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 16px; }
.post-hero { margin-bottom: 40px; max-width: 1080px; }
.post-hero img { width: 100%; border-radius: 22px; box-shadow: var(--shadow-lg); }
.post-hero figcaption, .prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.post-layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 56px; justify-content: center; }
.toc-wrap { position: relative; }
.toc { position: sticky; top: 96px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow: auto; }
.toc h2 { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 6px 8px 6px 28px; position: relative; color: var(--ink-2); font-size: 14px; line-height: 1.4; border-radius: 8px; }
.toc a::before { content: counter(t); position: absolute; left: 6px; top: 6px; font: 600 11px var(--sans); color: var(--muted); }
.toc a:hover, .toc a.on { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.toc:empty, .toc.hide { display: none; }

.prose { font-size: 18px; line-height: 1.78; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: clamp(25px, 2.6vw, 31px); margin: 1.8em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 22px; margin: 1.5em 0 .5em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent); text-underline-offset: 3px; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 14px 14px 0; font-size: 17.5px; }
:root[data-theme="dark"] .prose blockquote { background: rgba(246, 181, 74, .08); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; font-size: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.prose thead th { background: var(--ink); color: var(--bg); text-align: left; font-weight: 600; }
:root[data-theme="dark"] .prose thead th { background: var(--brand-soft); color: var(--ink); }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: var(--surface-2); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 16px; margin: 0 auto; box-shadow: var(--shadow); }
.prose img { border-radius: 14px; }
.prose em { color: var(--ink-2); }
.author-box { display: flex; gap: 16px; margin: 48px 0 20px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.author-box p { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.fine { font-size: 14px; color: var(--muted); line-height: 1.6; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.share span { color: var(--muted); margin-right: 4px; }
.share a, .share button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 14px var(--sans); cursor: pointer; text-decoration: none !important; }
.share a:hover, .share button:hover { border-color: var(--brand); color: var(--brand); }
.static .lead { margin-top: 0; }

/* forms + notices */
.form { display: grid; gap: 16px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font: 600 14px var(--sans); color: var(--ink-2); }
.form input, .form textarea, .form select { font: 16px var(--sans); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute !important; left: -9999px !important; }
.notice { padding: 14px 18px; border-radius: 14px; display: flex; gap: 10px; align-items: center; margin: 18px 0; font-size: 16px; }
.notice.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); }
.notice.err { background: color-mix(in srgb, var(--rose) 12%, var(--surface)); color: var(--rose); border: 1px solid color-mix(in srgb, var(--rose) 30%, transparent); }

/* 404 */
.notfound { text-align: center; padding: 80px 0; }
.notfound .lead { margin: 0 auto; }
.notfound .hero-search { margin: 26px auto; }
.big404 { font: 700 120px/1 var(--serif); background: linear-gradient(135deg, var(--brand), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* footer */
.site-footer { margin-top: 60px; background: var(--surface); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1.2fr 1fr 1fr; gap: 40px; padding: 56px 0 30px; }
.foot-about p { color: var(--ink-2); font-size: 15px; max-width: 38ch; }
.site-footer h3 { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 8px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { color: var(--ink-2); font-size: 15px; }
.site-footer ul a:hover { color: var(--brand); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-bottom p { margin: 0; }

/* consent */
.consent { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; width: min(680px, calc(100% - 28px)); display: flex; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-lg); font-size: 14.5px; }
.consent p { margin: 0; color: var(--ink-2); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent[hidden] { display: none; }

/* responsive */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .post-layout { grid-template-columns: minmax(0, 720px); }
  .toc-wrap { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .feat-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .trust > div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: grid; }
  .menu { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .menu.open { display: flex; }
  .menu > a, .dd-btn { padding: 12px 14px; text-align: left; width: 100%; }
  .dd-panel { position: static; transform: none; box-shadow: none; display: grid; border: 0; padding: 0 0 0 10px; background: transparent; min-width: 0; }
  .dd-btn { display: none; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid3, .cat-grid, .row2 { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-art { display: none; }
  .feat-side .card { flex-direction: column; }
  .feat-side .card-img { width: 100%; aspect-ratio: 16/9; }
  .prose { font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr; }
  .consent { flex-direction: column; align-items: stretch; }
  .sec-head { flex-direction: column; align-items: start; }
  .brand-name { font-size: 20px; }
}
