/* ==========================================================================
   The app around the design system: sign-in, search, builder, messages and
   the phone layout. Semantic tokens only (see tokens.css), so both themes
   follow. The prototype's tokens/base/components/charts CSS is unchanged.
   ========================================================================== */

[hidden] { display: none !important; }

/* ---- Bar fade ----------------------------------------------------------
   Bars and columns fade in towards their value instead of charts.css's dotted
   grain, whatever data-grain says. Same specificity as the grain rules, later. */
/* Flat fills (the consistency pass, 26 November 2026): bars and columns no longer fade in, nor carry grain */
:root .grain-h, :root .grain-v, [data-grain="on"] .grain-h, [data-grain="on"] .grain-v {
  -webkit-mask-image: none; mask-image: none;
}

/* ---- Loading / errors -------------------------------------------------- */
/* The start-up screen is the mark alone, in the middle of the screen, where the loading screen's sits once the app is
   up (.busy__card), so starting and then loading a page's figures read as one loader that never moves */
.boot { position: fixed; inset: 0; display: grid; place-items: center; color: var(--text); }
.boot__card { width: max-content; }
.boot__mark { display: block; width: 72px; height: 72px; animation: boot-show 0s .3s backwards; }
/* The Censible loader (Claude Design's handoff, 7 November 2026, "Build motion"): the mark's 20 rays scale up and fade
   in one after another, hold, then fade, a 2.4s loop; each ray's delay is on its path in index.html. Its colour is
   currentColor. The three rules below are the handoff's as given: don't retime them. One loader, the mark alone at 72px:
   the start-up screen's shows after 0.3s, so a quick sign-in doesn't flash it, and the loading screen's is a copy (app.js). */
.cns-loader path{fill:currentColor;opacity:0;transform-origin:420px 515px;animation:cns-build 2.4s cubic-bezier(.2,.7,.2,1) infinite}
@keyframes cns-build{0%{opacity:0;transform:scale(.6)}
35%,80%{opacity:1;transform:scale(1)}
100%{opacity:0;transform:scale(1)}
}
@media (prefers-reduced-motion:reduce){.cns-loader path{animation:none;opacity:1;transform:none}
}
@keyframes boot-show { from { visibility: hidden; } }
.loading-line { color: var(--muted); font-size: 13.5px; padding: 8px 0; }

/* ---- Error pages (js/errors.js; index.html's #t-broken and #fatal, boot.js), from Claude Design's "Error pages":
   a small picture, a plain heading, one sentence, then the two most useful next steps. The 404 sits in the app's
   view; the 500 there too, or alone under just the logo when the app couldn't start. ---- */
:root, [data-theme="dark"] {
  --oops-paper: color-mix(in srgb, var(--stone-500) 11%, transparent);     /* the picture's ground */
  --oops-grid: color-mix(in srgb, var(--stone-500) 13%, transparent);
}
[data-theme="light"] {
  --oops-paper: var(--stone-100);
  --oops-grid: color-mix(in srgb, var(--stone-300) 38%, transparent);
}
.oops { display: flex; flex-direction: column; align-items: flex-start; width: min(100%, 520px);
  margin: clamp(24px, 9vh, 88px) auto 48px; }
.oops .eyebrow { margin-bottom: 8px; }
.oops h1 { font-size: 26px; text-wrap: balance; }
.oops__text { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.oops__art { position: relative; width: 256px; height: 128px; margin-bottom: 22px; border-radius: var(--radius-sm);
  background: var(--oops-paper); overflow: hidden; }
.oops__art--map { }
.oops__art svg { display: block; height: 100%; }
.oops__boundary { width: 150px; }
.oops__boundary path { fill: color-mix(in srgb, var(--card) 70%, transparent); stroke: var(--muted); stroke-width: 1.2;
  stroke-dasharray: 4 3; stroke-linejoin: round; }
.oops__halo { fill: var(--area-1-tint); stroke: var(--area-1); stroke-opacity: .35; }
.oops__dot { fill: var(--area-1); }
.oops__tally { position: absolute; top: 22px; right: 14px; width: 96px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--card); font-size: 10.5px; }
.oops__tally p { margin-bottom: 5px; font-size: 9px; }
.oops__tally dl { margin: 0; display: grid; gap: 2px; }
.oops__tally dl div { display: flex; justify-content: space-between; gap: 6px; }
.oops__tally dt { color: var(--muted); }
.oops__tally dd { margin: 0; font-weight: 600; }
.oops__chart { width: 100%; }
.oops__unloaded rect { fill: none; stroke: var(--axis); stroke-width: 1.2; stroke-dasharray: 3 3; }
.oops__loaded { fill: var(--bar-1); }
.oops__axis { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.oops__search { width: 100%; margin-top: 20px; }
.oops__search.search { max-width: none; margin-inline: 0; flex: none; }
.oops__go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.oops__ref { width: 100%; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.oops__ref > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oops__ref code { padding: 0; background: none; font-size: 14px; }
.oops__ref .link-btn { flex: none; font-size: 13px; text-decoration: none; }
.oops__mail { margin-top: 14px; font-size: 13.5px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.oops__mail:hover { color: var(--link-hover); }
.oops-alone { min-height: 100vh; background: var(--bg); }
.oops-alone__bar { display: flex; align-items: center; height: 60px; padding: 0 24px; border-bottom: 1px solid var(--line);
  background: var(--card); }
.oops-alone__bar .brand { padding: 0; }
.oops-alone .oops { width: min(100% - 32px, 520px); }
@media (max-width: 760px) {
  .oops { margin-top: 8px; }
  .oops-alone .oops { margin-top: 24px; }
  .oops__art { width: 100%; }
  .oops__go { align-self: stretch; }
  .oops__go .btn { flex: 1 1 0; }
}

/* ---- Controls ---------------------------------------------------------- */
.input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--card); color: var(--text);
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field .input { height: 40px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--quiet { border-color: transparent; background: var(--line); color: var(--text-2); cursor: default; }
.btn--quiet:hover { border-color: transparent; color: var(--text-2); }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--link-hover); }
.status { min-height: 1.45em; font-size: 13px; color: var(--muted); }
.status.is-error { color: var(--text); font-weight: 500; }
.status.is-error::before { content: '! '; color: var(--area-2); font-family: var(--font-sans); }
.tag { flex: none; font-family: var(--font-sans); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--accent-text); }

/* ---- Sign in ----------------------------------------------------------- */
.signin {
  min-height: 100vh; max-width: 1080px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px 64px; align-items: center;
}
/* the sign-in page (index.html): the logo over the form, in the middle; consent.html keeps its words beside it */
.signin--plain { grid-template-columns: minmax(0, 420px); justify-content: center; align-content: center; gap: 28px; }
.signin__logo { justify-content: center; padding: 0; color: var(--logo); }
.signin__logo svg { height: 30px; width: calc(30px * 285 / 60); }      /* the wordmark's sizes: 21px in the nav, 30 big */
.signin__pitch { display: flex; flex-direction: column; gap: 18px; }
.signin__pitch .brand { padding: 0; }
.signin__pitch h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
.signin__lede { max-width: 46ch; font-size: 16px; color: var(--text-2); text-wrap: pretty; }
.signin__card { padding: 28px; gap: 16px; }
.signin__card form, .signin__card > div { display: flex; flex-direction: column; gap: 14px; }
.signin__card h2 { font-size: 20px; }
/* signin.js: sign in, create an account, reset a password */
.signin__card [data-panel] { display: flex; flex-direction: column; gap: 14px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__top .link-btn { font-size: 12.5px; }
.signin__names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signin__or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.signin__or::before, .signin__or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.signin__alt { align-self: center; font-size: 13px; }
.signin__who { overflow-wrap: anywhere; }
.signin__who strong { color: var(--text); font-weight: 600; }
.signin__switch { padding-top: 4px; text-align: center; }
.signin__captcha:empty, .signin__card .status:empty { display: none; }
@media (max-width: 760px) {
  .signin { grid-template-columns: 1fr; align-content: center; padding: 32px 16px; gap: 32px; }
  .signin--plain { gap: 24px; }
  .signin__logo svg { height: 26px; width: calc(26px * 285 / 60); }
}

/* ---- Shell ------------------------------------------------------------- */
.sidebar {
  position: sticky; top: 0; align-self: flex-start; height: 100vh; height: 100dvh; overflow-y: auto;
  transition: flex-basis .18s ease, padding .18s ease;
}
.sidebar__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar__toggle { width: 34px; height: 34px; color: var(--muted); }
.sidebar__toggle:hover { color: var(--text); background: var(--line); }

/* Collapsed (desktop only; phones use the tab bar): a rail of icons. Labels stay for screen readers. */
@media (min-width: 761px) {
  [data-sidebar="collapsed"] .sidebar { flex: 0 0 68px; padding-left: 10px; padding-right: 10px; }
  [data-sidebar="collapsed"] .sidebar__head { flex-direction: column; gap: 14px; }
  [data-sidebar="collapsed"] .sidebar .brand { padding: 0; }
  [data-sidebar="collapsed"] .sidebar__toggle svg { transform: scaleX(-1); }
  [data-sidebar="collapsed"] .sidebar .brand__mark { display: block; }
  [data-sidebar="collapsed"] .sidebar .brand__logo,
  [data-sidebar="collapsed"] .nav__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  [data-sidebar="collapsed"] .sidebar .eyebrow,
  [data-sidebar="collapsed"] #topic-nav,
  [data-sidebar="collapsed"] .sidebar__foot { display: none; }
  [data-sidebar="collapsed"] .nav__item { justify-content: center; padding: 10px 0; }
}
.main { flex-basis: 500px; }
button.nav__item { width: 100%; border: 0; background: none; color: var(--text); text-align: left; font: inherit; }
button.nav__item:hover { color: var(--link-hover); }
.sidebar__foot { display: flex; flex-direction: column; gap: 8px; }

.topbar { position: relative; z-index: 10; padding-inline: var(--page-x); }   /* in line with .content */
.topbar__brand { display: none; color: var(--text); }
.topbar__brand svg { width: 26px; height: 26px; }
.topbar__actions { margin-left: 0; }
.topbar__context { display: flex; gap: 8px; align-items: center; }
.btn-icon svg { width: 18px; height: 18px; }
.nav__item svg { flex: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.is-saved { color: var(--accent-text); }
.btn.is-saved svg { fill: currentColor; }

/* The menu (phones only): a drawer the screen's full width and height, as the sidebar would be: the logo and a close
   button at its head, the sidebar's links, Recent, the rest, and you at its foot. It scrolls inside; the page behind
   it doesn't (html.menu-open). */
.topbar__menu, .menu { display: none; }
.menu {
  position: fixed; z-index: 70; inset: 0; width: auto; height: 100vh; height: 100dvh;
  flex-direction: column; gap: 2px; padding: 0 12px calc(16px + env(safe-area-inset-bottom));
  background: var(--sunken); border: 0; border-radius: 0; box-shadow: none;
  overflow-y: auto; overscroll-behavior: contain;
}
html.menu-open { overflow: hidden; }
.menu:focus { outline: none; }        /* focused itself on opening (app.js setMenu), so Tab starts inside it */
.menu > * { flex-shrink: 0; }
.menu__head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  margin: 0 -12px 6px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 20px; background: var(--sunken);
}
.menu__head .btn-icon { width: 40px; height: 40px; color: var(--text); }
.menu__head .btn-icon svg { width: 22px; height: 22px; }
.menu .nav__item { min-height: 40px; padding: 8px 10px; font-size: 15.5px; color: var(--text); }
.menu .nav__item svg { width: 18px; height: 18px; color: var(--muted); }
.menu .nav__item[aria-current="page"] svg { color: var(--accent-text); }
.menu .menu__theme, .menu .menu__more { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); border-radius: 0; }
/* a page's actions (app.js top's menu: Ask's answer), above the links */
.menu__page { display: flex; flex-direction: column; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu__page[hidden] { display: none; }
/* you, at the foot: your initial, name and email, and Sign out */
.menu__who {
  display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 14px 10px 4px;
  border-top: 1px solid var(--line); font-size: 14px;
}
.menu__who .sidebar__avatar { width: 30px; height: 30px; font-size: 13px; }
.menu__me { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu__name, .menu__email { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__name { color: var(--text); }
.menu__name:empty { display: none; }
.menu__email { font-size: 12.5px; color: var(--muted); }
.menu__who .link-btn { flex: none; font-size: 14px; }
/* the plan and you sit at the drawer's foot when its list is short */
.menu__plan:not([hidden]), .menu__plan[hidden] + .menu__who { margin-top: auto; }
/* your plan, on Free and Explore, and Upgrade (js/plan.js drawPlanLine): the sidebar's foot and the phone menu */
.plan-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line); color: var(--accent-text); text-decoration: none; }
.plan-line[hidden] { display: none; }
.plan-line__pill { color: var(--text-2); }
.plan-line__go { font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.plan-line:hover .plan-line__go { text-decoration: underline; }
.menu__plan { padding: 14px 10px 8px; border-top: 1px solid var(--line); border-bottom: 0; }
.menu__plan .plan-line__go { font-size: 13px; }

/* the page's margin each side, wider on wider screens; phones keep 16px */
:root { --page-x: clamp(24px, 4vw, 40px); }
.content { flex: 1; padding-top: 32px; padding-inline: var(--page-x); }

/* ---- Search (search.js; from the search handover's search.css) -------- */
.search { position: relative; }
.search > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.srch--scoped { padding-left: 5px; }
.srch--scoped > .srch-glass { display: none; }      /* "Search in" takes the icon's place; phones show the icon */

/* "Search in": a button (Everything), or a tinted tag with × when narrowed */
.srch-scope-host { display: flex; flex: none; }
.srch-scope { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px 0 10px; border: 0;
  border-radius: 7px; background: var(--line); color: var(--text); font: inherit; font-size: 13px; font-weight: 500;
  white-space: nowrap; cursor: pointer; }
.srch-scope svg { width: 14px; height: 14px; color: var(--text-2); }
.srch-scope[aria-expanded="true"] svg { transform: rotate(180deg); }
.srch-scope--narrow { padding: 0 2px 0 0; background: var(--area-1-tint); color: var(--accent-text); cursor: default; }
.srch-scope__name { height: 30px; padding: 0 4px 0 10px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.srch-scope__x { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 5px;
  background: transparent; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.srch-scope__x:hover { background: var(--area-1-tint); }

/* The dropdown and the "Search in" menu */
.srch-drop, .srch-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: -1px; right: -1px;
  display: flex; flex-direction: column; padding: 6px; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--pop-shadow); }
.srch-drop[hidden], .srch-menu[hidden] { display: none; }
.srch-drop { min-width: min(400px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto; }
.srch-menu { right: auto; width: min(320px, calc(100vw - 32px)); }
.srch-body:empty { display: none; }
.srch-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 10px 4px;
  font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.srch-group__head a, .srch-group__head .srch-more__help { font-family: var(--font-sans); text-transform: none;
  letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--accent-text); }

.srch-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.srch-row--scope { grid-template-columns: minmax(0, 1fr) auto; }
.srch-row--scope .srch-row__sub { white-space: normal; }
.srch-row[aria-selected="true"], .srch-row:hover, .srch-row--scope:focus { background: var(--line); outline: none; }
.srch-row--scope:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.srch-row__main { display: flex; flex-direction: column; min-width: 0; }
.srch-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-row__name b { font-weight: 600; }
.srch-row__sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-check { color: var(--accent-text); }
.srch-icon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--subtle);
  color: var(--text-2); font-family: var(--font-sans); font-size: 10px; }
.srch-icon svg { width: 14px; height: 14px; color: inherit; }
.srch-icon--site { background: var(--area-1-tint); color: var(--accent-text); }
/* on a place's page, "Compare" beside each result: the place on screen compared with it */
.srch-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; }
.srch-cmp { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; cursor: pointer; }
.srch-cmp svg { flex: none; }
.srch-cmp:hover, .srch-cmp[aria-selected="true"] { background: var(--line); color: var(--text); border-color: var(--accent); }
.srch-tag { font-family: var(--font-sans); font-size: 10.5px; padding: 2px 6px; border-radius: 5px; background: var(--subtle);
  color: var(--text-2); white-space: nowrap; }

/* "Show all N", and the statistical areas collapsed to one row */
.srch-more { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--accent-text);
  font-size: 13px; font-weight: 500; cursor: pointer; }
.srch-more[aria-selected="true"], .srch-more:hover { background: var(--line); }
.srch-collapsed { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.srch-collapsed .srch-more { flex: 1; color: var(--text-2); font-weight: 400; }
.srch-collapsed .srch-more svg { width: 14px; height: 14px; color: var(--muted); }
/* levels the plan hasn't (SA1s, state electorates): where they start, and See the plans (js/plan.js) */
.srch-more[data-locked] { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--text-2);
  font-weight: 400; flex-wrap: wrap; }
.srch-more[data-locked] .accent-text { margin-left: auto; font-weight: 500; }
.srch-more__help { flex: none; padding: 4px 8px; border: 0; background: transparent; color: var(--muted); font: inherit;
  font-size: 12px; cursor: pointer; }
.srch-more__help:hover { color: var(--text); }
.srch-help { margin: 6px 4px 2px; padding: 12px; border-radius: 8px; background: var(--subtle); font-size: 13px; color: var(--text-2); }
.srch-help p { margin: 4px 0 8px; }
.srch-help dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.srch-help dt { font-family: var(--font-sans); font-size: 11.5px; color: var(--text); }
.srch-help dd { margin: 0; }

/* Nothing found: never a dead end */
.srch-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 12px 10px; font-size: 14px; }
.srch-empty p { margin: 0; }
.srch-empty__action { padding: 0; border: 0; background: transparent; font: inherit; font-weight: 500; color: var(--accent-text); cursor: pointer; }
.srch-empty__hint { color: var(--muted); font-size: 13px; }

