/* ==========================================================================
   The 2026 design (the app redesign, 25 November 2026: DESIGN.md, the site's
   design system, and Claude Design's app pages in redesign/nov-2026/).
   Colours, type, shapes and the shell's chrome on the app's classes; each
   page's own layout is rebuilt page by page. Loaded after app.css, so it wins
   at equal specificity; every colour is a token from tokens.css (both themes).

   - A frost page; white panels joined by 1px lines, no radius, no shadow.
   - The website persuades; the app works (the consistency pass, 26 November
     2026): no rails, corner marks, dotted textures or poster blocks in the app.
     The ■ marker is the sidebar's section bookmark, and nowhere else.
   - Buttons, toggles and chips are pills: the primary in Racing green (Mint in
     dark), the rest outlined in navy; a toggle picked inverts to navy.
   - Inputs are 12px rounded; floating layers (menus, drop-downs, toasts,
     modals) are 12px with DESIGN.md's card shadow. Nothing else has one.
   - Headings at 500 with tight tracking, navy; body copy grey; eyebrows
     sentence case in Electric; metric ids and tool names in PT Mono.
   - Picked out: the nav's page in an Electric tint, a row in Citron, tags and
     measures in Lilac, tool names in Mint.
   ========================================================================== */

:root {
  --radius-sm: 8px;     /* small controls, list rows, the nav */
  --radius-md: 12px;    /* inputs, floating layers */
  --radius-lg: 0;       /* panels and cards sit in the grid: square */
  --radius-xl: 12px;    /* sheets, modals */
  --radius-pill: 999px; /* buttons, toggles, chips */
  --radius-tag: 4px;    /* tags, tool names */
}

/* ---- Type ---------------------------------------------------------------------- */
body { color: var(--text); }
em, i { font-style: normal; font-weight: 500; }
.map-key__title em { color: var(--accent-text); }
h1, h2, h3 { color: var(--text); }
h1 { font-weight: 500; letter-spacing: -0.025em; }
.card :is(h2, h3), .ex-headline, .ex-stand__head h2, .find__title h2, .find-way__head h2, .dat-head__title,
.sites-head__title h1, .plist-title h1, .ins-title, .dat-card__top h3, .ask-block__title, .ask-check h3,
.ask-example__title, .ask-hero__title, .sheet__title, .ex-locked__title, .dat-side__card h2, .dat-topic__name,
.slot__name, .m-header__title, .find-start__intro h1, .find__intro h1, .dat-section__head h2, .dat-group__head h2,
.ex-compare__head h2, .plan-card h3, .usage__head { font-weight: 500; letter-spacing: -0.015em; }
p, .caption { color: inherit; }
.caption, .card__foot, .ins-foot, .notes { color: var(--muted); }
.measures thead th, .sites-table thead th, .ask-table thead th, .plist-table thead th { background: var(--subtle); }

/* Section label: "■ Your places", a band's top-left corner (DESIGN.md: 12px, 500, .04em, muted, a 6px square) */
.section-label, .recent__head, .nav .eyebrow {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted);
}
.section-label::before, .recent__head::before, .nav .eyebrow::before {
  content: ''; width: 6px; height: 6px; flex: none; background: var(--mark);
}

/* ---- Bands --------------------------------------------------------------------------------- */
/* A band: a full-width section of the content column with a 1px line along its top. No crosses or rails (the
   consistency pass, 26 November 2026); the PDF profile keeps its own. */
.band { position: relative; border-top: 1px solid var(--line); }
.xh { display: none; }

/* ---- The shell ------------------------------------------------------------------ */
.app { position: relative; background: var(--bg); }
.sidebar { padding: 22px 16px 18px; gap: 22px; background: var(--sunken); border-right: 1px solid var(--line); }
.sidebar__foot { border-top-color: var(--line); color: var(--muted); }
.sidebar__toggle:hover { background: var(--hover); }

/* the wordmark (#i-censible, 285 × 60, never typed) when the sidebar is open; the C (#i-mark) when it's collapsed */
.brand { color: var(--logo); }
.brand__logo { height: 21px; width: calc(21px * 285 / 60); }
.brand__mark { width: 26px; height: 26px; }
.oops-alone__bar .brand__logo { height: 24px; width: calc(24px * 285 / 60); }

