/*
Theme Name: Boston Exchange
Template: blocksy
Author: boston.exchange
Author URI: https://boston.exchange/
Description: Child theme for boston.exchange (presentation only). Built Nov 19, 2026. Look matches the coming-soon page: survey sheet, navy and harbor teal, Instrument Sans headings, Inter text, IBM Plex Mono labels; light and dark modes.
Version: 0.3.0
Text Domain: boston-exchange-child
*/

@font-face { font-family: "Instrument Sans"; src: url(assets/fonts/instrument-sans-var.woff2) format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Inter"; src: url(assets/fonts/inter-var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(assets/fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

/* Blocksy palette: 1 accent, 2 accent hover, 3 text, 4 headings, 5 borders, 6 soft background, 7 page, 8 cards */
:root {
  --theme-palette-color-1: #0b6e78; --theme-palette-color-2: #08535b; --theme-palette-color-3: #2c4356; --theme-palette-color-4: #0f2740;
  --theme-palette-color-5: #c9d6dd; --theme-palette-color-6: #e3ebef; --theme-palette-color-7: #eef3f5; --theme-palette-color-8: #fbfdfd;
  --theme-font-stack-default: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bx-hub: #e0592a; --bx-muted: #4a6072; --bx-grid: rgba(15, 39, 64, .05);
  color-scheme: light;
}
:root:where(:not([data-theme="light"])) { color-scheme: dark; }
:root:where(:not([data-theme="light"])) {
    --theme-palette-color-1: #5cc8d0; --theme-palette-color-2: #8edde2; --theme-palette-color-3: #c3d3dc; --theme-palette-color-4: #e3edf2;
    --theme-palette-color-5: #253a4b; --theme-palette-color-6: #0f1d2a; --theme-palette-color-7: #0a1520; --theme-palette-color-8: #0f1d2a;
    --theme-button-text-initial-color: #0a1520; --theme-button-text-hover-color: #0a1520;
    --bx-hub: #ff8a5c; --bx-muted: #9db2bf; --bx-grid: rgba(160, 200, 220, .05);
  }
:root[data-theme="dark"] {
  --theme-palette-color-1: #5cc8d0; --theme-palette-color-2: #8edde2; --theme-palette-color-3: #c3d3dc; --theme-palette-color-4: #e3edf2;
  --theme-palette-color-5: #253a4b; --theme-palette-color-6: #0f1d2a; --theme-palette-color-7: #0a1520; --theme-palette-color-8: #0f1d2a;
  --theme-button-text-initial-color: #0a1520; --theme-button-text-hover-color: #0a1520;
  --bx-hub: #ff8a5c; --bx-muted: #9db2bf; --bx-grid: rgba(160, 200, 220, .05);
}

body { background: linear-gradient(var(--bx-grid) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--bx-grid) 1px, transparent 1px) 0 0 / 32px 32px, var(--theme-palette-color-7); }
h1, h2, h3, h4, .page-title, .entry-title, .site-title { font-family: "Instrument Sans", "Inter", sans-serif; font-stretch: 85%; font-weight: 700; letter-spacing: -.015em; }
h1, .page-title, .entry-title { font-stretch: 80%; }
.entry-content a:not(.wp-element-button):not(.bp-dot) { text-underline-offset: .18em; }
.bx-lede { font-size: 1.1875rem; }
.entry-meta, .ct-breadcrumbs, .bp-legend-t { font-family: "Plex Mono", ui-monospace, monospace; letter-spacing: .04em; }

#header [data-row], #header [data-row] > .ct-container { background-color: var(--theme-palette-color-8); }
#header { border-bottom: 1px solid var(--theme-palette-color-5); }
#header .site-title, #header .site-title a { font-family: "Instrument Sans", sans-serif; font-stretch: 100%; font-weight: 700; color: var(--theme-palette-color-4); }