/* Phones: the scopes as chips under the box, and the results full screen, with Cancel to put them away */
.srch-chips, .srch-cancel { display: none; }
@media (max-width: 760px) {
  .srch--scoped { padding-left: 12px; }
  .srch--scoped > .srch-glass { display: block; }
  .srch-scope-host, .srch-menu { display: none !important; }
  .srch-drop__top { display: flex; align-items: center; gap: 8px; }
  .srch-chips { display: flex; flex: 1; min-width: 0; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
  .srch-cancel { display: block; flex: none; margin: 0 0 4px auto; padding: 8px 4px; border: 0; background: transparent;
    color: var(--accent-text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
  .srch-chips button { flex: none; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
  .srch-chips button[aria-pressed="true"] { background: var(--line); border: 1.5px solid var(--text); font-weight: 500; }
  .srch-drop { position: fixed; top: var(--srch-top, 61px); left: 0; right: 0; bottom: 0; min-width: 0; max-height: none;
    border-width: 1px 0 0; border-radius: 0; padding: 10px 12px 24px; }
}

/* ---- Explore ----------------------------------------------------------- */
.map-card__canvas .map { right: 16px; top: 52px; }
.map__loading { position: absolute; inset: 0; display: grid; place-items: center; }
.map-card__title {
  top: 14px; left: 14px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  background: var(--card); font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.map-card__readout { top: 56px; }
.map path[data-state][role="button"] { cursor: pointer; }
.map path[data-state]:focus-visible { outline: none; stroke: var(--accent); stroke-width: 3; }
.map path.is-selected { stroke: var(--map-pin); stroke-width: 3; }
.map-card__hint { flex: 1 1 100%; }

/* The zoomable map fills the card; the level switch, readout and zoom hint sit over it. No grain on the map. */
.map-card__canvas .map.map--gl { inset: 0; width: auto; height: auto; }
.map--gl .maplibregl-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.map-card__levels { top: 12px; left: 12px; right: 60px; }
.map-card__levels .segmented { display: inline-flex; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.map-card__levels + .map-card__readout { top: 60px; }
.map-card__zoomhint {
  left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-strong); font-size: 12.5px; color: var(--text-2);
}
.map--gl .maplibregl-ctrl-group { background: var(--card); border: 1px solid var(--line-strong); box-shadow: none; }
.map--gl .maplibregl-ctrl-group button + button { border-top-color: var(--line); }
[data-theme="dark"] .map--gl .maplibregl-ctrl-icon { filter: invert(1); }
.map--gl .maplibregl-ctrl-attrib { background: var(--card); color: var(--muted); }
.map--gl .maplibregl-ctrl-attrib a { color: var(--text-2); }
.legend__ramp span.is-here { outline: 2px solid var(--map-pin); outline-offset: 1px; position: relative; z-index: 1; }
.legend__labels span.is-here { color: var(--text); font-weight: 500; }

.snapshot { padding: 20px; gap: 16px; }
.explore { display: flex; flex-direction: column; gap: var(--gap); }
.explore .snapshot, .explore #cards, .explore .section-head .key { transition: opacity .15s; }
.explore.is-updating .snapshot, .explore.is-updating #cards, .explore.is-updating .section-head .key { opacity: .5; }
.snapshot .area-head h1 { text-wrap: balance; }
.snapshot__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.snapshot__actions .btn { flex: 1 1 160px; }
.stat__note:empty { display: none; }
.warn { color: var(--text-2); }
.warn::before { content: '! '; color: var(--area-2); font-family: var(--font-sans); }

.lead { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lead__value { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stat--small { padding: 12px; gap: 2px; }
.stat--small .stat__value { font-size: 22px; }
.card[data-topic] .bars { margin-top: 2px; }.card__list { border-top: 1px solid var(--line); padding-top: 10px; }
.card__list .caption { padding-bottom: 4px; }

/* ---- Filters and 2016 ---------------------------------------------------
   Options that change every chart sit between the topic tabs and the key. 2016 is a thin grey bar (--past) under
   each area's bar, with Australia's 2016 line and its value beside it. */
.section-head__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters:empty { display: none; }
.check { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); background: var(--card); color: var(--text); font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.bar-row__past { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.past-num { font-size: 11.5px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.bar-row__multi--past { grid-template-columns: minmax(0, 1fr) 92px; }
.stat__note--past { color: var(--text-2); }

/* ---- Card links and the detail page -------------------------------------
   On Explore a card's title and corner icon open its detail page (#/detail/<card>/<key>, detail.js; design in
   detail-prototype/, in git history at cdf4a27): the cards as tabs, headline tiles, then the card's sections. Cards, tiles, bars and the
   column chart are the usual ones. */

.card__head h2 a:hover { color: var(--link-hover); }

.card__headrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; }

.detail { display: flex; flex-direction: column; gap: var(--gap); }
.detail__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.detail__back { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px;
  border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; }
.detail__back svg { width: 16px; height: 16px; }
.tabs a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 13.5px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { background: var(--line); color: var(--text); font-weight: 500; }
.detail__title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.detail__title h1 { font-size: 28px; }
.detail__question { font-size: 14px; color: var(--muted); }
.detail__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.detail__tiles .stat { padding: 16px; border-radius: var(--radius-lg); }
.row > .detail__main { flex: 3 1 560px; min-width: 0; }
.row > .detail__side { flex: 2 1 400px; min-width: 0; }
.key__line { width: 14px; height: 2px; background: var(--baseline); }

/* Ranked bars ("1  China  ▬▬▬  4.6%  238,316 people"); as buttons they pick the country for the arrival chart */
.rank { display: flex; flex-direction: column; gap: 2px; container-type: inline-size; }
.rank__row { display: grid; grid-template-columns: 22px minmax(110px, 0.8fr) minmax(0, 1.4fr) minmax(132px, auto); gap: 12px;
  align-items: center; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--text); text-align: left; font-size: 14px; }
button.rank__row:hover { background: var(--hover); }
.rank__row[aria-pressed="true"] { background: var(--line); font-weight: 600; }
.rank__n { font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: var(--muted); }
.rank__bar { display: block; height: 12px; border-radius: 6px; }
.rank__fig { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; white-space: nowrap; font-weight: 400; }
.rank__fig .num { font-size: 13px; }
/* in a narrow card (or on a phone): name and figure on one line, the bar under them */
@container (max-width: 520px) {
  .rank__row { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 6px 10px; }
  .rank__bar { grid-column: 2 / -1; grid-row: 2; }
  .rank__fig { flex-direction: column; align-items: flex-end; gap: 0; }
}

/* Column charts (year of arrival, income, rent, bedrooms …): the age chart's columns, narrower, value on top */
.cols-chart .age-col { justify-content: center; }
.cols-chart .age-col__bar { flex: 0 1 72%; }
.cols-chart__value { position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 4px); text-align: center;
  font-family: var(--font-sans); font-size: 11.5px; color: var(--text-2); }
.cols-chart .age-chart__labels { align-items: start; line-height: 1.3; }
.cols-chart__axis { margin-top: -6px; text-align: center; }
.row > .detail__half { flex: 1 1 460px; min-width: 0; }

/* Age pyramid: men's bars grow to the left (flipped), women's to the right */
.pyramid { display: flex; flex-direction: column; gap: 3px; }
.pyramid__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 48px minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.pyramid__row--head { font-size: 12.5px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.pyramid__bar { display: block; height: 12px; }
.pyramid__bar--m { transform: scaleX(-1); }
.pyramid__label { font-family: var(--font-sans); font-size: 11.5px; color: var(--muted); text-align: center; }
.pyramid__num { font-size: 11.5px; font-weight: 400; color: var(--text-2); }
.pyramid__row > .pyramid__num:first-child { text-align: right; }
.arrival__lead { font-size: 14px; text-wrap: pretty; }
.arrival__lead strong { font-weight: 600; }

/* Change since 2016: a grey bar for then, the area's colour for now */
.growth { display: flex; flex-direction: column; }
.growth__item { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.growth__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 500; }
.growth__pill { padding: 3px 10px; border-radius: 999px; background: var(--line); font-size: 13px; font-weight: 500; white-space: nowrap; }
.growth__bars { display: grid; grid-template-columns: 40px minmax(0, 1fr) 76px; gap: 4px 10px; align-items: center; }
.growth__bars .mono { font-size: 11.5px; }
.growth__bars .num { font-size: 12px; text-align: right; }
.growth__then { color: var(--text-2); font-weight: 400; }

/* Compare: an area per line in tiles and in "Change since 2016" */
.detail__area { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; }
.stat__areas { display: flex; flex-direction: column; gap: 4px; margin: 2px 0; }
.stat__area { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13.5px; }
.stat__area-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.stat__area .num { font-size: 16px; font-weight: 600; font-family: var(--font-sans); }
.growth__areas { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; align-items: center; font-size: 13px; }
.growth__area { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-2); }
.growth__areas .num { font-size: 12px; text-align: right; }

/* ---- Explain -----------------------------------------------------------
   A map to drop a pin on (its circle is the catchment), the place and its baseline beside it, then sentences on
   what stands out (explain.js). */
.explain { display: flex; flex-direction: column; gap: var(--gap); }
.explain.is-updating .explain__side, .explain.is-updating .explain__body { opacity: .5; }
.explain__body { display: flex; flex-direction: column; gap: var(--gap); }
.explain__side { gap: 16px; }
.explain__radius .segmented { background: var(--card); }
.explain__side .search { margin: 0; max-width: none; flex: none; }
.explain__against .segmented { align-self: flex-start; }
.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.finding { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.finding:first-child { border-top: 0; padding-top: 2px; }
.finding p { font-size: 14px; text-wrap: pretty; }
.finding .bar { max-width: 420px; }
.finding__more { align-self: flex-start; font-size: 12.5px; color: var(--accent-text); font-weight: 500; }

/* ---- Find ---------------------------------------------------------------
   From the design in find-places/. The start screen (.find-start): two ways in, a place you know or a type of place.
   The results (.find): the question on the left (a sentence to fill in, then the figures compared, or the
   figures to meet), the answer on the right (the shortlist numbered on a small map, the starting place, then
   one card per place with its match). Explore's "Places like this" reads the precomputed lookalikes. */
.find-link { color: var(--accent-text); font-weight: 500; font-size: 13.5px; }
.find-chips { flex-wrap: wrap; overflow: visible; gap: 8px; }
.find-chips .chip { display: inline-flex; align-items: center; font-size: 13.5px; }
.find-chips .chip:hover { border-color: var(--axis); color: var(--text); }

.find-start { width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 0 16px; display: flex; flex-direction: column; gap: 28px; }
.find-start__intro { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.find-start__intro h1 { font-size: 32px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.find-start__intro p { font-size: 15px; color: var(--text-2); text-wrap: pretty; }
.find-start__ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: var(--gap); }
.find-way { border-radius: 14px; padding: 22px; gap: 16px; }
.find-way__head { display: flex; align-items: flex-start; gap: 12px; }
.find-way__head h2 { font-size: 18px; font-weight: 400; }
.find-way__sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.find-way__icon { width: 36px; height: 36px; flex: none; border-radius: var(--radius-md); background: var(--line); color: var(--accent-text);
  display: grid; place-items: center; }
.find-way__icon svg { width: 18px; height: 18px; }
.find-way__search.search { flex: none; max-width: none; margin: 0; height: 52px; padding: 0 14px; border-radius: var(--radius-lg); gap: 10px; }
.find-way__search.search svg { width: 18px; height: 18px; }
.find-way__search input { font-size: 15px; }
.find-way__group { display: flex; flex-direction: column; gap: 8px; }
.find-way__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.find-way__go { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.find-way__go .btn:disabled { background: var(--line); border-color: transparent; color: var(--muted); cursor: default; }
.find-saved { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-md); background: var(--subtle); }
.find-saved__name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-saved__go { font-size: 13px; font-weight: 500; color: var(--accent-text); }
.find-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.find-preset { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: transparent; color: var(--text); text-align: left; }
.find-preset:hover { border-color: var(--axis); }
.find-preset[aria-pressed="true"] { border-color: var(--accent); background: var(--line); }
.find-preset__name { font-size: 14px; font-weight: 500; }
.find-preset__desc { font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.find-presets--small .find-preset { min-height: 40px; justify-content: center; padding: 6px 10px; }
.find-presets--small .find-preset__name { font-size: 13px; }
.find-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.find-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.find-step .num { font-size: 13px; color: var(--accent-text); padding-top: 1px; }
.find-step div { display: flex; flex-direction: column; gap: 2px; }
.find-step strong { font-weight: 600; }
.find-step .caption { font-size: 13px; }
.find-start__note { font-size: 13px; }

.find { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: flex-start; }
.find__ask { flex: 1 1 340px; max-width: 400px; padding: 20px; gap: 18px; }
.find__answer { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--gap); }
.find__intro { display: flex; flex-direction: column; gap: 4px; }
.find__intro h1 { font-size: 24px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.15; }
.find__intro .caption { font-size: 13.5px; text-wrap: pretty; }
.find__modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--subtle);
  border: 1px solid var(--line); border-radius: var(--radius-md); }
.find__modes button { min-height: 40px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 13px; }
.find__modes button[aria-pressed="true"] { background: var(--card); color: var(--text); font-weight: 600; }
.find__sentence { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; }
.find__sentence > label, .find__sentence > span { font-size: 13.5px; color: var(--muted); }
.find__ask select { height: 40px; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 0 10px;
  background: var(--card); color: var(--text); }
.find__ask .search { flex: none; max-width: none; margin: 0; }
.find__start { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 4px 4px 10px; border: 1px solid var(--accent);
  border-radius: var(--radius-md); box-sizing: border-box; min-width: 0; }
.find__start-name { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find__start .slot__remove { margin-left: 0; }
.find__figures { display: flex; flex-direction: column; gap: 8px; }
.find__figures summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; }
.find__figures summary::-webkit-details-marker { display: none; }
.find__figures summary::after { content: ''; width: 7px; height: 7px; margin: 0 4px 2px 0; border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); align-self: center; }
.find__figures[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.find__figures summary .caption { margin-left: auto; }
.find__figures-title, .find__group-title { font-weight: 400; }
.find__figures > p { margin-top: 6px; }
.find__topic { display: flex; flex-direction: column; margin-top: 8px; }
.find__topic .eyebrow { padding: 0 8px 2px; font-size: 11px; }
.find__figure { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 36px;
  padding: 2px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.find__figure:hover { background: var(--hover); }
.find__figure-name { font-size: 13.5px; }
.find__figure .num { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.find__figure .tick { width: 18px; height: 18px; box-sizing: border-box; border-radius: 5px; border: 1.5px solid var(--axis);
  display: grid; place-items: center; color: var(--on-accent); font-size: 12px; font-weight: 700; line-height: 1; }
.find__figure input:checked + .tick { background: var(--accent); border-color: var(--accent); }
.find__figure input:checked + .tick::after { content: '✓'; }
.find__figure input:not(:checked) ~ .find__figure-name { color: var(--muted); }
.find__figure input:focus-visible + .tick { outline: 2px solid var(--accent); outline-offset: 2px; }
.find__group { display: flex; flex-direction: column; gap: 8px; }
.find__criteria { display: flex; flex-direction: column; gap: 12px; }
.find__criteria:empty { display: none; }
.find__criterion { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 6px; align-items: center; }
.find__criterion select { grid-column: 1 / 3; }
.find__criterion .input { height: 36px; min-width: 0; }
.find__hint { grid-column: 1 / -1; }
.find__hint:empty { display: none; }
.find__add { align-self: flex-start; height: 36px; }
.find__size { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.find__size label { font-size: 13.5px; color: var(--text-2); }

.find__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; }
.find__title { display: flex; flex-direction: column; gap: 2px; }
.find__title h2 { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; }
.find__title .caption { font-size: 13.5px; }
.find__head .btn svg { flex: none; }
.find__overview { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: stretch; }
.find__map { flex: 1 1 360px; }
.find__map .map-card__canvas { height: 260px; }
.find__map .map-card__foot { padding: 10px 14px; }
.find__from { flex: 1 1 260px; padding: 16px; gap: 10px; }
.find__from-name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.find__from-facts { font-size: 13px; margin-top: -4px; }
.find__from .stats { gap: 8px; margin-top: 4px; }
.find__from .stat { padding: 10px; }
.find__from .stat__label { font-size: 12px; }
.find__from .stat__value { font-size: 18px; }
.find__from-link { margin-top: auto; font-size: 13px; }
.find__results.is-updating { opacity: .5; }
.find__empty { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: 14px; }
.find-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.find-result { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(180px, 240px); gap: 8px 16px; align-items: start; padding: 16px 18px; }
.find-result--plain { grid-template-columns: 28px minmax(0, 1fr); }
.find-result__rank { font-size: 13px; color: var(--muted); font-weight: 400; padding-top: 3px; }
.find-result__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.find-result__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.find-result__name { font-size: 17px; font-weight: 500; }
.find-result__title .caption { font-size: 13px; }
.find-result__line { font-size: 13.5px; color: var(--text-2); text-wrap: pretty; }
.find-result__label { color: var(--muted); }
.find-result__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; }
.find-result__match { display: flex; flex-direction: column; gap: 6px; }
.find-result__score { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.find-result__pct { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.map-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: var(--on-accent); font: 600 12px var(--font-sans); border: 2px solid var(--card); }
.map-mark:hover { color: var(--on-accent); filter: brightness(1.08); }
.similar__more { color: var(--accent-text); font-weight: 500; font-size: 13px; }
.similar__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 4px 24px; }
.similar__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 6px 0;
  border-bottom: 1px solid var(--line); }
.similar__list a { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .find-start { padding-top: 8px; gap: 20px; }
  .find-start__intro h1 { font-size: 26px; }
  .find-way { padding: 16px; }
  .find__ask { max-width: none; padding: 16px; }
  .find-result { grid-template-columns: 22px minmax(0, 1fr); padding: 14px; }
  .find-result__match { grid-column: 2; }
  .find__map { padding: 0; }
  .find__map .map-card__canvas { height: 240px; }
}

/* ---- Compare ----------------------------------------------------------- */
.compare-top { display: flex; flex-direction: column; gap: 10px; }
a.slot__name { color: var(--text); }
a.slot__name:hover { color: var(--link-hover); }
.slot--add .search { width: 100%; }
.slot--add [data-saved-picks]:empty { display: none; }
.slot--add [data-saved-picks] .link-btn { font-size: 12.5px; }
.measures-narrow { display: none; flex-direction: column; gap: 12px; }
.measures-narrow .measure-card { padding: 14px; border-color: var(--line); }
.list-plain li strong { font-weight: 600; }
.empty-state { padding: 28px; gap: 10px; max-width: 720px; }
.empty-state .caption { font-size: 14px; color: var(--text-2); text-wrap: pretty; }

/* ---- Saved areas / builder --------------------------------------------- */
.saved-grid { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.saved-slot { gap: 8px; }
.saved-slot .slot__top { gap: 10px; }
.saved-slot .slot__remove { display: inline-flex; align-items: center; justify-content: center; }
.saved-slot .slot__remove:hover { color: var(--text); background: var(--line); }
.saved-slot__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.saved-slot__actions .btn { height: 36px; font-size: 13px; }

.builder { gap: 16px; }
.builder .search { max-width: none; margin: 0; flex: none; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.picked:empty { display: none; }
.picked .area-chip { gap: 8px; font-size: 13.5px; }
.builder__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.builder__form .field label { font-size: 12.5px; color: var(--muted); }
.preview__title { font-size: 22px; letter-spacing: -0.02em; }

/* ---- About ------------------------------------------------------------- */
.prose-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: var(--gap); align-items: start; }
.prose { gap: 12px; }
.prose p { color: var(--text-2); text-wrap: pretty; max-width: 68ch; }
.prose strong { color: var(--text); font-weight: 600; }

/* ---- Messages ---------------------------------------------------------- */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%);
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 16px;
  background: var(--card); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .25); font-size: 13.5px;
}
.toast.is-error::before { content: '! '; color: var(--area-2); font-family: var(--font-sans); font-weight: 600; }

/* ==========================================================================
   Phone (below 760px): one compact top bar (logo, search, the page's actions
   as icons, and a menu in place of the sidebar), and key measures as one
   card per measure.
   ========================================================================== */
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main { flex-basis: 100%; padding-bottom: env(safe-area-inset-bottom); }

  .topbar { flex-wrap: nowrap; padding: 10px 12px 10px 16px; gap: 8px; position: sticky; top: 0; }
  .topbar__brand { display: inline-flex; flex: none; }
  .breadcrumb { display: none; }
  #top-search { flex: 1 1 0; min-width: 0; max-width: none; margin: 0; }
  .topbar__actions { gap: 2px; }
  .topbar__actions > [data-theme-toggle] { display: none; }     /* it's in the menu */
  #actions.in-menu { display: none; }        /* the page's actions are in the menu too (app.js top's menu) */
  .topbar__context { gap: 2px; }
  .topbar__context:empty { display: none; }
  /* a page's actions become plain icons; their words stay for screen readers and as a tooltip */
  .topbar__context .btn {
    width: 40px; padding: 0; border-color: transparent; background: transparent; color: var(--text);
  }
  .topbar__context .btn:hover { filter: none; }
  .topbar__context .btn svg { width: 20px; height: 20px; }
  .topbar__context .btn.is-saved { color: var(--accent-text); }
  .topbar__context .btn--quiet { cursor: default; }
  .topbar__context .btn__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .desktop-only { display: none !important; }
  .topbar__menu { display: inline-flex; color: var(--text); }
  .topbar__menu[aria-expanded="true"] { background: var(--line); }
  @media (hover: hover) {      /* not on touch, where hover sticks after a tap */
    .topbar__context .btn:hover, .topbar__menu:hover { background: var(--line); }
  }
  .menu { display: flex; }

  .content { padding: 16px 16px 24px; gap: 14px; }
  .card { padding: 16px; }
  .snapshot { padding: 16px; order: -1; }      /* the area's name and headline numbers first, as in the phone design */
  .snapshot h1 { font-size: 24px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat__value { font-size: 22px; }

  .map-card__canvas { height: 340px; }
  .map-card__canvas .map { left: 8px; right: 8px; top: 96px; bottom: 8px; }
  .map-card__readout { top: 48px; min-width: 0; }
  .map-card__levels { left: 8px; right: 52px; top: 8px; }
  .map-card__levels .segmented { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .map-card__levels .segmented button { flex: none; }
  .map-card__levels + .map-card__readout { top: 54px; left: 8px; }
  .section-head .tabs, .detail__nav .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .section-head .tabs button, .detail__nav .tabs a { flex: none; }
  .detail__title h1 { font-size: 24px; }

  .measures-wide { display: none; }
  .measures-narrow { display: flex; }
  .builder__form { grid-template-columns: 1fr; }
  .toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

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

/* ==========================================================================
   Compared with (compared.js, explore.js; from the design handover in
   prototype/, compare.css). Places are bars (--area-1, then --area-2),
   benchmarks are a thin --baseline line, the same place in 2016 is a grey
   --past bar with no fade. Never more than two bars per row.
   ========================================================================== */
:root, [data-theme="dark"] {
  --busy-scrim: rgba(35, 31, 31, .55);          /* over the page while it loads */
  --note-bg: var(--stone-900);                  /* caveat notes (lockdown, inflation) */
  --pop-shadow: 0 18px 48px rgba(0, 0, 0, .55);
  --scrim: rgba(10, 8, 8, .6);
  --map-lift-shadow: var(--mint);               /* under the map's selected area: a faint glow in the dark */
}
[data-theme="light"] {
  --busy-scrim: rgba(242, 242, 241, .6);
  --note-bg: var(--stone-100);
  --pop-shadow: 0 18px 48px rgba(25, 21, 21, .16);
  --scrim: rgba(25, 21, 21, .35);
  --map-lift-shadow: rgb(25, 21, 21);           /* a soft shadow in the light */
}

/* ---- bars: one line per bar (name, bar, value), then the line's value as a caption ---- */
.cmp-bars { display: grid; grid-template-columns: minmax(48px, max-content) minmax(0, 1fr) 64px; gap: 5px 10px; align-items: center; }
.cmp-bars__name { max-width: 150px; font-family: var(--font-sans); font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-bars__val { font-family: var(--font-sans); font-size: 12px; text-align: right; color: var(--text); font-weight: 500; }
.cmp-bars__name[data-role="past"], .cmp-bars__val[data-role="past"],
.cmp-bars__name[data-role="future"], .cmp-bars__val[data-role="future"] { font-weight: 400; }
.bar__fill[data-role="area"] { --c: var(--bar-1); }
.bar__fill[data-role="target"] { --c: var(--bar-2); }
.bar__fill[data-role="past"] { --c: var(--past); }
/* Projected (2026, 2031): a pale fill with a dashed outline in the place's colour, so it never reads as a census
   count (no hatching: the consistency pass, 26 November 2026) */
.bar__fill[data-role="future"], .age-col .age-col__bar--future, .cmp-swatch--future, .ins-col__bar--future {
  background: var(--projected-fill); outline: 1.5px dashed var(--area-1); outline-offset: -1.5px;
}
.cmp-caption { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; margin-top: 1px; font-family: var(--font-sans); font-size: 11.5px; color: var(--muted); }
.cmp-swatch { display: inline-block; flex: none; }
.cmp-swatch--line { width: 2px; height: 12px; background: var(--baseline); }
.cmp-swatch--area, .cmp-swatch--target, .cmp-swatch--past, .cmp-swatch--future { width: 9px; height: 9px; border-radius: 2px; }
.cmp-swatch--area { background: var(--area-1); }
.cmp-swatch--target { background: var(--area-2); }
.cmp-swatch--past { background: var(--past); }
.cmp-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-2); }
.cmp-key > span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-key .cmp-swatch--area, .cmp-key .cmp-swatch--target, .cmp-key .cmp-swatch--past, .cmp-key .cmp-swatch--future { width: 14px; height: 10px; border-radius: 0 3px 3px 0; }
.cmp-key .cmp-swatch--line { height: 14px; }
.cmp-note { font-size: 12.5px; color: var(--text-2); padding: 6px 10px; background: var(--note-bg); border-radius: var(--radius-sm); align-self: flex-start; }
.cmp-tilenote { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.cmp-tilenote:empty { display: none; }

.cmp-row { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; padding-top: 4px; }
.cmp-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cmp-row__label { font-weight: 500; }
.cmp-row__gap { font-size: 12.5px; color: var(--text-2); text-align: right; }

/* ---- the street's houses (js/chart/street.js, styled in chart.css), in Stone; its flats are in tokens.css ---- */
:root, [data-theme="dark"] {
  --street-wall: var(--stone-600); --street-roof: var(--stone-500); --street-semi: var(--stone-700);
}
[data-theme="light"] {
  --street-wall: var(--stone-200); --street-roof: var(--stone-400); --street-semi: var(--stone-400);
}

.gp__label { padding: 0 8px; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp__bar { flex: 0 1 auto; width: calc(78% * var(--w)); min-width: 2px; height: 14px; background: var(--past); }
.gp__row.is-down .gp__bar { border-radius: 3px 0 0 3px; }
.gp__row.is-up .gp__bar { border-radius: 0 3px 3px 0; background: var(--bar-1); }
.gp__val { flex: none; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.gp__row.is-up .gp__val { color: var(--area-1); font-weight: 600; }
/* ---- chart tips (tip.js): one tooltip for every chart's marks ([data-tip]); in a chart marked [data-tips] the other
   marks dim while one is shown. Line charts take hover on invisible year columns, shaded while hovered. ---- */
.chart-tip { position: fixed; z-index: 1000; transform: translate(-50%, calc(-100% - 8px)); display: flex; flex-direction: column; gap: 2px;
  padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--card);
  font-size: 12.5px; line-height: 1.35; color: var(--text-2); white-space: nowrap; pointer-events: none; }
.chart-tip[hidden] { display: none; }
.chart-tip.is-below { transform: translate(-50%, 8px); }
.chart-tip strong { font-weight: 500; color: var(--text); }
[data-tips] [data-tip] { transition: opacity .12s; }
[data-tips].has-tip [data-tip]:not(.is-tip) { opacity: .4; }
.ins-hit, .ex-spark__hit { fill: transparent; }
.ins-svg :not(.ins-hit), .ex-spark :not(.ex-spark__hit) { pointer-events: none; }   /* lines and dots over the columns */
.ins-hit.is-tip, .ex-spark__hit.is-tip { fill: var(--line); opacity: .6; }

/* ---- the picker: a popover on desktop, a bottom sheet on phones ---- */
.cmp-picker { position: relative; display: flex; align-items: center; gap: 8px; }
/* one control in every state, a chip [▮ Australia ▾ | ×]: the end of the header's sentence, "vs …" in the sticky bar */
.cmp-chip2 { display: inline-flex; align-items: stretch; min-width: 0; height: 40px; border: 1px solid var(--line-strong); background: var(--line); overflow: hidden; }
.cmp-chip2__main { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 0 10px 0 14px; border: 0; background: transparent; color: var(--text);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.cmp-chip2__label { min-width: 0; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.cmp-chip2__vs { color: var(--text-2); font-weight: 400; }
.cmp-chip2__main svg { color: var(--muted); flex: none; transition: transform .15s; }
.cmp-chip2__main[aria-expanded="true"] svg { transform: rotate(180deg); }
.cmp-chip2__x { flex: none; width: 38px; border: 0; border-left: 1px solid var(--line-strong); background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; }
.cmp-chip2__main:hover, .cmp-chip2__x:hover { background: var(--hover); }
.cmp-chip2--fixed .cmp-chip2__main { padding-right: 14px; }          /* Free: Australia, a padlock for the chevron */
.cmp-chip2:has([aria-expanded="true"]) { box-shadow: 0 0 0 2px var(--accent); }
.cmp-chip2__main:focus-visible, .cmp-chip2__x:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cmp-picker--compact .cmp-chip2 { height: 32px; font-size: 13px; }
.cmp-picker--compact .cmp-chip2__x { width: 32px; }
/* the header's sentence: "[▮ Brunswick ▾] compared with [▮ Australia ▾]", the place's chip opening its own menu */
.cmp-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; font-size: 15px; color: var(--text-2); }
.cmp-line .cmp-line__place, .cmp-line .ex-picker { min-width: 0; max-width: 100%; }
.cmp-line .cmp-chip2 { height: 36px; }
.cmp-line .cmp-chip2__main { font-size: 14.5px; }
.cmp-pop__empty { padding: 10px; font-size: 13px; color: var(--muted); }
.cmp-pop__title { padding: 4px 6px 10px; font-size: 14px; font-weight: 400; }
.cmp-opt--swap { grid-template-columns: 20px minmax(0, 1fr); margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding-top: 12px; color: var(--text-2); }
.cmp-opt--swap .cmp-opt__icon { color: var(--muted); }
.cmp-opt--swap .cmp-opt__name { font-weight: 400; }

/* the sticky bar: the place and the same control while the header is off screen. The wrap takes no room. */
.cmp-sticky-wrap { position: sticky; top: var(--topbar-h, 0px); z-index: 9; height: 0; margin: 0 calc(-1 * var(--page-x)) calc(-1 * var(--gap)); }
.cmp-sticky { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 var(--page-x); background: var(--card); border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; }
.cmp-sticky[data-visible="true"] { opacity: 1; visibility: visible; transition: opacity .15s; }   /* fades in, gone at once */
.cmp-sticky__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Save and Export PDF on the right, as small as the compact picker */
.cmp-sticky__actions { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; }
.cmp-sticky__actions .btn, .cmp-sticky__actions .btn-icon { height: 32px; font-size: 13px; }
.cmp-sticky__actions .btn { padding: 0 12px; gap: 6px; }
.cmp-sticky__actions .btn-icon { width: 32px; }
.cmp-sticky__actions svg { width: 16px; height: 16px; }
/* Back to top: a round button in the bottom right corner, shown with the sticky bar */
.ex-to-top { position: fixed; z-index: 9; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 999px;
  opacity: 0; visibility: hidden; }
.ex-to-top[data-visible="true"] { opacity: 1; visibility: visible; transition: opacity .15s; }
.ex-to-top svg { width: 20px; height: 20px; }
.ex-picker-sticky { min-width: 0; }
.cmp-pop { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: 440px; max-width: calc(100vw - 32px); box-sizing: border-box;
  max-height: min(560px, 70vh); overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 2px; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--pop-shadow); }
.cmp-pop__search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-bottom: 6px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); flex: none; }
.cmp-pop__search svg { color: var(--muted); flex: none; }
.cmp-pop__search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 13.5px; background: transparent; color: var(--text); }
.cmp-pop__search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.cmp-pop__head { padding: 10px 10px 4px; font-family: var(--font-sans); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cmp-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) 18px; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text); cursor: pointer; }
.cmp-opt:hover, .cmp-opt:focus-visible { background: var(--hover); outline: none; }
.cmp-opt:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.cmp-opt[aria-selected="true"] { background: var(--line); }
.cmp-opt__icon { display: flex; justify-content: center; }
.cmp-opt__name { display: block; font-size: 13.5px; font-weight: 500; }
.cmp-opt__sub { display: block; font-size: 12px; color: var(--muted); }
.cmp-opt__check { color: var(--accent-text); visibility: hidden; }
.cmp-opt[aria-selected="true"] .cmp-opt__check { visibility: visible; }
.cmp-pop__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 10px 10px 2px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.cmp-scrim { position: fixed; inset: 0; z-index: 30; background: var(--scrim); }
.cmp-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-height: 86vh; overflow: auto; padding: 8px 14px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 2px; background: var(--card); border-top: 1px solid var(--line-strong); border-radius: 18px 18px 0 0; }
.cmp-sheet__grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); align-self: center; margin: 4px 0 10px; }
.cmp-sheet__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.cmp-sheet__top h2 { font-size: 17px; }
.cmp-sheet__close { border-radius: 999px; font-size: 20px; }
.cmp-sheet .cmp-opt { min-height: 52px; }
.cmp-sheet__map { margin-top: 10px; }