.nav { gap: 2px; }
.nav__item { gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: 14.5px; font-weight: 400; }
.nav__item svg { width: 18px; height: 18px; color: var(--muted); }
.nav__item:hover { background: var(--hover); color: var(--text); }
.nav__item[aria-current="page"] { background: var(--selected-bg); color: var(--selected-text); font-weight: 500; }
.nav__item[aria-current="page"] svg { color: var(--accent-text); }
button.nav__item:hover { color: var(--text); }
/* Recent questions: the open one is a white panel */
.recent__head { padding: 0 10px 8px; }
.recent__item { border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 400; color: var(--text-2); }
.recent__item[aria-current="page"] { background: var(--card); border-color: var(--line); color: var(--text); font-weight: 500; }

/* The top bar sits on the page colour, a line under it (56px: the consistency pass, 26 November 2026) */
.topbar { min-height: 56px; background: var(--bg); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }
@media (min-width: 761px) {
  /* the content column: no rail at its right edge (the consistency pass, 26 November 2026) */
  .content { position: relative; margin-inline: 0; padding-inline: var(--page-x); border-inline: 0; }
}

/* ---- Panels ---------------------------------------------------------------------- */
.card, .slot, .stat, .notes { border-color: var(--line); border-radius: var(--radius-lg); box-shadow: none; }
.card { background: var(--card); }
.slot--baseline { background: var(--subtle); }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: 0; }
.cmp-pop, .find-way, .modal, .sheet { border-radius: var(--radius-xl); }
.cmp-sheet { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.sheet { box-shadow: none; }
.srch-drop, .srch-menu, .cmp-pop { border-color: var(--line); border-radius: var(--radius-md); box-shadow: var(--pop-shadow); }

/* ---- Buttons: pills ------------------------------------------------------------------ */
.btn {
  height: 40px; padding: 0 17px; border-radius: var(--radius-pill); border-color: var(--outline);
  background: transparent; color: var(--text); font-size: 14.5px; font-weight: 500;
}
.btn:hover { border-color: var(--outline); background: var(--hover); color: var(--text); }
.btn--lg { height: 46px; padding: 0 25px; font-size: 16px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); filter: none; }
.btn--quiet { border-color: transparent; background: var(--quiet); }
.btn.is-saved { background: var(--selected-bg); border-color: var(--outline); color: var(--text); }
.btn-icon { border-radius: var(--radius-pill); border-color: var(--line); background: var(--card); }
.btn-icon:hover { border-color: var(--axis); }
.btn-icon--ghost { border-color: transparent; background: transparent; }
.btn-icon--ghost:hover { border-color: transparent; background: var(--hover); }
.link-btn, a.link { color: var(--accent-text); }

/* ---- Inputs: 12px, an Electric border when focused ------------------------------------- */
.input, .search, .cmp-pop__search, .find__ask select, .find-way__search.search {
  border-radius: var(--radius-md); border-color: var(--line-strong); background: var(--card);
}
#top-search .search, .topbar .search { border-radius: var(--radius-pill); }
.ask-box, .ask-follow, .find-way__search.search { border-radius: var(--radius-md); }
.input:focus { outline: none; border-color: var(--focus-line); }
.search:focus-within, .cmp-pop__search:focus-within, .ask-box:focus-within, .ask-follow:focus-within {
  outline: none; border-color: var(--focus-line);
}
input::placeholder, textarea::placeholder { color: var(--faint); }

/* ---- Chips and toggles: pills, inverted to navy when picked -------------------------------- */
.chip, .area-chip, .add-chip, .cmp-chip2, .ex-chain__chip, .map-card__zoomhint, .map-card__title {
  border-radius: var(--radius-pill);
}
.chip { height: 34px; padding: 0 14px; border-color: var(--line); background: var(--card); color: var(--text); font-size: 13.5px; }
.chip:hover { border-color: var(--axis); background: var(--card); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--pressed-bg); border-color: var(--pressed-line); color: var(--pressed-text); }