.bp-map, .bp-list, .bp-stats, .bp-chains {
  --bp-ink: var(--theme-palette-color-4); --bp-muted: var(--bx-muted); --bp-rule: var(--theme-palette-color-5); --bp-surface: var(--theme-palette-color-8);
  --bp-focus: var(--theme-palette-color-1);
  --bp-land: #e3ebee; --bp-water: #cfe0e7; --bp-line: #9fb5bf;
}
:root:where(:not([data-theme="light"])) :is(.bp-map) { --bp-land: #18303f; --bp-water: #0c2230; --bp-line: #3d5a6b; }
:root[data-theme="dark"] .bp-map { --bp-land: #18303f; --bp-water: #0c2230; --bp-line: #3d5a6b; }
.bp-stats strong { font-family: "Instrument Sans", sans-serif; font-stretch: 85%; }

.ct-footer [data-row] { background-color: var(--theme-palette-color-6); }

/* breadcrumbs, back to top */
.bx-crumbs { font-family: "Plex Mono", ui-monospace, monospace; font-size: .8125rem; letter-spacing: .04em; color: var(--bx-muted); margin-bottom: 10px; }
.bx-crumbs a { color: var(--theme-palette-color-1); text-underline-offset: .18em; }
.ct-back-to-top { min-width: 44px; min-height: 44px; }
.ct-back-to-top:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: 3px; }

/* ===== Design system v0.2 (docs/DESIGN-SYSTEM.md): wide "exchange" layout, terminal dark mode, refined type ===== */
body { font-size: 17px; line-height: 1.65; font-feature-settings: "cv11", "ss01"; }
@media (min-width: 1000px) { body { font-size: 18px; } }
h2.wp-block-heading { margin-top: 1.8em; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
h3 { font-size: 1.1875rem; }
/* terminal dark mode: deeper ink, teal figures */
:root:where(:not([data-theme="light"])) body { background-color: #08121b; } :root:where(:not([data-theme="light"])) .bx-ticker { --bx-tk-bg: #050c13; }
:root[data-theme="dark"] body { background-color: #08121b; }
.bp-stats li { border-radius: 14px; }
.bp-stats strong { font-family: "Instrument Sans", sans-serif; font-stretch: 85%; letter-spacing: -.01em; }
/* header polish */
#header .ct-menu-link { font-family: "Plex Mono", ui-monospace, monospace; letter-spacing: .06em; font-size: .8125rem; }
#header .ct-menu-link:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: 2px; border-radius: 4px; }
/* back to top: 48px circle */
.ct-back-to-top { width: 48px; height: 48px; border-radius: 50% !important; }

/* ===== Design review fixes (Nov 20) ===== */
/* no texture behind text: plain page, the survey grid stays only on maps and cards */
body { background: var(--theme-palette-color-7) !important; }
:root:where(:not([data-theme="light"])) body { background: #08121b !important; }
:root[data-theme="dark"] body { background: #08121b !important; }
.bx-lede { max-width: none !important; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--theme-palette-color-4); }
p { text-wrap: pretty; }
.page-title, .entry-title, h1 { font-size: clamp(2.125rem, 4vw, 3.25rem) !important; line-height: 1.04; text-wrap: balance; max-width: none; }
/* plugin data blocks follow the site palette in dark mode too (beat the plugin's own dark tokens) */
:root .bp-map, :root .bp-list, :root .bp-stats, :root .bp-chains { --bp-ink: var(--theme-palette-color-4); --bp-muted: var(--bx-muted); --bp-rule: var(--theme-palette-color-5); --bp-surface: var(--theme-palette-color-8); --bp-focus: var(--theme-palette-color-1); }
:root:where(:not([data-theme="light"])) .bp-map { --bp-land: #18303f; --bp-water: #0c2230; --bp-line: #3d5a6b; }
.bp-stats { gap: 12px; } .bp-stats li { padding: 18px 20px; }
.bp-stats span { display: block; margin-top: 4px; line-height: 1.4; }
/* header: calmer, shorter, sentence-case menu */
#header [data-row*="middle"] { --height: 76px; }
#header .ct-menu-link { font-family: "Inter", sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; font-size: .9375rem !important; font-weight: 500; }
#header .site-title { letter-spacing: -.01em; }
/* the "next" line on the home page */
.bx-next { color: var(--theme-palette-color-3); border-top: 1px solid var(--theme-palette-color-5); padding-top: 14px; }
/* 44px touch target for the mobile menu button */
#header .ct-header-trigger { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.bx-stalls { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important; }
.bp-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important; }
@media (max-width: 600px) { .bp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .bp-stats strong { font-size: 1.375rem; } .bp-stats li { padding: 14px; } }
#header .ct-header-trigger, [data-device="mobile"] .ct-header-trigger { min-width: 44px !important; min-height: 44px !important; }

/* ===== Width system v0.3 (owner, Nov 20; docs/DESIGN-SYSTEM.md): ONE container, one left edge ===== */
/* Header, ticker content, breadcrumbs, title, body, maps, tables and footer share one box: max 1440px, gutters 16/24/32/48px. */
:root { --bx-gutter: 16px; --bx-max: 1440px; --bx-main: 780px; --bx-rail: 340px; --theme-content-spacing: 1.4em;
  --theme-normal-container-max-width: var(--bx-max); --theme-narrow-container-max-width: var(--bx-max);
  --theme-container-width: min(100% - 2 * var(--bx-gutter), var(--bx-max)); }
@media (min-width: 600px) { :root { --bx-gutter: 24px; } }
@media (min-width: 1000px) { :root { --bx-gutter: 32px; } }
@media (min-width: 1400px) { :root { --bx-gutter: 48px; } }
.bx-wrap, #header .ct-container, .ct-footer .ct-container { width: var(--theme-container-width) !important; max-width: var(--bx-max) !important; margin-inline: auto; }
[class*="ct-container"] > article { width: auto !important; max-width: none !important; margin-inline: 0 !important; }
.hero-section.is-width-constrained, article > .entry-content, .bx-page { width: var(--theme-container-width) !important; max-width: var(--bx-max) !important; margin-inline: auto !important; }
.entry-content > .bx-layout { width: auto !important; max-width: none !important; margin: 0 !important; }
/* bands: text runs in the main column (left, same edge as the title) beside a right rail; wide blocks span the container */
.bx-layout > * + * { margin-top: 32px; }
.bx-band { display: flow-root; }
.bx-main { min-width: 0; max-width: none; }
.bx-main > * { max-width: 100%; margin-inline: 0; }
.bx-main > :first-child { margin-top: 0; } .bx-main > :last-child { margin-bottom: 0; }
.bx-main > h2, .bx-main > h3 { text-wrap: balance; }
.bx-wide > * { margin-inline: 0 !important; max-width: none !important; }
.bx-wide > :last-child { margin-bottom: 0; }
.bx-main > figure.bx-card-img img { width: 100%; }
/* Owner Nov 21: the rail floats top right (it comes first in the markup), text wraps beside it and runs full width below it. */
@media (min-width: 1180px) {
  .bx-rail { float: right; width: var(--bx-rail); margin: 0 0 24px 48px; }
  .bx-toc--d { display: none; }
  /* boxes beside the rail shrink to fit (block formatting context) instead of running under it */
  .bx-main > :is(figure, div, blockquote, details, section, table, pre) { display: flow-root; }
}
/* phones and tablets: one column, the rail after the band's text */
@media (max-width: 1179.98px) {
  .bx-toc--n { display: none; }
  .bx-band:has(> .bx-rail) { display: flex; flex-direction: column; gap: 24px; }
  .bx-band > .bx-main { order: 1; } .bx-band > .bx-rail { order: 2; max-width: var(--bx-main); }
}
/* rail */
.bx-rail { display: grid; gap: 16px; font-size: .9375rem; }
.bx-rail > * { border: 1px solid var(--theme-palette-color-5); border-radius: 14px; background: var(--theme-palette-color-8); padding: 18px 20px; margin: 0; }
.bx-rail-h { margin: 0 0 10px; font: 500 .75rem/1.2 "Plex Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--bx-muted); }
.bx-rail ol, .bx-rail ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.bx-rail li a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--theme-palette-color-5); color: var(--theme-palette-color-4); text-decoration: none; line-height: 1.35; }
.bx-rail li a:hover { border-left-color: var(--theme-palette-color-1); color: var(--theme-palette-color-1); }
.bx-rail a:focus-visible, .bx-toc summary:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: 2px; border-radius: 4px; }
.bx-toc--d { padding: 0 !important; }
.bx-toc--d summary { min-height: 48px; display: flex; align-items: center; padding: 0 20px; cursor: pointer; font-weight: 600; color: var(--theme-palette-color-4); list-style: none; }
.bx-toc--d summary::-webkit-details-marker { display: none; }
.bx-toc--d summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.bx-toc--d[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.bx-toc--d nav { padding: 0 20px 16px; }
@media (prefers-reduced-motion: reduce) { .bx-toc--d summary::after { transition: none; } }
.bx-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.bx-kv dt { color: var(--bx-muted); } .bx-kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; color: var(--theme-palette-color-4); font-weight: 600; }
/* ticker: full-bleed band, items inside the container edges */
.bx-ticker { padding-inline: max(var(--bx-gutter), (100% - var(--bx-max)) / 2); }
.bx-tk-btn { padding-left: 0; text-align: left; min-width: 72px; }
/* title area: breadcrumbs, H1 and meta on the body's left edge */
.hero-section .entry-header { text-align: left; }
.hero-section[data-type="type-1"] { margin-bottom: 32px; }
.bx-head { margin-bottom: 28px; }
.bx-head .bx-crumbs { margin: 0 0 14px; }
.bx-head h1 { margin: 0; }
.bx-dateline { margin: 14px 0 0; font: 500 .8125rem/1.3 "Plex Mono", ui-monospace, monospace; letter-spacing: .04em; }
.bx-dateline a { color: var(--theme-palette-color-1); text-underline-offset: .18em; }
[data-vertical-spacing*="top"] { padding-top: clamp(28px, 4vw, 56px); }
.bx-tk-list:not(.bx-tk-dup) li:first-child a { padding-left: 0; }
.bx-main ul, .bx-main ol { padding-inline-start: 1.25em; }
.bx-main .schema-faq, .bx-main .bx-ask { margin-inline: 0; }
/* archives: hero fills the container it sits in (no second inset); cards: image on top at its real 1200x630 shape */
.ct-container .hero-section.is-width-constrained, .ct-container section > .hero-section { width: auto !important; max-width: none !important; margin-inline: 0 !important; }
.entries[data-cards="boxed"] .entry-card { display: flex; flex-direction: column; border: 1px solid var(--theme-palette-color-5); border-radius: 14px; overflow: hidden; background: var(--theme-palette-color-8); }
.entry-card .ct-media-container { order: -1; }
.entry-card .ct-media-container img { aspect-ratio: 1200 / 630 !important; object-fit: cover; }
.entry-card .entry-title { font-size: 1.375rem !important; line-height: 1.2; max-width: none; font-stretch: 85%; }
.entry-card .entry-excerpt { font-size: .9375rem; }
.hero-section .page-description { max-width: var(--bx-main); font-size: 1.0625rem; }
.entries[data-cards="boxed"] .entry-card { padding: 0 0 24px !important; }
.entries[data-cards="boxed"] .entry-card > :not(.ct-media-container) { margin-inline: 24px; }
.entries[data-cards="boxed"] .entry-card > .ct-media-container { margin: 0 0 20px !important; width: 100%; border-radius: 0; }
.bx-crumbs a { text-decoration: underline; text-decoration-thickness: 1px; }
/* map contrast (audit L10/T15): town lines >= 3:1 against land in dark mode; land and water clearly apart */
:root .bp-map { --bp-line: #7d97a3; }
:root:where(:not([data-theme="light"])) .bp-map { --bp-land: #1d3a4b; --bp-water: #081620; --bp-line: #6b8fa3; }
:root[data-theme="dark"] .bp-map { --bp-land: #1d3a4b; --bp-water: #081620; --bp-line: #6b8fa3; }
/* ===== Design rules (research Nov 20: design-complaints-and-best-practices.md, top 20) ===== */
/* 50-75 characters per line: main column 720px at 18px Inter (about 72 characters) */
:root { --bx-main: 720px; }
/* links in text are underlined (never colour alone) */
.bx-main a:not(.wp-element-button):not(.bx-btn), .bx-wide figcaption a, .bx-foot a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
/* phone menu button says "Menu"; header buttons are 44px targets */
#header .ct-header-trigger .ct-label { display: inline-block !important; margin-right: 8px; font: 600 .9375rem/1 "Inter", sans-serif; color: var(--theme-palette-color-4); }
#header .ct-header-trigger { border: 1px solid var(--theme-palette-color-5); border-radius: 8px; padding: 0 12px !important; min-height: 44px; }
#header .ct-header-search { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
#header .ct-header-search:focus-visible, #header .ct-header-trigger:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: 2px; }
/* tables: sticky header inside a bounded scroll region, tabular figures */
/* maps on touch screens: one finger scrolls the page, two fingers or the +/- buttons zoom and pan */
@media (pointer: coarse) {
  .bp-box { touch-action: pan-x pan-y !important; }
}
.bp-tools button { min-width: 44px; min-height: 44px; }
.bx-rail p { max-width: 35em; } /* owner Nov 21: no paragraph cap in the main text */

/* ===== Logged-in audit fixes (Nov 20 evening; research/audit-checklist.md B3/B4/E1/F2/A4) ===== */
/* small-text floor 14px, no uppercase runs over 3 words: table heads, rail heads, captions, crumbs, dateline */
.bx-rail-h { font-size: .875rem; text-transform: none; letter-spacing: .01em; }
.bp-map figcaption, .bp-town h3 span, .bx-crumbs, .bx-dateline { font-size: .875rem; }
/* one control family: map buttons use the site font, 44px on phones, 48px from 1000px, radius 8px */
.bp-tools button { font: 600 .9375rem/1 "Inter", sans-serif; min-height: 44px; border-radius: 8px; }
@media (min-width: 1000px) { .bp-tools button { min-height: 48px; min-width: 48px; } }
/* ticker: 44px targets */
.bx-tk-list a, .bx-tk-btn { min-height: 44px; }
/* ledes: about 65 characters per line at every width */
.bx-lede { max-width: none !important; }
/* figure captions on the common left edge (not centred); odd last stat tile spans both phone columns */
.bp-map figcaption, .wp-block-image figcaption { text-align: left; }
@media (max-width: 600px) { .bp-stats li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.bp-stats { gap: 16px; }
/* ticker Pause button text on the container edge */
.bx-ticker .bx-tk-btn { padding-left: 0 !important; padding-right: 16px; font-size: .875rem; }
/* search forms (404, search results, header modal): the 48px control family */
.ct-search-form input[type="search"], .search-form input[type="search"] { min-height: 48px; border-radius: 8px !important; font-size: 1rem; }
.ct-search-form button[type="submit"], .search-form button[type="submit"] { min-height: 48px; min-width: 48px; border-radius: 8px !important; }
/* ticker: the moving strip is back (owner Nov 21): scrolls on its own, Pause/Play button, stops on hover/focus, still list with reduced motion */
.bx-tk-view { scrollbar-width: none; }
.bx-tk-view::-webkit-scrollbar { display: none; }
.bx-ticker .bx-tk-btn:not([hidden]) { position: relative; z-index: 3; background: var(--bx-tk-bg, #0f2740); display: inline-flex; align-items: center; min-height: 44px; min-width: 64px; }
@media (prefers-reduced-motion: reduce) { .bx-ticker .bx-tk-btn { display: none !important; } }
.bx-tk-list a { min-height: 44px; }
.bx-tk-list:not(.bx-tk-dup) li:first-child a { padding-left: 0; }
.bx-tk-list li:last-child a { border-right: 0; }
.bx-tk-list a { padding-inline: 14px; }
/* stat tiles: 4 per row on desktop (8 tiles = 2 even rows) */
.bp-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important; }
@media (max-width: 600px) { .bp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* zoomed town / neighborhood maps sit on the common left edge, not centred */
.bx-townmap .bp-box { margin-inline: 0 !important; }
/* tall region maps in a wide box: cap the figure width so the map fills its frame (audit T15-style empty sides) */

/* ===== Round 0 (owner Nov 21): clear back-to-top button =====
   Was a 48px navy circle with a teal arrow (contrast 1.7:1), hidden on phones. Now a labelled pill ("Top"), solid accent
   with a contrasting arrow (>= 4.5:1 light and dark), shadow, 52px tall, on every screen size. */
.ct-back-to-top, .ct-back-to-top.ct-hidden-sm { gap: 8px; width: auto !important; min-width: 84px; height: 52px !important; padding: 0 20px 0 16px !important; border-radius: 26px !important;
  background: var(--theme-palette-color-1) !important; color: #fff !important; --theme-icon-color: #fff; --theme-icon-hover-color: #fff;
  border: 2px solid #fff; box-shadow: 0 4px 14px rgba(8, 18, 27, .35) !important; font: 700 1rem/1 "Inter", sans-serif; text-decoration: none; }
.ct-back-to-top.ct-hidden-sm { display: flex !important; }
.ct-back-to-top .ct-icon { width: 18px; height: 18px; fill: currentColor !important; }
.ct-back-to-top::after { content: "Top"; }
.ct-back-to-top:hover, .ct-back-to-top:focus-visible { background: var(--theme-palette-color-4) !important; color: #fff !important; }
.ct-back-to-top:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: 3px; }
@media (max-width: 689.98px) { .ct-back-to-top { --back-top-side-offset: 16px; --back-top-bottom-offset: 16px; } }
:root:where(:not([data-theme="light"])) .ct-back-to-top, :root:where(:not([data-theme="light"])) .ct-back-to-top.ct-hidden-sm { background: #5cc8d0 !important; color: #08121b !important; --theme-icon-color: #08121b; --theme-icon-hover-color: #08121b; border-color: #08121b; box-shadow: 0 4px 14px rgba(0, 0, 0, .6) !important; }
  :root:where(:not([data-theme="light"])) .ct-back-to-top:hover, :root:where(:not([data-theme="light"])) .ct-back-to-top:focus-visible { background: #e3edf2 !important; color: #08121b !important; }
  :root:where(:not([data-theme="light"])) .ct-back-to-top:focus-visible { outline-color: #e3edf2; }
  :root[data-theme="dark"] .ct-back-to-top, :root[data-theme="dark"] .ct-back-to-top.ct-hidden-sm { background: #5cc8d0 !important; color: #08121b !important; --theme-icon-color: #08121b; --theme-icon-hover-color: #08121b; border-color: #08121b; box-shadow: 0 4px 14px rgba(0, 0, 0, .6) !important; }
  :root[data-theme="dark"] .ct-back-to-top:hover, :root[data-theme="dark"] .ct-back-to-top:focus-visible { background: #e3edf2 !important; color: #08121b !important; }
  :root[data-theme="dark"] .ct-back-to-top:focus-visible { outline-color: #e3edf2; }

/* Map height and legend placement: the shared map frame in the plugin (bx.css "Map frame"); interim height cap and side-legend grid removed in 7d. */

/* Colour mode switch (owner, Nov 22): dark by default. <html data-theme> is set before first paint by the inline head
   script (cookie bx_theme); without JavaScript the server's data-theme="dark" stays. Every colour above comes from the
   per-mode tokens. Photos and card images are softened in dark mode only (brightness, no hue change). */
.bx-mode { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--theme-palette-color-5); border-radius: 999px; background: transparent; color: var(--theme-palette-color-4); font: 500 .875rem/1 "Inter", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.bx-mode:hover { border-color: var(--theme-palette-color-1); color: var(--theme-palette-color-1); }
.bx-mode:focus-visible { outline: 3px solid var(--theme-palette-color-1); outline-offset: 2px; }
.bx-mode svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bx-mode .bx-ic-sun { display: none; }
:root[data-theme="light"] .bx-mode .bx-ic-sun { display: block; } :root[data-theme="light"] .bx-mode .bx-ic-moon { display: none; }
#header .menu > li.bx-mode-li { display: flex; align-items: center; margin-inline-start: 8px; }
/* Desktop header (769-1279px): icon-only so Blocksy does not fold the switch into the "more" dropdown; the name stays for assistive tech. */
@media (min-width: 769px) and (max-width: 1279px) { #header .menu > li.bx-mode-li .bx-mode { padding: 0; width: 44px; justify-content: center; } #header .menu > li.bx-mode-li .bx-mode span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.mobile-menu li.bx-mode-li { padding: 12px 0; }
:root:where(:not([data-theme="light"])) :is(.entry-content, .bx-card-img, .bx-cards) img:not(.bx-keep) { filter: brightness(.88); }
/* 7b fallback for wpDataTables not yet on the .bx-table component: plugin hard-codes grey/white cells and #777 captions. */
.entry-content .wpDataTablesWrapper:not(.bx-table .wpDataTablesWrapper) table.wpDataTable tbody td, .entry-content .wpDataTablesWrapper:not(.bx-table .wpDataTablesWrapper) table.wpDataTable tbody tr { background-color: transparent !important; color: var(--theme-palette-color-3); }
.entry-content table.wpDataTable caption, .entry-content .wpDataTablesWrapper caption { color: var(--bx-muted); }
.entry-content .bootstrap-select .filter-option-inner-inner { color: var(--theme-palette-color-3); }
/* A8 Nov 22: archive card meta (category, date) at least 14px (gate minimum; Blocksy default 12px) */
.entry-meta, .entry-meta li, .entry-meta a, .entry-meta time { font-size: .875rem !important; }
.ct-pagination, .ct-pagination a, .ct-pagination .page-numbers, .ct-pagination .next, .ct-pagination .prev { font-size: .875rem !important; }
.ct-pagination a.next, .ct-pagination a.prev { display: inline-flex; align-items: center; min-height: 24px; }