/* ---- Explore: the header, the map and snapshot, tabs, the overview ---- */
.explore { display: flex; flex-direction: column; gap: var(--gap); }
.explore .ex-lede, .explore .ex-insights, .explore .ex-body, .explore .ex-facts { transition: opacity .15s; }
.explore.is-updating .ex-lede, .explore.is-updating .ex-insights, .explore.is-updating .ex-body { opacity: .5; }
.ex-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.ex-head .area-head { min-width: 0; }
.ex-head h1 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.ex-facts { font-size: 13px; }
.ex-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ex-actions .btn-icon svg { width: 18px; height: 18px; }
.btn-icon.is-saved { color: var(--accent-text); border-color: var(--accent); }
.btn-icon.is-saved svg { fill: currentColor; }
.ex-top[hidden], .ex-insights[hidden] { display: none !important; }
/* the map and the lede beside it are the same height: the map's canvas grows when the lede is the taller */
.ex-map { min-width: 0; align-self: stretch; display: flex; flex-direction: column; }
.ex-map .map-card__canvas { flex: 1 0 auto; height: auto; min-height: 420px; }
.ex-map .map-card__canvas .map { top: 0; left: 0; right: 0; bottom: 0; }
.ex-map__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ex-map .map-card__readout { top: 14px; }
/* the legend in brief, over the map's bottom left: what it's shaded by, the five shades and their two ends */
.map-key { left: 14px; bottom: 14px; width: min(250px, calc(100% - 28px)); padding: 10px 12px; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 6px; }
.map-key[hidden] { display: none; }
.map-key__title { font-size: 12px; line-height: 1.35; color: var(--text-2); text-wrap: pretty; }
.map-key__title strong { color: var(--text); font-weight: 600; }
.map-key__ramp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; height: 8px; }
.map-key__ramp span { border-radius: 2px; }
.map-key__ramp span.is-here { outline: 2px solid var(--map-pin); outline-offset: 1px; position: relative; z-index: 1; }
.map-key__ends { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-sans); font-size: 11px; color: var(--text-2); }
.map-key__ends span:last-child { text-align: right; }
.map-key__note { font-size: 11px; color: var(--muted); }
.level-switch { display: flex; flex-wrap: wrap; gap: 6px; }
.level-switch button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--card); color: var(--text-2); font-size: 13px; }
.level-switch button:hover { color: var(--text); border-color: var(--axis); }
.level-switch button[aria-pressed="true"] { background: var(--line); color: var(--text); font-weight: 500; }
.level-switch button[data-extra][aria-pressed="true"], .level-switch button[data-mode="point"][aria-pressed="true"] { border-color: var(--accent); }
.level-switch svg { color: var(--muted); }
.level-switch--radius button { font-family: var(--font-sans); font-size: 12px; }
.ex-radius { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ex-radius:empty { display: none; }
.ex-chain ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ex-chain__chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--card); color: var(--text); font-size: 13px; font-weight: 500; }
.ex-chain__chip:hover { border-color: var(--axis); color: var(--text); }
.ex-chain__sep { color: var(--muted); }
.ex-chain__here { font-size: 13px; font-weight: 600; }
.ex-map .map-card__foot { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 14px; }
.ex-map-opts summary { font-size: 12.5px; color: var(--accent-text); font-weight: 500; cursor: pointer; }
.ex-map-opts__body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; padding-top: 10px; }
.ex-map-opts__body .segmented button { height: 28px; }
.ex-tabs { align-self: flex-start; }
.ex-tabs a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 13.5px; }
.ex-tabs a[aria-current="page"] { background: var(--line); color: var(--text); font-weight: 500; }
.ex-tabs a:hover { color: var(--text); }
.ex-cards .card__head a { color: var(--text); }
.ex-cards .card__head a:hover { color: var(--link-hover); }

/* ---- Explore's Overview: the insight-led top (Claude Design's handover; insights.js says it, insightview.js draws
   it). The headline beside the map, "How {place} compares with …" (cells that shade the map), then What stands out. */
.ex-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap) 48px; align-items: start; }   /* the lede and the map, with room between */
.ex-insights { display: flex; flex-direction: column; gap: var(--gap); }
.ex-insights:not([hidden]) { margin-top: 12px; }     /* 28px under the map and lede, a little more than inside a section */
.ex-lede { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding-top: 4px; align-self: stretch; }   /* as tall as the map */
.ex-kicker { margin: 0; font-family: var(--font-sans); font-size: 11.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ex-headline { margin: 0; font-size: 34px; font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.ex-headline__vs { color: inherit; }   /* the comparison is named, not a link: the headline's colour (29 November 2026) */
.ex-phrase { padding: 0 2px; margin: 0 -2px; border-radius: 4px; cursor: pointer;
  text-decoration: underline dotted var(--accent) 2px; text-underline-offset: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ex-phrase:hover { text-decoration-style: solid; }
.ex-phrase[aria-pressed="true"] { background: var(--area-1-tint); }
.ex-standfirst { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; max-width: 62ch; }
.ex-hint { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: var(--muted); }
.ex-hint__mark { flex: none; width: 18px; border-top: 2px dotted var(--accent); }
.ex-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0 0; border-top: 1px solid var(--line); }
.ex-fig { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.ex-fig:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.ex-fig dt { order: 2; font-size: 12.5px; color: var(--text-2); }
.ex-fig dd { margin: 0; }
.ex-fig__value { order: 1; font-family: var(--font-sans); font-size: 17px; font-weight: 600; }
.ex-fig__note { order: 3; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ex-lede__note { margin: 0; }
/* "Estimated for 2026": two cards under the four figures, each with a small line to the projection */
.ex-ahead { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }         /* ends level with the map */
.ex-ahead__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ex-ahead__head h2 { margin: 0; font-family: var(--font-sans); font-size: 11.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ex-ahead__head a { font-size: 12.5px; font-weight: 500; }
.ex-ahead__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ex-ahead__card { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); }
.ex-ahead__card .ex-fig__value { font-size: 17px; }
.ex-ahead__label { font-size: 12.5px; color: var(--text-2); }
.ex-ahead .caption { margin: 0; }
.ex-ahead__card--locked p { margin: 0; font-size: 13px; color: var(--text-2); text-wrap: pretty; }
.ex-ahead__card--locked .lock-icon { margin-right: 4px; }
.ex-ahead__card--locked .btn { flex: none; }
.ex-spark { flex: none; overflow: visible; }
.ex-spark__line { fill: none; stroke: var(--area-1); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.ex-spark__line--ahead { stroke-dasharray: 2.5 3; }
.ex-spark__dot { fill: var(--area-1); }
.ex-spark__dot.is-ahead { fill: var(--card); stroke: var(--area-1); stroke-width: 1.5; }

.ex-compare { gap: 14px; }
.ex-compare__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.ex-compare__head h2 { font-size: 17px; margin: 0; }
.ex-compare__head .cmp-key { margin-left: auto; }
.ex-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ex-cell { position: relative; display: flex; flex-direction: column; padding: 12px 14px 22px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; cursor: pointer; }
/* the bars sit at the cell's foot, so they line up across a row when one cell's change line wraps */
.ex-cell .cmp-row { flex: 1; }
.ex-cell .cmp-bars { margin-top: auto; }
.ex-cell:hover { background: var(--line); }
.ex-cell[aria-pressed="true"] { background: var(--area-1-tint); border-left-color: var(--area-1); }
.ex-cell .cmp-row { padding: 0; border-top: 0; }
.ex-cell .cmp-row__head { flex-wrap: wrap; gap: 2px 10px; }
.ex-cell .cmp-row__gap { margin-left: auto; }
.ex-cell .cmp-bars { grid-template-columns: minmax(40px, max-content) minmax(0, 1fr) 54px; }
/* against a benchmark each cell has one bar, the place's: its value, not its name, leads the row */
.ex-cells[data-kind="benchmark"] .cmp-bars { grid-template-columns: 0 minmax(0, 1fr) 54px; column-gap: 0; }
.ex-cells[data-kind="benchmark"] .cmp-bars .bar { margin-right: 10px; }
.ex-cells[data-kind="benchmark"] .cmp-bars__name { visibility: hidden; }

.ex-cell__on { position: absolute; right: 14px; bottom: 6px; font-size: 11.5px; font-weight: 600; color: var(--accent-text); visibility: hidden; }
.ex-cell[aria-pressed="true"] .ex-cell__on { visibility: visible; }

.ex-stand { display: flex; flex-direction: column; gap: 12px; }
.ex-stand__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.ex-stand__head h2 { font-size: 20px; margin: 0; }
.ins-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: var(--gap); }
.ins-card { gap: 10px; min-width: 0; }
.ins-card[data-span="2"] { grid-column: span 2; }
.ins-card[data-span="3"] { grid-column: 1 / -1; }
.ins-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 13px; color: var(--text-2); }
.ins-tag__n { color: var(--accent-text); }
.ins-tag__pill { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 500; }
.ins-title { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; text-wrap: pretty; }
.ins-card[data-span="2"] .ins-title, .ins-card[data-span="3"] .ins-title { font-size: 21px; }
.ins-support { margin: 0; font-size: 13.5px; color: var(--text-2); text-wrap: pretty; }
.ins-chart { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; padding: 6px 0; }
.ins-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px 16px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ins-foot a { flex: none; font-weight: 500; }

/* line charts fill the card's spare height: the SVG sits over its box, so its size never sets the card's */
.ins-chart[data-lines] { display: block; position: relative; min-height: 200px; padding: 0; }
.ins-card[data-span="2"] .ins-chart[data-lines], .ins-card[data-span="3"] .ins-chart[data-lines] { min-height: 240px; }
.ins-chart[data-lines] > .ins-svg { position: absolute; top: 0; left: 0; }
.ins-svg { display: block; overflow: visible; }
.ins-grid-line { stroke: var(--line); stroke-width: 1; }
.ins-axis { font-family: var(--font-sans); font-size: 11.5px; fill: var(--muted); }
.ins-axis--band { font-size: 11px; }
.ins-projected { fill: var(--projected-band); }
.ins-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ins-line--place { stroke: var(--area-1); stroke-width: 2.5; }
.ins-line--comp { stroke: var(--baseline); }
.ins-line--ahead { stroke-dasharray: 3 4; }
.ins-dot--place { fill: var(--area-1); }
.ins-dot--comp { fill: var(--baseline); }
.ins-dot--ahead { fill: var(--card); stroke-width: 1.5; }
.ins-dot--place.ins-dot--ahead { stroke: var(--area-1); }
.ins-dot--comp.ins-dot--ahead { stroke: var(--baseline); }
.ins-end { font-size: 11.5px; font-weight: 600; fill: var(--text); }
.ins-end--comp { font-weight: 400; fill: var(--text-2); }
.ins-gap { stroke: var(--text-2); stroke-width: 1.2; stroke-dasharray: 2 3; }
.ins-gap.is-strong { stroke: var(--text); stroke-width: 1.6; stroke-dasharray: none; }
.ins-gap-text { font-family: var(--font-sans); font-size: 10.5px; fill: var(--text-2); }
.ins-gap-text.is-strong { font-weight: 600; fill: var(--text); }
.ins-cross { fill: none; stroke: var(--text-2); stroke-width: 1.2; stroke-dasharray: 2 2; }

.ins-cols { flex: 1; display: flex; align-items: stretch; gap: 10px; min-height: 180px; max-height: 320px; }   /* grows into the card's spare height */
.ins-col { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
.ins-col__val, .ins-col__year { font-family: var(--font-sans); font-size: 10.5px; text-align: center; color: var(--text-2); }
.ins-col__track { flex: 1; display: flex; align-items: flex-end; }
.ins-col__bar { width: 100%; height: var(--h); border-radius: 3px 3px 0 0; }
.ins-col__bar:not(.ins-col__bar--future) { background: var(--bar-1); }

.ins-div__caption { margin: 0 0 6px; }
.ins-div { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr) 52px; gap: 14px 10px; align-items: center; }
.ins-div__ends { display: flex; justify-content: space-between; gap: 6px; font-family: var(--font-sans); font-size: 10px; color: var(--muted); white-space: nowrap; }
.ins-div__label { font-size: 12.5px; color: var(--text); }
.ins-div__track { position: relative; height: 14px; }
.ins-div__track::before { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; border-left: 1px solid var(--axis); }
.ins-div__bar { position: absolute; left: 50%; top: 0; bottom: 0; width: var(--w); background: var(--bar-1); border-radius: 0 3px 3px 0; }
.ins-div__bar.is-below { left: auto; right: 50%; border-radius: 3px 0 0 3px; }
.ins-div__val { font-family: var(--font-sans); font-size: 11.5px; text-align: right; color: var(--text); }

.ins-sim { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ins-sim li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 36px; align-items: center; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ins-sim li:first-child { border-top: 0; }
.ins-sim a { display: flex; flex-direction: column; gap: 1px; min-width: 0; color: var(--text); }
.ins-sim a:hover .ins-sim__name { color: var(--link-hover); }
.ins-sim__name { font-size: 13.5px; font-weight: 500; }
.ins-sim__state { font-weight: 400; color: var(--text-2); font-size: 12px; }
.ins-sim__why { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ins-sim__bar { position: relative; height: 6px; border-radius: 3px; background: var(--line); }
.ins-sim__bar span { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px; background: var(--bar-1); }
.ins-sim__pct { font-family: var(--font-sans); font-size: 11.5px; text-align: right; }

@media (max-width: 1100px) {
  .ex-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-top { column-gap: 32px; }
}
@media (max-width: 760px) {
  .ex-top { grid-template-columns: minmax(0, 1fr); }
  .ex-headline { font-size: 27px; }
  .ex-ahead__cards { grid-template-columns: minmax(0, 1fr); }
  .ex-cells, .ins-grid { grid-template-columns: minmax(0, 1fr); }
  .ins-card[data-span] { grid-column: auto; }
  .ins-card[data-span] .ins-title { font-size: 18px; }
  .ins-foot { flex-direction: column; align-items: flex-start; }
}

.ex-words { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; }
.ex-words > div:first-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 4px; }
.ex-keep { gap: 0; }
.ex-keep__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); }
.ex-keep__link > span { display: flex; flex-direction: column; gap: 2px; }
.ex-keep__link strong { font-weight: 600; }
.ex-keep__link:hover strong { color: var(--link-hover); }
.ex-keep__link svg { color: var(--muted); flex: none; }
.ex-notes .link-btn { font-size: 13px; }

/* ---- the loading screen (ui.busy): a scrim over the page, below the top bar; the mark alone, the start-up screen's,
   in the middle of the screen, not of the page beside the sidebar, and there as you scroll (its words are for screen
   readers only). The blur is on the scrim (::before), not .busy: a backdrop-filter on .busy would make the fixed mark
   sit in .busy's box ---- */
.main { position: relative; }
.busy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; }
.busy::before { content: ''; position: absolute; inset: 0; background: var(--busy-scrim); backdrop-filter: blur(1.5px); }
.busy__card { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; color: var(--text); }
.busy__mark { display: block; width: 72px; height: 72px; }
.ex-find-end { display: none; }

@media (max-width: 760px) {
  .ex-head { flex-direction: column; align-items: stretch; }
  .ex-head h1 { font-size: 26px; }
  .ex-actions { gap: 8px; }
  .ex-actions .ex-find { display: none; }
  .ex-find-end { display: flex; height: 52px; }
  .cmp-picker { flex: 1 1 auto; min-width: 0; }
  .cmp-chip2 { max-width: 100%; }
  .cmp-chip2__main { flex: 1; }
  .cmp-chip2__label { max-width: none; }
  .cmp-sticky-wrap { margin: 0 -16px calc(-1 * var(--gap)); }
  .cmp-sticky { padding: 0 16px; gap: 10px; }
  .cmp-sticky .cmp-picker, .cmp-picker--place { flex: 0 1 auto; }
  .srch-pair { padding-right: 6px; }
  .cmp-pop { display: none; }
  .ex-map { padding: 0; }
  .ex-map .map-card__canvas { flex: none; height: 260px; min-height: 0; }
  .map-key { left: 8px; bottom: 8px; width: min(200px, calc(100% - 16px)); padding: 7px 9px; gap: 4px; }
  .ex-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .ex-tabs a { flex: none; }
  .cmp-bars { grid-template-columns: minmax(44px, max-content) minmax(0, 1fr) 56px; }
  .cmp-bars__name { max-width: 110px; }
}

/* ---- OAuth consent (consent.html: allowing an AI agent, for the MCP server) ---- */
.consent__facts { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.consent__facts div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.consent__facts dt { flex: none; color: var(--muted); }
.consent__facts dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.consent__url { font-family: var(--font-sans); font-size: 12px; font-weight: 400; display: block; color: var(--muted); }
.consent__unknown { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--ember-500); border-radius: 8px;
                    font-size: 13.5px; }
.consent__unknown p { margin: 0 0 10px; }
.consent__check { display: flex; gap: 8px; align-items: baseline; }
/* what an allowed app can do, in the pitch: a plain list, as the lede */
.consent__can { max-width: 46ch; margin: -6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px;
                font-size: 16px; color: var(--text-2); }

/* ---- Use with AI (#/connect, connect.js) --------------------------------- */
.connect-questions { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.connect-questions li { padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); font-size: 14px; text-wrap: pretty; }
.connect-url { display: flex; gap: 8px; }
.connect-url .input { flex: 1; min-width: 0; font-size: 13px; }
.prose .tabs { align-self: flex-start; }
.connect-steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; }
.connect-steps strong { color: var(--text); font-weight: 600; }
.connect-code { margin: 8px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--subtle); color: var(--text); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.connect-apps { margin-top: var(--gap); }
.connect-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.connect-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.connect-list__name { flex: 1; font-weight: 500; }
.saved-ai { margin-top: var(--gap); font-size: 13px; }
#connected { display: flex; flex-direction: column; gap: 8px; }

/* ---- The PDF profile (report.js): 16:9 slides, drawn into a PDF ------------
   The 2026 brand's look whatever the app's theme (DESIGN.md): a frost page with two rails and a line above and below
   the panel, white cells joined by 1px lines, a crosshair where lines meet (report.js crosshairs), one or two brand
   panels a slide (citron, lilac, mint) with navy text, navy headings at weight 500, Onest. Colours are DESIGN.md's
   own values, not the app's tokens; the data hues are its spectrum's 500s. */