/* "Compared with": a pill, the place's name strong */
.cmp-chip2 { border-color: var(--line-strong); background: var(--card); }
.cmp-chip2__main:hover, .cmp-chip2__x:hover { background: var(--hover); }
.cmp-chip2__label { font-weight: 500; }
.cmp-chip2:has([aria-expanded="true"]) { box-shadow: none; border-color: var(--focus-line); }

/* Options (the map's levels, shade by, Ask's modes): 13px pills, a line border, navy when picked */
.level-switch button, .ask-mode {
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--card); color: var(--text);
  font-size: 13px;
}
.level-switch button:hover, .ask-mode:hover { border-color: var(--axis); background: var(--card); color: var(--text); }
.level-switch button[aria-pressed="true"], .ask-mode[aria-pressed="true"],
.level-switch button[data-extra][aria-pressed="true"], .level-switch button[data-mode="point"][aria-pressed="true"] {
  border: 1px solid var(--pressed-line); background: var(--pressed-bg); color: var(--pressed-text); font-weight: 500;
}
.segmented, .billing__toggle { padding: 3px; border-color: var(--line); border-radius: var(--radius-pill); background: var(--card); }
.segmented button, .billing__toggle-btn { border-radius: var(--radius-pill); color: var(--text-2); }
.segmented button[aria-pressed="true"], .segmented button[aria-selected="true"], .billing__toggle-btn[aria-pressed="true"] {
  background: var(--pressed-bg); color: var(--pressed-text); font-weight: 500;
}
/* Suggestions (Find's Add, Ask next): outlined pills that tint on hover */
.ask-chip { border-color: var(--line); border-radius: var(--radius-pill); }
button.ask-chip { border-style: solid; border-color: var(--line-strong); background: var(--card); color: var(--text); font-weight: 400; }
button.ask-chip:hover { border-color: var(--focus-line); background: var(--hover-tint); }
.ask-chip--place, .ask-chip--basis { background: var(--selected-bg); color: var(--selected-text); }
.find__add { border: 1px dashed var(--dash-accent); border-radius: var(--radius-pill); color: var(--accent-text); }
.find__add:hover { background: var(--hover-tint); color: var(--accent-text); }
.find-preset { border-radius: 0; }
.find-preset:hover { border-color: var(--focus-line); }
.find-preset[aria-pressed="true"] { border-color: var(--outline); background: var(--selected-bg); }

/* ---- Tabs: underlined in navy ------------------------------------------------------------------- */
.tabs, .find__modes {
  padding: 0; gap: 4px; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
.tabs a, .tabs button, .find__modes button {
  height: auto; min-height: 0; padding: 10px 14px 11px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; background: transparent; color: var(--text-2); font-size: 14.5px; font-weight: 400;
}
.tabs a:hover, .tabs button:hover, .find__modes button:hover { color: var(--text); }
.tabs a[aria-current="page"], .tabs button[aria-selected="true"], .find__modes button[aria-pressed="true"] {
  background: transparent; border-bottom-color: var(--text); color: var(--text); font-weight: 500;
}
.dat-tabs a[aria-current="page"] { border-color: var(--text); color: var(--text); }
/* Explore's topic tabs: pills until Explore's own redesign */
.ex-tabs { border-bottom: 0; gap: 8px; }
.ex-tabs a { padding: 6px 14px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--card); color: var(--text); font-size: 13.5px; }
.ex-tabs a:hover { border-color: var(--axis); background: var(--card); color: var(--text); }
.ex-tabs a[aria-current="page"] { border-color: var(--pressed-line); background: var(--pressed-bg); color: var(--pressed-text); }

/* ---- Tags: Lilac; tool names: Mint; both 4px ---------------------------------------------------- */
.pill, .ins-tag__pill {
  padding: 2px 8px; border: 0; border-radius: var(--radius-tag); background: var(--tag-bg); color: var(--tag-text);
  font-size: 12px; font-weight: 500;
}
code { border-radius: var(--radius-tag); background: var(--code-bg); color: var(--code-text); }

