/* NextSpinMY — premium dark theme, mobile-first. Inter is self-hosted (variable font, latin subset). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #0b0f1a;
  --bg-2: #111827;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: #b4bccf;
  --primary: #a78bfa;
  --primary-2: #7c3aed;
  --accent: #fbbf24;
  --accent-2: #f59e0b;
  --cyan: #22d3ee;
  --success: #34d399;
  --danger: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 1180px;
  --font: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --gold: #f5c542;
  --gold-2: #d4a017;
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
.hero-grid > *, .page-grid > *, .grid-2 > *, .grid-3 > *, .footer-grid > * { min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 10% -10%, rgba(124, 58, 237, 0.28), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(34, 211, 238, 0.16), transparent 55%);
  background-attachment: fixed;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #c4b5fd; text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; color: #fff; margin: 0 0 0.6em; font-feature-settings: 'cv11', 'ss01'; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.1; }
.h1-brand { display: block; color: var(--gold); font-weight: 900; letter-spacing: -0.03em; font-size: 1.12em; }
.h1-rule { display: block; width: 56px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), transparent); margin: 6px 0 20px; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 2.2em; scroll-margin-top: 90px; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.3rem); margin-top: 1.6em; scroll-margin-top: 90px; color: #f5f3ff; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin: 0.3em 0; }
li::marker { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.92em; }
blockquote { margin: 1.5em 0; padding: 1em 1.3em; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #111; padding: 10px 16px; border-radius: 10px; z-index: 1000; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 12px; }

/* Buttons */
.btn { white-space: nowrap; font-family: var(--font); touch-action: manipulation; -webkit-tap-highlight-color: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; cursor: pointer; font-size: 1rem; line-height: 1.2; }
.btn:hover { transform: translateY(-2px); }
.btn-cta, .btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1200; box-shadow: 0 8px 24px rgba(245, 197, 66, 0.3); font-weight: 800; }
.btn-cta:hover, .btn-primary:hover { color: #000; box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5); }
.btn-secondary { background: var(--surface-2); color: #fff; border-color: var(--border); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-lg { min-height: 60px; padding: 16px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11, 15, 26, 0.78); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--primary-2), var(--cyan)); color: #fff; font-weight: 900; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { min-height: 42px; padding: 6px 14px; font-size: 0.9rem; }
@media (max-width: 420px) { .brand { font-size: 1.05rem; gap: 8px; } .brand-mark { width: 34px; height: 34px; } .header-inner { gap: 8px; } }
@media (min-width: 900px) { .header-cta { display: none; } }
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(11, 15, 26, 0.97); border-bottom: 1px solid var(--border); padding: 10px 16px 18px; }
.primary-nav.open { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.primary-nav a { display: block; padding: 12px 14px; border-radius: 12px; color: #fff; text-decoration: none; font-weight: 600; }
.primary-nav a:hover, .primary-nav a[aria-current="page"]:not(.btn) { background: var(--surface-2); color: #fff; }
.primary-nav a.btn { margin-top: 8px; text-align: center; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; position: static; background: transparent; border: 0; padding: 0; }
  .primary-nav ul { flex-direction: row; align-items: center; gap: 2px; }
  .primary-nav a { padding: 8px 14px; font-size: 0.98rem; }
  .primary-nav a.btn { margin: 0 0 0 8px; min-height: 44px; padding: 8px 20px; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin: 18px 0 8px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li { max-width: 100%; }
.breadcrumbs li[aria-current] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, 0.35); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero { padding: 40px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.hero .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; font-weight: 400; }
@media (max-width: 899px) { .hero p.lead { font-size: 1.08rem; line-height: 1.6; } h1 { font-size: 2.1rem; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-art { border-radius: var(--radius); overflow: hidden; }
.hero-art img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }
@media (max-width: 899px) { .hero-art { order: 2; } .hero { padding-top: 22px; } .hero-cta .btn { flex: 1 1 45%; } }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } .hero .eyebrow { font-size: 0.72rem; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 0 0 12px; list-style: none; font-size: 0.92rem; color: var(--muted); }
.trust-row li::before { content: "\2713"; color: var(--success); font-weight: 900; margin-right: 6px; }
.disclosure-inline { font-size: 0.85rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; }
@media (min-width: 900px) { .hero { padding: 64px 0 40px; } .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } .hero-art img { max-height: none; } }

/* Layout */
.page { padding: 12px 0 60px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.toc-inline { margin: 0 0 22px; }
@media (max-width: 999px) { .toc-aside { display: none; } }
@media (min-width: 1000px) { .toc-inline { display: none; } }
@media (min-width: 1000px) { .page-grid { grid-template-columns: minmax(0, 1fr) 300px; } .page-grid > aside { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; } }
.prose { max-width: 78ch; }
.prose > h2:first-child { margin-top: 1em; }
.page-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 0.92rem; margin: 6px 0 22px; }
.page-meta a { color: var(--muted); }

/* Cards & glass */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.24); background: var(--surface-2); }
.grid-2, .grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card h2, .card h3 { margin-top: 0; }
.card .icon { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }

/* Boxes */
.box { position: relative; margin: 1.6em 0; padding: 18px 20px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.box > :last-child { margin-bottom: 8px; }
.box-label { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.box-summary, .box-overview { border-color: rgba(167, 139, 250, 0.5); background: rgba(124, 58, 237, 0.14); }
.box-summary .box-label, .box-overview .box-label { background: var(--primary-2); }
.box-definition { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.08); }
.box-definition .box-label { background: #0e7490; }
.box-tip { border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); }
.box-tip .box-label { background: #047857; }
.box-warning { border-color: rgba(251, 113, 133, 0.5); background: rgba(251, 113, 133, 0.1); }
.box-warning .box-label { background: #be123c; }
.box-takeaways { border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.09); }
.box-takeaways .box-label { background: #b45309; }
.box-malay { border-color: rgba(255, 255, 255, 0.25); }
.box-disclosure { border-style: dashed; font-size: 0.95rem; color: var(--muted); }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--border); border-radius: var(--radius-sm); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 700; }
tbody th { font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.03); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.table-hint { display: none; }
@media (max-width: 640px) { .table-hint { display: block; font-size: 0.8rem; color: var(--muted); margin: -0.9em 0 0.6em; } }

/* TOC */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.toc h2 { font-size: 1rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.toc ol { margin: 0; padding-left: 1.2em; columns: 1; }
.toc li { margin: 4px 0; font-size: 0.95rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 640px) and (max-width: 999px) { .toc ol { columns: 2; column-gap: 28px; } }
details.toc summary { cursor: pointer; font-weight: 800; color: var(--accent); list-style: none; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::after { content: "+"; font-size: 1.3rem; }
details.toc[open] summary::after { content: "\2212"; }
details.toc[open] summary { margin-bottom: 8px; }
.toc li a { display: inline-block; padding: 4px 0; }

/* Section shells */
.section { padding: 28px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-title h2 { margin-top: 0; }
.cta-band { margin: 40px 0; padding: 30px 24px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(34, 211, 238, 0.2)); border: 1px solid rgba(167, 139, 250, 0.4); text-align: center; }
.cta-band h2 { margin-top: 0; }
.cta-band p { color: var(--muted); max-width: 60ch; margin-inline: auto; }

/* Blog cards */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-card .post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .cat { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.post-card h2, .post-card h3 { font-size: 1.15rem; margin: 0; }
.post-card h2 a, .post-card h3 a { color: #fff; text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.post-card time { color: var(--muted); font-size: 0.85rem; margin-top: auto; }
.featured-image { border-radius: var(--radius); overflow: hidden; margin: 18px 0 24px; box-shadow: var(--shadow); }
.featured-image img { width: 100%; aspect-ratio: 1200 / 630; }
.author-box { display: flex; gap: 16px; align-items: flex-start; }
.author-box .avatar { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-2), var(--cyan)); font-weight: 900; font-size: 1.3rem; color: #fff; }
.author-box p { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0; }
.tags li { font-size: 0.82rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.share { font-size: 0.9rem; color: var(--muted); }

/* FAQ accordion */
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin: 10px 0; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { padding-bottom: 6px; }
.faq h3 { margin: 0; font-size: 1.02rem; display: inline; }

/* Forms */
form.contact { display: grid; gap: 14px; max-width: 620px; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
input, textarea, select { width: 100%; font: inherit; font-family: var(--font); color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
textarea { min-height: 150px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checkbox input { width: 20px; height: 20px; min-height: 0; margin-top: 4px; }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.35); padding: 40px 0 26px; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr; } }
.footer-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about .brand { margin-bottom: 10px; }
.age-badge span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--danger); color: var(--danger); font-weight: 900; font-size: 0.8rem; margin-right: 8px; vertical-align: middle; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; font-size: 0.88rem; }
.footer-bottom p { margin: 6px 0; }

/* Utilities */
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list > li { counter-increment: step; position: relative; padding-left: 56px; margin: 14px 0; }
.step-list > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-2), var(--cyan)); color: #fff; font-weight: 800; }
.placeholder { border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 26px 18px; text-align: center; color: var(--muted); font-size: 0.92rem; background: rgba(255, 255, 255, 0.03); margin: 1.2em 0; }
.search-results li { margin: 10px 0; }
@media print { .site-header, .site-footer, .hero-cta, .cta-band { display: none; } body { background: #fff; color: #000; } a { color: #000; } }

/* Mobile sticky CTA bar */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 15, 26, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.mobile-cta .btn { flex: 1; min-height: 50px; padding: 10px 12px; font-size: 0.98rem; }
.mobile-cta .btn:hover { transform: none; }
body.has-mobile-cta { padding-bottom: 84px; }
@media (min-width: 900px) { .mobile-cta { display: none; } body.has-mobile-cta { padding-bottom: 0; } }
.back-to-top { position: fixed; right: 14px; bottom: 90px; z-index: 89; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: rgba(17, 24, 39, 0.9); color: #fff; font-size: 1.3rem; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.back-to-top.show { display: flex; }
@media (min-width: 900px) { .back-to-top { bottom: 28px; } }
body.nav-open { overflow: hidden; }
.primary-nav.open { max-height: calc(100vh - 68px); overflow-y: auto; }

/* HTML sitemap */
.sitemap-head { max-width: 72ch; }
.sitemap-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.3); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.sitemap-head .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.sitemap-head h1 { margin: 0 0 2px; }
.sitemap-head .lead { margin-top: 10px; }
.sitemap-jump ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 32px; }
.sitemap-jump a { display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.sitemap-jump a:hover { color: #fff; background: var(--surface-2); border-color: rgba(255, 255, 255, 0.24); }
.sitemap-section { margin: 0 0 44px; scroll-margin-top: 84px; }
.sitemap-section > h2 { margin-bottom: 4px; }
.sitemap-section > p { max-width: 70ch; margin-top: 0; font-size: 0.95rem; }
.sitemap-section > h2 .sitemap-count { vertical-align: middle; }

/* per-card accent, set once and used by the head, bullets and hover bar */
.sitemap-card { --sm: var(--primary); --sm-bg: rgba(167, 139, 250, 0.14); --sm-bd: rgba(167, 139, 250, 0.34); }
.sm-violet { --sm: #a78bfa; --sm-bg: rgba(167, 139, 250, 0.14); --sm-bd: rgba(167, 139, 250, 0.34); }
.sm-cyan   { --sm: #22d3ee; --sm-bg: rgba(34, 211, 238, 0.12);  --sm-bd: rgba(34, 211, 238, 0.32); }
.sm-green  { --sm: #34d399; --sm-bg: rgba(52, 211, 153, 0.12);  --sm-bd: rgba(52, 211, 153, 0.32); }
.sm-gold   { --sm: #fbbf24; --sm-bg: rgba(251, 191, 36, 0.13);  --sm-bd: rgba(251, 191, 36, 0.32); }
.sm-rose   { --sm: #fb7185; --sm-bg: rgba(251, 113, 133, 0.12); --sm-bd: rgba(251, 113, 133, 0.32); }

.sitemap-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 18px; align-items: start; }
.sitemap-grid > * { min-width: 0; }
@media (min-width: 640px) { .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sitemap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sitemap-card { padding: 0; overflow: hidden; scroll-margin-top: 84px; }
.sitemap-card:hover { transform: none; border-color: var(--sm-bd); }
.sitemap-card-head { position: relative; display: flex; align-items: center; gap: 11px; padding: 16px 18px 13px; border-bottom: 1px solid var(--border); }
.sitemap-card-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--sm), transparent 72%); }
.sitemap-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--sm); background: var(--sm-bg); border: 1px solid var(--sm-bd); }
.sitemap-icon svg { display: block; }
.sitemap-card-title { flex: 1; min-width: 0; margin: 0; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--sm); line-height: 1.35; }
.sitemap-card-title a { color: inherit; }
.sitemap-card-title a:hover { color: #fff; }
.sitemap-count { flex: none; display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; color: var(--sm, var(--accent)); background: var(--sm-bg, rgba(251, 191, 36, 0.13)); border: 1px solid var(--sm-bd, rgba(251, 191, 36, 0.32)); border-radius: 999px; padding: 2px 9px; min-width: 26px; text-align: center; }

.sitemap-links { list-style: none; margin: 0; padding: 4px 0; }
.sitemap-links li + li { border-top: 1px dashed var(--border); }
.sitemap-links a { position: relative; display: block; padding: 11px 18px 11px 34px; color: #fff; }
.sitemap-links a::before { content: ""; position: absolute; left: 18px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--sm); opacity: 0.5; transition: opacity 0.16s ease, transform 0.16s ease; }
.sitemap-links a::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--sm); transform: scaleY(0); transform-origin: center; transition: transform 0.16s ease; }
.sitemap-links a:hover { background: rgba(255, 255, 255, 0.04); }
.sitemap-links a:hover::before { opacity: 1; transform: scale(1.35); }
.sitemap-links a:hover::after { transform: scaleY(1); }
.sitemap-links a:hover .sitemap-label { color: var(--sm); }
.sitemap-label { display: block; font-weight: 600; font-size: 0.97rem; line-height: 1.4; transition: color 0.15s ease; }
.sitemap-desc { display: block; font-weight: 400; font-size: 0.85rem; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.sitemap-desc time { color: inherit; }

/* Links that signal hover without an underline (chips, card rows, card titles) */
.sitemap-jump a:hover, .sitemap-links a:hover, .sitemap-links a:hover .sitemap-label, .sitemap-card-title a:hover { text-decoration: none; }