.report { display: none; }
.report.report--render { display: block; position: fixed; left: -10000px; top: 0; pointer-events: none; }  /* drawn off screen */
.report {
  --rp-navy: #1E2742; --rp-electric: #3B5BF2; --rp-racing: #004225; --rp-mint: #8FE3B8; --rp-citron: #E2D86A;
  --rp-lilac: #D9BEF5; --rp-sage: #5E9C86; --rp-sky: #4A90D9;
  --rp-page: #F1F2F4; --rp-panel: #FFFFFF; --rp-fg: #1E2742; --rp-body: #55607A; --rp-muted: #5F6982; --rp-line: #D9DCE3;
  --rp-bench: #B9B2A8;            /* stone 500: the benchmark's thin bars */
  font-family: 'Onest', 'Helvetica Neue', system-ui, sans-serif; font-variant-numeric: normal;   /* a canvas has no tabular figures */
  color: var(--rp-fg); -webkit-font-smoothing: antialiased;
}
.rp-c--cer { --rp-c: #37B2E8; }
.rp-c--emb { --rp-c: #E98667; }
.rp-c--lim { --rp-c: #8DB456; }
.rp-c--orc { --rp-c: #D086CE; }
.rp-c--saf { --rp-c: #B8A636; }
.rp-c--vio { --rp-c: #AB93ED; }
.rp-c--tea { --rp-c: #00BCC5; }
.rp-c--jad { --rp-c: #3FBE90; }
.rp-c--gol { --rp-c: #CF9A35; }
.rp-ink--electric { color: var(--rp-electric) !important; }

.rp-slide {
  position: relative; box-sizing: border-box; width: 1280px; height: 720px; overflow: hidden; background: var(--rp-page);
  break-after: page; page-break-after: always;
}
.rp-slide:last-child { break-after: auto; page-break-after: auto; }
.rp-slide *, .rp-slide *::before, .rp-slide *::after { box-sizing: border-box; }
.rp-slide p, .rp-slide h1, .rp-slide h2, .rp-slide h3 { margin: 0; }
/* the rails, top to bottom, and the lines above and below the panel, edge to edge */
.rp-slide::before, .rp-slide::after { content: ''; position: absolute; z-index: 2; pointer-events: none; }
.rp-slide::before { top: 0; bottom: 0; left: 47px; width: 1186px; border-left: 1px solid var(--rp-line); border-right: 1px solid var(--rp-line); }
.rp-slide::after { left: 0; right: 0; top: 71px; height: 578px; border-top: 1px solid var(--rp-line); border-bottom: 1px solid var(--rp-line); }
.rp-x { position: absolute; z-index: 3; width: 13px; height: 13px; }
.rp-x::before, .rp-x::after { content: ''; position: absolute; background: var(--rp-muted); }
.rp-x::before { left: 6px; top: 0; width: 1px; height: 13px; }
.rp-x::after { left: 0; top: 6px; width: 13px; height: 1px; }

.rp-top, .rp-foot { position: absolute; left: 86px; right: 86px; height: 71px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; font-size: 15px; color: var(--rp-muted); white-space: nowrap; }
.rp-top { top: 0; }
.rp-foot { top: 649px; }
.rp-logo { display: block; flex: none; }

/* the panel: a head and a body of cells, joined by 1px lines (the gaps show the line colour) */
.rp-main { position: absolute; left: 48px; top: 72px; width: 1184px; height: 576px; display: flex; flex-direction: column; gap: 1px;
  background: var(--rp-line); }
.rp-head { flex: none; height: 167px; padding: 25px 38px 21px; background: var(--rp-panel); }
.rp-fit.rp-head__in { display: grid; grid-template-columns: minmax(0, 1fr) 372px; column-gap: 56px; align-items: end; }
.rp-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; line-height: 18px; letter-spacing: .03em; color: var(--rp-muted); }
.rp-eyebrow i { flex: none; width: 7px; height: 7px; background: var(--rp-racing); }
.rp-title { margin-top: 16px !important; font-size: 35px; font-weight: 500; line-height: 41px; letter-spacing: -.025em; color: var(--rp-fg); text-wrap: balance; }
.rp-title--long { font-size: 31px; line-height: 37px; }
.rp-sub { font-size: 16.5px; line-height: 1.55; color: var(--rp-body); text-wrap: pretty; }
.rp-body { flex: 1; min-height: 0; display: grid; gap: 1px; }
.rp-cell { position: relative; min-width: 0; min-height: 0; overflow: hidden; padding: 26px 38px 26px; background: var(--rp-panel); }
.rp-cell--compact { padding: 18px 30px 14px; }
.rp-fit { height: 100%; display: flex; flex-direction: column; }
.rp-panel--citron { background: var(--rp-citron); }
.rp-panel--lilac { background: var(--rp-lilac); }
.rp-panel--mint { background: var(--rp-mint); }
.rp-panel--citron .rp-label, .rp-panel--lilac .rp-label, .rp-panel--mint .rp-label,
.rp-panel--citron .rp-fig__note, .rp-panel--lilac .rp-fig__note, .rp-panel--mint .rp-fig__note,
.rp-panel--citron .rp-unit { color: var(--rp-navy); }

/* the grids */
.rp-g--glance { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; }
.rp-g--population { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.rp-g--households { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 188px minmax(0, 1fr); grid-template-areas: "top top top"; }
.rp-g--size { grid-template-columns: minmax(0, 1.32fr) minmax(0, .5fr) minmax(0, .5fr); grid-template-rows: 1fr 1fr;
  grid-template-areas: "bars big big" "bars s1 s2"; }
.rp-g--income { grid-template-columns: minmax(0, 1.32fr) minmax(0, .5fr) minmax(0, .5fr); grid-template-rows: 2fr 1fr 1fr;
  grid-template-areas: "bars big big" "bars s1 s2" "bars s3 s4"; }
.rp-g--spending { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: .9fr 1.1fr; grid-template-areas: "bars big" "bars s1"; }
.rp-g--list { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; grid-template-areas: "bars big" "bars s1"; }
.rp-g--language { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); grid-template-rows: 1fr 1fr; grid-template-areas: "big bars" "s1 bars"; }
.rp-g--even { grid-template-columns: 1fr 1fr; }
.rp-a--top { grid-area: top; }
.rp-a--bars { grid-area: bars; }
.rp-a--big { grid-area: big; }
.rp-a--s1 { grid-area: s1; }
.rp-a--s2 { grid-area: s2; }
.rp-a--s3 { grid-area: s3; }
.rp-a--s4 { grid-area: s4; }

/* figures: a label at the top, the figure and its notes at the foot */
.rp-label { font-size: 15px; font-weight: 500; line-height: 20px; color: var(--rp-muted); }
.rp-fig { margin-top: auto; padding-top: 10px; }
.rp-cell--compact .rp-fig { margin-top: 0; padding-top: 0; }
.rp-cell--compact .rp-label + .rp-fig { margin-top: 8px; }
.rp-value { font-weight: 500; line-height: 1.04; letter-spacing: -.02em; color: var(--rp-fg); white-space: nowrap; }
.rp-value--xl { font-size: 58px; }
.rp-value--l { font-size: 64px; }
.rp-value--h { font-size: 44px; }
.rp-value--m { font-size: 31px; }
.rp-unit { color: var(--rp-body); letter-spacing: -.02em; }
.rp-fig__note { margin-top: 10px !important; font-size: 15.5px; line-height: 1.4; color: var(--rp-muted); }
.rp-value--h + .rp-fig__note { font-size: 16px; color: var(--rp-body); }
.rp-cell--compact .rp-value--m + .rp-fig__note { margin-top: 6px !important; font-size: 14.5px; line-height: 1.3; }
.rp-stats { display: grid; gap: 20px; }
.rp-stats--two { grid-template-columns: 1fr 1fr; }
.rp-stat .rp-value--h { font-size: 40px; }
.rp-note { margin-top: 14px !important; font-size: 15px; line-height: 1.45; color: var(--rp-muted); }
.rp-note--body { margin-top: auto !important; padding-top: 14px; color: var(--rp-body); }
.rp-notes { margin-top: auto; padding-top: 12px; }

/* a cell's title and key */
.rp-cell__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.rp-cell__head h3 { font-size: 20px; font-weight: 500; line-height: 26px; letter-spacing: -.01em; white-space: nowrap; color: var(--rp-fg); }
.rp-aside { font-size: 15px; color: var(--rp-muted); white-space: nowrap; }
.rp-key, .rp-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--rp-muted); }
.rp-key { flex-wrap: nowrap; white-space: nowrap; }
.rp-key > span, .rp-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.rp-sw { display: inline-block; flex: none; width: 11px; height: 11px; background: var(--rp-c); }
.rp-sw--l { width: 12px; height: 12px; }
.rp-sw--bench { width: 18px; height: 4px; background: var(--rp-bench); }
.rp-sw--hatch { background: none; }
.rp-sw--hatch svg { display: block; width: 11px; height: 11px; }
.rp-legend { margin-top: 18px; color: var(--rp-body); }

/* bar rows: the place, with the benchmark as a thin grey bar under it */
.rp-bars { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: space-between; }
.rp-row { display: grid; grid-template-columns: var(--rp-label) minmax(0, 1fr) var(--rp-num); align-items: center; column-gap: 16px;
  min-height: 24px; font-size: 16px; line-height: 20px; color: var(--rp-fg); }
.rp-row__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-row.is-strong .rp-row__label { font-weight: 600; }
.rp-row__track { display: flex; flex-direction: column; gap: 3px; }
.rp-row__bar { display: block; height: 14px; min-width: 2px; background: var(--rp-c); }
.rp-row__bench { display: block; height: 4px; min-width: 2px; background: var(--rp-bench); }
.rp-row__num { text-align: right; white-space: nowrap; }
.rp-row__num span { margin-left: 4px; color: var(--rp-muted); }

/* columns (residents): census years in their colours, projections hatched */
.rp-cols { flex: 1 1 0; min-height: 180px; display: flex; align-items: stretch; gap: 18px; }
.rp-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.rp-col__value { margin-bottom: 8px; font-size: 17px; font-weight: 500; color: var(--rp-fg); white-space: nowrap; }
.rp-col.is-projected .rp-col__value { color: var(--rp-electric); }
.rp-col__bar { display: block; flex: none; overflow: hidden; }
.rp-col__bar svg { display: block; }
.rp-col__year { margin-top: 12px; font-size: 15px; color: var(--rp-muted); }
.rp-yr--sage { background: var(--rp-sage); }
.rp-yr--electric { background: var(--rp-electric); }
.rp-yr--navy { background: var(--rp-navy); }
.rp-yr--sky { background: var(--rp-sky); }

/* the age table */
.rp-table { width: 100%; border-collapse: collapse; font-size: 17px; color: var(--rp-fg); }
.rp-table th, .rp-table td { padding: 9px 12px; border: 1px solid var(--rp-line); text-align: right; font-weight: 400; }
.rp-table th:first-child { text-align: left; }
.rp-table thead th { background: var(--rp-page); font-weight: 500; }

/* the stacked bars (Households) */
.rp-stack { display: flex; flex-direction: column; gap: 10px; }
.rp-stack__row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 16px; }
.rp-stack__row--alone { grid-template-columns: minmax(0, 1fr); }
.rp-stack__name { font-size: 16px; color: var(--rp-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-stack__name.is-strong { color: var(--rp-fg); font-weight: 600; }
.rp-stack__bar { display: flex; gap: 2px; height: 64px; }
.rp-stack__row:not(.rp-stack__row--alone) .rp-stack__bar { height: 42px; }
.rp-stack__bar--bench { height: 26px !important; opacity: .55; }
.rp-stack__bar i { display: flex; align-items: center; padding-left: 10px; background: var(--rp-c); color: var(--rp-navy);
  font-style: normal; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.rp-stack__bar--bench i { font-size: 0; }

/* What it means */
.rp-meaning__title { display: flex; align-items: center; gap: 12px; margin-bottom: 4px !important; font-size: 21px; font-weight: 500; line-height: 28px; color: var(--rp-fg); }
.rp-meaning__point { margin-top: 16px !important; font-size: 16px; line-height: 1.45; color: var(--rp-body); }
.rp-meaning__point strong { color: var(--rp-fg); font-weight: 600; }

/* cover */
.rp-cover .rp-main { flex-direction: row; }
.rp-cover__text { flex: 1; padding: 27px 38px 30px; }
.rp-cover__name { margin-top: 52px !important; font-size: 112px; font-weight: 500; line-height: .98; letter-spacing: -.035em; color: var(--rp-fg); text-wrap: balance; }
.rp-cover__name--m { font-size: 86px; }
.rp-cover__name--s { font-size: 66px; line-height: 1.02; }
.rp-cover__name--xs { margin-top: 44px !important; font-size: 52px; line-height: 1.05; }
.rp-cover__lede { margin-top: 30px !important; max-width: 580px; font-size: 22px; line-height: 1.45; color: var(--rp-body); }
.rp-meta { margin-top: auto; padding-top: 28px; }
.rp-meta__row { display: grid; grid-template-columns: 166px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 11px 0 12px; border-top: 1px solid var(--rp-line);
  font-size: 17px; color: var(--rp-fg); }
.rp-meta__row span:first-child { font-size: 16px; color: var(--rp-muted); }
.rp-cover__art { flex: none; width: 480px; padding: 0; background: var(--rp-lilac); }
.rp-cover__pixels { position: absolute; left: 30px; top: 34px; }      /* the map: 420 × 440 (data.js coverMap) */
.rp-cover__pixels svg { display: block; }
.rp-cover__caption { position: absolute; left: 38px; right: 38px; bottom: 34px; font-size: 16px; line-height: 1.35; color: var(--rp-navy); }
.rp-cover__caption--scaled { right: 210px; }   /* room for the scale */
.rp-cover__scale { position: absolute; right: 38px; bottom: 34px; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--rp-navy); }
.rp-cover__scale i { display: block; height: 7px; border: 1.5px solid var(--rp-navy); border-top: 0; }

/* Explore's button */
@media (max-width: 760px) {
  .ex-export { width: 40px; padding: 0; }
  .ex-export span { display: none; }
  .cmp-sticky__actions .ex-export { width: 32px; padding: 0; }
  .ex-to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---- Sites (under Saved): your own locations ---------------------------- */
.saved-tabs { align-self: flex-start; }
.sites-start { display: flex; flex-wrap: wrap; gap: 8px; }
.sites-new { gap: 16px; max-width: 720px; }
.sites-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; align-items: end; }
.sites-form .field select, .sites-mapping select { height: 40px; border-radius: var(--radius-md); }
.sites-form__go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sites-page { display: flex; flex-direction: column; gap: var(--gap); }
.sites-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.sites-head__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sites-head__title h1 { font-size: 26px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sites-head__title .caption { font-size: 13.5px; }
.sites-head__actions { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.sites-settings > summary { list-style: none; cursor: pointer; }
.sites-settings > summary::-webkit-details-marker { display: none; }
.sites-settings[open] > summary { background: var(--line); }
.sites-settings__form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(360px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.sites-import, .sites-add { gap: 14px; }
.sites-import__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sites-file { cursor: pointer; }
.sites-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.sites-import__check { display: flex; flex-direction: column; gap: 12px; }
.sites-import__check:empty { display: none; }
.sites-import__file { font-size: 16px; overflow-wrap: anywhere; }
.sites-mapping { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 10px 12px; }
.sites-import__result { display: flex; flex-direction: column; gap: 2px; }
.sites-problems { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.sites-replace { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.sites-map { display: flex; flex-direction: column; }
.sites-map .map-card__canvas { flex: 1; height: auto; min-height: 420px; }   /* as tall as the cards beside it */
.sites-map .map-card__foot { padding: 10px 14px; }
#sites-map-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.site-key { display: inline-flex; align-items: center; gap: 6px; }
.site-key .site-mark { width: 14px; height: 14px; border-width: 1.5px; }
.sites-side { display: flex; flex-direction: column; gap: var(--gap); }
.sites-contrast { gap: 14px; }
.sites-side .sites-contrast:last-child:not([hidden]) { flex: 1; }
.sites-findings { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sites-findings li { padding-left: 14px; border-left: 2px solid var(--area-1); font-size: 15px; text-wrap: pretty; }
.sites-findings--under li { border-left-color: var(--text-2); }     /* the bottom third: hollow markers, as on the map */
.sites-contrast__empty { font-size: 14px; color: var(--text-2); text-wrap: pretty; }
.sites-contrast__go { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sites-contrast .card__foot { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); text-wrap: pretty; }
.sites-list { gap: 12px; }
.sites-table { min-width: 760px; }
.sites-table td { vertical-align: middle; }
.sites-table tbody th a { font-weight: 500; }
.sites-table__figure { width: 120px; height: 36px; font-family: var(--font-sans); }
.sites-table__actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.sites-table__actions .btn { height: 32px; font-size: 13px; }
.sites-table__actions .slot__remove { margin-left: 0; display: inline-flex; align-items: center; justify-content: center; }
.sites-table__actions .slot__remove:hover { color: var(--text); background: var(--line); }
.site-third { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13.5px; }
.site-third__dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--axis); }
.site-third--best .site-third__dot { background: var(--area-1); border-color: var(--area-1); }
.site-third--middle .site-third__dot { background: var(--past); border-color: var(--past); }
.site-third--rest .site-third__dot { background: var(--card); border-color: var(--text-2); }
.site-third--none { color: var(--muted); }
/* map markers: best filled blue, middle grey, bottom hollow, unranked dotted; to check: a dashed orange ring */
.site-mark { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%;
  font: 600 12px var(--font-sans); border: 2px solid var(--card); background: var(--past); color: var(--text); cursor: pointer; }
.site-mark--best { background: var(--area-1); color: var(--on-accent); }
.site-mark--rest { background: var(--card); color: var(--text); border-color: var(--text-2); }
.site-mark--none { background: var(--card); color: var(--muted); border: 2px dotted var(--axis); }
.site-mark--check { outline: 2px dashed var(--area-2); outline-offset: 2px; cursor: grab; }
.site-mark:hover { filter: brightness(1.08); }
@media (max-width: 760px) {
  .sites-head__title h1 { font-size: 22px; }
  .sites-map .map-card__canvas { min-height: 300px; }
  .sites-settings__form { left: 0; right: auto; }
  /* the sites' table as one card per site */
  .sites-table { min-width: 0; }
  .sites-table thead { display: none; }
  .sites-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0;
    border-bottom: 1px solid var(--line); }
  .sites-table th, .sites-table td { display: block; padding: 0; border: 0; text-align: left; }
  .sites-table td:last-child { text-align: right; }
  .sites-table tbody th { grid-column: 1 / -1; }
  .sites-table td.num::before { content: attr(data-label) ' '; font: 400 13px var(--font-sans); color: var(--muted); }
  .sites-table td:nth-child(5) { grid-column: 1; }
  .sites-table__figure { width: 110px; }
}

/* ---- Usage (usage.js): a modal with your plan and its use ---- */
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 20px 22px 18px; color: var(--text);
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.modal::backdrop { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal__head h2 { font-size: 20px; letter-spacing: -0.01em; }
.modal__close { margin: -6px -8px 0 0; }
.usage__plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 13px; }
.usage__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.usage__row { display: flex; flex-direction: column; gap: 6px; }
.usage__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.usage__label { font-weight: 500; }
.usage__value { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.usage__row.is-full .usage__value { color: var(--text); font-weight: 600; }
.usage__meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.usage__meter span { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--area-1); }
.usage__row.is-full .usage__meter span { background: var(--area-2); }      /* "used up" says it in words too */
.usage__row .caption { font-size: 12.5px; }
/* the plan and what's used of it, this month and today */
.modal.usage { width: min(640px, calc(100vw - 32px)); }
.usage__body { display: flex; flex-direction: column; gap: 22px; }
.usage__note { margin: 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--area-1-tint); font-size: 13.5px; }
.usage__section { display: flex; flex-direction: column; gap: 12px; }
.usage__section + .usage__section { padding-top: 18px; border-top: 1px solid var(--line); }
.usage__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 15px; font-weight: 400; }
.usage__head .caption { font-size: 12.5px; font-weight: 400; }
.usage__list--tight { gap: 12px; }

/* ---- Billing (billing.js): your plan, the plans as cards (as the website has them), the extras ---------------- */
.billing { max-width: 1120px; display: flex; flex-direction: column; gap: var(--gap); }
.billing__note { margin: 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--area-1-tint); font-size: 13.5px; }
.billing__now, .billing__extras { padding: 22px 24px; gap: 8px; }
.billing__now h2 { font-size: 24px; letter-spacing: -0.01em; }
.billing__extras h2 { font-size: 17px; }
.billing__line { margin: 0; color: var(--text-2); }
.billing__now .warn, .billing__now .caption { margin: 0; }
.billing__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; }
.billing .btn--small { height: 32px; padding: 0 12px; font-size: 13px; }
.billing__plans-section { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.billing__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.billing__head h2 { font-size: 17px; }
.billing__toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--subtle); }
.billing__toggle-btn { min-height: 32px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font-size: 13px; }
.billing__toggle-btn[aria-pressed="true"] { background: var(--card); color: var(--text); font-weight: 500; }
/* the featured plan's band stands above the row, so the three cards' names and prices line up */
.billing__plans { --band: 38px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
  padding-top: var(--band); }
.billing__plans .is-featured { margin-top: calc(-1 * var(--band)); }
.billing__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.billing__more .plan-card__about { min-height: 0; }
.billing__more .plan-card__amount { font-size: 32px; }
.plan-card { padding: 0; gap: 0; overflow: hidden; }
.plan-card.is-featured { border-color: var(--kpi-accent); }
.plan-card.is-mine { border-color: var(--accent); }
.plan-card--org { background: var(--subtle); }
/* the featured plan's band: Racing green with white text in both themes, as the accent headline tile */
.plan-card__band { display: flex; align-items: center; height: var(--band, 38px); margin: 0; padding: 0 24px;
  background: var(--kpi-accent); color: var(--kpi-accent-text); }
.plan-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 24px; }
.plan-card__no { font-size: 12px; color: var(--muted); }
.plan-card h3 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -0.01em; }
.plan-card__about { margin: 0; min-height: 4.5em; color: var(--text-2); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.plan-card__price { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }
.plan-card__amount { font-size: 44px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; color: var(--text); }
.plan-card__go { margin: 14px 0 10px; }
.plan-card__go:empty { display: none; }
.plan-card__go .btn--quiet:disabled { opacity: 1; }
.plan-card__list { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex;
  flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.4; }
.plan-card__list li { position: relative; padding-left: 26px; }
.plan-card__list li::before { content: ''; position: absolute; left: 3px; top: .3em; width: 10px; height: 5px;
  border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg); }
.billing__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.billing__list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.billing__list li:first-child { border-top: 1px solid var(--line); }
.billing__top { align-self: stretch; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.billing__label { font-weight: 500; }
@media (max-width: 1000px) {
  .billing__plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; padding-top: 0; }
  .billing__more { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .billing__plans .is-featured { margin-top: 0; }
  .plan-card__about { min-height: 0; }
}
@media (max-width: 760px) {
  .billing__now, .billing__extras { padding: 18px 16px; }
  .plan-card__band { padding: 0 16px; }
  .plan-card__body { padding: 18px 16px 20px; }
  .plan-card__amount { font-size: 38px; }
}
/* ---- Settings (settings.js): details, email, password, passkeys --------------------------------------------- */
.settings { max-width: 680px; display: flex; flex-direction: column; gap: var(--gap); }
.settings__card { padding: 22px 24px; gap: 12px; }
.settings__card h2 { font-size: 17px; }
.settings__card form { display: flex; flex-direction: column; gap: 14px; }
.settings__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.settings__go .status:empty { display: none; }
.settings__label { font-size: 12.5px; color: var(--muted); }
.settings__fixed { margin: 0; min-height: 40px; display: flex; align-items: center; font-size: 14px; overflow-wrap: anywhere; }
.settings__keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.settings__keys li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.settings__keys li:first-child { border-top: 1px solid var(--line); }
.settings__key { font-weight: 500; }
.settings__keys .caption { margin-right: auto; }
@media (max-width: 760px) {
  .settings__card { padding: 18px 16px; }
  .settings__pair { grid-template-columns: 1fr; }
}
/* ---- A topic in detail (explore.js openDetail): an Overview card's expand button opens its tab's cards here ---- */
.modal.ex-detail { width: calc(100vw - 48px); overflow-y: auto; padding: 22px 24px 24px; background: var(--subtle); }
.modal.ex-detail::backdrop { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ex-detail .modal__head { position: sticky; top: -22px; z-index: 2; margin: -22px -24px 16px; padding: 18px 24px 14px;
  background: var(--subtle); border-bottom: 1px solid var(--line); }
.ex-detail .modal__close { width: 38px; height: 38px; margin: 0; border: 1px solid var(--line-strong); color: var(--text); }
.ex-detail .modal__close:hover { background: var(--line); }
.ex-detail .modal__close svg { width: 18px; height: 18px; }
.ex-detail__body { display: flex; flex-direction: column; gap: var(--gap); }
.ex-detail__foot { display: flex; justify-content: flex-end; }
/* ---- Reports (reports.js): the modal while Claude writes a PDF's words -- */
.report-modal__lede { color: var(--text-2); line-height: 1.5; text-wrap: pretty; }
.report-modal__progress { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; font-weight: 500; }
.report-modal__time { font-size: 13px; color: var(--muted); }
.report-modal__bar { height: 6px; margin-top: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.report-modal__bar span { display: block; width: 30%; height: 100%; border-radius: inherit; background: var(--area-1);
  animation: report-writing 1.6s ease-in-out infinite; }
@keyframes report-writing { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.report-modal__note { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.report-slot .pill.is-writing { color: var(--accent-text); }
.report-slot .pill.is-reviewed { color: var(--accent-text); background: var(--area-1-tint); }
.report-slot .saved-slot__actions { flex-wrap: wrap; }
.toast a { font-weight: 600; }
.empty-state__go { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) {
  .modal { width: 100vw; max-width: none; max-height: 85vh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-width: 1px 0 0; padding: 18px 16px 28px; }          /* a bottom sheet, as the Compare menu is */
  .modal.ex-detail { width: 100vw; max-height: 92vh; padding: 18px 16px 28px; }
  .ex-detail .modal__head { top: -18px; margin: -18px -16px 14px; padding: 14px 16px 12px; }
}

/* ---- Place lists (js/lists.js): places side by side in a table, from Claude Design's "Area list" ---- */
.cmp-line .cmp-more { margin-left: 4px; font-weight: 500; color: var(--accent-text); text-decoration: none; white-space: nowrap; }
.cmp-line .cmp-more span { display: inline-block; transition: transform .15s; }
.cmp-line .cmp-more:hover { text-decoration: underline; }
.cmp-line .cmp-more:hover span { transform: translateX(2px); }
.plist { display: flex; flex-direction: column; gap: var(--gap); }
.plist-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.plist-head__main { min-width: 0; }
.plist-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 6px; }
.plist-title h1 { font-size: 28px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.plist-title .link-btn { font-size: 13px; font-weight: 400; color: var(--text-2); text-decoration: none; }
.plist-title .link-btn:hover { color: var(--accent-text); text-decoration: underline; }
.plist-name-input { width: min(420px, 100%); font-size: 20px; }
.plist-facts { margin-top: 6px; font-size: 13px; }
.plist-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plist-actions .btn svg { width: 16px; height: 16px; }
.plist-stand { display: grid; grid-template-columns: max-content repeat(3, minmax(0, 1fr)); gap: 8px 28px; align-items: start;
  padding: 16px 20px; font-size: 13.5px; line-height: 1.5; }
.plist-stand p { margin: 0; color: var(--text-2); text-wrap: pretty; }
.plist-stand strong { color: var(--text); font-weight: 600; }
.plist-stand__label { padding-top: 2px; }
.plist-body { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); gap: var(--gap); align-items: start; }
.plist-card { overflow: hidden; }
.plist-wrap { overflow-x: auto; }
.plist-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.plist-table th, .plist-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.plist-table thead th { vertical-align: bottom; padding-top: 14px; font-weight: 500; }
.plist-table .plist-name { text-align: left; font-weight: 500; }
.plist-table thead .plist-name { padding-left: 16px; }
.plist-table tbody .plist-name { padding-left: 16px; }
.plist-th { display: block; color: var(--text); font-size: 12px; font-weight: 500; white-space: normal; max-width: 92px; margin-left: auto; line-height: 1.25; }
.plist-name .plist-th { margin-left: 0; }
.plist-unit { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 400; white-space: normal; }
.plist-sort { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: right; cursor: pointer; }
.plist-sort:hover .plist-th { color: var(--accent-text); }
.plist-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.plist-table .is-sorted { background: var(--area-1-tint); }
.plist-table thead .is-sorted .plist-th { color: var(--accent-text); font-weight: 600; }
.plist-strip { position: relative; display: block; height: 12px; margin-top: 8px; min-width: 64px; }
.plist-strip::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.plist-dot { position: absolute; top: 50%; left: var(--x); width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--area-1); opacity: .55; }
.plist-dot.is-selected { width: 8px; height: 8px; margin: -4px 0 0 -4px; opacity: 1; box-shadow: 0 0 0 2px var(--card); }
.plist-strip__bench { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--text); }
.plist-strip.has-tip .plist-dot:not(.is-tip) { opacity: .25; }
.plist-bench th, .plist-bench td { background: var(--subtle); color: var(--text-2); font-weight: 500; }
.plist-bench .is-sorted { background: var(--area-1-tint); }
.plist-rank { display: inline-block; min-width: 26px; color: var(--muted); font-weight: 400; }
.plist-name a { color: var(--text); text-decoration: none; }
.plist-name a:hover { color: var(--accent-text); text-decoration: underline; }
.plist-table tbody tr[data-key] { cursor: pointer; }
.plist-table tbody tr[data-key]:hover th, .plist-table tbody tr[data-key]:hover td:not(.is-sorted) { background: var(--hover); }
.plist-table tr.is-selected th, .plist-table tr.is-selected td { background: var(--area-1-tint); }
.plist-table td b { font-weight: 600; color: var(--text); }
.plist-bar { display: inline-block; width: 36px; height: 6px; margin-right: 8px; vertical-align: middle; }
.plist-bar__fill { display: block; width: var(--w); height: 100%; border-radius: 0 3px 3px 0; background: var(--bar-1); margin-left: auto; }
.plist-x { width: 1%; padding: 0 8px 0 0; }
.plist-remove { width: 26px; height: 26px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: 16px; line-height: 1;
  opacity: 0; }
.plist-table tr:hover .plist-remove, .plist-remove:focus-visible { opacity: 1; }
.plist-remove:hover { background: var(--line); color: var(--text); }
.plist-empty { text-align: left !important; padding: 24px 16px !important; color: var(--text-2); }
.plist-map-card { position: sticky; top: 16px; overflow: hidden; }
.plist-map-card__head { padding: 14px 16px 10px; }
.plist-map-card__head h2 { font-size: 14px; font-weight: 500; }
.plist-map-card__head h2 b { font-weight: 600; }
.plist-map-card__head .caption { margin-top: 2px; font-size: 12px; }
.plist-map { height: 420px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plist-key { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; font-size: 12px; color: var(--muted); }
.plist-key__ramp { display: flex; flex: 0 1 140px; height: 8px; border-radius: 4px; overflow: hidden; }
.plist-key__ramp i { flex: 1; }
.rank-mark { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border: 2px solid var(--card); border-radius: 999px;
  background: var(--past); color: var(--on-accent); font: 600 11px var(--font-sans); cursor: pointer; }    /* no figure: grey */
.rank-band--1, .rank-mark--1 { background: var(--map-1); }
.rank-band--2, .rank-mark--2 { background: var(--map-2); }
.rank-band--3, .rank-mark--3 { background: var(--map-3); }
.rank-band--4, .rank-mark--4 { background: var(--map-4); }
.rank-band--5, .rank-mark--5 { background: var(--map-5); }
/* the number in Ink on the ramp's light end and Stone on its dark end: low is light in light mode, dark in dark mode */
.rank-mark--4, .rank-mark--5, [data-theme="dark"] .rank-mark--1, [data-theme="dark"] .rank-mark--2,
[data-theme="dark"] .rank-mark--3 { color: var(--ink-100); }
[data-theme="dark"] .rank-mark--4, [data-theme="dark"] .rank-mark--5 { color: var(--ink-900); }
.rank-mark.is-selected { box-shadow: 0 0 0 2px var(--text); z-index: 2; }
.rank-mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.plist-source { font-size: 12px; }
.modal.plist-add-modal { width: min(560px, calc(100vw - 32px)); overflow: visible; }
.plist-add-modal .modal__head h2, .plist-fig-modal .modal__head h2 { font-size: 20px; }
.plist-add-search { min-height: 44px; }
.plist-added { min-height: 1.4em; margin-top: 10px; }
.modal.plist-fig-modal { width: min(720px, calc(100vw - 32px)); display: flex; flex-direction: column; overflow: hidden; }
.modal.plist-fig-modal[open] { display: flex; }
.plist-fig-search { margin-bottom: 12px; }
.plist-fig-list { flex: 1 1 auto; min-height: 0; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.plist-fig-list fieldset { margin: 0 0 14px; padding: 0; border: 0; }
.plist-fig-list legend { padding: 0 0 6px; }
.plist-fig { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; font-size: 13.5px; }
.plist-fig[hidden] { display: none; }
.plist-fig input:disabled + span { color: var(--muted); }
.plist-fig-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.plist-fig-count { margin-right: auto; }
@media (max-width: 1560px) {          /* the table needs about 1,000px: the map goes under it until there's room beside */
  .plist-body { grid-template-columns: minmax(0, 1fr); }
  .plist-map-card { position: static; }
  .plist-map { height: 380px; }
}
@media (max-width: 1100px) {
  .plist-stand { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .plist-title h1 { font-size: 22px; }
  .plist-actions .btn { flex: 1 1 auto; }
  .plist-table tbody .plist-name, .plist-table thead .plist-name { position: sticky; left: 0; z-index: 1; background: var(--card); padding-left: 12px; }
  .plist-bench .plist-name { background: var(--subtle) !important; }
  .plist-remove { opacity: 1; }
  .plist-map { height: 320px; }
}

/* ---- Ask (js/ask.js; Claude Design's "Ask · home" and "Ask · an answer") ---- */
/* the sidebar: Recent questions under the nav (the phone menu has them too) */
.recent { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; min-height: 0; overflow-y: auto; }
.recent[hidden], .menu__recent[hidden] { display: none; }
.recent__head { padding: 0 10px 6px; margin: 0; }
.recent__list { display: flex; flex-direction: column; gap: 2px; }
.recent__item { font-size: 13.5px; color: var(--text-2); min-width: 0; }
.recent__item .nav__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent__item[aria-current="page"] { background: var(--line); color: var(--text); font-weight: 500; }
[data-sidebar="collapsed"] .recent { display: none; }
.menu__recent { display: flex; flex-direction: column; margin-top: 18px; }
.menu__recent .recent__head { padding: 0 10px 6px; }

/* the question box: on the home page, and the follow-up under an answer */
.ask-home { display: flex; flex-direction: column; gap: 44px; padding-bottom: 48px; }
.ask-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0 4px; text-align: center; }
.ask-hero__title { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.ask-box { width: min(820px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 16px 14px 12px 18px; text-align: left;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.ask-box:focus-within, .ask-follow:focus-within { border-color: var(--accent); }
.ask-box.is-locked { opacity: .6; }
.ask-box__input, .ask-follow__input { width: 100%; resize: none; border: 0; padding: 0; background: none; color: var(--text);
  font: inherit; font-size: 16px; line-height: 1.5; outline: none; }
.ask-box__input::placeholder, .ask-follow__input::placeholder { color: var(--muted); }
.ask-box__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ask-modes { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; }
.ask-mode { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px dashed var(--line-strong);
  border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.ask-mode:hover { color: var(--text); border-color: var(--axis); }
.ask-mode[aria-pressed="true"] { border: 1px solid transparent; background: var(--area-1-tint); color: var(--accent-text); cursor: default; }
.ask-send { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 999px;
  background: var(--text); color: var(--card); cursor: pointer; }
.ask-send:disabled { opacity: .35; cursor: default; }
.ask-vs { display: flex; align-items: center; gap: 2px; font-size: 13.5px; color: var(--text-2); }
.ask-vs__main { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--accent-text); font: inherit; font-weight: 500; cursor: pointer; }
.ask-vs__main:hover { background: var(--line); }
.ask-vs .cmp-pop { left: auto; right: 0; text-align: left; }
.ask-hero__note { max-width: 720px; margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.ask-hero__map { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.ask-locked { width: min(820px, 100%); }
.ask-locked[hidden] { display: none; }
.ask-upgrade { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; text-align: left; }
.ask-upgrade h2 { margin: 0 0 4px; font-size: 17px; font-weight: 500; }
.ask-upgrade p { margin: 0; font-size: 14px; color: var(--text-2); }

/* the home page's examples and setting up */
.ask-section { display: flex; flex-direction: column; gap: 18px; }
.ask-rule { display: flex; align-items: center; gap: 16px; margin: 0; font-size: inherit; }
.ask-rule::before, .ask-rule::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ask-examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ask-example { gap: 0; padding: 0; overflow: hidden; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ask-example:hover { border-color: var(--line-strong); color: var(--text); }
.ask-example__art { display: flex; align-items: center; justify-content: center; height: 150px; padding: 16px 18px 10px;
  background: var(--subtle); border-bottom: 1px solid var(--line); }
.ask-example__words { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 18px; }
.ask-example__title { font-size: 16px; font-weight: 500; line-height: 1.3; }
.ask-example__sub { font-size: 13.5px; color: var(--text-2); }
.ask-mini { width: 100%; display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr) auto; gap: 9px 10px; align-items: center; font-size: 12.5px; }
.ask-mini__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.ask-mini__val { font-weight: 600; }
.ask-spark, .ask-hexes { width: 100%; height: 100%; }
.ask-spark text { font-family: var(--font-sans); font-size: 11.5px; fill: var(--text-2); }
.ask-spark .ask-spark__year { fill: var(--muted); }
.ask-spark .ask-spark__ahead { color: var(--accent-text); }
.ask-spark__axis { stroke: var(--axis); }
.ask-spark__line { fill: none; stroke: var(--area-1); stroke-width: 2; }
.ask-spark__line--ahead { stroke-dasharray: 4 4; }
.ask-spark__dot { fill: var(--area-1); }
.ask-spark__dot.is-projected { fill: var(--card); stroke: var(--area-1); stroke-width: 1.5; }
.ask-hex { stroke: var(--bg); stroke-width: 3; }
.ask-hex--1 { fill: var(--map-1); } .ask-hex--2 { fill: var(--map-2); } .ask-hex--3 { fill: var(--map-3); }
.ask-hex--4 { fill: var(--map-4); } .ask-hex--5 { fill: var(--map-5); }
.ask-hex--picked { fill: none; stroke: var(--text); stroke-width: 2.5; }
.ask-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.ask-check { gap: 0; }
.ask-check__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ask-check h3 { margin: 0; font-size: 17px; font-weight: 500; }
.ask-check__meter { height: 4px; margin: 14px 0 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.ask-check__meter span { display: block; width: var(--w, 0%); height: 100%; background: var(--accent); }
.ask-check__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.ask-check__item { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 15px; }
.ask-check__item a { color: var(--text); }
.ask-check__item a:hover { color: var(--link-hover); }
.ask-check__mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px dashed var(--line-strong); border-radius: 999px; }
.ask-check__item.is-done .ask-check__mark { border: 0; background: var(--accent); color: var(--on-accent); }
.ask-check__item.is-done > span:last-child { color: var(--muted); text-decoration: line-through; }
.ask-connector { gap: 10px; }
.ask-connector h3 { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.3; }
.ask-connector p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.ask-connector__go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* a question and its answers, with the checks and measures beside them */
.ask-conv { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; padding-bottom: 24px; }
.ask-thread { display: flex; flex-direction: column; gap: 20px; justify-self: center; width: 100%; min-width: 0; max-width: 820px; }   /* centred, as wide as the home page's box */
.ask-turns { display: flex; flex-direction: column; gap: 40px; }
.ask-turn { display: flex; flex-direction: column; gap: 16px; min-width: 0; scroll-margin-top: 16px; }
.ask-q { display: flex; justify-content: flex-end; margin: 0; }
.ask-q span { max-width: 80%; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); font-size: 16px; }
.ask-how { padding: 10px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); font-size: 14px; }
.ask-how summary { display: flex; align-items: center; gap: 8px; font-weight: 500; list-style: none; cursor: pointer; }
.ask-how summary::-webkit-details-marker { display: none; }
.ask-how summary svg { color: var(--accent-text); }
.ask-how__count { font-weight: 400; color: var(--muted); }
.ask-how__steps { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 2px; padding-left: 22px; color: var(--text-2); }
.ask-how__steps code { white-space: nowrap; color: var(--accent-text); }
.ask-how__pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); animation: ask-pulse 1.2s ease-in-out infinite; }
@keyframes ask-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ask-how__pulse { animation: none; } }
.ask-answer { max-width: 72ch; margin: 0; font-size: 17px; line-height: 1.6; }
.ask-answer--waiting { font-size: 15px; color: var(--muted); }
.ask-failed { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.ask-failed p { flex: 1 1 280px; margin: 0; }
.ask-block { min-width: 0; }
.ask-block__title { margin: 0; font-size: 15px; font-weight: 500; }
.ask-table-card { min-width: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ask-table-card .ask-block__title { padding: 16px 18px 4px; }
.ask-table-wrap { overflow-x: auto; }
.ask-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ask-table th, .ask-table td { padding: 12px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.ask-table thead th { border-top: 0; padding-bottom: 10px; }
.ask-table tbody th { font-weight: 500; white-space: nowrap; }
.ask-table td.num { white-space: nowrap; }
.ask-table tr.is-start, .ask-table tr.is-bench { background: var(--area-1-tint); }
.ask-table__start { font-weight: 500; white-space: nowrap; color: var(--accent-text); }
.ask-table__words { min-width: 150px; font-size: 13px; color: var(--text-2); }
.ask-table__words > span { display: block; }
.ask-table__words > span + span { margin-top: 4px; }
.ask-table__say { font-weight: 500; color: var(--text); }
.ask-table th:first-child, .ask-table td:first-child { padding-left: 16px; }
.ask-match { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ask-match__bar { position: relative; width: 64px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ask-match__bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--bar-1); }
.ask-match .num { font-weight: 600; }
.ask-bars { gap: 12px; }
.ask-line { display: inline-block; width: 2px; height: 12px; margin-right: 6px; vertical-align: -2px; background: var(--baseline); }
.ask-trend svg { display: block; width: 100%; height: auto; }
.ask-trend__grid { stroke: var(--line); }
.ask-trend__tick { font-family: var(--font-sans); font-size: 11.5px; fill: var(--muted); }
.ask-trend__line { fill: none; stroke: var(--area-1); stroke-width: 2.5; pointer-events: none; }
.ask-trend__line--ahead { stroke-dasharray: 6 5; }
.ask-trend__bench { fill: none; stroke: var(--baseline); stroke-width: 2; pointer-events: none; }
.ask-trend__dot { fill: var(--area-1); pointer-events: none; }
.ask-trend__dot.is-projected { fill: var(--card); stroke: var(--area-1); stroke-width: 2; }
.ask-trend__value { font-family: var(--font-sans); font-size: 12px; font-weight: 500; fill: var(--text); pointer-events: none; }
.ask-trend__value.is-projected { color: var(--accent-text); }
.ask-trend__hit { fill: transparent; }
.ask-trend__hit:hover { fill: var(--line); }
.ask-trend__key { display: flex; flex-wrap: wrap; gap: 16px; margin: 8px 0 0; }
.ask-key { display: inline-block; width: 16px; margin-right: 6px; border-top: 2.5px solid var(--area-1); vertical-align: middle; }
.ask-key--ahead { border-top-style: dashed; }
.ask-foot { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.ask-used { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ask-used__label { margin-right: 2px; font-size: 13px; color: var(--muted); }
.ask-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; text-align: left; }
.ask-chip--place, .ask-chip--basis { border-color: transparent; background: var(--area-1-tint); color: var(--accent-text); }
button.ask-chip { cursor: pointer; }
button.ask-chip:hover { border-color: var(--axis); }
.ask-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-actions .btn { max-width: 100%; height: auto; min-height: 40px; padding-block: 8px; white-space: normal; text-align: left; }
.ask-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ask-next:empty { display: none; }
.ask-next__label { margin-right: 4px; }
.ask-follow { position: sticky; bottom: 16px; z-index: 2; display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 18px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.ask-follow__input { max-height: 160px; padding: 8px 0; }
.ask-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: var(--gap); }
.ask-side__card { gap: 12px; }
.ask-side__card h2 { margin: 0; }
.ask-checks, .ask-measures { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; font-size: 14px; list-style: none; }
.ask-checks__item { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; line-height: 1.45; color: var(--text-2); }
.ask-checks__mark { padding-top: 2px; color: var(--accent-text); }
.ask-checks__item:not(.is-ok) .ask-checks__mark::before { content: ''; display: block; width: 8px; height: 8px; margin: 5px 0 0 3px;
  border-radius: 999px; background: var(--area-2); }
.ask-measures { gap: 8px; }
.ask-measure { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--subtle); }
.ask-measure code { padding: 0; background: none; color: var(--accent-text); overflow-wrap: anywhere; }
.ask-measure span { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 1200px) {
  .ask-conv { grid-template-columns: minmax(0, 1fr); }
  .ask-side { position: static; justify-self: center; width: 100%; max-width: 820px; }
  .ask-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ask-home { gap: 32px; }
  .ask-hero { padding-top: 12px; }
  .ask-examples, .ask-setup { grid-template-columns: minmax(0, 1fr); }
  .ask-modes { width: 100%; }
  .ask-box__vs { margin-right: auto; }
  .ask-upgrade { flex-direction: column; align-items: flex-start; }
  .ask-q span { max-width: 92%; }
  .ask-answer { font-size: 16px; }
  .ask-top__label { display: none; }
  .ask-follow { bottom: 10px; }
}

/* ---- Data (js/catalog.js; Claude Design's "Data · browse the 649 measures") ---- */
:root { --modelled-tint: var(--highlight); }   /* the Modelled chip */
.dat { display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; }
.dat-head { display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.dat-head__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 28px; font-weight: 500; }
.dat-head__title svg { color: var(--accent-text); }
.dat-head__intro { margin: 0; font-size: 15px; color: var(--text-2); }
.dat-tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 14px; }
.dat-tabs a { padding: 8px 0 12px; border-bottom: 2px solid transparent; color: var(--text-2); font-size: 14.5px; }
.dat-tabs a:hover { color: var(--text); }
.dat-tabs a[aria-current="page"] { border-color: var(--text); color: var(--text); font-weight: 500; }
/* Use the API (30 November 2026): the base URL, signing in, one call in four languages, Run the call */
.dat-api { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; }
.dat-api__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dat-api__head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 18px; font-weight: 500; }
.dat-api__head h2 svg { color: var(--accent-text); }
.dat-api__head .caption { margin: 0; }
.dat-api__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; margin: 0; align-items: baseline; }
.dat-api__facts dt { color: var(--muted); font-size: 13px; }
.dat-api__facts dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; min-width: 0; font-size: 14px; }
.dat-api__facts code { overflow-wrap: anywhere; }
.dat-api__facts .caption { flex-basis: 100%; }
.dat-api__pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.dat-api__pick label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.dat-api__pick select { min-width: 220px; max-width: 320px; height: 36px; }
.dat-api__pick .caption { padding-bottom: 9px; }
.dat-api__langs { align-self: flex-start; }
.dat-api__code, .dat-api__out pre { margin: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--subtle); font-family: var(--font-mono); font-size: 13px; line-height: 1.55;
  color: var(--text); white-space: pre; }
.dat-api__code code, .dat-api__out code { padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; }
.dat-api__out { display: flex; flex-direction: column; gap: 6px; }
.dat-api__out[hidden] { display: none; }
.dat-api__out .caption { margin: 0; }
.dat-api__out pre { max-height: 280px; overflow-y: auto; }
.dat-api__go { display: flex; gap: 10px; flex-wrap: wrap; }
.dat-api__key { display: flex; gap: 8px; flex: 1 1 100%; max-width: 560px; }
.dat-api__key .input { flex: 1; min-width: 0; height: 34px; }
.dat-api__new { flex: 1 1 100%; }
.dat-api__new:empty { display: none; }

/* API keys (js/apikeys.js): Settings' card, and the new key shown once (Data's Use the API too) */
.keys { display: flex; flex-direction: column; gap: 12px; }
.keys h2 { margin: 0; }
.keys .caption { margin: 0; }
.keys__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.keys__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.keys__name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.keys__name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keys__make, .settings__card form.keys__make { display: flex; flex-direction: row; gap: 8px; }
.keys__make .btn { flex: none; }
.keys__make .input { flex: 1; min-width: 0; }
.keys__new { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line);
  border-left: 3px solid var(--area-1); border-radius: var(--radius-md); background: var(--area-1-tint); }
.keys__new p { margin: 0; font-size: 13.5px; }
.keys__new-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.keys__new-row code { overflow-wrap: anywhere; font-size: 13px; }
@media (max-width: 760px) {
  .keys__row { grid-template-columns: minmax(0, 1fr) auto; }
  .keys__row .caption { grid-column: 1 / -1; grid-row: 2; }
  .keys__make, .settings__card form.keys__make, .dat-api__key { flex-direction: column; }
  .keys__make .input, .dat-api__key .input { flex: none; height: 40px; }
}
@media (max-width: 760px) {
  .dat-api { padding: 18px 16px; }
  .dat-api__facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dat-api__facts dd { margin-bottom: 8px; }
  .dat-api__pick select { min-width: 0; width: 100%; max-width: none; }
  .dat-api__pick label { flex: 1 1 100%; }
}
.dat-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.dat-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dat-search { display: flex; flex-wrap: wrap; gap: 10px; }
.dat-search__box { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--muted); }
.dat-search__box:focus-within { border-color: var(--accent); }
.dat-search__box input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.dat-select { flex: 0 0 auto; width: auto; max-width: 220px; height: 44px; padding: 0 12px; }
.dat-section { display: flex; flex-direction: column; gap: 14px; }
.dat-section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dat-section__head h2, .dat-group__head h2 { margin: 0; font-size: 19px; font-weight: 500; }
.dat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.dat-card { gap: 8px; }
.dat-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dat-card__top h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; }
.dat-card__about { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0;
  font-size: 14px; line-height: 1.5; color: var(--text-2); }
.dat-card__foot { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.dat-years { font-size: 13px; color: var(--text-2); }
.dat-years em { font-style: normal; color: var(--accent-text); }
.dat-id { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent-text); cursor: copy; text-align: left; }
.dat-id code { padding: 0; background: none; color: inherit; overflow-wrap: anywhere; }
.dat-id:hover code { text-decoration: underline; }
.dat-star { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: -4px -6px 0 0; border: 0; border-radius: 999px;
  background: none; color: var(--muted); cursor: pointer; }
.dat-star svg { fill: none; }
.dat-star:hover { background: var(--line); color: var(--text); }
.dat-star[aria-pressed="true"] { color: var(--area-2); }
.dat-star[aria-pressed="true"] svg { fill: currentColor; }
.dat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dat-chip { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.dat-chip--census { background: var(--area-1-tint); color: var(--accent-text); }
.dat-chip--published { border-color: var(--accent); color: var(--accent-text); }
.dat-chip--bands { background: var(--line); color: var(--text-2); }
.dat-chip--modelled { background: var(--modelled-tint); color: var(--text-2); }
.dat-chip--projected { border: 1px dashed var(--line-strong); color: var(--text-2); }
.dat-chip--latest { border-color: var(--line-strong); color: var(--text); }
.dat-chip--listed { border-color: var(--line-strong); color: var(--text-2); }
.dat-chip--locked { border-color: var(--line); color: var(--muted); }
.dat-topics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); }
.dat-topic { gap: 4px; color: var(--text); }
.dat-topic:hover { border-color: var(--line-strong); color: var(--text); }
.dat-topic__name { font-size: 16px; font-weight: 500; }
.dat-topic__count { font-size: 26px; font-weight: 600; color: var(--accent-text); }
.dat-topic__about { font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.dat-group { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 16px; }
.dat-group + .dat-group { margin-top: 18px; }
.dat-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dat-rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); }
.dat-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 13em) minmax(0, 15em) 30px; gap: 12px; align-items: center; padding: 10px 14px; }
.dat-row + .dat-row { border-top: 1px solid var(--line); }
.dat-row__name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dat-row__label { font-weight: 500; }
.dat-row .dat-star { margin: 0; }
.dat-more { align-self: flex-start; }
.dat-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.dat-methods .prose h2 { margin-top: 0; font-size: 17px; font-weight: 500; }
.dat-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: var(--gap); }
.dat-side__card { gap: 10px; }
.dat-side__card h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 500; }
.dat-side__card h2 svg { color: var(--accent-text); fill: none; }
.dat-side__item { display: flex; flex-direction: column; gap: 2px; width: 100%; margin-bottom: 8px; padding: 8px 10px; border: 0;
  border-radius: var(--radius-sm); background: var(--subtle); color: var(--text-2); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.dat-side__item:hover { color: var(--text); }
.dat-side__item code { padding: 0; background: none; color: var(--accent-text); overflow-wrap: anywhere; }
.dat-side__empty { margin: 0; padding: 12px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font-size: 13.5px;
  color: var(--muted); text-align: center; }
.dat-legend { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: start; margin: 0; }
.dat-legend dt { margin: 0; }
.dat-legend dt .dat-chip { min-width: 9.5em; justify-content: center; }
.dat-legend dd { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
@media (max-width: 1300px) {
  .dat-body { grid-template-columns: minmax(0, 1fr); }
  .dat-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .dat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dat-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .dat-head__title { font-size: 24px; }
  .dat-cards, .dat-methods, .dat-side { grid-template-columns: minmax(0, 1fr); }
  .dat-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dat-search__box { flex-basis: 100%; }
  .dat-select { flex: 1 1 0; min-width: 0; max-width: none; }
  .dat-row { grid-template-columns: minmax(0, 1fr) 30px; }
  .dat-row .dat-years, .dat-row .dat-chips { grid-column: 1; }
  .dat-row .dat-star { grid-column: 2; grid-row: 1; }
}

/* ---- plans (js/plan.js): what isn't on yours, and where it starts ---- */
.locked__pill { align-self: flex-start; }
.lock-note { margin: 0; font-size: 13px; color: var(--muted); }
.lock-note a { color: var(--accent-text); }
.lock-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted);
  white-space: nowrap; }