/* ---- Where a figure comes from (Data's chips) ------------------------------------------------------- */
.dat-chip { min-height: 22px; padding: 0 8px; border-radius: var(--radius-tag); font-size: 12px; font-weight: 500; }
.dat-chip--census { background: var(--selected-bg); color: var(--selected-text); }
.dat-chip--published { background: var(--card); border-color: var(--line-strong); color: var(--text); }
.dat-chip--bands { background: var(--quiet); color: var(--text-2); }
.dat-chip--modelled { background: var(--highlight); color: var(--highlight-text); }
.dat-chip--projected { background: var(--card); border: 1px dashed var(--accent-text); color: var(--accent-text); }
.dat-chip--latest { background: var(--tag-bg); border-color: transparent; color: var(--tag-text); }
.dat-chip--listed { background: var(--card); border-color: var(--line-strong); color: var(--text-2); }
.dat-id code, .dat-side__item code { color: var(--code-text); }
.dat-card:hover, .dat-topic:hover { border-color: var(--axis); }
.dat-side__card { background: var(--subtle); }
.dat-side__item { background: var(--card); border: 1px solid var(--line); }
.dat-star[aria-pressed="true"] { color: var(--accent-text); }

/* ---- Rows picked out: Citron ---------------------------------------------------------------------------- */
.ex-cell:hover { background: var(--highlight-hover); }
.ex-cell[aria-pressed="true"] { background: var(--highlight); border-left-color: transparent; }
.ex-cell__on { color: var(--highlight-text); }
.plist-table tr.is-selected th, .plist-table tr.is-selected td { background: var(--highlight); }
.ask-table tr.is-start { background: var(--highlight); }
.ask-table tr.is-bench { background: var(--subtle); }
.ask-table__start { color: var(--text); }

/* ---- Explore (until its own redesign) ---------------------------------------------------------------------- */
/* Estimated for 2026: a Lilac panel, its figures on white */
.ex-ahead { padding: 14px 16px; border: 1px solid var(--tag-line); border-radius: 0; background: var(--panel-tint); }
.ex-ahead__card { border-color: transparent; border-radius: 0; background: var(--card); }
.ex-headline__vs { color: inherit; }

/* ---- Ask (until its own redesign) --------------------------------------------------------------------------- */
.ask-q span { border: 0; border-radius: 12px; background: var(--contrast-bg); color: var(--contrast-text);
  font-size: 15px; font-weight: 500; }
.ask-how { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--card); }
.ask-how summary { font-weight: 500; }
.ask-how__steps code { padding: 2px 7px; border-radius: var(--radius-tag); background: var(--mint); color: var(--navy);
  font-size: 12px; }
.ask-send { border-radius: var(--radius-pill); background: var(--contrast-bg); color: var(--contrast-text); }
.ask-send:hover:not(:disabled) { background: var(--contrast-hover); }
.ask-side__card h2 { color: var(--accent-text); font-size: 13.5px; font-weight: 500; font-stretch: normal;
  letter-spacing: 0; text-transform: none; }
/* the examples' kinds are Lilac tags */
.ask-example__words .eyebrow { align-self: flex-start; padding: 2px 8px; border-radius: var(--radius-tag);
  background: var(--tag-bg); color: var(--tag-text); font-size: 12px; font-weight: 500; }
.ask-measure { border: 0; border-radius: 0; background: var(--tag-bg); }
.ask-measure code { padding: 0; background: none; color: var(--tag-text); }
.ask-measure span { color: var(--text); }
.ask-example:hover { border-color: var(--axis); }

/* ---- Saved: sites' thirds as tags ----------------------------------------------------------------------------- */
.site-third { padding: 2px 8px; border-radius: var(--radius-tag); font-size: 12px; font-weight: 500; }
.site-third__dot { display: none; }
.site-third--best { background: var(--area-1); color: var(--stack-1-ink); }
.site-third--middle { background: var(--selected-bg); color: var(--selected-text); }
.site-third--rest { background: var(--tag-bg); color: var(--tag-text); }
.site-third--none { background: var(--quiet); color: var(--text-2); }
.site-mark { background: var(--pin-middle); color: var(--on-pin-middle); }
.site-mark--best { background: var(--area-1); color: var(--stack-1-ink); }
.site-mark--rest { background: var(--lilac); color: var(--on-lilac); border-color: var(--card); }
.site-mark--check { outline-color: var(--contrast-bg); }

