/* SocietyBanks. Approved tokens only (CLAUDE.md). Phone first at 390 px. */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/a/fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("/a/fonts/atkinson-mono.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-20B8, U+20BA-FFFF; }
/* The Mono family has no ₹ (U+20B9): borrow that one character from the Next file, which is already loaded. */
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("/a/fonts/atkinson-next.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+20B9; }

:root {
  --bg: #E8EBE5; --tone: #DEE3DB; --field: #F2F4EF;
  --ink: #121813; --ink-2: #434B45; --ink-3: #59625B;
  --rule: #C6CCC3; --track: #D5DAD2; --mark-1: #6F7871; --mark-2: #8D958F; --mark-3: #B5BBB5;
  --good: #2E7D4F; --watch: #B4741A; --bad: #B03A2C; --context: #8D958F;
  --good-text: #23643E; --watch-text: #8A5410; --bad-text: #9A2F22;
  --brand: #14524D; --brand-strong: #0E3D39; --brand-tint: #D7E4E0; --brand-line: #4A7C77;
  --sans: "Atkinson Hyperlegible Next", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); letter-spacing: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 50; background: var(--field); padding: 10px 14px; border-radius: 6px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; margin: 20px 0 6px; }
h2 { font-size: 18.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin: 0; }
h3 { font-size: 16px; font-weight: 700; margin: 16px 0 4px; }
p { margin: 8px 0; }
.meta { font-size: 14px; color: var(--ink-2); }
.small { font-size: 13px; color: var(--ink-2); }
.num, td.n, th.n, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lede { font-size: 15px; color: var(--ink-2); }

.site-head { border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.brand { color: var(--brand); font-weight: 800; text-decoration: none; font-size: 17px; letter-spacing: -0.01em; min-height: 44px; display: inline-flex; align-items: center; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bg); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { position: relative; display: flex; align-items: center; justify-content: center; min-height: 56px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -1px; left: 18%; right: 18%; height: 3px; background: var(--brand); }

section.block { border-top: 1px solid var(--rule); padding: 14px 0 18px; }
section.block:first-of-type { margin-top: 16px; }
.sec-head { display: flex; align-items: center; min-height: 44px; }
.rows { list-style: none; margin: 4px 0 0; padding: 0; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--rule); }
.rows > .row:last-child { border-bottom: 1px solid var(--rule); }
.row-link { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; min-height: 44px; justify-content: center; }
.row-link:hover .row-title { text-decoration: underline; }
.row-title { font-weight: 700; overflow-wrap: anywhere; }
.row .label { flex: 1; min-width: 0; display: flex; align-items: center; }
.row .value { white-space: nowrap; font-family: var(--mono); }
.row .word { min-width: 82px; display: flex; justify-content: flex-end; align-items: center; font-size: 15px; }
.status { display: inline-flex; align-items: center; white-space: nowrap; font-size: 15px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; margin-right: 8px; }
.dot-green { background: var(--good); } .dot-amber { background: var(--watch); } .dot-red { background: var(--bad); } .dot-grey { background: var(--context); }

.tone { background: var(--tone); border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 6px; font: 700 16px/1.1 var(--sans); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--field); border: 1.5px solid var(--brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.actions form { margin: 0; }

label, .label-text { display: block; font-weight: 700; margin: 16px 0 6px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--field); border: 1.5px solid var(--mark-1); border-radius: 6px; }
textarea { min-height: 128px; resize: vertical; }
input[type="file"] { padding: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.field-error { color: var(--bad-text); font-size: 15px; margin: 6px 0 0; }
.form-error { color: var(--bad-text); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin: 16px 0 6px; padding: 0; }
.search-form { display: flex; gap: 8px; align-items: stretch; margin: 12px 0; }
.search-form input { flex: 1; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.filters label { margin: 4px 0; font-size: 14px; }

.info { position: relative; display: inline-flex; }
.info-btn { width: 44px; height: 44px; margin: -8px -8px -8px -4px; padding: 0; border: 0; background: none; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.info-btn > span { width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; font: 700 13px/17px var(--sans); text-align: center; }
.info-btn[aria-expanded="true"] { color: var(--ink); }
.info-pop { position: absolute; z-index: 30; top: 34px; left: -6px; width: 300px; max-width: calc(100vw - 32px); padding: 10px 12px; background: var(--field); border: 1px solid var(--rule); border-radius: 6px; font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--ink); text-align: left; white-space: normal; letter-spacing: 0; }
.info-pop.right { left: auto; right: -6px; }
.info-pop[hidden] { display: none; }
.info-src { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); }

.tablist { display: flex; gap: 2px; overflow-x: auto; margin: 16px -16px 0; padding: 0 16px; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.tablist a { flex: none; display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; margin-bottom: -1px; font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; }
.tablist a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.panel { padding-top: 4px; }
.panel[hidden] { display: none; }
.subtabs { margin: 8px 0 0; }

table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th { text-align: left; font-size: 14px; font-weight: 700; color: var(--ink-2); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.data td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data td.n, .data th.n { text-align: right; }
.scroll-x { overflow-x: auto; }

.chart { display: block; width: 100%; height: auto; margin: 8px 0 4px; }
.chart text { font: 400 12px var(--sans); fill: var(--ink-2); }
.chart .c-num { font-family: var(--mono); fill: var(--ink); }
.c-m1 { fill: var(--mark-1); } .c-m2 { fill: var(--mark-2); } .c-m3 { fill: var(--mark-3); } .c-ink { fill: var(--ink); } .c-track { fill: var(--track); }
.c-line1 { fill: none; stroke: var(--ink); stroke-width: 2; } .c-line2 { fill: none; stroke: var(--mark-1); stroke-width: 2; }
.c-pt1 { fill: var(--ink); } .c-pt2 { fill: var(--mark-1); }
.c-ref { stroke: var(--mark-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.c-axis { stroke: var(--rule); stroke-width: 1; }

.breadcrumb { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--mark-2); }
.note-line { font-size: 14px; color: var(--ink-2); margin: 8px 0; }
.empty { padding: 12px 0; }
.pager { display: flex; justify-content: space-between; gap: 8px; margin: 16px 0; }
.society-card { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 12px 0; }
.guide { max-width: 68ch; }
.guide h2 { margin: 24px 0 6px; }
.guide li { margin: 4px 0; }
.question h3 { margin-top: 12px; }
.answer { white-space: pre-line; }
details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.checklist { padding-left: 20px; }
.checklist li { margin: 6px 0; }

.site-foot { border-top: 1px solid var(--rule); margin-top: 32px; padding: 12px 0 24px; font-size: 14px; color: var(--ink-2); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-links a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .wrap { max-width: 760px; }
  .tabbar { position: static; display: flex; gap: 4px; border: 0; background: none; padding: 0; }
  .tabbar a { min-height: 52px; padding: 0 12px; }
  .tabbar a[aria-current="page"]::before { top: auto; bottom: -1px; left: 12px; right: 12px; }
  h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.ad { border-top: 1px solid var(--rule); padding: 8px 0 12px; margin: 8px 0; }
.adsbygoogle { display: block; min-height: 100px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.photos img { width: 100%; height: auto; border-radius: 6px; }
.report table.data { margin: 8px 0; }
@page { size: A4; margin: 14mm; }
@media print {
  .site-head, .site-foot, .tabbar, .skip, .no-print, .ad { display: none !important; }
  body { padding-bottom: 0; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .report section.block { break-inside: avoid; }
  .report-charts .chart { max-width: 140mm; }
  a { text-decoration: none; }
}

/* Home page */
.wrap-wide { max-width: 1120px; }
.hero { display: grid; gap: 24px; background: var(--brand); color: var(--field); border-radius: 8px; padding: 28px 20px; margin: 12px 0 20px; }
.hero h1 { color: var(--field); font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem); line-height: 1.12; margin: 8px 0 12px; }
.hero .eyebrow { color: var(--mark-3); font-size: .875rem; font-weight: 700; margin: 0; }
.hero-lede { color: var(--track); font-size: 1.0625rem; line-height: 1.5; max-width: 36em; margin: 0 0 20px; }
.hero-search { margin: 0; }
.hero-search input { background: var(--field); border-color: var(--field); min-height: 54px; font-size: 1.0625rem; }
.btn-light { background: var(--field); color: var(--brand); border: 1.5px solid var(--field); min-height: 54px; }
.btn-light:hover { background: var(--tone); border-color: var(--tone); }
.hero-results:not(:empty) { background: var(--field); color: var(--ink); border-radius: 12px; margin-top: 8px; padding: 2px 14px; }
.hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; font-size: .875rem; color: var(--mark-3); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 6px; border: 1.5px solid var(--rule); color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip-dark { border-color: var(--brand-line); color: var(--field); }
.chip-dark:hover { border-color: var(--field); }
.chip-count { font-family: var(--mono); font-weight: 400; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.example { background: var(--field); color: var(--ink); border-radius: 8px; padding: 20px; align-self: start; }
.example p { margin: 0; }
.example-tag { display: inline-block; font-size: .8125rem; font-weight: 700; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 6px; padding: 2px 10px; }
.example-name { font-weight: 700; font-size: 1.125rem; margin-top: 12px !important; }
.example-meta { color: var(--ink-3); font-size: .875rem; }
.example-rows { list-style: none; margin: 14px 0 12px; padding: 0; }
.example-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: .9375rem; }
.example-value { display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.example-foot { font-size: .8125rem; color: var(--ink-3); }
.mono { font-family: var(--mono); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.stat { display: flex; flex-direction: column; gap: 4px; background: var(--field); border: 1px solid var(--rule); border-radius: 8px; padding: 16px; }
.stat-num { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; }
.stat-label { font-size: .875rem; color: var(--ink-2); }
.cards3, .type-cards, .guide-cards { display: grid; gap: 12px; }
.card, .type-card, .guide-card, .rate-card, .tile { display: flex; flex-direction: column; gap: 8px; background: var(--field); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; color: var(--ink); text-decoration: none; }
a.card:hover, .type-card:hover, .guide-card:hover, .rate-card:hover, .tile:hover { border-color: var(--ink-3); }
.card h3 { margin: 4px 0 0; font-size: 1.125rem; }
.card p { margin: 0; color: var(--ink-2); }
.card-link { color: var(--brand); margin-top: auto; padding-top: 4px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mini-rows { list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.mini-rows li { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; }
.icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; background: var(--brand-tint); color: var(--brand); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { gap: 6px; padding: 16px; border-left: 5px solid var(--watch); }
.tile-bad { border-left-color: var(--bad); }
.tile-num { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; }
.tile-label { font-size: .9375rem; color: var(--ink-2); }
.two-col { display: grid; gap: 0 32px; }
.rate-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rate-card { gap: 4px; padding: 16px; }
.rate-num { font-family: var(--mono); font-size: 1.75rem; font-weight: 700; }
.rate-tenure { font-weight: 700; font-size: .9375rem; }
.rate-name { font-size: .9375rem; }
.rate-meta { font-size: .8125rem; color: var(--ink-3); }
.type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.type-card { gap: 6px; }
.type-name { font-weight: 700; margin-top: 4px; }
.type-count { font-family: var(--mono); font-size: 1.375rem; font-weight: 700; }
.type-desc { font-size: .875rem; color: var(--ink-2); }
.ask-teaser { display: flex; flex-direction: column; gap: 16px; background: var(--tone); border-radius: 8px; padding: 24px; margin: 32px 0; }
.ask-teaser h2 { margin: 0 0 6px; }
.ask-teaser p { margin: 0; color: var(--ink-2); }
.ask-teaser .btn { align-self: flex-start; }
.guide-title { font-weight: 700; font-size: 1.0625rem; }
.guide-desc { font-size: .9375rem; color: var(--ink-2); }
.guide-date { margin-top: auto; font-size: .8125rem; color: var(--ink-3); }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ask-teaser { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .ask-teaser .btn { align-self: center; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 48px; }
  .cards3, .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles, .type-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* Same spacing for both columns; this outranks section.block:first-of-type, which comes earlier. */
.two-col > section.block { margin-top: 24px; }
.hero :focus-visible { outline-color: var(--field); }