.lock-icon { flex: none; color: var(--muted); vertical-align: -2px; }
/* something locked that stays on show (Explore's buttons, the map's Around a point, Free's comparison chip): a padlock
   before its name; a click says where it starts */
.link-btn.is-locked, .cmp-line .cmp-more.is-locked { display: inline-flex; align-items: center; gap: 4px; }
.cmp-line .cmp-more.is-locked { color: var(--text-2); }
.level-switch .is-locked { color: var(--text-2); }
.level-switch .is-locked .lock-icon { margin-right: 4px; }
.cmp-chip2--fixed .lock-icon { margin-left: 2px; }
/* the cards a plan left out of a tab or the Overview, as one card at the end (explore.js lockedCardsHTML) */
.ex-locked { gap: 10px; }
.ex-locked__title { margin: 0; font-size: 17px; font-weight: 400; text-wrap: pretty; }
.ex-locked__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.ex-locked__list li { display: flex; align-items: flex-start; gap: 8px; }
.ex-locked__list .lock-icon { margin-top: 2px; }
.ex-locked__more { padding-left: 21px; color: var(--muted); }
.ex-locked .caption { margin: 0; }
.ex-locked__go { display: flex; margin-top: auto; padding-top: 4px; }

/* ---- Team (js/team.js): Settings' cards, with invitations ---- */
.team__emails { min-height: 84px; resize: vertical; font: inherit; line-height: 1.45; padding-top: 9px; }
.team__sub { margin: 6px 0 0; font-size: 14px; font-weight: 500; }

/* ---- the web session's Turnstile check (js/websession.js): empty unless Cloudflare asks for a tick ---- */
.web-check { position: fixed; right: 16px; bottom: 16px; z-index: 1000; }
.web-check:empty { display: none; }

/* ---- Explore's Overview, the 2026 design (js/overview.js; redesign/nov-2026 "Explore · Parramatta") ----
   Bands run edge to edge between the rails (the column's padding taken back), white panels joined by lines. */
.explore { --col-x: clamp(20px, 3vw, 40px); }
.explore > .ex-hero, .explore > .band { margin-inline: calc(-1 * var(--col-x)); }
.explore > .ex-hero { margin-top: -32px; }
.explore [hidden] { display: none !important; }

/* the head: the words on the left, four figures on the right */
.ex-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); align-items: stretch; gap: 0; }
.ex-hero--topic { grid-template-columns: minmax(0, 1fr); }
.ex-hero__copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 36px var(--col-x) 36px; }
.ex-hero .ex-chain { display: none; }        /* the top bar's breadcrumb says where the place is */
.ex-kicker { display: flex; flex-wrap: wrap; gap: 0 4px; }
.ex-kicker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ex-kicker a:hover { color: var(--text); }
.ex-hero .ex-headline { margin: 0; font-size: 46px; line-height: 50px; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.ex-hero .ex-standfirst { max-width: 58ch; font-size: 16.5px; line-height: 26px; color: var(--text-2); }
.ex-lede { display: flex; flex-direction: column; gap: 16px; }
.ex-since { display: flex; align-items: flex-start; gap: 12px; align-self: flex-start; max-width: 520px; margin: 4px 0 0;
  padding: 12px 14px; background: var(--card); border: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--text-2); }
.ex-since strong { color: var(--text); font-weight: 500; }
.ex-since__tag { flex: none; padding: 2px 7px; border-radius: var(--radius-tag); background: var(--mint); color: var(--navy);
  font-size: 12px; font-weight: 500; white-space: nowrap; }
.ex-hero .cmp-line { margin-top: 2px; color: var(--muted); font-size: 14.5px; }
.cmp-line__short { display: none; }
.ex-hero .ex-actions { gap: 10px; }
.ex-actions .pin-btn--label { height: 40px; padding: 0 17px; font-size: 14.5px; border-color: var(--outline); color: var(--text); }
.ex-actions .pin-btn--label[aria-pressed="true"] { border-color: var(--area-1); color: var(--stack-1-ink); }
.ex-actions .ex-export { border-color: transparent; padding: 0 10px; }
.ex-actions .ex-export:hover { background: var(--hover); }
.ex-more { display: none; position: relative; }
.ex-more summary { list-style: none; cursor: pointer; font-size: 20px; line-height: 1; }
.ex-more summary::-webkit-details-marker { display: none; }
.ex-more__menu { position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); display: flex; flex-direction: column;
  min-width: 190px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--pop-shadow); }
.ex-more__menu button { padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text); text-align: left; font: inherit; }
.ex-more__menu button:hover { background: var(--hover); }

.ex-hero__figs { display: flex; flex-direction: column; min-width: 0; background: var(--card); border-left: 1px solid var(--line); }
.ex-tiles { display: grid; grid-template-columns: 1fr 1fr; flex: 1; margin: 0; }
.ex-tile { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 24px 24px 22px; border-bottom: 1px solid var(--line); }
.ex-tile:nth-child(odd) { border-right: 1px solid var(--line); }
.ex-tile dt { font-size: 13px; color: var(--muted); }
.ex-tile dd { margin: 0; }
.ex-tile__value { margin-top: 4px !important; font-size: 38px; line-height: 42px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.ex-tile__note { font-size: 13px; line-height: 18px; color: var(--muted); }
.ex-tile__ahead { display: block; margin-top: 10px; color: var(--accent-text); }
.ex-tiles__src { margin: 0; padding: 14px 24px; font-size: 12px; line-height: 17px; color: var(--muted); }

/* the map band: the toolbar, the map, the place's rank nearby beside it */
.ex-mapband { background: var(--card); }
.ex-mapband .ex-map__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px var(--col-x);
  border-bottom: 1px solid var(--line); }
.ex-shade { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 14px; border: 1px solid var(--line);
  border-radius: var(--radius-pill); font-size: 13px; color: var(--muted); }