/* ---- Floating: toasts in navy ------------------------------------------------------------------------------------ */
.toast { border: 0; border-radius: var(--radius-md); background: var(--contrast-bg); color: var(--contrast-text); box-shadow: var(--pop-shadow); }
.toast a { color: var(--contrast-text); }
.toast.is-error::before { color: var(--contrast-text); }

/* ---- Explore v3 (25 November 2026: redesign/nov-2026 "Explore v3 · the original Explore, refined"): the original
   Explore's Overview (the lede beside the map, How it compares, What stands out, the topic cards) in rounded white
   cards on the page colour. One change from the mockup: the projections sit at the foot of the lede, and the map runs
   the lede's full height beside them (.ex-top stretches both). The map itself (MapLibre, its tiles) is unchanged. ---- */
.explore { gap: 28px; }
.explore .ex-chain { display: none; }                          /* the top bar's breadcrumbs say where the place is */
.explore .ex-head { align-items: center; }
.explore .ex-head .cmp-line { margin: 0; }
.explore .ex-actions .ex-find { order: 9; }                    /* the primary action last, as the mockup has it */
.explore .ex-actions .btn, .explore .ex-actions .btn-icon { border-radius: 10px; }

.explore .ex-top { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.explore .ex-lede { gap: 0; padding-top: 0; }
.explore .ex-kicker { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: none; color: var(--muted); }
.explore .ex-kicker a { color: inherit; }
.explore .ex-headline { margin: 12px 0 0; font-size: 33px; line-height: 41px; font-weight: 500; letter-spacing: -0.025em; }
.explore .ex-standfirst { margin: 16px 0 0; font-size: 16px; line-height: 25px; color: var(--text-2); }
.explore .ex-hint { margin: 10px 0 0; font-size: 13px; }
.explore .ex-figs { margin: 22px 0 0; }
.explore .ex-fig { padding: 16px 16px 16px 0; }
.explore .ex-fig:nth-child(even) { padding-left: 18px; }
.explore .ex-fig__value { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.02em; }
.explore .ex-fig dt { font-size: 14px; color: var(--text-2); }
.ex-new { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 13px; line-height: 19px; color: var(--text-2); }
.ex-new strong { font-weight: 500; color: var(--text); }
.ex-new__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--area-1); }
.ex-new__go { margin-left: auto; white-space: nowrap; font-weight: 500; color: var(--accent-text); }
.explore .ex-ahead { gap: 12px; margin-top: auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.explore .ex-since-slot { margin-bottom: 24px; }                /* at least this between the figures and the projections */
.explore .ex-ahead__head h2 { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: none; color: var(--muted); }
.explore .ex-ahead__head a { font-size: 13px; font-weight: 500; color: var(--accent-text); }
.explore .ex-ahead__cards { gap: 12px; }
.explore .ex-ahead__card { padding: 12px 14px; border: 1px dashed color-mix(in srgb, var(--area-1) 35%, transparent); border-radius: 10px; background: var(--bg); }
.explore .ex-ahead__card .ex-fig__value { font-size: 22px; }
.explore .ex-ahead__label { font-size: 13px; }
.explore .ex-ahead .caption { font-size: 12px; line-height: 18px; }

.explore .ex-map { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.explore .ex-map__bar { padding: 12px; border-bottom: 1px solid var(--line); }
.explore .ex-map .level-switch { gap: 0; padding: 3px; border-radius: 9px; background: var(--subtle); }
.explore .ex-map .level-switch button { height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: none; font-size: 13px; color: var(--text-2); }
.explore .ex-map .level-switch button[aria-pressed="true"] { background: var(--card); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 10%, transparent); }
.explore .ex-map .map-card__canvas { min-height: 480px; }
.explore .ex-map .map-card__foot { gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.ex-map-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ex-map-tools .ex-shade { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--text-2); }
.ex-map-tools .ex-shade select { max-width: 300px; }
.ex-map-tools .ex-bench { white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--accent-text); }

.explore .card, .explore .ex-notes { border-radius: 14px; }
.explore .ex-compare { padding: 20px 22px; }
.explore .ex-compare__head h2, .explore .ex-stand__head h2 { font-size: 20px; line-height: 26px; font-weight: 500; letter-spacing: -0.015em; }
.explore .ins-grid { gap: 16px; }
.explore .ins-card { padding: 18px 20px; }
.explore .ins-title { font-size: 19px; line-height: 26px; }
.ins-foot__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; white-space: nowrap; }
.ins-foot .ins-ask { font-size: 13px; font-weight: 500; color: var(--accent-text); text-decoration: none; }

