/* Sripuram Golden Temple guide — night indigo & temple gold */
:root {
  --night: #15163a;
  --night-2: #222458;
  --night-3: #2e3170;
  --gold: #d6a63a;
  --gold-bright: #efc661;
  --gold-pale: #f6e7bd;
  --gold-ink: #7f5a0e;
  --kumkum: #a11d2b;
  --paper: #fffdf8;
  --sand: #f6efe0;
  --ink: #1d1b35;
  --muted: #56536d;
  --line: #e7dcc2;
  --radius-s: 6px;
  --radius-l: 18px;
  --wrap: 1180px;
  --font-display: 'Marcellus', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Mukta', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--kumkum); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; color: var(--night); margin: 0 0 .6em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-bright); color: var(--night); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); color: #fff; border-bottom: 1px solid rgba(239, 198, 97, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-bright); text-decoration: none; }
.brand:hover { color: var(--gold-bright); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; color: #fff; }
.brand-sub { font-size: .8rem; color: var(--gold-pale); opacity: .85; }

/* Grouped navigation: buttons open sub-menus (click/tap, Esc closes) */
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-groups { display: flex; align-items: center; gap: 2px; }
.nav-group { position: relative; }
.nav-group-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #e9e7f7; font: 500 1rem var(--font-body); padding: 10px 12px; border-radius: var(--radius-s); cursor: pointer; }
.nav-group-btn::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.nav-group-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav-group-btn:hover, .nav-group-btn[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-group.is-active > .nav-group-btn { color: var(--gold-bright); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-sub { display: none; }
.nav-sub a { display: block; padding: 9px 16px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-sub a:hover { background: var(--sand); color: var(--night); }
.nav-sub a[aria-current="page"] { color: var(--night); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.nav-cta-item { margin-left: 10px; }
.site-nav a.nav-cta { display: block; background: var(--gold-bright); color: var(--night); font-weight: 700; padding: 8px 18px; border-radius: 999px; text-decoration: none; white-space: nowrap; box-shadow: 0 0 0 3px rgba(239, 198, 97, .25); }
.site-nav a.nav-cta:hover { background: #fff; }
.site-nav a.nav-cta[aria-current="page"] { background: #fff; box-shadow: 0 0 0 3px var(--gold); }

@media (min-width: 960px) {
  .nav-sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 12px 28px rgba(21, 22, 58, .18); padding: 6px 0; z-index: 60; }
  .nav-group.is-open > .nav-sub { display: block; }
  html:not(.js) .nav-group:hover > .nav-sub, html:not(.js) .nav-group:focus-within > .nav-sub { display: block; }
}

.nav-toggle { display: none; align-items: center; gap: 10px; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius-s); padding: 9px 14px; font: 500 1rem var(--font-body); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 959px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid rgba(239, 198, 97, .3); max-height: calc(100vh - 64px); overflow-y: auto; display: none; }
  .js .site-nav.is-open { display: block; }
  .nav-groups { flex-direction: column; align-items: stretch; padding: 8px 16px 20px; gap: 0; }
  .nav-group { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav-group-btn { width: 100%; justify-content: space-between; padding: 14px 4px; font-size: 1.08rem; }
  .nav-group.is-active > .nav-group-btn { box-shadow: none; }
  .nav-group.is-open > .nav-sub, html:not(.js) .nav-sub { display: block; padding: 0 0 10px; }
  .nav-sub a { color: #dedcf0; padding: 10px 14px; }
  .nav-sub a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .nav-sub a[aria-current="page"] { color: var(--gold-bright); }
  .nav-cta-item { order: -1; margin: 8px 0 12px; }
  .site-nav a.nav-cta { text-align: center; padding: 12px 16px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav { width: 100%; }
}

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color .15s ease, color .15s ease; }
.btn-gold { background: var(--gold-bright); color: var(--night); }
.btn-gold:hover { background: #fff; color: var(--night); }
.btn-ghost { border-color: rgba(246, 231, 189, .6); color: var(--gold-pale); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-3); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ home hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 90% at 78% 50%, var(--night-3) 0%, var(--night) 62%); color: #e9e7f7; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); line-height: 1.12; margin-bottom: .45em; }
.hero p.hero-lede { font-size: 1.15rem; max-width: 36em; color: #d9d7ec; }
.hero .btn-row { margin: 28px 0 22px; }
.open-status { display: inline-flex; align-items: center; gap: 10px; font-size: .98rem; color: var(--gold-pale); }
.open-status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(214, 166, 58, .25); }
.open-status[data-state="open"]::before { background: #58c98b; box-shadow: 0 0 0 4px rgba(88, 201, 139, .25); }
.open-status[data-state="closed"]::before { background: #e0707a; box-shadow: 0 0 0 4px rgba(224, 112, 122, .25); }

.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; max-width: 560px; margin: 0 auto; }
.star-path { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.8s cubic-bezier(.6, .1, .3, 1) .2s forwards; }
.lamp { opacity: 0; animation: glow .5s ease forwards; }
.vimana { opacity: 0; animation: glow 1.2s ease 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow { to { opacity: 1; } }
.hero-caption { text-align: center; font-size: .85rem; color: #a9a6c8; margin-top: 4px; }

/* ------------------------------------------------------------ home sections */
.section { padding: 80px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 44em; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.facts { background: var(--night-2); color: #fff; }
.facts dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.facts dl > div { padding: 22px 24px; border-left: 1px solid rgba(239, 198, 97, .25); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .9rem; color: var(--gold-pale); }
.facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.2rem; }
.facts dd a { color: #fff; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }




.trust { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; }
.trust svg { width: 56px; height: 56px; color: var(--gold); }
.trust h2 { font-size: 1.6rem; }
.trust p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ inner pages */
.page-hero { background: var(--night) url("/assets/img/star-pattern.svg") right -80px center / 520px no-repeat; color: #d9d7ec; padding: 36px 0 44px; }
.page-hero h1 { color: #fff; max-width: 20em; margin-bottom: .3em; }
.page-hero .lede { font-size: 1.2rem; max-width: 40em; color: #d9d7ec; margin-bottom: .8em; }
.page-meta { font-size: .92rem; color: #a9a6c8; margin: 0; }
.page-meta a { color: var(--gold-pale); }
.breadcrumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; font-size: .92rem; }
.breadcrumbs li + li::before { content: '/'; margin: 0 10px; color: #7c79a3; }
.breadcrumbs a { color: var(--gold-pale); }
.breadcrumbs [aria-current] { color: #bcb9d8; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-top: 52px; padding-bottom: 80px; align-items: start; }
.page-grid-single { grid-template-columns: minmax(0, 760px); }
.page-aside { position: sticky; top: 100px; display: grid; gap: 24px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; padding-top: .2em; }
.prose > h2:first-child, .prose > .note:first-child + h2 { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--gold-ink); }
.prose strong { color: var(--night); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: 1.3rem; color: var(--night); }

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-s); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; background: #fff; }
caption { text-align: left; padding: 12px 16px; font-weight: 700; color: var(--night); background: var(--sand); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--night); color: #fff; font-weight: 500; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--night); }

.note { background: #fff8e6; border: 1px solid #efd9a0; border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: var(--radius-s); margin: 0 0 1.6em; }
.note p:last-child { margin: 0; }
.note-title { font-weight: 700; color: var(--night); margin-bottom: .2em; }

.toc details { border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; }
.toc summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-display); font-size: 1.15rem; color: var(--night); }
.toc ol { margin: 0; padding: 0 18px 16px 36px; font-size: .96rem; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--kumkum); text-decoration: underline; }


.faq { margin-top: 2.4em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--night); font-size: 1.08rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 400; color: var(--gold-ink); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 16px; color: var(--ink); }

.sources { margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .96rem; }
.sources-title { font-size: 1.25rem; }
.sources ul { padding-left: 1.2em; }

.link-list, .sitemap-list { padding-left: 1.2em; }
.link-list li, .sitemap-list li { margin-bottom: .7em; }


/* ------------------------------------------------------------ contact form */
.form { display: grid; gap: 18px; margin: 1em 0 2em; }
.form label { display: block; font-weight: 700; color: var(--night); margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #cfc3a5; border-radius: var(--radius-s); padding: 11px 14px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--night); outline: 3px solid var(--gold-pale); outline-offset: 0; }
.form textarea { min-height: 160px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-hint { font-size: .9rem; color: var(--muted); margin: 4px 0 0; }
.form button { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.form-status { font-weight: 700; color: var(--night); }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--night); color: #c7c4e0; padding: 64px 0 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--gold-bright); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e9e7f7; text-decoration: none; }
.site-footer a:hover { color: var(--gold-bright); text-decoration: underline; }
.brand-footer { margin-bottom: 14px; }
.footer-base { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; color: #a9a6c8; }
.footer-base p { margin: 0 0 .7em; max-width: 72em; }
.footer-disclosure a { text-decoration: underline; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; order: -1; }
  .hero-inner { padding-top: 28px; gap: 8px; }
  .facts dl { grid-template-columns: repeat(2, 1fr); }
  .facts dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts dl > div:nth-child(n + 3) { border-top: 1px solid rgba(239, 198, 97, .25); }
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; }
  .page-aside { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 64px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.25rem; }
  .nav-toggle-label { display: none; }
  .section { padding: 56px 0; }
  .facts dl > div { padding: 16px 12px; }
  .facts dl > div:nth-child(odd) { padding-left: 0; }
  .facts dd { font-size: 1.05rem; }
  .form-row { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; padding: 24px; }
  .page-hero { background-size: 320px; background-position: right -140px top -40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .star-path { animation: none; stroke-dashoffset: 0; }
  .lamp, .vimana { animation: none; opacity: 1; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .page-aside, .skip-link { display: none; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
}

/* ============================================================ Phase 2 components */
/* Trust labels: sentence case, small, colour-coded but always with text */
.tag { display: inline-block; font-size: .78rem; font-weight: 700; line-height: 1.3; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; white-space: nowrap; }
.tag-official { background: #e3efe7; color: #1e5a35; }
.tag-historical { background: #ece9f7; color: #3c3577; }
.tag-estimate { background: #fbedd2; color: #6e4b07; }
.tag-guidance { background: #e6eef7; color: #23476e; }
.tag-observation { background: #f6e3e5; color: #7d1d2a; }
.cite { font-size: .92rem; color: var(--muted); margin: -.4em 0 1.4em; padding-left: 12px; border-left: 2px solid var(--line); }
.cite a { color: var(--gold-ink); }
.label-key { list-style: none; padding: 0; }
.label-key li { margin-bottom: .7em; }

.official-box { border: 2px solid var(--gold); border-radius: var(--radius-s); background: #fff; padding: 18px 20px; margin: 0 0 1.6em; }
.official-box p { margin: 0 0 .8em; }
.official-box-title { font-family: var(--font-display); font-size: 1.25rem; color: var(--night); }
.official-box-meta { font-size: .9rem; color: var(--muted); margin-bottom: 0 !important; }

.quick-facts { background: var(--night); color: #dedcf0; border-radius: var(--radius-l); padding: 24px 26px; margin: 0 0 2em; }
.quick-facts-title { color: var(--gold-bright); font-size: 1.35rem; margin-bottom: .8em; }
.quick-facts dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 28px; margin: 0; }
.quick-facts dt { font-size: .86rem; color: #aeabcc; }
.quick-facts dd { margin: 2px 0 0; color: #fff; font-weight: 500; }
.quick-facts a { color: var(--gold-pale); }
.quick-facts-note { font-size: .88rem; color: #aeabcc; margin: 16px 0 0; }
.home-facts { margin-top: -36px; position: relative; z-index: 2; }
.home-facts .quick-facts { box-shadow: 0 16px 40px rgba(21, 22, 58, .25); border: 1px solid rgba(239, 198, 97, .3); }

.timing-card { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: #fff; border-radius: var(--radius-s); padding: 18px 22px; margin: 0 0 1em; }
.timing-card p { margin: 0; }
.timing-card-label { color: var(--muted); }
.timing-card-value { font-family: var(--font-display); font-size: 2rem; color: var(--night); line-height: 1.2; }
.timing-card-note { font-size: .92rem; color: var(--muted); margin-top: 6px !important; }

.clusters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.cluster { border-top: 2px solid var(--gold); padding-top: 16px; }
.cluster h3 { font-size: 1.25rem; }
.cluster ul { list-style: none; padding: 0; margin: 0; }
.cluster li { margin-bottom: .7em; line-height: 1.5; }
.recent-corrections { margin-top: 8px; }
.recent-corrections h3 { font-size: 1.2rem; }
.recent-corrections ul { padding-left: 1.1em; font-size: .95rem; }

.author-card { margin-top: 2.4em; padding: 18px 20px; background: var(--sand); border-radius: var(--radius-s); }
.author-card p { margin: 0 0 .4em; }
.author-card p:last-child { margin: 0; }
.author-card-name { font-weight: 700; color: var(--night); }

.glossary dt { font-weight: 700; color: var(--night); margin-top: 1em; }
.glossary dd { margin: .2em 0 0; }
.columns { columns: 2; column-gap: 32px; }
.columns li { break-inside: avoid; }
.source-list { padding-left: 1.2em; }
.source-list li { margin-bottom: 1em; }
.source-tier, .source-facts { color: var(--muted); font-size: .92rem; }
.observation { border-left: 3px solid #c9707b; padding-left: 14px; margin-bottom: 1.2em; }
.figure { margin: 0 0 1.6em; }
.figure img { display: block; border-radius: var(--radius-s); }
.figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.figure-art svg { display: block; width: 100%; max-width: 420px; background: var(--night); border-radius: var(--radius-l); }
.search-form { grid-template-columns: 1fr auto; align-items: end; }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-results a { font-weight: 700; }
.search-results p { margin: 4px 0 0; color: var(--muted); }

@media (max-width: 1000px) {
  .clusters { grid-template-columns: repeat(2, 1fr); }
  .quick-facts dl { grid-template-columns: repeat(2, 1fr); }
  .hero-art { order: 0; max-width: 300px; }
}
@media (max-width: 640px) {
  .hero-art { display: none; }
  .hero-inner { padding-top: 24px; padding-bottom: 56px; }
  .clusters, .quick-facts dl { grid-template-columns: 1fr; }
  .quick-facts { padding: 20px; }
  .columns { columns: 1; }
  .search-form { grid-template-columns: 1fr; }
}

/* ============================================================ Phase 2.1 trust components */
.official-note { border: 1px solid #b9d8c3; border-left: 4px solid #2f7a4b; background: #f3faf5; border-radius: var(--radius-s); padding: 14px 18px; margin: 0 0 1.4em; }
.official-note p { margin: 0 0 .6em; }
.official-note ul { margin: 0 0 .6em; }
.official-note .cite { margin: .4em 0 0; padding-left: 0; border-left: 0; }
.official-note-title { font-weight: 700; color: #1e5a35; }
.guide-box { border: 1px solid #c9d8ea; border-left: 4px solid #3b6ea5; background: #f5f9fd; border-radius: var(--radius-s); padding: 14px 18px; margin: 0 0 1.4em; }
.guide-box-estimate { border-color: #ecd7a6; border-left-color: #b8861b; background: #fffaf0; }
.guide-box p { margin: 0 0 .5em; }
.guide-box-title { font-weight: 700; color: #23476e; }
.guide-box-estimate .guide-box-title { color: #6e4b07; }
.guide-box-note { font-size: .88rem; color: var(--muted); margin-bottom: 0 !important; }
.how-to-read { font-size: .95rem; background: var(--sand); border-radius: var(--radius-s); padding: 12px 16px; margin: 0 0 1.6em; }
.how-to-read p { margin: 0; }

.entity { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: 0 16px 40px rgba(21, 22, 58, .18); }
.entity > div { padding: 14px 18px; border-left: 1px solid var(--line); }
.entity > div:first-child { border-left: 0; }
.entity dt { font-size: .82rem; color: var(--muted); }
.entity dd { margin: 2px 0 0; font-weight: 500; color: var(--night); line-height: 1.45; }
.home-facts .quick-facts { box-shadow: none; }
.section-tight { padding-top: 48px; }
.before-cards { list-style: none; counter-reset: before; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.before-cards li { counter-increment: before; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius-s); padding: 16px 16px 14px; }
.before-cards h3 { font-size: 1.12rem; margin-bottom: .4em; }
.before-cards h3::before { content: counter(before) '. '; color: var(--gold-ink); }
.before-cards p { margin: 0 0 .6em; font-size: .97rem; }
.before-cards p:last-child { margin: 0; }

@media (max-width: 1000px) {
  .entity { grid-template-columns: repeat(2, 1fr); }
  .entity > div:nth-child(3) { border-left: 0; }
  .entity > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .before-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .entity, .before-cards { grid-template-columns: 1fr; }
  .entity > div { border-left: 0; border-top: 1px solid var(--line); }
  .entity > div:first-child { border-top: 0; }
}
.nav-toggle { min-height: 44px; min-width: 44px; justify-content: center; }
.btn { min-height: 44px; }
.footer-tagline { color: #e9e7f7; }