.ex-shade select { max-width: 260px; height: 30px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 500; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.ex-csv { margin-left: auto; border-color: var(--line); }
.ex-mapband__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.ex-mapband .ex-map { border: 0; border-radius: 0; }
.ex-mapband .ex-map .map-card__canvas { min-height: 500px; }
.ex-mapband .ex-map .map-card__foot { border-top: 1px solid var(--line); padding: 10px var(--col-x); }
.ex-near { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 20px 20px 18px; border-left: 1px solid var(--line); }
.ex-near__label { font-size: 12.5px; color: var(--muted); }
.ex-near__value { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.ex-near__value span { font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
.ex-near__rank { font-size: 13.5px; line-height: 19px; color: var(--text-2); }
.ex-near__list { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.ex-near__listhead { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ex-near__list ol { margin: 0; padding: 0; list-style: none; }
.ex-near__row { display: grid; grid-template-columns: minmax(0, 1fr) 56px 54px; align-items: center; gap: 8px; padding: 5px 6px;
  margin-inline: -6px; font-size: 13.5px; }
.ex-near__row a { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.ex-near__row.is-here { background: var(--highlight); font-weight: 500; }
.ex-near__bar { height: 5px; background: var(--quiet); border-radius: 3px; overflow: hidden; }
.ex-near__bar span { display: block; height: 100%; background: var(--area-1); border-radius: 3px; }
.ex-near__v { text-align: right; font-variant-numeric: tabular-nums; }
.ex-near__foot { margin-top: auto; font-size: 12px; line-height: 17px; color: var(--muted); }

/* the bands' heads: a section label and H2 on the left, a line of intro (or a search) on the right */
.band-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px 48px;
  padding: 56px var(--col-x) 32px; }
.band-head h2 { margin-top: 12px; font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.025em; }
.band-head__intro { max-width: 46ch; font-size: 16px; line-height: 25px; color: var(--text-2); }

/* three things to know */
.ex-things { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ex-thing { display: flex; flex-direction: column; gap: 8px; padding: 28px var(--col-x) 24px; background: var(--card);
  border-right: 1px solid var(--line); }
.ex-thing:last-child { border-right: 0; }
.ex-thing__tag { font-size: 13px; color: var(--accent-text); }
.ex-thing__value { font-size: 64px; line-height: 68px; font-weight: 500; letter-spacing: -0.035em; }
.ex-thing__words { flex: 1; font-size: 17px; line-height: 25px; color: var(--text); }
.ex-thing__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.chip--sm { height: 30px; padding: 0 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.ex-thing__more { margin-left: auto; font-size: 13.5px; font-weight: 500; color: var(--accent-text); }
.ex-three__foot { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ex-three__note { display: flex; align-items: center; gap: 16px; padding: 18px var(--col-x); font-size: 14px; line-height: 20px; color: var(--text-2); }
.ex-three__note + .ex-three__note { border-left: 1px solid var(--line); background: var(--subtle); }
.ex-three__note p { flex: 1; }
.ex-three__label { flex: none; font-size: 12.5px; color: var(--muted); }

/* every measure */
.ex-m__search { justify-self: end; width: min(320px, 100%); max-width: none; margin: 0; border-radius: var(--radius-pill); }
.ex-m { display: grid; grid-template-columns: 220px minmax(0, 1fr); border-top: 1px solid var(--line); background: var(--card); }
.ex-m__topics { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--sunken); }
.ex-m__topics button { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; }
.ex-m__topics button:hover { background: var(--hover); }
.ex-m__topics button[aria-pressed="true"] { background: var(--selected-bg); font-weight: 500; }
.ex-m__count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ex-m__topics .caption { margin-top: 14px; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 12px; }
.ex-m__main { min-width: 0; display: flex; flex-direction: column; }
.ex-m__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 20px 12px; }
.ex-m__head h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.ex-m__key { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.ex-m__key-a, .ex-m__key-b { width: 14px; height: 4px; border-radius: 2px; background: var(--area-1); margin-left: 8px; }
.ex-m__key-b { background: var(--bench-bar); }
.ex-m__key-c { width: 16px; height: 0; border-top: 2px dashed var(--area-1); margin-left: 8px; }
.ex-m__scroll { overflow-x: auto; }
.ex-m__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ex-m__table th, .ex-m__table td { padding: 10px 12px; border-top: 1px solid var(--line-soft); text-align: right; white-space: nowrap; vertical-align: middle; }
.ex-m__table thead th { font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--subtle); }
.ex-m__table th[scope="row"], .ex-m__table thead th:first-child { text-align: left; white-space: normal; padding-left: 20px; }
.ex-m__table tbody tr:hover { background: var(--hover); }
.ex-m__table tr.is-shaded { background: var(--selected-bg); }
.ex-m__label { display: block; font-weight: 500; color: var(--text); }
.ex-m__v { font-weight: 500; font-size: 15px; }
.ex-m__since, .ex-m__b { color: var(--text-2); }
.ex-m__bars { width: 140px; }
.ex-m__bar { display: flex; flex-direction: column; gap: 3px; width: 120px; margin-left: auto; }
.ex-m__bar-a, .ex-m__bar-b { display: block; height: 5px; border-radius: 0 3px 3px 0; background: var(--area-1); }
.ex-m__bar-b { background: var(--bench-bar); }
.ex-trend { display: block; margin-left: auto; overflow: visible; }
.ex-trend--none { display: block; width: 92px; height: 26px; }
.ex-trend__zero { stroke: var(--line); stroke-width: 1; }
.ex-trend__line { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ex-trend__line--ahead { stroke: var(--area-1); stroke-dasharray: 2 3; }
.ex-trend__dot { fill: var(--text); }
.ex-m__acts { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.btn-icon--sm { width: 30px; height: 30px; border-radius: var(--radius-sm); }
.btn-icon--sm svg { width: 15px; height: 15px; }
.btn-icon--sm[aria-pressed="true"] { border-color: var(--area-1); background: var(--area-1); color: var(--stack-1-ink); }
.ex-m__locked { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--text-2); }
.ex-m__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; padding: 14px 20px;
  border-top: 1px solid var(--line); }
.ex-m__foot .caption { font-size: 12px; }

/* the Ask bar, docked at the foot of the Overview (left of the report tray) */
.ex-dock { position: sticky; bottom: 20px; z-index: 20; display: flex; flex-direction: column; gap: 8px; width: min(640px, 100%);
  margin: 28px auto 0; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--pop-shadow); }
.ex-dock[hidden] { display: none; }
.ex-dock__close { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: var(--radius-pill); background: none; color: var(--muted); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.ex-dock__close:hover { background: var(--hover); color: var(--text); }
.ex-dock__box { display: flex; align-items: center; gap: 10px; padding: 2px 2px 2px 8px; }
.ex-dock__mark { width: 18px; height: 18px; flex: none; color: var(--accent-text); }
.ex-dock__q { flex: 1; min-width: 0; height: 36px; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.ex-dock__box.is-locked .ex-dock__q { cursor: pointer; }
.ex-dock__send { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 0;
  border-radius: var(--radius-pill); background: var(--contrast-bg); color: var(--contrast-text); }
.ex-dock__send svg { width: 16px; height: 16px; }
.ex-dock__chips { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }   /* one row: the bar stays low over the page */
.ex-dock__chip { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--card); color: var(--text-2); font: inherit; font-size: 13px; text-align: left; }
.ex-dock__chip:hover { border-color: var(--axis); color: var(--text); }

@media (max-width: 1100px) {
  .ex-hero { grid-template-columns: minmax(0, 1fr); }
  .ex-hero__figs { border-left: 0; border-top: 1px solid var(--line); }
  .ex-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ex-tile:nth-child(odd) { border-right: 0; }
  .ex-tile:not(:last-child) { border-right: 1px solid var(--line); }
  .ex-mapband__body { grid-template-columns: minmax(0, 1fr); }
  .ex-near { border-left: 0; border-top: 1px solid var(--line); }
  .ex-things { grid-template-columns: minmax(0, 1fr); }
  .ex-thing { border-right: 0; border-bottom: 1px solid var(--line); }
  .ex-m { grid-template-columns: minmax(0, 1fr); }
  .ex-m__topics { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .ex-m__topics .caption { display: none; }
}
@media (max-width: 760px) {
  .explore { --col-x: 16px; }
  .explore > .ex-hero { margin-top: -16px; }
  /* the head in two rows, not five: no chips above (the kicker's state links up), "vs", the rest in the ⋯ menu */
  .ex-hero .ex-chain, .ex-kicker__place, .cmp-line__long, .ex-actions .ex-save, .ex-actions .ex-export, .ex-hero .cmp-more { display: none; }
  .cmp-line__short { display: inline; }
  .ex-more { display: block; }
  .ex-hero__copy { gap: 14px; padding: 20px var(--col-x) 24px; }
  .ex-hero .ex-headline { font-size: 32px; line-height: 36px; }
  .ex-hero .ex-standfirst { font-size: 15.5px; line-height: 24px; }
  .ex-tiles { grid-template-columns: 1fr 1fr; }
  .ex-tile:nth-child(2n) { border-right: 0; }
  .ex-tile { padding: 16px; }
  .ex-tile__value { font-size: 28px; line-height: 32px; }
  .ex-mapband .ex-map .map-card__canvas { min-height: 380px; }
  .ex-csv { margin-left: 0; }
  .band-head { grid-template-columns: minmax(0, 1fr); padding: 40px var(--col-x) 20px; }
  .band-head h2 { font-size: 32px; line-height: 35px; }
  .ex-m__search { justify-self: stretch; width: 100%; }
  .ex-thing__value { font-size: 52px; line-height: 56px; }
  .ex-three__foot { grid-template-columns: minmax(0, 1fr); }
  .ex-three__note + .ex-three__note { border-left: 0; border-top: 1px solid var(--line); }
  /* the table drops to the measure, the place and the comparison */
  .ex-m__table .ex-m__since, .ex-m__table .ex-m__bars, .ex-m__table .ex-m__trend,
  .ex-m__table thead th:nth-child(3), .ex-m__table thead th:nth-child(4), .ex-m__table thead th:nth-child(6) { display: none; }
  .ex-m__key { display: none; }
  .ex-dock { position: static; width: 100%; box-shadow: none; }      /* at the end of the page: a phone has no room to float it */
}

/* ---- The workbench (js/workbench.js; redesign/nov-2026 "Explore workbench (for analysts)") ----
   Edge to edge between the rails: the view's controls on the left, the map and scatter, the table, the API call. */
.wb { --col-x: clamp(20px, 3vw, 40px); display: grid; grid-template-columns: 290px minmax(0, 1fr);
  margin: -32px calc(-1 * var(--col-x)) 0; min-height: calc(100vh - 64px); background: var(--card); }
.wb-side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--card); }
.wb-side__head { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 18px; border-bottom: 1px solid var(--line); }
.wb-side__head h1 { font-size: 22px; line-height: 27px; font-weight: 500; letter-spacing: -0.015em; }
.wb-group { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.wb-group h2 { font-size: 13px; font-weight: 500; color: var(--muted); }
.wb-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wb-group__head .caption { font-size: 12.5px; }
.wb-group > .caption { font-size: 12px; }
.wb-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wb-chips .caption { margin-right: 2px; }
.wb-radius { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 8px 12px; white-space: nowrap; border: 1px solid var(--line); border-radius: var(--radius-md);
  font-size: 13.5px; color: var(--text-2); }
.wb-radius select { border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 500; }
.wb-radius__n { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.wb-filter { display: flex; flex-direction: column; gap: 6px; }
.wb-filter__head { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; color: var(--text); }
.wb-filter__head code { padding: 0; background: none; color: var(--muted); font-size: 11px; }
.wb-colours { display: flex; flex-direction: column; gap: 2px; }
.wb-colours button { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; }
.wb-colours button:hover { background: var(--hover); }
.wb-colours button[aria-pressed="true"] { background: var(--selected-bg); font-weight: 500; }
.wb-colours code { padding: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 400; }

.wb-main { display: flex; flex-direction: column; min-width: 0; }
.wb-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr); border-bottom: 1px solid var(--line); }
.wb-map { position: relative; min-height: 420px; border-right: 1px solid var(--line); }
.wb-map .map-card__canvas { position: absolute; inset: 0; height: auto; min-height: 0; }
.wb-map .map-card__canvas .map { inset: 0; top: 0; right: 0; }
.wb-scatter { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px 16px; }
.wb-scatter__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.wb-scatter__head h2 { font-size: 15px; font-weight: 500; }
.wb-scatter__empty { margin: auto; }
.wb-plot { width: 100%; height: auto; overflow: visible; }
.wb-axis { stroke: var(--axis); stroke-width: 1; }
.wb-tick { fill: var(--muted); font-size: 11px; }
.wb-axis__name { fill: var(--accent-text); font-size: 12px; font-weight: 500; }
.wb-dot { fill: var(--area-1); fill-opacity: .7; stroke: var(--card); stroke-width: 1; cursor: pointer; }
.wb-dot:hover, .wb-dot.is-picked { fill-opacity: 1; stroke: var(--text); stroke-width: 1.5; }
.wb-dot.is-here { fill: var(--citron); fill-opacity: 1; stroke: var(--navy); stroke-width: 2; }
.wb-dot__label { fill: var(--text); font-size: 12px; font-weight: 500; pointer-events: none; }
.wb-scatter__r { font-size: 12.5px; line-height: 18px; }

.wb-table { display: flex; flex-direction: column; min-width: 0; }
.wb-table__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 14px 20px 10px; }
.wb-table__head h2 { font-size: 15px; font-weight: 500; }
.wb-table__msg { padding: 24px 20px; }
.wb-table__scroll { overflow-x: auto; }
.wb-grid { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.wb-grid th, .wb-grid td { padding: 9px 12px; border-top: 1px solid var(--line-soft); text-align: right; white-space: nowrap; }
.wb-grid thead th { position: relative; background: var(--subtle); font-size: 12.5px; font-weight: 500; color: var(--muted); }
.wb-grid th:first-child { text-align: left; padding-left: 20px; }
.wb-grid tbody th a { color: var(--text); font-weight: 500; }
.wb-grid tbody tr:hover { background: var(--hover); }
.wb-grid tr.is-here { background: var(--highlight); }
.wb-grid tr.is-picked { box-shadow: inset 3px 0 0 var(--area-1); }
.wb-sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.wb-sort:hover { color: var(--text); }
th[aria-sort="ascending"] .wb-sort, th[aria-sort="descending"] .wb-sort { color: var(--text); }
.wb-x { margin-left: 4px; padding: 0 2px; border: 0; background: none; color: var(--faint); font: inherit; cursor: pointer; }
.wb-x:hover { color: var(--text); }
.wb-add__q { width: 110px; height: 28px; padding: 0 8px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--card); color: var(--accent-text); font: inherit; font-size: 12.5px; }
.wb-table__foot { padding: 10px 20px 16px; font-size: 12px; }
.wb-api { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 10px 20px;
  background: var(--night); color: var(--contrast-text); }
.wb-api__tag { flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--mint); }
.wb-api__call { flex: 1; min-width: 0; overflow: hidden; padding: 0; background: none; color: var(--contrast-text); font-size: 12.5px;
  text-overflow: ellipsis; white-space: nowrap; }
.wb-api .btn { border-color: color-mix(in srgb, var(--contrast-text) 30%, transparent); color: var(--contrast-text); }
.wb-api .btn:hover { background: color-mix(in srgb, var(--contrast-text) 8%, transparent); }
#actions .btn--sm { height: 34px; }
body:has(.pin-tray:not([hidden])) .wb-api { padding-right: 340px; }     /* clear of the report tray */

@media (max-width: 1100px) {
  .wb { grid-template-columns: minmax(0, 1fr); }
  .wb-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .wb-top { grid-template-columns: minmax(0, 1fr); }
  .wb-map { border-right: 0; border-bottom: 1px solid var(--line); min-height: 360px; }
}
@media (max-width: 760px) {
  .wb { --col-x: 16px; margin-top: -16px; }
  #actions .btn--sm:not(.btn--primary) { display: none; }
}

/* ---- A topic's page (js/topicpage.js; redesign/nov-2026 "Topic view: Housing in Parramatta") ---- */
/* the tabs under the head: underlined, each with its count of measures */
.explore > .ex-tabs { align-self: stretch; max-width: none; width: auto; margin: 0 calc(-1 * var(--col-x)); padding: 0 var(--col-x); gap: 4px; border-bottom: 1px solid var(--line);
  overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.explore > .ex-tabs a { flex: none; height: auto; padding: 12px 10px 13px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; background: none; color: var(--text-2); font-size: 14.5px; }
.explore > .ex-tabs a:hover { background: none; color: var(--text); border-color: transparent; }
.explore > .ex-tabs a[aria-current="page"] { background: none; border-bottom-color: var(--text); color: var(--text); font-weight: 500; }
.tp-tab__n { margin-left: 6px; font-size: 12px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.ex-hero--topic .ex-hero__copy { padding-bottom: 24px; }
.ex-hero--topic .ex-title { font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.025em; }

.ex-body:not([hidden]) { display: flex; flex-direction: column; gap: 0; margin: 0 calc(-1 * var(--col-x)); }
.tp-summary { max-width: 70ch; padding: 22px var(--col-x) 0; font-size: 17px; line-height: 26px; color: var(--text); }
.tp-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 22px 0 0; background: var(--card);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tp-tile { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.tp-tile:last-child { border-right: 0; }
.tp-tile dt { font-size: 12.5px; color: var(--muted); }
.tp-tile dd { margin: 0; }
.tp-tile__v { margin-top: 4px !important; font-size: 30px; line-height: 34px; font-weight: 500; letter-spacing: -0.02em; }
.tp-tile__b, .tp-tile__d { font-size: 12.5px; color: var(--muted); }
.tp-tile__d { color: var(--text-2); }
.tp-jumps { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px var(--col-x); border-bottom: 1px solid var(--line); }

.tp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.tp-main { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--line); }
.tp-key { padding: 14px var(--col-x) 0; }
.tp-sec { padding: 28px var(--col-x) 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.tp-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.tp-sec__head h2 { margin-top: 10px; font-size: 28px; line-height: 33px; font-weight: 500; letter-spacing: -0.02em; }
.tp-sec__acts { display: flex; gap: 8px; align-items: center; }
.tp-sec__acts .pin-btn--label { height: 30px; padding: 0 12px; font-size: 13px; }
.tp-cards { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
#tp-all { padding: 0; }
#tp-all .band-head--page { padding: 28px var(--col-x) 18px; }
#tp-all .ex-m { border-top: 1px solid var(--line); }
#tp-all .ex-m__topics { display: none; }
#tp-all .ex-m { grid-template-columns: minmax(0, 1fr); }
.ex-m__page { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--accent-text); }
.tp-keep { display: flex; flex-direction: column; gap: 8px; padding: 28px var(--col-x); border-bottom: 1px solid var(--line); }
.tp-keep h2 { font-size: 20px; font-weight: 500; }
.tp-method { display: flex; flex-direction: column; gap: 8px; padding: 24px var(--col-x) 32px; font-size: 14px; line-height: 21px; color: var(--text-2); }
.tp-method p:last-child { max-width: 75ch; }

/* the rail: the map and the place's rank nearby, beside the sections (sticky under the top bar) */
.tp-rail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; }
.tp-rail .ex-map .map-card__canvas { min-height: 300px; height: 300px; }
.tp-rail .ex-map .map-card__foot, .tp-rail #map-zoomhint { display: none; }
.tp-rail .ex-map { border: 1px solid var(--line); background: var(--card); }
.tp-rail .map-key { max-width: 220px; font-size: 11.5px; }
.tp-rail .ex-near { padding: 4px 0 0; border: 0; gap: 12px; }
.tp-rail .ex-near__value { font-size: 26px; }

@media (max-width: 1100px) {
  .tp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-tile:nth-child(3n) { border-right: 0; }
  .tp-tile:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .tp-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-main { border-right: 0; order: 2; }
  .tp-rail { position: static; order: 1; border-bottom: 1px solid var(--line); padding-inline: var(--col-x); }
}
@media (max-width: 760px) {
  .ex-hero--topic .ex-title { font-size: 30px; line-height: 34px; }
  .tp-tiles { grid-template-columns: 1fr 1fr; }
  .tp-tile:nth-child(3n) { border-right: 1px solid var(--line); }
  .tp-tile:nth-child(2n) { border-right: 0; }
  .tp-tile { border-bottom: 1px solid var(--line); }
  .tp-sec__head h2 { font-size: 24px; line-height: 28px; }
}

/* ---- Ask, an answer, in the 2026 design (redesign/nov-2026 "Answer you can pin and share") ----
   The thread is a white panel between the rails, the checks and measures in a side column on the page colour; the
   answer leads with its headline; "Keep going" is a Mint brand panel (navy text, both themes). */
.ask-conv { --col-x: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, 1fr) 300px; gap: 0; margin: -32px calc(-1 * var(--col-x)) 0;
  min-height: calc(100vh - 64px); }
.ask-thread { max-width: none; justify-self: stretch; padding: 28px clamp(20px, 3vw, 40px) 32px; background: var(--card);
  border-right: 1px solid var(--line); }
.ask-thread > * { width: 100%; max-width: 780px; margin-inline: auto; }
.ask-q span { border: 0; border-radius: var(--radius-md); background: var(--contrast-bg); color: var(--contrast-text); }
.ask-how { padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--card); }
.ask-how__steps code { background: var(--mint); color: var(--navy); }
.ask-headline { margin: 6px 0 0; font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; color: var(--text);
  text-wrap: balance; }
.ask-answer { font-size: 16.5px; line-height: 26px; color: var(--text-2); }
.ask-table-card { border-radius: 0; }
.ask-table__pin { width: 1%; text-align: right; }
.ask-next:not(:empty) { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 20px; background: var(--mint); color: var(--navy); }
.ask-next .ask-next__label { margin: 0; color: var(--navy); }
.ask-next .ask-next__label::before { background: var(--navy); }
.ask-next__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-next button.ask-chip { border: 0; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--contrast-text) 55%, var(--mint));
  color: var(--navy); font-weight: 500; }
.ask-next button.ask-chip:hover { background: color-mix(in srgb, var(--contrast-text) 75%, var(--mint)); }
.ask-follow { border-radius: var(--radius-md); box-shadow: var(--pop-shadow); }
.ask-side { top: 0; gap: 0; padding: 22px 20px; align-self: stretch; background: var(--sunken); }
.ask-side .ask-side__card { padding: 0 0 20px; margin-bottom: 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; }
.ask-side .ask-side__card:last-child { border-bottom: 0; }
.ask-checks__item.is-ok .ask-checks__mark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  padding: 0; border-radius: 999px; background: var(--mint); color: var(--navy); }
.ask-checks__item.is-ok .ask-checks__mark svg { width: 10px; height: 10px; }
.ask-measure { padding: 8px 10px; }
.ask-measure code { font-size: 11.5px; }
.ask-pinned p { margin: 8px 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
.ask-pinned a { font-size: 14px; font-weight: 500; color: var(--accent-text); }
/* Add to report in the top bar: the page's one primary action, a pin that stays pressed once it's pinned */
.topbar .pin-btn--label { height: 34px; padding: 0 14px; border-color: var(--accent); background: var(--accent); color: var(--on-accent); font-size: 13.5px; }
.topbar .pin-btn--label:hover { background: var(--accent-hover); color: var(--on-accent); }
.topbar .pin-btn--label[aria-pressed="true"] { border-color: var(--outline); background: transparent; color: var(--text); }
@media (max-width: 1100px) {
  .ask-conv { grid-template-columns: minmax(0, 1fr); }
  .ask-thread { border-right: 0; }
  .ask-side { position: static; }
}
@media (max-width: 760px) {
  .ask-conv { --col-x: 16px; margin-top: -16px; }
  .ask-headline { font-size: 24px; line-height: 29px; }
  .topbar .ask-top__label { display: none; }
}

/* ---- The share card's dialog (js/sharecard.js) ---- */
.share-modal { width: min(820px, calc(100vw - 32px)); max-width: none; padding: 20px 22px 22px; }
.share-modal .modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.share-modal h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.share-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.share-card { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; background: var(--quiet); border: 1px solid var(--line); }
.share-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ex-actions .ex-share { border-color: transparent; padding: 0 10px; }
.ex-actions .ex-share:hover { background: var(--hover); }
@media (max-width: 760px) { .ex-actions .ex-share { display: none; } }

/* ---- Your places in the sidebar, the top bar's badge (js/yourplaces.js) ---- */
.yourplaces .recent__head { padding: 0 10px 8px; }
.yourplaces__list { display: flex; flex-direction: column; gap: 2px; }
.yourplaces__item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; }
.yourplaces__item:hover { background: var(--hover); color: var(--text); }
.yourplaces__more { display: block; padding: 4px 10px; font-size: 13px; color: var(--muted); }
.yourplaces__more:hover { color: var(--text); }
.yourplaces__dot { width: 8px; height: 8px; flex: none; border-radius: 2px; }
.yourplaces__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yourplaces__badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--area-1); color: var(--stack-1-ink);
  font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
[data-sidebar="collapsed"] .yourplaces { display: none; }

/* the bell (notices.js, 29 November 2026): your places' new figures and your PDF reports, in a panel under it */
.notices { position: relative; display: flex; }
.notices__bell { position: relative; }
.notices__count { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--area-1); color: var(--stack-1-ink); font-size: 10.5px; font-weight: 600; line-height: 16px; text-align: center; pointer-events: none; }
.notices__count[hidden] { display: none; }
.notices__panel { position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; width: 380px; max-height: min(70vh, 560px); overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); box-shadow: var(--pop-shadow); }
.notices__panel[hidden] { display: none; }
.notices__head { position: sticky; top: 0; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--card); }
.notices__head h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.notices__list { margin: 0; padding: 0; list-style: none; }
.notices__item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--text); text-decoration: none; }
.notices__list li:last-child .notices__item { border-bottom: 0; }
.notices__item:hover { background: var(--hover); color: var(--text); }
.notices__item.is-unread { background: var(--selected-bg); }
.notices__item.is-unread:hover { background: var(--hover); }
.notices__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 7px;
  background: var(--quiet); color: var(--text-2); }
.notices__item.is-writing .notices__icon { animation: notices-pulse 1.4s ease-in-out infinite; }
@keyframes notices-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .notices__item.is-writing .notices__icon { animation: none; } }
.notices__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.notices__title { font-size: 13.5px; line-height: 19px; font-weight: 500; }
.notices__text { font-size: 12.5px; line-height: 18px; color: var(--text-2); }
.notices__meta { font-size: 11.5px; color: var(--muted); }
.notices__dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--area-1); }
.notices__empty { margin: 0; padding: 18px 16px 20px; font-size: 13px; line-height: 19px; color: var(--muted); }
@media (max-width: 760px) {      /* under the top bar, the window's width */
  .notices { position: static; }
  .notices__panel { position: fixed; top: 64px; left: 8px; right: 8px; width: auto; }
}