.explore > .ex-tabs.ex-tabs--chips { align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; }
.explore > .ex-tabs.ex-tabs--chips a { height: auto; padding: 6px 12px; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-pill);
  background: var(--card); font-size: 13px; color: var(--text); }
.explore > .ex-tabs.ex-tabs--chips a[aria-current="page"] { border-color: var(--pressed-line); background: var(--pressed-bg); color: var(--pressed-text); font-weight: 500; }
.ex-tabs__sp { flex: 1; }
.explore .ex-tabs__all { white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.explore .ex-body:has(> .ex-cards) { margin: -12px 0 0; }      /* the cards hang from the chips */
.explore .ex-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.explore .ex-all { padding: 0; overflow: hidden; }

@media (max-width: 1180px) {
  .explore .ex-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .explore .ex-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .explore .ex-top { grid-template-columns: minmax(0, 1fr); }
  .explore .ex-map .map-card__canvas { min-height: 0; }
  .explore .ex-cards { grid-template-columns: minmax(0, 1fr); }
  .explore .ex-headline { font-size: 27px; line-height: 34px; }
}
/* More detail (a card's modal over the Overview): the same rounded cards, three across */
.ex-detail .card { border-radius: 14px; }
.ex-detail .ex-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .ex-detail .ex-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ex-detail .ex-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---- the workbench's Add a measure (workbench.js openPicker): topics, then a topic's measures, in words ---- */
.wb-add__btn { height: 28px; padding: 0 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-pill); background: none;
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--accent-text); white-space: nowrap; cursor: pointer; }
.wb-add__btn:hover { border-style: solid; background: var(--hover); }
.modal.wb-pick { width: min(620px, calc(100vw - 32px)); height: min(640px, calc(100vh - 48px)); display: flex; flex-direction: column; gap: 12px;
  border-radius: 14px; }
.modal.wb-pick:not([open]) { display: none; }
.wb-pick .modal__head { display: flex; justify-content: space-between; align-items: center; }
.wb-pick .modal__head h2 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.wb-pick .modal__close { width: 34px; height: 34px; font-size: 20px; }
.wb-pick__q { width: 100%; }
.wb-pick__body { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.wb-pick__topics, .wb-pick__list { display: flex; flex-direction: column; gap: 2px; }
.wb-pick__topic, .wb-pick__m { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wb-pick__topic:hover, .wb-pick__m:hover:not(:disabled), .wb-pick__topic:focus-visible, .wb-pick__m:focus-visible { background: var(--hover); }
.wb-pick__m:disabled { cursor: default; opacity: .55; }
.wb-pick__name { grid-column: 1; font-size: 14.5px; font-weight: 500; }
.wb-pick__about { grid-column: 1; font-size: 13px; line-height: 18px; color: var(--muted); }
.wb-pick__n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.wb-pick__tag { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: var(--radius-pill); background: var(--tag-bg);
  color: var(--tag-text); font-size: 11.5px; font-weight: 500; }
.wb-pick__crumb { display: flex; align-items: baseline; gap: 10px; padding: 2px 12px 8px; }
.wb-pick__crumb .link-btn { font-size: 13px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.wb-pick__crumbname { font-size: 16px; font-weight: 500; }
.wb-pick__count, .wb-pick__none { margin: 0; padding: 2px 12px 8px; }
.wb-pick__m .wb-pick__about { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 760px) {     /* a sheet from the foot, as the app's other pickers on phones */
  .modal.wb-pick { width: 100vw; max-width: 100vw; height: 88vh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
}

/* ==========================================================================
   The consistency pass (26 November 2026): the shared shell every screen
   inherits. The website persuades; the app works. Quiet and confident: one
   accent for data, green once a view, flat fills, neutral labels.
   ========================================================================== */

/* the ■ marker is the sidebar's section bookmark (and the phone menu's), nowhere in page content */
.section-label::before { display: none; }
.sidebar .recent__head::before, .menu .recent__head::before { display: block; }
.section-label { gap: 0; }

/* the report on the place in view, and how many pinned (pins.js) */
.report-count { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--card); color: var(--text); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.report-count[hidden] { display: none; }
.report-count:hover { border-color: var(--axis); color: var(--text); }
.report-count svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.report-count__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-count__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--area-1); color: var(--stack-1-ink);
  font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
[data-sidebar="collapsed"] .report-count__name { display: none; }

/* Saved searches and Recent: a type icon each */
.yourplaces__icon { display: inline-grid; place-items: center; width: 14px; flex: none; color: var(--muted); }
.yourplaces__watch { display: inline-grid; place-items: center; flex: none; color: var(--muted); }
.yourplaces + .yourplaces { margin-top: 14px; }

/* each group's head folds it (app.js, the folded groups in localStorage): the chevron turns, the rows go */
.sb-fold { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-sm); }
.sb-fold:hover { color: var(--text); }
.sb-fold__label { flex: 1; min-width: 0; }
.sb-fold__chev { width: 14px; height: 14px; flex: none; color: var(--muted); opacity: 0; transition: transform .15s, opacity .15s; }
.sb-fold:hover .sb-fold__chev, .sb-fold:focus-visible .sb-fold__chev, .is-folded .sb-fold__chev { opacity: 1; }
.is-folded .sb-fold__chev { transform: rotate(-90deg); }
[data-group].is-folded > :not(.sb-fold) { display: none; }
[data-group].is-folded .recent__head { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .sb-fold__chev { transition: none; } }
.recent__item svg { color: var(--muted); }

/* one search: the top bar's box carries the palette's keys */
.srch-keys { flex: none; display: inline-flex; align-items: center; margin-right: 6px; padding: 0; border: 0; background: none; cursor: pointer; }
.srch-keys kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--subtle); color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; }
.srch-keys:hover kbd { border-color: var(--axis); color: var(--text); }
@media (max-width: 760px) { .srch-keys { display: none; } }

