/* Broadband for Education — site styles. Palette: plum, amber, fibre coral and mint on warm paper.
   Fonts: Spectral (headings) and Encode Sans (text), both self-hosted under the SIL OFL (see /assets/fonts/OFL.txt).
   Motif: fibre strands and network "ports" (the notched number tiles). No frameworks. */

@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-600-italic.woff2") format("woff2"); font-weight: 600 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Encode Sans"; src: url("/assets/fonts/encode-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #1F1430;
  --plum: #3D2352;
  --plum-2: #5B3A78;
  --plum-deep: #2A1840;
  --lilac: #EEE7F4;
  --lilac-2: #E2D7EC;
  --paper: #FCFAF6;
  --cream: #F6EFE2;
  --amber: #E8A13A;
  --amber-soft: #FBEBD2;
  --coral: #D9675B;
  --mint: #8FC7BE;
  --mint-soft: #E3F2EF;
  --line: #DCD3E3;
  --muted: #5C5270;
  --link: #5B3A78;
  --ok: #1F6B4F;
  --warn: #9A3B1E;
  --focus: #C2410C;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(31, 20, 48, .06), 0 6px 18px rgba(31, 20, 48, .06);
  --head: "Spectral", Georgia, "Times New Roman", serif;
  --body: "Encode Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--paper); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--plum); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.18; color: var(--plum-deep); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl { margin: 0 0 1em; }
code { font-size: .92em; background: var(--lilac); padding: .05em .3em; border-radius: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 8px; }
.print-only { display: none; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ sister bar + header */
.sister-bar { background: var(--cream); border-bottom: 1px solid var(--line); font-size: .9rem; }
.sister-in { display: flex; justify-content: flex-end; }
.sister-bar p { margin: 0; padding: 6px 0; text-align: right; }
.sister-bar a { font-weight: 650; white-space: nowrap; }
.site-head { background: var(--plum-deep); color: #fff; position: relative; }
.head-in { display: flex; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.brand:hover { color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.42rem; letter-spacing: .005em; }
.brand-name i { font-style: italic; color: var(--amber); font-weight: 600; }
.brand-tag { font-size: .8rem; color: #D9CDE6; margin-top: 2px; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav-main a { display: block; color: #F3ECF9; text-decoration: none; padding: 8px 11px; border-radius: var(--radius); font-weight: 560; font-size: .97rem; }
.nav-main a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-main a[aria-current] { color: var(--ink); background: var(--amber); }
.nav-mobile { display: none; }
.strands { display: block; width: 100%; height: 14px; fill: none; stroke-width: 2.5; }
.nav-mobile summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid rgba(255,255,255,.5); border-radius: var(--radius); font-weight: 650; min-height: 44px; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger { display: inline-flex; flex-direction: column; gap: 3px; }
.burger i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--plum-deep); z-index: 30; padding: 6px 16px 16px; border-top: 1px solid rgba(255,255,255,.15); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile a { display: block; color: #fff; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 560; }
.nav-mobile a[aria-current] { color: var(--amber); }
@media (max-width: 1020px) {
  .nav-main { display: none; }
  .nav-mobile { display: block; }
}

/* ------------------------------------------------------------------ ads + cookie bar */
.ad-slot { display: block; margin: 20px auto; }
.ad-slot:has(ins[data-fiveod="empty"], ins[data-fiveod="error"], ins[data-fiveod="nofit"]) { display: none !important; }
.ad-in { display: flex; justify-content: center; }
.ad-in ins.fiveod { width: 100%; }
.ad-head { max-width: 1180px; padding: 0 16px; }
.ad-body, .ad-list { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--cream); color: var(--ink); border-top: 4px solid var(--plum); box-shadow: 0 -8px 28px rgba(31, 20, 48, .18); }
.cookie-in { display: flex; gap: 14px 28px; align-items: center; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.cookie-txt { flex: 1 1 420px; }
.cookie-h { font-size: 1.15rem; margin: 0 0 4px; }
.cookie-h:focus { outline: none; }
.cookie-txt p { margin: 0 0 4px; font-size: .93rem; }
.cookie-now { font-weight: 650; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { font: 650 1rem var(--body); min-height: 46px; min-width: 150px; padding: 10px 18px; border-radius: var(--radius); cursor: pointer; border: 2px solid var(--plum); background: var(--plum); color: #fff; }
.cookie-btn:hover { background: var(--plum-deep); border-color: var(--plum-deep); }

/* ------------------------------------------------------------------ buttons, links */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: var(--radius); border: 2px solid transparent; font: 650 1rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s; }
.btn-sm { min-height: 40px; padding: 7px 13px; font-size: .93rem; }
.btn-amber { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-amber:hover { background: #F2B65D; color: var(--ink); }
.btn-plum { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn-plum:hover { background: var(--plum-deep); color: #fff; }
.btn-line { background: #fff; color: var(--plum); border-color: var(--plum); }
.btn-line:hover { background: var(--lilac); color: var(--plum-deep); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--plum); color: #fff; padding: 44px 0 52px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(90deg, var(--amber) 0 33.3%, var(--coral) 33.3% 66.6%, var(--mint) 66.6%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 36px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--amber); font-weight: 600; }
.hero .lead { color: #EDE4F5; font-size: 1.15rem; max-width: 38em; }
.hero .kicker { color: #F6D9A8; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 16px; }
.hero-note { font-size: .92rem; color: #D9CDE6; margin: 0; }
.hero-note .ic-tick { color: var(--mint); }
.hero-art { display: block; width: 100%; border-radius: 28px; box-shadow: 0 18px 40px rgba(10, 4, 20, .35); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-pic { max-width: 520px; }
}

/* ------------------------------------------------------------------ sections */
.kicker { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--plum-2); margin: 0 0 10px; }
.kicker-light { color: #F6D9A8; }
.lead { font-size: 1.12rem; color: #3B3150; max-width: 46em; }
.section { padding: 48px 0; }
.section-sm { padding: 26px 0; }
.tint { background: var(--lilac); }
.section-title { position: relative; display: flex; align-items: center; gap: 10px; }
.node { flex: none; width: 34px; height: 12px; background: radial-gradient(circle at 6px 6px, var(--amber) 5px, transparent 5.5px), linear-gradient(var(--coral), var(--coral)) 10px 5px / 24px 2px no-repeat; }
.small-title { font-size: 1.25rem; }
.section-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }
.page-head { padding: 26px 0 14px; }
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A59BB3; }
.empty-note { background: var(--amber-soft); border-left: 5px solid var(--amber); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }

/* who */
.who-grid { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.who-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); border-top: 5px solid var(--plum-2); }
.who-card:nth-child(2) a { border-top-color: var(--amber); }
.who-card:nth-child(3) a { border-top-color: var(--coral); }
.who-card:nth-child(4) a { border-top-color: var(--mint); }
.who-card a:hover { border-color: var(--plum-2); }
.who-ic { width: 32px; height: 32px; color: var(--plum); }
.who-t { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--plum-deep); }
.who-d { font-size: .95rem; color: #43395A; }
.who-note { max-width: 60em; }
@media (max-width: 960px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .who-grid { grid-template-columns: 1fr; } }

/* quick checklist */
.quick-list { list-style: none; counter-reset: q; padding: 0; margin: 14px 0 18px; }
.quick-list li { counter-increment: q; position: relative; padding: 12px 14px 12px 56px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.quick-list li::before { content: counter(q); position: absolute; left: 12px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--plum); color: #fff; font-weight: 700; border-radius: 6px 6px 3px 3px; clip-path: polygon(0 18%, 28% 18%, 28% 0, 72% 0, 72% 18%, 100% 18%, 100% 100%, 0 100%); padding-top: 4px; }
.q-grp { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--plum-2); }
.q-item { display: block; }

/* figures */
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.fig-cell { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); border-left: 5px solid var(--amber); }
.fig-cell:hover { border-color: var(--plum-2); }
.fig-val { font-family: var(--head); font-size: 1.55rem; font-weight: 700; color: var(--plum-deep); line-height: 1.1; }
.fig-lab { font-size: .95rem; }
.fig-src { font-size: .8rem; color: var(--muted); }
@media (max-width: 480px) { .figs { grid-template-columns: 1fr; } }

/* guide lists with "port" numbers */
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; margin-top: 16px; }
@media (max-width: 760px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-h { font-size: 1.15rem; color: var(--plum-2); border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.g-list { list-style: none; margin: 0; padding: 0; }
.g-list a { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--ink); }
.g-list a:hover .g-t { text-decoration: underline; color: var(--plum); }
.g-list-wide { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; }
.g-no { flex: none; display: inline-grid; place-items: center; width: 40px; height: 34px; padding-top: 5px; background: var(--plum); color: #fff; font: 700 .9rem/1 var(--body); letter-spacing: .02em; border-radius: 5px 5px 3px 3px; clip-path: polygon(0 20%, 25% 20%, 25% 0, 75% 0, 75% 20%, 100% 20%, 100% 100%, 0 100%); }
.g-no-lg { width: 72px; height: 66px; font-size: 1.6rem; padding-top: 12px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; background: var(--amber); color: var(--ink); }
.g-no-lg small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.g-t { font-weight: 560; }

/* dark band (estimator teaser) */
.band-dark { background: var(--plum-deep); color: #F0E8F7; padding: 48px 0; }
.band-dark h2 { color: #fff; }
.band-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .band-in { grid-template-columns: 1fr; } }
.quick-form { background: var(--cream); color: var(--ink); border-radius: var(--radius-lg); padding: 22px; border-top: 6px solid var(--amber); }
.qf-h { font-family: var(--head); font-weight: 700; font-size: 1.2rem; margin: 0 0 10px; color: var(--plum-deep); }
.qf-row { display: grid; grid-template-columns: 1fr 140px; gap: 10px; align-items: center; margin-bottom: 12px; }
.qf-row label { font-weight: 600; }
.qf-row label span { font-weight: 400; color: var(--muted); }
@media (max-width: 420px) { .qf-row { grid-template-columns: 1fr; gap: 4px; } }

.itad-note { background: var(--mint-soft); border: 1px solid #BFE0DA; border-radius: var(--radius-lg); padding: 20px 22px; align-self: start; }

/* faq */
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.faq-list summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 650; position: relative; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.4rem; color: var(--plum-2); }
.faq-list details[open] summary::after { content: "–"; }
.faq-a { padding: 0 16px 6px; }
.see { font-size: .93rem; }

.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--cream); border: 1px solid #E8DCC6; border-radius: var(--radius); padding: 14px 16px; margin: 28px 0; font-size: .95rem; }
.notice p { margin: 0; }
.notice-i { width: 24px; height: 24px; color: var(--plum-2); flex: none; margin-top: 1px; }

/* ------------------------------------------------------------------ guide page */
.guide-head { background: var(--lilac); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.guide-head .crumbs ol { padding-top: 22px; }
.gh-in { display: flex; gap: 18px; align-items: center; }
.gh-in h1 { margin: 0; }
.gh-in .kicker { margin-bottom: 6px; }
.guide-head .lead { margin-top: 14px; }
.guide-meta { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .86rem; }
.chip-ok { color: var(--ok); border-color: #B7DACB; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 44px; padding-top: 30px; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; } .guide-side { display: none; } }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; padding-top: .2em; scroll-margin-top: 16px; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin-bottom: .35em; }
.toc-mobile { display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.toc-mobile summary { padding: 12px 14px; font-weight: 650; cursor: pointer; }
.toc-mobile ol { margin: 0; padding: 0 14px 12px 34px; }
@media (max-width: 960px) { .toc-mobile { display: block; } }
.glance { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--amber); border-radius: var(--radius); padding: 16px 20px 6px; margin-bottom: 24px; }
.glance-h { font-size: 1.15rem; display: flex; gap: 8px; align-items: center; }
.glance ul { padding-left: 1.2em; }
.side-in { position: sticky; top: 16px; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 18px; }
.toc h2, .side-tools h2 { font-size: 1rem; font-family: var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--plum-2); }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .93rem; }
.toc li { margin-bottom: 5px; }
.side-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.side-tool { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--plum); color: #fff; border-radius: var(--radius); text-decoration: none; }
.side-tool:hover { background: var(--plum-deep); color: #fff; }
.side-tool .ic { width: 24px; height: 24px; color: var(--amber); }
.side-tool span span { display: block; font-size: .85rem; color: #E1D5EC; }
.side-sister { background: var(--cream); border-radius: var(--radius); padding: 12px 14px; font-size: .93rem; }
.side-sister p { margin: 0; }
.sources { margin-top: 36px; border-top: 3px solid var(--plum); padding-top: 10px; }
.sources ol { padding-left: 1.4em; font-size: .95rem; }
.related { margin-top: 30px; }
.related-band { margin: 36px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 40px; }
.pager a { display: flex; flex-direction: column; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; }
.pager a:hover { border-color: var(--plum-2); }
.pager-next { text-align: right; grid-column: 2; }
.pager-l { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pager-t { font-weight: 650; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager-next { grid-column: 1; } }

/* Markdown-lite output */
.callout { background: var(--mint-soft); border-left: 5px solid #4F9C91; padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.2em; }
.callout p:last-child { margin-bottom: 0; }
.callout-h { font-weight: 700; margin-bottom: 4px; display: flex; gap: 6px; align-items: center; }
.callout.warn { background: #FBE9E5; border-left-color: var(--coral); }
.callout.ask { background: var(--amber-soft); border-left-color: var(--amber); }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.md-table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
.md-table th, .md-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table thead th { background: var(--lilac); font-weight: 700; }
.bill { margin: 0 0 1.2em; max-width: 30em; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.bill-h { font-weight: 700; padding: 10px 14px; background: var(--lilac); }
.bill-t { width: 100%; border-collapse: collapse; }
.bill-t th, .bill-t td { padding: 7px 14px; text-align: left; font-weight: 400; border-bottom: 1px dashed var(--line); }
.bill-t td { text-align: right; }
.bill-t .total th, .bill-t .total td { font-weight: 700; border-top: 2px solid var(--ink); }

/* guides index */
.gi-topic { margin: 10px 0 34px; }
.gi-head p { color: var(--muted); }
.gi-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.gi-list a { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); height: 100%; }
.gi-list a:hover { border-color: var(--plum-2); }
.gi-body { display: flex; flex-direction: column; gap: 4px; }
.gi-title { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--plum-deep); }
.gi-sum { font-size: .95rem; }
.gi-meta { font-size: .82rem; color: var(--muted); }
@media (max-width: 400px) { .gi-list { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ checklist */
.cl-bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 20px; box-shadow: var(--shadow); }
.cl-progress { margin: 0; font-weight: 700; }
.cl-meter { flex: 1 1 140px; height: 10px; background: var(--lilac); border-radius: 999px; overflow: hidden; }
.cl-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--coral)); }
.cl-btns { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.cl-note { flex-basis: 100%; margin: 0; }
.cl-group { margin-bottom: 28px; }
.cl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 2px solid var(--plum); margin-bottom: 10px; }
.cl-head h2 { margin: 0; font-size: 1.4rem; }
.cl-head p { margin: 0 0 6px; color: var(--muted); flex: 1 1 260px; }
.cl-count { font-weight: 700; color: var(--plum-2); }
.cl-items { list-style: none; padding: 0; margin: 0; }
.cl-item { position: relative; padding: 10px 0 10px 0; border-bottom: 1px solid var(--line); }
.cl-item input { position: absolute; opacity: 0; width: 30px; height: 30px; margin: 0; left: 0; top: 10px; cursor: pointer; }
.cl-item label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 600; }
.cl-box { flex: none; width: 28px; height: 28px; border: 2px solid var(--plum); border-radius: 6px; display: grid; place-items: center; background: #fff; color: transparent; }
.cl-box .ic { width: 20px; height: 20px; }
.cl-item input:checked + label .cl-box { background: var(--plum); color: #fff; }
.cl-item input:checked + label .cl-text { color: var(--muted); }
.cl-item input:focus-visible + label .cl-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.cl-more { padding-left: 40px; font-size: .95rem; }
.cl-more p { margin: 4px 0; }

/* ------------------------------------------------------------------ figures, glossary, sources */
.fig-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.fig-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 5px solid var(--amber); scroll-margin-top: 16px; }
.fc-label { font-family: var(--body); font-size: 1rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.fc-value { font-family: var(--head); font-size: 1.7rem; font-weight: 700; color: var(--plum-deep); margin: 0 0 6px; line-height: 1.15; }
.fc-meta { font-size: .85rem; color: var(--plum-2); font-weight: 650; }
.fc-note { font-size: .95rem; }
.fc-src { font-size: .85rem; margin: 0; }
.jump ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.jump a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; font-weight: 650; min-width: 40px; text-align: center; }
.gl-sec { display: grid; grid-template-columns: 70px 1fr; gap: 16px; border-top: 1px solid var(--line); padding: 16px 0; }
.gl-letter { font-size: 2.2rem; color: var(--amber); margin: 0; }
.gl { margin: 0; }
.gl-item { margin-bottom: 14px; scroll-margin-top: 16px; }
.gl dt { font-weight: 700; font-family: var(--head); font-size: 1.15rem; color: var(--plum-deep); }
.gl dd { margin: 2px 0 0; }
.gl dd p { margin-bottom: .4em; }
@media (max-width: 520px) { .gl-sec { grid-template-columns: 1fr; gap: 0; } }
.faq-sec { margin-bottom: 26px; }
.src-group { margin-bottom: 22px; }
.src-group h2 { font-family: var(--body); font-size: 1.05rem; color: var(--plum-2); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.src-list { list-style: none; padding: 0; }
.src-list li { margin-bottom: 8px; }
.used { display: block; font-size: .85rem; color: var(--muted); }
.err-page { padding: 50px 16px 70px; }
.err-links li { margin-bottom: 6px; }
.contact-card { display: flex; gap: 8px; align-items: center; background: var(--lilac); padding: 16px 18px; border-radius: var(--radius); font-size: 1.1rem; }
.credits-list { list-style: none; padding: 0; }
.credits-list li { display: flex; gap: 14px; margin-bottom: 14px; }

/* ------------------------------------------------------------------ directory */
.dir-filter { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 12px 16px; align-items: end; background: var(--lilac); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px; }
.df-field label { display: block; font-weight: 650; margin-bottom: 4px; }
.df-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) { .dir-filter { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dir-filter { grid-template-columns: 1fr; } }
.dir-count { margin: 6px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .88rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 4px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge .ic { width: 14px; height: 14px; }
.badge-v { background: #DDF0E7; color: var(--ok); border: 1px solid #A9D3BF; }
.badge-c { background: var(--amber-soft); color: #7A4A05; border: 1px solid #EBCB94; }
.dir-grid { list-style: none; padding: 0; margin: 18px 0 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .dir-grid { grid-template-columns: 1fr; } }
.dir-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; scroll-margin-top: 16px; box-shadow: var(--shadow); }
.dir-card:target { outline: 3px solid var(--amber); }
.dc-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.dc-name { font-size: 1.3rem; margin: 0 0 6px; }
.dc-seg { display: flex; gap: 4px; margin: 2px 0 0; flex: none; }
.seg { font-size: .75rem; font-weight: 800; letter-spacing: .05em; padding: 2px 7px; border-radius: 4px; background: var(--plum); color: #fff; }
.seg-he { background: var(--coral); color: var(--ink); }
.dc-sum { font-size: .97rem; }
.chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .82rem; background: var(--lilac); border-radius: 999px; padding: 3px 10px; }
.dc-facts { font-size: .93rem; margin: 0 0 10px; }
.dc-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 5px 0; border-top: 1px dashed var(--line); }
.dc-facts dt { font-weight: 700; color: var(--plum-2); }
.dc-facts dd { margin: 0; }
.fw-list { list-style: none; padding: 0; margin: 0; }
.fw-list li { margin-bottom: 4px; }
.dc-src { margin-top: auto; padding-top: 6px; }
.dc-go { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0 0; }
.dc-upd { font-size: .88rem; }
.cta-card { background: var(--plum); color: #fff; border-radius: var(--radius-lg); padding: 24px; margin: 10px 0 0; }
.cta-card h2 { color: #fff; }

/* ------------------------------------------------------------------ forms */
input[type=text], input[type=email], input[type=url], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #8F84A3; border-radius: var(--radius); padding: 10px 12px; min-height: 46px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--plum); }
[aria-invalid="true"] { border-color: var(--warn) !important; }
.f-set { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px 6px; margin: 0 0 20px; background: #fff; }
.f-set > legend { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--plum-deep); padding: 0 8px; }
.f-sub { border: 0; padding: 0; margin: 0 0 16px; }
.f-sub legend { font-weight: 650; padding: 0; margin-bottom: 6px; }
.f-row { margin-bottom: 16px; }
.f-row > label { display: block; font-weight: 650; margin-bottom: 4px; }
.f-opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
.f-hint { font-size: .9rem; color: var(--muted); margin: 4px 0 0; }
.f-err { color: var(--warn); font-weight: 650; margin: 4px 0 0; }
.f-checks, .f-radios { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; margin-bottom: 12px; }
.f-checks label, .f-radios label, .f-check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.f-checks input, .f-radios input, .f-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--plum); }
.f-errors { background: #FBE9E5; border-left: 6px solid var(--warn); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 20px; }
.f-errors h2 { font-size: 1.2rem; }
.f-errors ul { margin: 0; }
.f-done { background: #DDF0E7; border-left: 6px solid var(--ok); padding: 18px 20px; border-radius: 0 var(--radius) var(--radius) 0; }

/* ------------------------------------------------------------------ estimator */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.tool-out { background: var(--plum-deep); color: #F0E8F7; border-radius: var(--radius-lg); padding: 22px; }
@media (min-width: 861px) { .tool-out { position: sticky; top: 16px; } }
.tool-out h2 { color: #fff; font-size: 1.3rem; }
.tool-out a { color: #F6D9A8; }
.big-num { font-family: var(--head); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 700; color: var(--amber); margin: 0; line-height: 1.1; }
.out-sub { margin: 4px 0 14px; }
.out-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.out-dl div { background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 8px 10px; }
.out-dl dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #D9CDE6; }
.out-dl dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
@media (max-width: 420px) { .out-dl { grid-template-columns: 1fr; } }
.out-empty { color: #D9CDE6; }
.share { word-break: break-all; }
.tool-out .callout { background: rgba(255,255,255,.08); border-left-color: var(--mint); color: #F0E8F7; margin-top: 16px; }
.tool-out .callout .ic { color: var(--mint); }
.ctx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ctx-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 5px solid var(--mint); }
.ctx-card h3 { font-size: 1.05rem; font-family: var(--body); font-weight: 700; color: var(--ink); }
.ctx-val { font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--plum-deep); margin-bottom: 8px; }
.ctx-us { border-top-color: var(--coral); background: #FFF8F6; }
.ctx-us h3 { color: var(--warn); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
.ctx-us-list { padding-left: 1.1em; }
.preset-src { padding-left: 1.2em; }
.preset-src li { margin-bottom: 10px; }
.preset-src .small { display: block; }

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--plum-deep); color: #E4DAEE; margin-top: 40px; padding: 40px 0 26px; font-size: .95rem; border-top: 10px solid; border-image: linear-gradient(90deg, var(--amber) 0 33.3%, var(--coral) 33.3% 66.6%, var(--mint) 66.6%) 1; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--amber); }
.foot-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 20px; margin-bottom: 22px; }
.foot-name { font-family: var(--head); font-weight: 700; font-size: 1.3rem; color: #fff; display: block; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 24px; }
.foot-h { font-family: var(--body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); margin-bottom: 10px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li { margin-bottom: 7px; }
.foot-sisters span { color: #CFC2DE; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 22px; padding-top: 16px; font-size: .86rem; color: #CFC2DE; }
.foot-legal p { margin-bottom: 6px; }
@media (max-width: 960px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-top { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ print */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .sister-bar, .site-head, .site-foot, .ad-slot, .cookie-bar, .skip, .cl-bar, .guide-side, .pager, .related-band, .notice, .crumbs, .toc-mobile, .dir-filter, .cta-card, .hero-btns { display: none !important; }
  .print-only { display: block; }
  a { color: #000; text-decoration: none; }
  .cl-item { break-inside: avoid; }
  .cl-item input { display: none; }
  .cl-box { border-color: #000; }
  .cl-group { break-inside: auto; }
  .print-foot { margin-top: 18px; font-size: 9pt; }
  .guide-layout, .tool-grid { display: block; }
  .tool-out { background: #fff; color: #000; border: 1px solid #000; }
  .big-num { color: #000; }
}

/* ------------------------------------------------------------------ small screens */
@media (max-width: 560px) {
  .head-in { flex-wrap: nowrap; gap: 10px; }
  .brand { min-width: 0; gap: 9px; }
  .brand-mark { width: 38px; height: 38px; flex: none; }
  .brand-name { font-size: 1.12rem; }
  .brand-tag { display: none; }
  .nav-mobile summary { padding: 8px 11px; }
  .gh-in { display: block; }
  .g-no-lg { display: none; }
  .sister-bar p { text-align: left; font-size: .85rem; }
  .sister-in { justify-content: flex-start; }
}