/* ---- Explore: since you last looked (a place you follow, with new approvals) ---- */
.explore > .ex-since-strip { display: grid; grid-template-columns: 220px repeat(3, minmax(0, 1fr)); background: var(--selected-bg); }
.ex-since-strip__head { display: flex; flex-direction: column; gap: 8px; padding: 18px var(--col-x); font-size: 13.5px; line-height: 19px; color: var(--text-2); }
.ex-since-strip__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-left: 1px solid var(--line); }
.ex-since-strip__where { font-size: 12.5px; color: var(--muted); }
.ex-since-strip__line { flex: 1; font-size: 15.5px; line-height: 22px; font-weight: 500; color: var(--text); }
.ex-since-strip__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ex-since-strip__acts .pin-btn--label { height: 30px; padding: 0 12px; font-size: 13px; }
@media (max-width: 1100px) {
  .explore > .ex-since-strip { grid-template-columns: minmax(0, 1fr); }
  .ex-since-strip__item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---- The first run (js/welcome.js; redesign/nov-2026 "First run"): full screen, no sidebar or top bar ---- */
.is-welcome .sidebar, .is-welcome .topbar, .is-welcome .pin-tray { display: none !important; }
.is-welcome .content { margin: 0; padding: 0; border: 0; }
.is-welcome .content::before, .is-welcome .content::after { display: none; }
.welcome { position: relative; display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); }
.welcome > * { position: relative; }
.welcome__bar { display: flex; justify-content: space-between; align-items: center; padding: 26px 48px; }
.welcome__logo { height: 26px; width: calc(26px * 285 / 60); color: var(--logo); }
.welcome__step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.welcome__dots { display: flex; gap: 4px; }
.welcome__dots i { width: 28px; height: 4px; border-radius: 999px; background: var(--line); }
.welcome__dots i.is-on { background: var(--text); }
.welcome__pick { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 24px; text-align: center; }
.welcome__pick h1 { font-size: 66px; line-height: 70px; font-weight: 500; letter-spacing: -0.03em; }
.welcome__lede { max-width: 560px; font-size: 17px; line-height: 26px; color: var(--text-2); }
/* the search box makes its host the box itself (.search.srch): sized here, not by the top bar's rules */
.welcome__search.search { flex: none; width: min(640px, 100%); max-width: none; height: 60px; margin: 12px 0 0; padding: 0 20px;
  font-size: 18px; text-align: left; border-radius: var(--radius-md); box-shadow: var(--pop-shadow); }
.welcome__why { margin-top: 18px; font-size: 14px; color: var(--muted); }
.welcome__reasons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 640px; }
.welcome__go { margin-top: 18px; }
.welcome__foot { display: flex; justify-content: space-between; gap: 16px; padding: 18px 48px 26px; font-size: 12.5px; color: var(--muted); }
.welcome--reveal { padding-bottom: 110px; }
.welcome__panel { margin: 0 48px; background: var(--card); border: 1px solid var(--line); }
.welcome__head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; border-bottom: 1px solid var(--line); }
.welcome__words-col { display: flex; flex-direction: column; gap: 18px; padding: 40px 48px; background: var(--bg); }
.welcome__words-col h1 { font-size: 52px; line-height: 56px; font-weight: 500; letter-spacing: -0.03em; }
.welcome__map { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px; background: var(--lilac); }
.welcome__map canvas { max-width: 300px; }
.welcome__map-name { position: absolute; left: 20px; bottom: 18px; padding: 4px 9px; border-radius: var(--radius-tag); background: var(--navy);
  color: var(--contrast-text); font-size: 13px; font-weight: 500; }
.welcome__things { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.welcome__thing { display: flex; flex-direction: column; gap: 10px; padding: 28px 32px; border-right: 1px solid var(--line); }
.welcome__thing:last-child { border-right: 0; }
.welcome__tag { font-size: 13px; color: var(--accent-text); }
.welcome__big { font-size: 56px; line-height: 60px; font-weight: 500; letter-spacing: -0.03em; }
.welcome__words { flex: 1; font-size: 18px; line-height: 26px; color: var(--text); }
.welcome__bars { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.welcome__bar-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 56px; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.welcome__track { height: 8px; background: var(--quiet); border-radius: 4px; overflow: hidden; }
.welcome__track span { display: block; height: 100%; border-radius: 4px; }
.welcome__track .is-place { background: var(--area-1); }
.welcome__track .is-bench { background: var(--bench-bar); }
.welcome__v { text-align: right; font-variant-numeric: tabular-nums; }
.welcome__src { padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }
.welcome__none { padding: 28px 48px; color: var(--text-2); }
.welcome__more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
.welcome__like { display: flex; flex-direction: column; gap: 14px; padding: 28px 32px; }
.welcome__like-list { display: flex; flex-wrap: wrap; gap: 8px; }
.welcome__like-list .caption { flex-basis: 100%; }
.welcome__like-chip { display: inline-flex; align-items: center; }      /* a link, so its text sat at the top of the pill */
.welcome__like-chip b { margin-left: 6px; color: var(--accent-text); font-weight: 500; }
.welcome__next { display: flex; flex-direction: column; gap: 8px; padding: 28px 32px; background: var(--mint); color: var(--navy); }
.welcome__next .section-label { color: var(--navy); }
.welcome__next .section-label::before { background: var(--navy); }
.welcome__q { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border: 0; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--contrast-text) 55%, var(--mint)); color: var(--navy); font: inherit; font-size: 14.5px; font-weight: 500; text-align: left; }
.welcome__q:hover { background: color-mix(in srgb, var(--contrast-text) 75%, var(--mint)); }
.welcome__q:disabled, .welcome__save .btn:disabled { opacity: .6; cursor: progress; }
.welcome__save { position: fixed; left: 48px; right: 48px; bottom: 24px; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 18px 22px; background: var(--navy); color: var(--contrast-text); border-radius: var(--radius-md); box-shadow: var(--pop-shadow); }
.welcome__save h2 { font-size: 18px; font-weight: 500; color: var(--contrast-text); }
.welcome__save p { font-size: 14px; opacity: .8; }
.welcome__save-acts { display: flex; gap: 8px; flex: none; }
.welcome__save .btn.welcome__share { border-color: color-mix(in srgb, var(--contrast-text) 40%, transparent); color: var(--contrast-text); }
.welcome__save .btn.welcome__share:hover { background: color-mix(in srgb, var(--contrast-text) 8%, transparent); color: var(--contrast-text); }
.welcome__save .btn.welcome__keep { border-color: var(--mint); background: var(--mint); color: var(--navy); }
.welcome__save .btn.welcome__keep:hover { border-color: var(--mint); background: var(--mint); color: var(--navy); opacity: .9; }
@media (max-width: 1100px) {
  .welcome__head, .welcome__more { grid-template-columns: minmax(0, 1fr); }
  .welcome__things { grid-template-columns: minmax(0, 1fr); }
  .welcome__thing { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .welcome__bar, .welcome__foot { padding-inline: 16px; }
  .welcome__pick h1 { font-size: 38px; line-height: 42px; }
  .welcome__panel { margin: 0 12px; }
  .welcome__words-col { padding: 24px 20px; }
  .welcome__words-col h1 { font-size: 32px; line-height: 36px; }
  .welcome__thing, .welcome__like, .welcome__next { padding: 22px 20px; }
  .welcome--reveal { padding-bottom: 24px; }
  .welcome__save { position: static; margin: 16px 12px 0; flex-direction: column; align-items: stretch; box-shadow: none; }   /* at the end: no room to float it */
  .welcome__save-acts { flex-direction: column-reverse; }      /* one above the other, Save first: side by side, it ran off the panel */
  .welcome__save-acts .btn { width: 100%; justify-content: center; }
}

/* ---- Pins and the reports they build (js/pins.js, js/pinreport.js; the app redesign, November 2026) ---- */
/* A pin: a small outlined square; pinned, filled Electric (periwinkle in dark) with the pin in white */
.pin-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 30px; height: 30px;
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--text-2); }
.pin-btn svg { width: 15px; height: 15px; }
.pin-btn:hover { border-color: var(--axis); color: var(--text); }
.pin-btn[aria-pressed="true"] { border-color: var(--area-1); background: var(--area-1); color: var(--stack-1-ink); }
.pin-btn[aria-pressed="true"] svg { fill: currentColor; }
.pin-btn--label { width: auto; padding: 0 12px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500; }
.ins-tag .pin-btn { margin-left: auto; }

/* The tray: the report on the place being looked at, a navy panel at the bottom right (above the toast) */
.pin-tray { position: fixed; z-index: 45; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 2px;
  width: min(300px, calc(100vw - 32px)); padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--contrast-bg); color: var(--contrast-text); box-shadow: var(--pop-shadow); text-decoration: none; }
.pin-tray[hidden] { display: none; }
.pin-tray:hover { background: var(--contrast-hover); color: var(--contrast-text); }
.pin-tray__head { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; opacity: .85; }
.pin-tray__count { color: var(--mint); font-weight: 500; white-space: nowrap; }
.pin-tray__last { overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .pin-tray { right: 16px; bottom: 16px; left: 16px; width: auto; }
  .toast:not([hidden]) ~ .pin-tray { bottom: 96px; }      /* the toast is across the foot on a phone */
}

/* A page's head (Reports, a report): section label, H1, a lede, actions */
.page-head { display: flex; flex-direction: column; gap: 12px; padding: 8px 0 32px; }
.page-head h1 { font-size: 40px; line-height: 44px; letter-spacing: -0.025em; }
.page-head__lede { max-width: 640px; color: var(--text-2); font-size: 16px; line-height: 25px; }
.reports-sec { display: flex; flex-direction: column; gap: 16px; padding: 32px 0; }
.reports-sec.band { margin-inline: calc(-1 * clamp(20px, 3vw, 40px)); padding-inline: clamp(20px, 3vw, 40px); }
.reports-sec__head { display: flex; flex-direction: column; gap: 4px; }
.reports-sec__head h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.report-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 0;
  padding: 1px 0 0 1px; }
/* joined panels: each its own 1px border, overlapping its neighbours' so the lines between are single */
.report-row { display: flex; flex-direction: column; gap: 6px; margin: -1px 0 0 -1px; padding: 20px 22px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); }
.report-row:hover { background: var(--hover); color: var(--text); }
.report-row__title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.report-row__meta { font-size: 13px; color: var(--muted); }
.report-row__last { overflow: hidden; font-size: 14px; color: var(--text-2); text-overflow: ellipsis; white-space: nowrap; }

/* A report: its pins as numbered rows in one white panel */
.report-head__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.report-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-body { margin-inline: calc(-1 * clamp(20px, 3vw, 40px)); padding: 32px clamp(20px, 3vw, 40px); }
.pin-rows { margin: 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); }
.pin-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 16px;
  padding: 16px 18px; border-top: 1px solid var(--line); }
.pin-row:first-child { border-top: 0; }
.pin-row__n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pin-row__body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.pin-row__title { flex-basis: 100%; color: var(--text); font-size: 16px; font-weight: 500; }
.pin-row__title:hover { color: var(--link-hover); }
.pin-row__place { font-size: 13px; color: var(--muted); }
.pin-row__id { font-size: 12px; }
.pin-row__value { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.pin-row__tools { display: flex; gap: 2px; }
.pin-row__tools .btn-icon { width: 34px; height: 34px; color: var(--muted); }
.pin-row__tools .btn-icon:disabled { opacity: .35; cursor: default; }
.report-body__foot { margin-top: 12px; }
@media (max-width: 760px) {
  .page-head h1 { font-size: 32px; line-height: 35px; }
  .reports-sec.band, .report-body { margin-inline: -16px; padding-inline: 16px; }
  .pin-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .pin-row__tools { grid-column: 2 / -1; justify-content: flex-end; }
}

/* ---- Type (web/CLAUDE.md, "Fonts"): last, so these win over the rules above ---- */
/* Eyebrows: sentence case, 13px, 500, in the accent (DESIGN.md: never capitals); group heads and table headers: mixed
   case, muted */
.eyebrow, .area-head__eyebrow, .ex-kicker, .ex-ahead__head h2 {
  font-size: 13px; line-height: 18px; font-stretch: normal; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--accent-text);
}
.srch-group__head, .cmp-pop__head, .measures thead th, .sites-table thead th, .plan-card__band, .oops__ref-label,
.ask-table thead th, .ask-next__label, .oops__tally p {
  font-size: 12.5px; font-stretch: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted);
}
.srch-group__head a, .srch-group__head .srch-more__help { font-stretch: normal; }

/* No italic (Onest has none, DESIGN.md): sources and footnotes are muted, projected values Electric */
.cmp-bars__val[data-role="future"] { color: var(--accent-text); }

/* Code: PT Mono has one weight, so no bold; inline code a little smaller, on a Mint tint (--code-bg) */
code, pre, .mono { font-weight: 400; }
code { font-family: var(--font-mono); font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--code-bg); }

/* ---- ⌘K: go to anything (palette.js; redesign/nov-2026 "⌘K goes to anything, and answers") ---------------- */
.goto { margin: 4px 0 10px; border: 1px solid var(--line) !important; border-radius: var(--radius-pill); color: var(--muted) !important; }
.goto:hover { border-color: var(--outline) !important; color: var(--text) !important; }
.goto .nav__label { flex: 1; }
.goto__keys { font-family: var(--font-mono); font-size: 11px; color: var(--muted); padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; }
@media (min-width: 761px) {
  [data-sidebar="collapsed"] .goto { border-color: transparent !important; }
  [data-sidebar="collapsed"] .goto__keys { display: none; }
}
@media (max-width: 760px) { .goto { display: none; } }

.cmdk { width: min(680px, calc(100vw - 32px)); max-width: none; max-height: min(640px, calc(100vh - 96px)); margin: 72px auto auto; padding: 0;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--pop-shadow); overflow: hidden; }
.cmdk[open] { display: flex; flex-direction: column; }
.cmdk::backdrop { background: color-mix(in srgb, var(--night) 35%, transparent); }
.cmdk__box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk__box > svg { width: 18px; height: 18px; flex: none; color: var(--text); }
.cmdk__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 18px; }
.cmdk__box input::-webkit-search-cancel-button { display: none; }
.cmdk__kbd, .cmdk__hint { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.cmdk__kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; }
.cmdk__list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; }
.cmdk__head { margin: 0; padding: 12px 10px 4px; font-size: 12px; color: var(--muted); }
.cmdk__group:first-child .cmdk__head { padding-top: 8px; }
.cmdk__row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; cursor: pointer; }
.cmdk__row[aria-selected="true"] { background: var(--selected-bg); }
.cmdk__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cmdk__title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk__row:has(.cmdk__spark) { padding-block: 12px; }
.cmdk__row:has(.cmdk__spark) .cmdk__title { font-weight: 500; }
.cmdk__sub, .cmdk__where, .cmdk__act { font-size: 13px; color: var(--muted); }
.cmdk__act { flex: none; }
.cmdk__spark { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px;
  background: color-mix(in srgb, var(--accent-text) 14%, transparent); }
.cmdk__spark svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linejoin: round; }
.cmdk__dot { width: 8px; height: 8px; margin: 0 12px; flex: none; border-radius: 2px; background: var(--line-strong); }
.cmdk__dot.is-yours { background: var(--area-1); }
.cmdk__fx, .cmdk__plus { width: 32px; flex: none; text-align: center; color: var(--muted); }
.cmdk__fx { font-family: var(--font-mono); font-size: 11px; color: var(--tag-text); }
.cmdk__plus { font-size: 15px; }
.cmdk__id { margin-left: 4px; padding: 0; background: none; font-size: 12px; color: var(--muted); }
.cmdk__empty { margin: 0; padding: 20px 10px; font-size: 14px; color: var(--muted); }
.cmdk__foot { display: flex; justify-content: space-between; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line);
  background: var(--subtle); font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .cmdk { margin-top: 16px; }
  .cmdk__foot span:first-child { display: none; }
}

/* ---- Home: an app screen (js/home.js; Claude Design's "Home · an app screen, not a landing page", 25 November
   2026). The app works: no rails, corner marks or grid frame; white cards with a 1px line and 10px corners on the page;
   plain 14px semibold card titles; the page title 22px, body 13–15px. Blue is the place and its data, green the one
   main button (Ask's send), amber worth a look (Census 2026). Panes fit the window: the story and What changed side by
   side, Looking ahead and Pick up where you left off under the story. ---- */
.content:has(> .hm) { margin-inline: 0; padding: 22px var(--page-x) 24px; border-inline: 0; }   /* in line with the top bar's title */
.content:has(> .hm)::before, .content:has(> .hm)::after { display: none; }
.hm { display: flex; flex-direction: column; gap: 16px; min-width: 0; font-size: 14px;
  --hm-x: 16px; --hm-y: 14px; }   /* every card: 16px in from the sides, 14px from the line above and the card's foot */
.hm h2 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; }
.hm-muted { font-size: 12.5px; color: var(--muted); }
.hm-pad { padding: var(--hm-y) var(--hm-x); }
.hm-sp { flex: 1; }
.hm-sq { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--area-1); }
.hm-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; }
.hm-kicker { margin: 0; font-size: 12px; font-weight: 500; color: var(--accent-text); }
.hm-lnk, .hm-q { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; font: inherit;
  font-size: 13px; cursor: pointer; white-space: nowrap; }
.hm-lnk { font-weight: 500; color: var(--accent-text); }
.hm-q { color: var(--text-2); }
.hm-lnk:hover { color: var(--link-hover); }
.hm-q:hover { color: var(--text); }
.hm-lnk svg, .hm-q svg { flex: none; }
.hm-foot { margin: 0; padding: 10px var(--hm-x) var(--hm-y);font-size: 11.5px; line-height: 16px; color: var(--muted); }

/* the greeting and the Ask box beside it */
.hm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.hm-greet { flex: 1 1 320px; min-width: 0; }
.hm-greet h1 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.015em; }
.hm-greet p { margin: 3px 0 0; font-size: 13.5px; color: var(--text-2); }
.hm-greet b { font-weight: 500; color: var(--accent-text); }
.hm-ask { display: flex; align-items: center; gap: 8px; flex: 0 1 560px; min-width: 0; height: 44px; padding: 0 6px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--card); }   /* a pill, as the top bar's search */
.hm-ask:focus-within { border-color: var(--focus-line); }
.hm-ask__scope { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 45%;
  padding: 0 10px; height: 30px; border-radius: var(--radius-pill); background: var(--quiet); font-size: 13px; font-weight: 500; color: var(--text); }
.hm-ask__scope select { appearance: none; min-width: 0; max-width: 100%; padding: 0 16px 0 0; margin-right: -16px; border: 0;
  background: transparent; color: inherit; font: inherit; cursor: pointer; text-overflow: ellipsis; }
.hm-ask__scope select:focus-visible { outline: 2px solid var(--focus-line); outline-offset: 4px; }
.hm-ask__scope svg { flex: none; pointer-events: none; color: var(--muted); }
.hm-ask input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.hm-ask input::placeholder { color: var(--faint); }
.hm-ask__send { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none;
  border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.hm-ask__send:hover { background: var(--accent-hover); }
.hm-ask.is-locked .hm-ask__send { background: var(--quiet); color: var(--muted); }
.hm-ask.is-locked input { cursor: default; }

/* the panes: the story and What changed side by side; Looking ahead and Pick up where you left off under the story */
.hm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.hm-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hm-two { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.hm-two > :only-child { grid-column: 1 / -1; }      /* no place, no Looking ahead */
.hm-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }   /* as Explore's and Find's cards */
.hm-card__head { display: flex; align-items: center; gap: 10px; min-height: 45px; padding: 10px var(--hm-x); border-bottom: 1px solid var(--line-soft); }

/* the story card */
.hm-story__head h2 { white-space: nowrap; }
.hm-story__where { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-seg { display: inline-flex; flex: none; padding: 2px; border-radius: var(--radius-pill); background: var(--quiet); }
.hm-seg button { padding: 3px 10px; border: 0; border-radius: var(--radius-pill); background: none; font: inherit; font-size: 12px; color: var(--text-2); cursor: pointer; }
.hm-seg button[aria-pressed="true"] { background: var(--card); color: var(--text); font-weight: 500; box-shadow: 0 0 0 1px var(--line); }
.hm-story__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: var(--hm-y) var(--hm-x) 8px; }
.hm-story__body > .hm-muted { grid-column: 1 / -1; padding: 40px 0; }
.hm-story h3 { margin: 6px 0 0; font-size: 22px; line-height: 29px; font-weight: 500; letter-spacing: -0.015em; color: var(--text); }
.hm-story__context { margin: 8px 0 0; font-size: 14.5px; line-height: 22px; color: var(--text-2); }
.hm-nums { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 14px 24px; margin-top: 18px; }
.hm-nums div { display: flex; flex-direction: column; gap: 2px; }
.hm-nums b { font-size: 22px; line-height: 27px; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
.hm-nums span { max-width: 140px; font-size: 12px; line-height: 16px; color: var(--muted); }
.hm-nums .hm-nums__vs { color: var(--muted); }
.hm-story__viz { display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding-top: 4px; }
.hm-viz__head { font-size: 12px; color: var(--text-2); }
.hm-viz { min-width: 0; }
.hm-viz .ch-stack { gap: 10px; }
.hm-viz .ch-stack__bar { height: 18px; border-radius: 4px; }
.hm-viz .ch-stack__bars > .ch-stack__bar:last-child { margin-top: 4px; }     /* the city: as tall as the years, set a little apart */
.hm-viz .ch-stack__bars > .ch-stack__name:nth-last-child(2) { padding-top: 4px; color: var(--muted); }
.hm-note { margin: 0; font-size: 11.5px; color: var(--muted); }
.hm-story__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px var(--hm-x) var(--hm-y); }
.hm-dots { display: inline-flex; gap: 5px; }
.hm-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 6px; background: var(--line-strong); cursor: pointer; }
.hm-dots button[aria-current="true"] { width: 16px; background: var(--text); }
.hm-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px var(--hm-x); }
.hm-empty p { margin: 0 0 6px; max-width: 520px; font-size: 14.5px; line-height: 22px; color: var(--text-2); }

/* the table view: the place, its SA2s and the city */
.hm-table__scroll { overflow-x: auto; }
.hm-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hm-tbl th, .hm-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.hm-tbl thead th { padding-block: 8px; background: var(--subtle); font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.hm-tbl th:first-child { padding-left: 16px; }
.hm-tbl td:last-child, .hm-tbl th:last-child { padding-right: 16px; }
.hm-tbl tbody th { font-weight: 400; }
.hm-tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hm-tbl b { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.hm-tbl small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); }
.hm-tbl a { color: var(--text); }
.hm-tbl a:hover { color: var(--accent-text); }
.hm-tbl .is-child th { padding-left: 32px; }
.hm-tbl .is-bench td, .hm-tbl .is-bench th { background: var(--subtle); color: var(--text-2); }
.hm-tbl em { margin-left: 5px; font-style: normal; font-size: 11.5px; color: var(--muted); }

/* What changed */
.hm-feed__list { margin: 0; padding: 0; list-style: none; }
.hm-change { display: flex; gap: 10px; padding: 12px var(--hm-x);border-bottom: 1px solid var(--line-soft); }
.hm-change__icon, .hm-row__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none;
  border-radius: 7px; background: var(--quiet); color: var(--text-2); }
.hm-change__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hm-change__body p { margin: 0; }
.hm-change__where { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.hm-change__where > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-new { flex: none; padding: 1px 7px; border-radius: 9px; background: var(--selected-bg); color: var(--accent-text); font-size: 11px; font-weight: 500; }
.hm-change__line { font-size: 13.5px; line-height: 19px; font-weight: 500; color: var(--text); }
.hm-change__detail { font-size: 12px; line-height: 17px; color: var(--muted); }
.hm-change__bars { margin: 6px 0 2px; }
.hm-change__bars .ch-bars { gap: 3px; }
.hm-change__bars .ch-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 36px; gap: 8px; align-items: center; }
.hm-change__bars .ch-row__head { display: contents; }
.hm-change__bars .ch-row__label { order: 1; font-size: 11.5px; color: var(--muted); }
.hm-change__bars .ch-bar { order: 2; height: 7px; }
.hm-change__bars .ch-val { order: 3; font-size: 11.5px; }
.hm-change__acts { display: flex; gap: 14px; margin-top: 4px; }
.hm-feed__rest { margin: 0; padding: 10px var(--hm-x) 0; font-size: 11.5px; color: var(--muted); }
.hm-feed__more { margin: 10px var(--hm-x) 0; font-size: 12.5px; }
.hm-locked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.hm-locked p { margin: 0; }

/* Looking ahead */
.hm-ahead__body { display: flex; flex-direction: column; gap: 4px; padding: var(--hm-y) var(--hm-x); }
.hm-big { margin: 0;font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.hm-ahead__text { margin: 0 0 6px; font-size: 13px; line-height: 19px; color: var(--text-2); }
.hm-ahead__chart { min-width: 0; margin-bottom: 4px; }
.hm-ahead__chart .ch-key { font-size: 11.5px; }

/* Pick up where you left off */
.hm-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 10px var(--hm-x);
  border-bottom: 1px solid var(--line-soft); color: var(--text); }
.hm-recent__list { padding-block: 4px; }                     /* + a row's 10px: 14px from the tabs' line and the foot */
.hm-recent__list > .hm-pad { padding-block: 10px; }
.hm-row:last-child { border-bottom: 0; }
.hm-row:hover { background: var(--hover); color: var(--text); }
.hm-row__icon { width: 26px; height: 26px; }
.hm-row__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hm-row__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 500; }
.hm-row__go { display: flex; color: var(--faint); }