/* the top bar's search is a button that opens the palette: it looks like the box it was */
.top-go { cursor: text; font: inherit; text-align: left; color: var(--muted); }
.top-go:hover { border-color: var(--axis); }
.top-go:focus-visible { outline: none; border-color: var(--focus-line); }
.top-go__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.top-go .srch-keys { margin-right: -4px; cursor: inherit; }

/* a toast's action (Undo) */
.toast__act { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 500; cursor: pointer; }

/* tags and status labels: neutral, a 1px outline; colour only as a provenance dot */
.pill, .ins-tag__pill { border: 1px solid var(--tag-line); background: transparent; color: var(--tag-text); font-weight: 500; }
.ask-example__words .eyebrow { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 500; }
.ask-measure { border: 1px solid var(--line); background: var(--card); }
.ask-measure code { color: var(--text-2); }

/* ProvenanceTag (provenance.js): where a figure comes from, a dot of its colour in a quiet outline chip */
.prov { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 8px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill); background: transparent; color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.prov::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--prov-dot, var(--muted)); }
.prov--census { --prov-dot: var(--prov-census); }
.prov--published { --prov-dot: var(--prov-abs); }
.prov--bands { --prov-dot: var(--muted); }
.prov--modelled { --prov-dot: var(--prov-modelled); }
.prov--projected { --prov-dot: var(--prov-projected); border-style: dashed; }
.prov--latest { --prov-dot: var(--prov-latest); }
.prov--listed { --prov-dot: var(--muted); }
.prov--locked { --prov-dot: transparent; }

/* one primary per view: green; the send button is green everywhere */
.ask-send { background: var(--primary); color: var(--on-primary); }
.ask-send:hover:not(:disabled) { background: var(--accent-hover); }

/* the selection: the place's tint with a 3px bar in its colour (never citron) */
.ex-cell[aria-pressed="true"] { background: var(--area-1-tint); box-shadow: inset 3px 0 0 var(--area-1); }
.ex-cell__on { color: var(--accent-text); }