/* Census 2026: a notice line, not a poster */
.hm-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0; padding: 10px var(--hm-x);
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-size: 13px; color: var(--text-2); }
.hm-tag { flex: none; padding: 2px 8px; border-radius: 6px; background: var(--highlight); color: var(--highlight-text); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.hm-notice__text { flex: 1 1 320px; }
.hm-notice .hm-lnk { margin-left: auto; }

@media (max-width: 1360px) {
  .hm-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1100px) {      /* one column: the story, What changed, then the rest */
  .hm-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-main { display: contents; }
  .hm-story { order: 1; }
  .hm-feed { order: 2; }
  .hm-two { order: 3; }
}
@media (max-width: 900px) {
  .hm-story__body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 700px) {
  .hm-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .content:has(> .hm) { padding: 16px 16px 24px; }
  .hm-head { flex-direction: column; align-items: stretch; }
  .hm-greet, .hm-ask { flex: none; }
  .hm-ask { width: 100%; }
  .hm-story__head { flex-wrap: wrap; }
  .hm-story__head .hm-sp { flex-basis: 100%; height: 0; }
  .hm-story h3 { font-size: 20px; line-height: 26px; }
}

/* ==========================================================================
   The consistency pass (26 November 2026): Home, Ask, Explore's Ask panel,
   Find, Saved and the cards' more menus. Quiet: one green a view, neutral labels.
   ========================================================================== */

/* ---- Home -------------------------------------------------------------------------------------------------------- */
.hm-ask { display: block; height: auto; padding: 0; border: 0; background: none; flex: 0 1 560px; }
.hm-ask .askc { padding: 5px 5px 5px 6px; }
.hm-feed__period { margin: 0; padding: var(--hm-y) var(--hm-x) 2px; font-size: 12.5px; color: var(--muted); }   /* + the first row's 12px */
.hm-big__sub { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.hm-ahead__axis { margin: 0; font-size: 11.5px; color: var(--muted); }
.hm-recent__tabs { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 8px var(--hm-x); border-bottom: 1px solid var(--line-soft); }
.hm-recent__tabs button { padding: 4px 0 2px; border: 0;   /* with the underline, 12px above the words and below */ border-bottom: 2px solid transparent; background: none; color: var(--text-2);
  font: inherit; font-size: 13px; cursor: pointer; }
.hm-recent__tabs button:hover { color: var(--text); }
.hm-recent__tabs button[aria-pressed="true"] { border-bottom-color: var(--text); color: var(--text); font-weight: 500; }
.hm-setup { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 10px var(--hm-x); border: 1px solid var(--line);
  border-radius: 14px; background: var(--card); font-size: 13.5px; }   /* the cards' corners */
.hm-setup[hidden] { display: none; }
.hm-setup__title { font-weight: 500; }
.hm-setup__meter { position: relative; width: 120px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hm-setup__meter > span { position: absolute; inset: 0 auto 0 0; background: var(--area-1); }
.hm-setup__all { margin-left: auto; }
.hm-setup__all summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.hm-setup__all ul { position: absolute; z-index: 5; right: 16px; margin: 6px 0 0; padding: 10px 14px; list-style: none; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--card); box-shadow: var(--pop-shadow); }
.hm-setup__all li { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.hm-setup__all li.is-done { color: var(--muted); }

/* ---- Ask: an app screen ------------------------------------------------------------------------------------------- */
.ask-app { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 40px; }
.ask-threads { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 100px); overflow-y: auto;
  padding-right: 8px; border-right: 1px solid var(--line); }
.ask-threads__h { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.ask-threads__ul { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ask-thread { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.ask-thread:hover { background: var(--hover); color: var(--text); }
.ask-thread__title { font-size: 13.5px; line-height: 1.35; }
.ask-thread__meta { font-size: 12px; color: var(--muted); }
.ask-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 880px; }
.ask-title { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.ask-app .ask-modes { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--muted); }
.ask-app .ask-modes a { color: var(--text-2); text-decoration: none; }
.ask-app .ask-modes a:hover { color: var(--text); }
.ask-app .ask-modes a[aria-current="page"] { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.ask-note { margin: 0; font-size: 13px; color: var(--muted); }
.ask-app .ask-section { margin-top: 18px; gap: 12px; }
.ask-section__h { margin: 0; font-size: 15px; font-weight: 500; }
.ask-app .ask-examples { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ask-app .ask-example__art:empty { display: none; }
.ask-app .ask-locked { width: 100%; }
@media (max-width: 1100px) { .ask-app .ask-examples { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .ask-app { grid-template-columns: minmax(0, 1fr); }
  .ask-threads { position: static; order: 2; max-height: none; padding: 0; border: 0; }
}

/* ---- Explore: the Ask pill and its panel -------------------------------------------------------------------------- */
.ex-askpill { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 8px; height: 42px;
  padding: 0 18px 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--card); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; box-shadow: var(--pop-shadow); cursor: pointer; }
.ex-askpill[hidden] { display: none; }
.ex-askpill:hover { border-color: var(--outline); }
.ex-askpill svg { width: 17px; height: 17px; color: var(--accent-text); }
.ex-askp { position: fixed; z-index: 41; top: 56px; right: 0; bottom: 0; width: 380px; max-width: 100vw; display: flex; flex-direction: column;
  gap: 16px; padding: 16px 18px 20px; overflow-y: auto; border-left: 1px solid var(--line); background: var(--card); box-shadow: var(--pop-shadow); }
.ex-askp[hidden] { display: none; }
.ex-askp__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ex-askp__head h2 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.ex-askp__sec { display: flex; flex-direction: column; gap: 6px; }
.ex-askp__sec h3 { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ex-askp__sugg { display: flex; flex-direction: column; gap: 6px; }
.ex-askp__q { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text); font: inherit; font-size: 13.5px; line-height: 1.35; text-align: left; cursor: pointer; }
.ex-askp__q:hover { border-color: var(--focus-line); background: var(--hover-tint); }
.ex-askp__recent { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ex-askp__recent a { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 13.5px; }
.ex-askp__recent a:hover { background: var(--hover); }
.ex-askp__recent small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) {
  .ex-askpill { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ex-askp { top: auto; height: 78vh; width: 100vw; border-left: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; }
}
.tp-rail__ask { margin-top: 6px; }
/* the head's more menu shows on desktop too, with what the head doesn't have (Compare in a table) */
.ex-more { display: block; }
@media (min-width: 761px) { .ex-more [data-more]:not([data-more="compare"]) { display: none; } }

/* a card's more menu: Ask about this */
.card-more { position: relative; }
.card-more summary { list-style: none; cursor: pointer; }
.card-more summary::-webkit-details-marker { display: none; }
.card-more summary svg { width: 16px; height: 16px; }
.card-more__menu { position: absolute; z-index: 20; top: calc(100% + 4px); right: 0; min-width: 160px; padding: 4px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--card); box-shadow: var(--pop-shadow); }
.card-more__menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.card-more__menu button:hover { background: var(--hover); }

/* ---- Saved -------------------------------------------------------------------------------------------------------- */
.saved-slot__new { padding: 0 6px; border-radius: 999px; background: var(--area-1); color: var(--stack-1-ink); font-size: 11.5px; font-weight: 600; }
.saved-suggest { display: flex; flex-direction: column; gap: 10px; }
.saved-suggest__lead { margin: 0; font-size: 14px; color: var(--text-2); }
.saved-suggest__go { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.saved-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); }
.saved-row:first-child { border-top: 0; }
.saved-row__icon { display: inline-grid; color: var(--muted); }
.saved-row__name { font-weight: 500; color: var(--text); }
.saved-row__sp { flex: 1; }
.saved-row .btn[aria-pressed="true"] { background: var(--selected-bg); }

/* ---- a report: the next section, and Ask about it ----------------------------------------------------------------- */
.report-next { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; font-size: 14px; color: var(--text-2); }
.report-head__ask { max-width: 620px; margin-top: 12px; }

/* ---- Use with AI as a card (Settings, Data) ------------------------------------------------------------------------ */
.ai-card { display: flex; flex-direction: column; gap: 10px; }
.ai-card h2 { margin: 0; font-size: 16px; font-weight: 500; }
.ai-card p { margin: 0; }
.ai-card__url { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; padding: 4px 8px; font-size: 12.5px; }
.ai-card__go { display: flex; flex-wrap: wrap; gap: 8px; }

/* phones: the head is a column, so the Ask box's width basis must not become its height */
@media (max-width: 760px) {
  .hm-ask { flex: none; width: 100%; }
}

/* ---- Ask's start: the hybrid (26 November 2026) ---------------------------------------------------------------------
   Desktop: one centred column, the question as a modest headline (30px, not the first page's 44px poster), the composer
   at a readable width with its modes and note centred under it, then the examples and your questions at the column's
   full width. Phones: the app screen as it was ("Ask", left-aligned, one column). */
.ask-app { display: block; }
.ask-main { max-width: 1040px; margin: 0 auto; padding: 36px 0 8px; gap: 14px; }
.ask-title, .ask-compose, .ask-app .ask-modes, .ask-note, .ask-app .ask-locked { width: min(780px, 100%); align-self: center; }
.ask-title { margin: 0 0 6px; font-size: 30px; line-height: 1.2; text-align: center; letter-spacing: -0.02em; text-wrap: balance; }
.ask-title__short { display: none; }
.ask-app .ask-modes { justify-content: center; }
.ask-note { text-align: center; }
.ask-app .ask-section { margin-top: 26px; }
.ask-threads { position: static; max-height: none; overflow: visible; padding: 0; border: 0; }
.ask-threads[hidden] { display: none; }
.ask-threads__ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ask-thread { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.ask-thread:hover { border-color: var(--axis); background: var(--card); }
.ask-threads__all { align-self: flex-start; margin-top: 4px; font-size: 13.5px; color: var(--accent-text); text-decoration: none; }
@media (max-width: 760px) {
  .ask-main { padding-top: 0; }
  .ask-title { font-size: 22px; text-align: left; margin: 0; }
  .ask-title__long { display: none; }
  .ask-title__short { display: inline; }
  .ask-title, .ask-compose, .ask-app .ask-modes, .ask-note, .ask-app .ask-locked { width: 100%; align-self: stretch; }
  .ask-app .ask-modes { justify-content: flex-start; }
  .ask-note { text-align: left; }
  .ask-threads__ul { grid-template-columns: minmax(0, 1fr); }
}
.ask-app .ask-example { border-radius: 10px; overflow: hidden; }

/* ==========================================================================
   Find places as a workspace (29 November 2026; js/find.js, redesign "find place nov 2026 - v2"): your searches,
   then a search: groupings, criteria with their costs, the matches and near misses, the map and a place preview.
   White panels on the frost page; electric blue for data, amber only for costs, near misses and the tip, green only
   on Add a criterion (New search on the front door).
   ========================================================================== */
.content:has(> .fw) { margin-inline: 0; padding: 22px var(--page-x) 96px; border-inline: 0; }
.content:has(> .fw)::before, .content:has(> .fw)::after { display: none; }
.fw { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.fw .card { border-radius: 14px; padding: 18px 20px; }
.fw h1 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.015em; }
.fw h2 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; letter-spacing: -0.005em; }
.fw-lede { margin: 6px 0 0; max-width: 680px; font-size: 14.5px; line-height: 22px; color: var(--text-2); }
.fw-sp { flex: 1; }
.fw-scroll { overflow-x: auto; }
.fw-sel { position: relative; display: inline-flex; align-items: center; }
.fw-sel > svg { position: absolute; right: 10px; pointer-events: none; color: var(--muted); }
.fw-sel select { appearance: none; background-image: none; cursor: pointer; }
.fw-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border: 1px solid var(--tag-line);
  border-radius: var(--radius-pill); color: var(--tag-text); font-size: 12px; font-weight: 500; vertical-align: 1px; }

/* the front door: your searches */
.fw-door__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fw-door__list h2 { margin-bottom: 12px; }
.fw-door__crit { max-width: 420px; color: var(--text-2); }
.fw-door__tbl tbody tr { cursor: pointer; }
/* a search's name with its pencil (rename in place), and the Delete column's × on the far right */
.fw-door__name { min-width: 220px; }
.fw-door__name a { color: var(--text); }
.fw-door__edit { margin-left: 4px; vertical-align: -3px; }
.fw-door__edit:hover, .fw-door__del .fw-x:hover { background: var(--hover); color: var(--text); }
.fw-door__rename { width: 100%; max-width: 320px; height: 30px; padding: 0 10px; font-size: 13.5px; }
.fw-door__tbl .fw-door__del { width: 1%; text-align: center; }
.fw-door__start { display: flex; flex-direction: column; gap: 12px; }
.fw-door__cards, .fw-door__sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fw-start { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--card); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.fw-start:hover { border-color: var(--line-strong); background: var(--hover); color: var(--text); }
.fw-start > svg { color: var(--accent-text); }
.fw-start b { font-weight: 500; font-size: 15px; }
.fw-start span { font-size: 13px; line-height: 19px; color: var(--text-2); }
.fw-start--dashed { border-style: dashed; }
.fw-door__pick { max-width: 640px; }
.fw-door__pick .fw-door__sets { max-width: none; }

/* a search: the head */
.fw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fw-head__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fw-title { margin: 0; }
.fw-name { width: 100%; max-width: 640px; margin-left: -8px; padding: 2px 8px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.015em; }
.fw-name:hover { border-color: var(--line); }
.fw-name:focus { outline: none; border-color: var(--focus-line); background: var(--card); }
.fw-status { margin: 0; font-size: 12.5px; color: var(--muted); }
.fw-status.is-error { color: var(--warn-text); }
.fw-head__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.fw-head__acts .btn { display: inline-flex; align-items: center; gap: 6px; }

/* the groupings */
.fw-groups { display: flex; flex-direction: column; gap: 10px; }
.fw-groups__head .caption { margin: 2px 0 0; }
.fw-gcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fw-gcard { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
button.fw-gcard:hover { border-color: var(--line-strong); }
.fw-gcard.is-on { border-color: var(--navy); background: var(--selected-bg); box-shadow: inset 0 0 0 1px var(--navy); }
[data-theme="dark"] .fw-gcard.is-on { border-color: var(--periwinkle); box-shadow: inset 0 0 0 1px var(--periwinkle); }
.fw-gcard--own { cursor: default; border-style: dashed; }
.fw-gcard--own.is-on { border-style: solid; }
.fw-gcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fw-gcard__top b { font-weight: 500; font-size: 15px; }
.fw-gcard__sel { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--pressed-bg); color: var(--pressed-text); font-size: 11.5px; font-weight: 500; }
.fw-gcard__desc { font-size: 13px; line-height: 19px; color: var(--text-2); }
.fw-gcard ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.fw-gcard li { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
.fw-gcard li b { color: var(--text); font-weight: 500; }
.fw-gcard__count { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line-soft); font-size: 13px; font-weight: 500; color: var(--accent-text); }
.fw-own { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; font-size: 13px; }
.fw-own__pick { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-own__pick > span { flex: 1; min-width: 0; }

/* scope and criteria */
.fw-crit { display: flex; flex-direction: column; gap: 10px; }
.fw-scope { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fw-scope__label { font-size: 13px; color: var(--muted); }
.fw-chip { height: 32px; padding: 0 30px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--card);
  color: var(--text); font: inherit; font-size: 13px; font-weight: 500; }
button.fw-chip { padding-right: 12px; cursor: pointer; }
.fw-chip--static { display: inline-flex; align-items: center; gap: 4px; padding-right: 12px; border-color: var(--line); color: var(--text-2); font-weight: 400; }
.fw-chip__x { display: inline-flex; padding: 2px; margin-right: -4px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.fw-reset { font-size: 13px; }
.fw-count { margin-top: 6px !important; font-size: 22px !important; line-height: 28px !important; letter-spacing: -0.015em !important; }
.fw-summary { margin: 0; max-width: 860px; font-size: 14.5px; line-height: 22px; color: var(--text-2); }
.fw-tip { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--warn-tint); color: var(--warn-text); font-size: 13.5px; line-height: 20px; }
.fw-tip b { font-weight: 600; margin-right: 4px; }
.fw-tip .link-btn { color: var(--warn-text); font-weight: 600; text-decoration: underline; }
.fw-ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 4px; align-items: stretch; }
.fw-ccard { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.fw-ccard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fw-ccard__top b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-x { display: inline-flex; padding: 4px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.fw-x:hover { background: var(--hover); color: var(--text); }
.fw-ccard__row { display: flex; align-items: center; gap: 6px; }
.fw-op { height: 32px; padding: 0 26px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; }
.fw-num { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); background: var(--card); }
.fw-num:focus-within { border-color: var(--focus-line); }
.fw-val { width: 56px; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: transparent; color: var(--text);
  font: inherit; font-size: 13.5px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.fw-val::-webkit-inner-spin-button, .fw-val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fw-num__unit { flex: none; font-size: 13px; color: var(--muted); }
@supports (field-sizing: content) { .fw-val { field-sizing: content; width: auto; min-width: 2ch; max-width: 10ch; } }
.fw-and { font-size: 12.5px; color: var(--muted); }
/* between: the two numbers on a line of their own under the select, sharing the card's width */
.fw-ccard__row--between { flex-wrap: wrap; }
.fw-range { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; min-width: 0; }
.fw-range .fw-num { flex: 1 1 0; min-width: 0; }
.fw-range .fw-val { field-sizing: fixed; width: 100%; max-width: none; }
.fw-ccard__aus { margin: 0; font-size: 12px; color: var(--muted); }
.fw-meet { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--text-2); }
.fw-meet__bar { flex: 0 0 56px; height: 6px; border-radius: 3px; background: var(--subtle); overflow: hidden; }
.fw-meet__bar i { display: block; height: 100%; background: var(--area-1); }
.fw-add { align-self: center; justify-self: start; display: inline-flex; align-items: center; gap: 6px; }

/* the matches and the side */
.fw-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.fw-matches { display: flex; flex-direction: column; gap: 10px; transition: opacity 0.15s; }
.fw-matches.is-updating { opacity: 0.6; }
.fw-tbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fw-tbar .btn { display: inline-flex; align-items: center; gap: 6px; }
.fw-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fw-tbl th { padding: 8px 10px; background: var(--subtle); color: var(--muted); font-size: 12.5px; font-weight: 500; text-align: left; white-space: nowrap; }
.fw-tbl th.is-crit { color: var(--text); }
.fw-tbl td { padding: 8px 10px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.fw-tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.fw-tbl td.is-crit { color: var(--text); }
.fw-th { display: inline-flex; align-items: center; gap: 2px; }
.fw-sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.fw-sort:hover { color: var(--text); }
.fw-colx { display: inline-flex; padding: 2px; border: 0; background: none; color: var(--faint); cursor: pointer; }
.fw-colx:hover { color: var(--text); }
.fw-pick { width: 28px; }
.fw-row { cursor: pointer; }
.fw-row:hover td { background: var(--hover); }
.fw-row.is-selected td { background: var(--highlight); }
.fw-row.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--area-1); }
.fw-placecell { min-width: 150px; }
.fw-placecell b { font-weight: 500; }
.fw-placecell small { display: block; margin-top: 1px; font-size: 12px; color: var(--warn-text); }
.fw-row.is-near td { color: var(--muted); }
.fw-row.is-near td.is-fail { color: var(--warn-text); font-weight: 700; }
.fw-row.is-near .fw-placecell b { color: var(--text-2); }
.fw-nearhead td { padding: 16px 10px 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.fw-nearhead td > span { margin-right: 10px; }
.fw-nearhead b { font-weight: 500; color: var(--text); }
.fw-morerow td { padding: 10px; font-size: 13px; }
.fw-morerow .link-btn { position: sticky; left: 10px; }
.fw-none { padding: 18px 10px !important; }
.fw-sources { margin: 4px 0 0; font-size: 12px; }

.fw-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 18px; }
.fw-mapcard { padding: 0 !important; overflow: hidden; }
.fw-map { height: 360px; }
.fw-mapcard__key { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.fw-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.fw-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.fw-sites { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); cursor: pointer; }
.fw-dot, .find-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--area-1); border: 2px solid var(--card); box-sizing: content-box; }
.fw-dot--near, .find-dot--near { background: var(--card); border-color: var(--muted); }
.fw-dot--sel { background: var(--navy); }
[data-theme="dark"] .fw-dot--sel { background: var(--periwinkle); }
.find-dot { position: relative; padding: 0; cursor: pointer; box-shadow: 0 0 0 1px color-mix(in srgb, var(--navy) 25%, transparent); }
.find-dot.is-selected { width: 14px; height: 14px; background: var(--navy); z-index: 2; }
[data-theme="dark"] .find-dot.is-selected { background: var(--periwinkle); }
.find-dot__label { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 2px 8px; border-radius: 6px;
  background: var(--contrast-bg); color: var(--contrast-text); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; }

.fw-preview { display: flex; flex-direction: column; gap: 4px; }
.fw-preview h2 { font-size: 18px !important; }
.fw-preview .caption { margin: 0; }
.fw-preview__vs { margin: 10px 0 2px; font-size: 12.5px; color: var(--muted); }
.fw-bars { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fw-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 13px; }
.fw-bars__label { color: var(--text-2); }
.fw-bars__v { font-weight: 500; font-variant-numeric: tabular-nums; }
.fw-bars__v span { color: var(--muted); font-weight: 400; }
.fw-bars__track { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 4px; background: var(--subtle); }
.fw-bars__track i { display: block; height: 100%; min-width: 2px; border-radius: 4px; background: var(--area-1); }
.fw-bars__track b { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: var(--baseline); }
.fw-preview__acts { display: flex; gap: 8px; margin-top: 12px; }

/* Ask about this search: a panel on the right */
.fw-ask { position: fixed; top: 64px; right: 16px; bottom: 16px; z-index: 40; width: 380px; max-width: calc(100vw - 32px); display: flex;
  flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  box-shadow: var(--pop-shadow); overflow: auto; }
.fw-ask[hidden] { display: none; }
.fw-ask__head { display: flex; align-items: center; justify-content: space-between; }
.fw-ask__qs { display: flex; flex-direction: column; gap: 8px; }
.fw-ask__q { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: inherit;
  font-size: 13.5px; text-align: left; cursor: pointer; }
.fw-ask__q:hover { border-color: var(--line-strong); background: var(--hover); }

/* Add a criterion (or a column): topics in a rail, the metrics in the big space (Claude Design's "Add a criterion") */
.modal.fw-pick { width: min(980px, calc(100vw - 32px)); height: min(720px, calc(100vh - 48px)); padding: 0; display: flex;
  flex-direction: column; overflow: hidden; border-radius: 16px; }
.modal.fw-pick:not([open]) { display: none; }
.fw-pick__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line); }
.fw-pick__head h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.fw-pick__head .caption { margin: 2px 0 0; }
.fw-pick__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.fw-pick__rail { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; overflow-y: auto; border-right: 1px solid var(--line);
  background: var(--subtle); }
.fw-pick__rail hr { margin: 8px 6px; border: 0; border-top: 1px solid var(--line); }
.fw-pick__cat { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 0;
  border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.fw-pick__cat:hover:not(:disabled) { background: var(--hover); }
.fw-pick__cat.is-on { background: var(--selected-bg); color: var(--selected-text); font-weight: 500; }
.fw-pick__cat:disabled { color: var(--faint); cursor: default; }
.fw-pick__cat--sub { padding: 6px 10px 6px 22px; font-size: 13px; color: var(--text-2); }
.fw-pick__n { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.fw-pick__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 14px 18px 0; }
.fw-pick__q { flex: none; max-width: none; margin-left: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; }
.fw-pick__q input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.fw-pick__status { min-height: 18px; margin: 8px 2px 6px; font-size: 12.5px; color: var(--muted); }
.fw-pick__list { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 14px; }
.fw-pick__group { position: sticky; top: 0; z-index: 1; margin: 0; padding: 12px 4px 6px; background: var(--card); color: var(--muted);
  font-size: 12.5px; font-weight: 500; }
.fw-pick__m { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; width: 100%; padding: 9px 10px; border: 0;
  border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fw-pick__m:hover, .fw-pick__m:focus-visible { background: var(--hover); outline: none; }
.fw-pick__m:focus-visible { box-shadow: inset 0 0 0 2px var(--focus-line); }
.fw-pick__m[aria-disabled="true"] { cursor: default; color: var(--muted); }
.fw-pick__m[aria-disabled="true"]:hover { background: none; }
.fw-pick__name { font-size: 14px; font-weight: 500; }
.fw-pick__name small { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--muted); }
.fw-pick__aus { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fw-pick__no { padding: 1px 8px; border: 1px solid var(--tag-line); border-radius: var(--radius-pill); color: var(--tag-text); font-size: 11.5px; }
.fw-pick__about { grid-column: 1 / -1; font-size: 12.5px; line-height: 18px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.fw-pick__m[aria-disabled="true"] .fw-pick__about { color: var(--muted); }
.fw-pick__none { margin: 24px 4px; color: var(--muted); font-size: 14px; }
.fw-pick__foot { padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) {
  .modal.fw-pick { width: 100vw; max-width: 100vw; height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .fw-pick__body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .fw-pick__rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .fw-pick__rail hr { display: none; }
  .fw-pick__cat { flex: none; }
  .fw-pick__main { padding: 10px 12px 0; }
}

/* import a list of sites */
.fw-import { max-width: 820px; }
.fw-import__form, .fw-import__check { display: flex; flex-direction: column; gap: 12px; }
.fw-import .field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.fw-import__map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fw-import__acts { display: flex; gap: 8px; justify-content: flex-end; }
.fw-import .field > span:first-child { color: var(--text-2); font-weight: 500; }
.fw-import .fw-sel { display: flex; }
.fw-import .fw-sel select { width: 100%; padding-right: 32px; }
.fw-import__hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.fw-import__error { margin: 0; font-size: 13px; color: var(--warn-text); }
/* the file: our own field, the browser's input kept for keys and screen readers, but not seen */
.fw-file { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 8px 8px 14px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md); background: var(--card); color: var(--muted); cursor: pointer; }
.fw-file:hover, .fw-file.is-over { border-color: var(--focus-line); background: var(--hover); }
.fw-file:focus-within { border-color: var(--focus-line); border-style: solid; }
.fw-file.has-file { border-style: solid; color: var(--text); }
.fw-file > svg { flex: none; color: var(--accent-text); }
.fw-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.fw-file .btn { flex: none; pointer-events: none; }
.fw-file__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.fw-import__figure { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--subtle); }
.fw-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.fw-check input { width: 16px; height: 16px; accent-color: var(--area-1); }
.fw-import__figwhat { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; margin-top: 4px; }
.fw-import__figwhat[hidden] { display: none; }
@media (max-width: 760px) { .fw-import__figwhat { grid-template-columns: 1fr; } }

@media (max-width: 1280px) {
  .fw-gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-cols { grid-template-columns: minmax(0, 1fr); }
  .fw-side { position: static; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .content:has(> .fw) { padding: 16px 16px 80px; }
  .fw-door__cards, .fw-door__sets, .fw-gcards { grid-template-columns: 1fr; }
  .fw-side { display: flex; }
  .fw-map { height: 280px; }
  .fw-import__map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fw-ask { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 75vh; }
  .fw-name { font-size: 20px; }
}