/* ---- The Ask composer (askcomposer.js): a scope chip, the box, a green send ---------------------------------- */
.askc { display: flex; flex-direction: column; gap: 8px; padding: 6px 6px 6px 8px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); background: var(--card); }
.askc:focus-within { border-color: var(--focus-line); }
.askc__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.askc__scope { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; max-width: 46%; height: 30px;
  padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--subtle);
  color: var(--text); font-size: 13px; font-weight: 500; }
.askc__sq { width: 7px; height: 7px; flex: none; border-radius: 2px; background: var(--area-1); }
.askc__scope-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.askc__x { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--muted); cursor: pointer; }
.askc__x:hover { background: var(--hover); color: var(--text); }
.askc__scope--menu { padding-right: 10px; cursor: pointer; }
.askc__scope--menu select { appearance: none; -webkit-appearance: none; max-width: 180px; padding: 0 14px 0 0; border: 0; background: none;
  color: inherit; font: inherit; cursor: pointer; text-overflow: ellipsis; }
.askc__scope--menu > svg { position: absolute; right: 9px; pointer-events: none; color: var(--muted); }
.askc__input { flex: 1; min-width: 0; height: 32px; padding: 0 4px; border: 0; background: none; color: var(--text); font: inherit;
  font-size: 14.5px; outline: none; resize: none; }
.askc--multi .askc__input { height: auto; min-height: 52px; padding: 8px 4px; line-height: 1.45; }
.askc--multi .askc__row { align-items: flex-start; padding-top: 4px; }
.askc__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.askc__sp { flex: 1; }
.askc__send { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border: 0; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); cursor: pointer; }
.askc__send:hover { background: var(--accent-hover); }
.askc.is-locked .askc__send { background: var(--quiet); color: var(--muted); }
.askc--compact { padding: 4px 4px 4px 6px; }
.askc--compact .askc__send { width: 30px; height: 30px; }
.askc--compact .askc__scope { height: 28px; }
.ask-from { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; }

/* the top bar's one search: room for its words and the palette's keys (the consistency pass, 26 November 2026) */
@media (min-width: 761px) { #top-search.search { max-width: 560px; flex-basis: 420px; } }

/* the sidebar's foot (29 November 2026): you in one row, your initial and name, ⋯ for the rest (opening upward,
   the foot's full width, so the scrolling sidebar doesn't clip it) and the gear for Settings */
.sidebar__foot { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
[data-sidebar="collapsed"] .sidebar__foot { display: none; }
.sidebar__me { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; }
.sidebar__avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px;
  border-radius: 50%; background: var(--avatar-bg); color: var(--avatar-text); font-size: 12px; font-weight: 600; line-height: 1; }
.sidebar__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--text-2); }
.sidebar__me .btn-icon { flex: none; width: 28px; height: 28px; color: var(--muted); }
.sidebar__me .btn-icon:hover, .sidebar__more[open] > summary { color: var(--text); }
.sidebar__me .btn-icon svg { width: 16px; height: 16px; }
.sidebar__settings[aria-current="page"] { color: var(--accent-text); }
.sidebar__more summary { list-style: none; cursor: pointer; }
.sidebar__more summary::-webkit-details-marker { display: none; }
.sidebar__menu { position: absolute; z-index: 30; left: 0; right: 0; bottom: calc(100% + 6px); display: flex; flex-direction: column;
  padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); box-shadow: var(--pop-shadow); }
.sidebar__menu a, .sidebar__menu button { display: block; width: 100%; padding: 7px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; text-decoration: none; cursor: pointer; }
.sidebar__menu a:hover, .sidebar__menu button:hover { background: var(--hover); color: var(--text); }
.sidebar__menu a[aria-current="page"] { font-weight: 500; color: var(--accent-text); }
.sidebar__menu-email { margin: 0; padding: 6px 10px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.sidebar__menu-source { margin: 4px 0 0; padding: 8px 10px 6px; border-top: 1px solid var(--line-soft); font-size: 11.5px; line-height: 1.4; color: var(--muted); }

/* phones: Explore's head stacks, flush left ("[Australia ▾] vs [2016 ▾]", then the actions), not centred */
@media (max-width: 760px) {
  .explore .ex-head { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; justify-content: flex-start; gap: 10px; }
  .explore .ex-head .area-head { flex: 1 1 auto; }
  .explore .ex-head .ex-actions { flex: none; }
}
