/* meeting-finder.com — one stylesheet, no build step. Tokens match the app (files/DESIGN.md). */

@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('/fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* Light and dark. The page's <head> (site/partials/theme-head) sets data-theme="light" or "dark"
   before anything paints: the visitor's choice from the switch, else the device's setting. Every
   colour that changes between the two is a token here; the dusk bands (hero, footer, the room's
   bar) stay dusk in both. */
:root {
    --dusk: #14234B;
    --dusk-2: #1C2F60;
    --dusk-line: rgba(255, 255, 255, .12);
    --lamp: #F2B544;
    --paper: #F4F6FA;
    --surface: #FFFFFF;
    --raised: #FFFFFF;
    --quiet: #E9EDF6;
    --quiet-hover: #DCE2EF;
    --hover: #EEF2FC;
    --hover-soft: #F7F8FB;
    --ink: #14171F;
    --ink-body: #2C3240;
    --ink-2: #4E5566;
    --ink-3: #6B7285;
    --line: #DFE3EC;
    --field: #FFFFFF;
    --field-soft: #FAFBFD;
    --field-line: #CDD4E3;
    --blue: #2F5BEA;
    --blue-ink: #1D44C8;
    --blue-hover: #1D44C8;
    --na: #0E9F7E;
    --chip: #EDF0F6;
    --chip-ink: #333A4A;
    --pressed: var(--dusk);
    --pressed-ink: #FFFFFF;
    --warm: #FFF6E3;
    --warm-ink: #3D3420;
    --warn: #FDEBD2;
    --warn-ink: #7A4A00;
    --ok: #DDF5EE;
    --ok-ink: #0A5A47;
    --ok-text: #0A7A60;
    --on: #12A150;
    --danger: #C2410C;
    --danger-ink: #C2410C;
    --danger-soft: #FDEBE3;
    --danger-soft-ink: #7C2D12;
    --danger-line: #F3C6AE;
    --toast: #14171F;
    --phone-ring: transparent;
    --tag-aa: #E3EAFE; --tag-aa-ink: #1D44C8;
    --tag-na: #DDF5EE; --tag-na-ink: #0A7A60;
    --tag-ca: #EDE6FE; --tag-ca-ink: #5B21B6;
    --tag-cma: #FCE7F1; --tag-cma-ink: #9D174D;
    --tag-alanon: #DDF4FA; --tag-alanon-ink: #0E6278;
    --radius: 18px;
    --shell: 1120px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --paper: #0D1322;
    --surface: #151C2E;
    --raised: #1D263B;
    --quiet: #232D44;
    --quiet-hover: #2C3852;
    --hover: #222B42;
    --hover-soft: #1A2235;
    --ink: #E9EDF5;
    --ink-body: #CDD3DF;
    --ink-2: #A6AFC2;
    --ink-3: #8F98AC;
    --line: #283249;
    --field: #0F1627;
    --field-soft: #0F1627;
    --field-line: #3A4661;
    --blue-ink: #9DB4FF;
    --chip: #232D44;
    --chip-ink: #D3D9E6;
    --pressed: #E9EDF5;
    --pressed-ink: #0D1322;
    --warm: #2B2414;
    --warm-ink: #F1DFB5;
    --warn: #35260F;
    --warn-ink: #F6C77E;
    --ok: #0F2D27;
    --ok-ink: #9BEBD3;
    --ok-text: #5DD9B4;
    --on: #3DDC84;
    --danger-ink: #FF9A6E;
    --danger-soft: #3A1E14;
    --danger-soft-ink: #FFC2A6;
    --danger-line: #6E3522;
    --toast: #2A3550;
    --phone-ring: rgba(255, 255, 255, .14);
    --tag-aa: rgba(124, 155, 255, .18); --tag-aa-ink: #B8C8FF;
    --tag-na: rgba(60, 207, 169, .16); --tag-na-ink: #8BE8CF;
    --tag-ca: rgba(167, 139, 250, .2); --tag-ca-ink: #D3C4FF;
    --tag-cma: rgba(244, 114, 182, .18); --tag-cma-ink: #FBC3E0;
    --tag-alanon: rgba(34, 211, 238, .16); --tag-alanon-ink: #A5EEFA;
    color-scheme: dark;
}
/* While the switch changes theme: no colour transitions, so everything changes at once. */
.theme-now, .theme-now * { transition: none !important; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .store:focus-visible {
    outline: 3px solid var(--lamp);
    outline-offset: 3px;
    border-radius: 6px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }

/* ── top bar ─────────────────────────────────────────────────────── */
.top { position: relative; z-index: 2; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.top-nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.top-nav a:hover { color: var(--ink); }
.top-nav .get { color: #fff; background: var(--blue); padding: 9px 16px; border-radius: 999px; }
.top-nav .get:hover { background: var(--blue-hover); color: #fff; }
.top-nav .nav-chat::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); margin-right: 7px; vertical-align: 2px; }
.home .top { background: var(--dusk); }
.home .top .brand { color: #fff; }
.home .top-nav a { color: rgba(255, 255, 255, .78); }
.home .top-nav a:hover { color: #fff; }
.home .top-nav .get { background: #fff; color: var(--dusk); }

/* the light / dark switch: an icon for the current choice over the browser's own list (so a phone
   shows its native picker). Shown once the head script has run (data-theme-pref). */
.theme-switch { position: relative; display: none; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
    color: var(--ink-2); border: 1px solid var(--line); transition: background-color .15s, color .15s; }
[data-theme-pref] .theme-switch { display: grid; }
.theme-switch:hover { background: var(--hover); color: var(--ink); }
.theme-switch:focus-within { outline: 3px solid var(--lamp); outline-offset: 2px; }
.theme-switch svg { width: 18px; height: 18px; display: none; grid-area: 1 / 1; }
[data-theme-pref="system"] .theme-switch .ts-system,
[data-theme-pref="light"] .theme-switch .ts-light,
[data-theme-pref="dark"] .theme-switch .ts-dark { display: block; }
.theme-switch select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font: inherit; font-size: 16px;
    appearance: none; -webkit-appearance: none; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.theme-switch option { background: var(--raised); color: var(--ink); }
.home .theme-switch, .on-dusk .theme-switch { color: rgba(255, 255, 255, .82); border-color: rgba(255, 255, 255, .22); }
.home .theme-switch:hover, .on-dusk .theme-switch:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ── the dusk hero ───────────────────────────────────────────────── */
.dusk { background: var(--dusk); color: #fff; padding: 36px 0 72px; }
.dusk-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.pitch h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 800; letter-spacing: -0.035em; max-width: 13.5ch; margin-top: 18px; }
.lede { font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 33em; margin: 22px 0 30px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px;
    border-radius: 14px; background: #fff; color: var(--dusk); text-decoration: none; font-weight: 800; font-size: 17px; line-height: 1.1;
}
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.store.is-soon { background: transparent; color: rgba(255, 255, 255, .72); border: 1px solid var(--dusk-line); }
.store.is-soon small { color: rgba(255, 255, 255, .55); }

.soon { background: var(--dusk-2); border: 1px solid var(--dusk-line); border-radius: 24px; padding: 22px 22px 16px; }
.soon h2 { font-size: 15px; font-weight: 700; letter-spacing: 0; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.schedule { list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--dusk-line); }
.slot:first-child { border-top: 0; }
.at { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; white-space: nowrap; }
.ampm { font-size: 13px; font-weight: 700; letter-spacing: 0; margin-left: 3px; color: rgba(255, 255, 255, .7); }
.what { min-width: 0; }
.name { display: block; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.where { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .64); }
.fel { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(124, 155, 255, .2); color: #B8C8FF; margin-right: 4px; }
.fel.na { background: rgba(60, 207, 169, .18); color: #8BE8CF; }
.fel.ca { background: rgba(167, 139, 250, .2); color: #D3C4FF; }
.fel.cma { background: rgba(244, 114, 182, .2); color: #FBC3E0; }
.fel.alanon { background: rgba(34, 211, 238, .18); color: #A5EEFA; }
.until { font-size: 13px; font-weight: 800; color: var(--dusk); background: var(--lamp); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.soon-note, .soon-empty { font-size: 13px; color: rgba(255, 255, 255, .55); margin: 10px 0 0; }

/* ── the count, in a sentence ────────────────────────────────────── */
.count { background: var(--surface); border-bottom: 1px solid var(--line); }
.count p { margin: 0; padding: 26px 0; font-size: 20px; color: var(--ink-2); }
.count strong { color: var(--ink); }

/* ── what it does ────────────────────────────────────────────────── */
.does { padding: 88px 0 40px; }
.feature { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; margin-bottom: 80px; }
.feature.flip { grid-template-columns: 340px 1fr; }
.feature.flip .feature-text { order: 2; }
.feature.no-shot { grid-template-columns: minmax(0, 42em); margin-bottom: 56px; }
.feature-text h2 { margin-bottom: 14px; }
.feature-text p { color: var(--ink-2); max-width: 34em; margin: 0; }
.phone { border-radius: 36px; border: 8px solid #14171F; background: #14171F; box-shadow: 0 0 0 1px var(--phone-ring), 0 30px 60px -30px rgba(20, 35, 75, .45); width: 100%; }

/* ── The Common Room, on the home page ───────────────────────────── */
.promo { padding: 0 0 72px; }
.promo-in { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 28px; align-items: center;
    background: var(--dusk); color: rgba(255, 255, 255, .8); border-radius: 28px; padding: 28px 36px; position: relative; overflow: hidden; }
.promo-in::before { content: ''; position: absolute; left: -60px; top: -60px; width: 300px; height: 300px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(242, 181, 68, .2), rgba(242, 181, 68, 0)); }
.promo .ring { width: 120px; height: 120px; position: relative; }
.promo-text { position: relative; }
.promo-text h2 { color: #fff; }
.promo-tag { color: var(--lamp); font-weight: 700; font-size: 18px; margin: 6px 0 8px; }
.promo-text p:last-child { margin: 0; max-width: 34em; }
.promo-go { position: relative; justify-self: end; font-weight: 800; font-size: 17px; color: var(--dusk); background: var(--lamp); text-decoration: none; padding: 14px 26px; border-radius: 14px; white-space: nowrap; }
.promo-go:hover { background: #F6C566; }

/* ── where the meetings come from ────────────────────────────────── */
.source { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 72px 0; }
.source-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.prose p { margin: 0 0 16px; color: var(--ink-2); max-width: 38em; }
.prose a { font-weight: 700; }

/* ── questions ───────────────────────────────────────────────────── */
.faq { padding: 72px 0 88px; }
.faq-in { max-width: 820px; }
.faq h2 { margin-bottom: 18px; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-weight: 500; color: var(--ink-2); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 10px 0 0; color: var(--ink-2); max-width: 40em; }

/* ── plain pages ─────────────────────────────────────────────────── */
.page { padding: 40px 0 88px; }
.page-in { max-width: 760px; }
.page h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 10px; }
.page .intro { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.page p, .page li { color: var(--ink-body); }
.page ul, .page ol { padding-left: 22px; }
.page li { margin: 6px 0; }
.page .updated { font-size: 14px; color: var(--ink-2); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 18px 0; }
.panel p:first-child { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }
code { font-size: .92em; background: var(--quiet); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ── a shared meeting ────────────────────────────────────────────── */
.meet { padding: 32px 0 88px; }
.meet-in { max-width: 720px; }
.meet .fellowship { display: inline-block; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--tag-aa); color: var(--tag-aa-ink); }
.meet .fellowship.na { background: var(--tag-na); color: var(--tag-na-ink); }
.meet .fellowship.ca { background: var(--tag-ca); color: var(--tag-ca-ink); }
.meet .fellowship.cma { background: var(--tag-cma); color: var(--tag-cma-ink); }
.meet .fellowship.alanon { background: var(--tag-alanon); color: var(--tag-alanon-ink); }
.meet h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 6px; }
.meet .when { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0 0 24px; }
.meet .when span { color: var(--ink-2); font-weight: 500; font-size: 16px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); }
.meet .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; padding: 12px 20px; border-radius: 14px; text-decoration: none; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-hover); }
.btn.quiet { background: var(--quiet); color: var(--ink); }
.btn.quiet:hover { background: var(--quiet-hover); }

/* ── footer ──────────────────────────────────────────────────────── */
.foot { background: var(--dusk); color: rgba(255, 255, 255, .72); padding: 48px 0 40px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.foot .brand { color: #fff; }
.foot-brand p { margin: 10px 0 0; max-width: 28em; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-content: start; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.fine { grid-column: 1 / -1; font-size: 13px; color: rgba(255, 255, 255, .55); margin: 0; max-width: 72em; }

/* our other apps (ibyteapps.com/apps.json), at the top of the footer */
.ours { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--dusk-line); }
.ours-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; margin-bottom: 20px; }
.ours-head h2 { margin: 0; color: #fff; font-size: 22px; line-height: 1.25; }
.ours-head p { margin: 4px 0 0; max-width: 46em; }
.ours-all { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.ours-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ours-list li { display: flex; }
.ours-app { flex: 1; display: flex; gap: 14px; align-items: center; padding: 14px 16px 14px 14px; border-radius: 16px;
    background: var(--dusk-2); border: 1px solid var(--dusk-line); color: inherit; text-decoration: none; transition: background-color .15s, border-color .15s; }
.ours-app:hover { background: #24396F; border-color: rgba(255, 255, 255, .24); }
.ours-app:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ours-app:focus-visible { border-radius: 16px; }
.ours-app img { width: 56px; height: 56px; border-radius: 13px; flex: none; background: rgba(255, 255, 255, .08); }
.ours-text { display: grid; gap: 1px; min-width: 0; }
.ours-text strong { color: #fff; font-size: 16px; line-height: 1.3; }
.ours-text span { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .72); }
.ours-text small { font-size: 13px; line-height: 1.5; color: var(--lamp); }

/* ── the finder, in the hero ─────────────────────────────────────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.finder { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; max-width: 34em; }
.locate {
    display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
    font: inherit; font-weight: 800; font-size: 17px; color: var(--dusk); background: var(--lamp);
    padding: 14px 22px 14px 18px; border-radius: 14px;
}
.locate svg { width: 22px; height: 22px; }
.locate:hover { background: #F6C566; }
.locate:disabled { opacity: .7; cursor: progress; }
.locate:focus-visible, .town input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.town { position: relative; flex: 1 1 15em; min-width: 0; }
.town input {
    width: 100%; height: 100%; min-height: 52px; font: inherit; font-size: 16px; color: var(--ink);
    background: var(--field); border: 0; border-radius: 14px; padding: 0 16px;
}
.town input::placeholder { color: var(--ink-3); }
[data-theme="dark"] .town input { background: var(--dusk-2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
[data-theme="dark"] .town input::placeholder { color: rgba(255, 255, 255, .62); }
.town-list {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; list-style: none; margin: 0; padding: 6px;
    background: var(--raised); color: var(--ink); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(10, 20, 50, .55);
}
.town-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.town-list li[aria-selected="true"], .town-list li:hover { background: var(--hover); }
.town-list li .n { color: var(--ink-2); font-weight: 500; font-size: 14px; white-space: nowrap; }
.town-list li.none { color: var(--ink-2); font-weight: 500; cursor: default; }
.finder-note { font-size: 14px; color: rgba(255, 255, 255, .62); margin: 12px 0 26px; max-width: 34em; }
.dusk .stores .store { padding: 8px 16px 8px 12px; font-size: 15px; }

/* the "starting soon" panel: join beside each meeting */
.soon a.name { color: #fff; text-decoration: none; }
.soon a.name:hover { text-decoration: underline; }
.slot-do { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.join { font-size: 13px; font-weight: 800; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 3px 12px; }
.join:hover { background: #fff; color: var(--dusk); }
.soon-note a, .soon-empty a { color: var(--lamp); font-weight: 700; }

/* ── lists of meetings: near you, and /online ───────────────────── */
.near { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.near-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.near-head h2:focus { outline: none; }
.near-where { margin: 0; color: var(--ink-2); font-size: 15px; }
.near-filters { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 6px; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row button, .chips-row a {
    flex: none; font: inherit; font-size: 15px; font-weight: 700; padding: 8px 15px; border-radius: 999px; cursor: pointer;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line); text-decoration: none;
}
.chips-row [aria-pressed="true"], .chips-row [aria-current="page"] { background: var(--pressed); color: var(--pressed-ink); border-color: var(--pressed); }
.chips-row button:focus-visible, .chips-row a:focus-visible, .btn:focus-visible, .row-name:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.near-key { font-size: 14px; color: var(--ink-2); margin: 12px 0 0; }
.helpline { margin: 18px 0 0; padding: 14px 18px; background: var(--warm); border-radius: 14px; color: var(--warm-ink); font-size: 16px; }
.helpline a { font-weight: 800; color: var(--ink); }
.near-status { margin: 22px 0 10px; font-weight: 700; color: var(--ink-2); font-size: 15px; }
.near-more { display: flex; gap: 10px; margin-top: 16px; }
.btn { border: 0; cursor: pointer; font-family: inherit; }

.board { list-style: none; margin: 0; padding: 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.board[aria-busy="true"] { opacity: .55; }
.row { display: grid; grid-template-columns: 6.4em minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row.is-over { opacity: .45; }
.row-when { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.row-at { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.row-at .ampm { color: var(--ink-2); }
.row-at .wd { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.row .until:empty { display: none; }
.row.is-on .until { background: #12A150; color: #fff; }
.row-name { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; line-height: 1.3; }
.row-name:hover { text-decoration: underline; }
.row-where { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.row-where .km { font-weight: 700; color: var(--ink); }
.tag { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--tag-aa); color: var(--tag-aa-ink); }
.tag.na { background: var(--tag-na); color: var(--tag-na-ink); }
.tag.ca { background: var(--tag-ca); color: var(--tag-ca-ink); }
.tag.cma { background: var(--tag-cma); color: var(--tag-cma-ink); }
.tag.alanon { background: var(--tag-alanon); color: var(--tag-alanon-ink); }
.row-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 8px 0 0; }
.row-chips li { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); }
.row-chips li.warn { background: var(--warn); color: var(--warn-ink); }
.row-do { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.row-do .btn { font-size: 15px; padding: 10px 16px; border-radius: 12px; }

.listing { padding: 40px 0 88px; }
.listing h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 10px; }
.listing .intro { font-size: 18px; color: var(--ink-2); max-width: 46em; margin: 0 0 22px; }
.listing .chips-row { margin-bottom: 18px; }
.pager { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: var(--ink-2); font-size: 15px; }
.listing-note { font-size: 14px; color: var(--ink-2); margin: 18px 0 0; max-width: 46em; }

/* ── meetings by town ───────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.town-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.town .chips-row { margin-bottom: 4px; }
.day { margin-top: 34px; }
.day h2 { font-size: 22px; margin-bottom: 12px; }
.day-none { color: var(--ink-2); margin: 0; }
.day-more { margin: 12px 0 0; }
.row[hidden] + .row { border-top: 0; }
.who, .nearby { margin-top: 48px; }
.who h2, .nearby h2 { font-size: 22px; margin-bottom: 10px; }
.who > p { color: var(--ink-2); max-width: 44em; margin: 0 0 12px; }
.who-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.who-list li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.who-list a { font-weight: 700; }
.town-links, .country-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 24px; }
.town-links li, .country-links li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.town-links a, .country-links a { font-weight: 700; color: var(--ink); text-decoration: none; }
.town-links a:hover, .country-links a:hover { color: var(--blue-ink); text-decoration: underline; }
.town-links span, .country-links span { color: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.country-links { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.region summary { font-size: 19px; }
.region summary span { margin-left: auto; margin-right: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.region .town-links { margin-top: 12px; }

/* a meeting's own page: join and call-in */
.join-panel .btn { margin-bottom: 4px; }
.join-notes { font-size: 15px; color: var(--ink-2); white-space: pre-line; }

/* ── small screens ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dusk-in, .source-in, .foot-in { grid-template-columns: 1fr; gap: 32px; }
    .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
    .feature.flip .feature-text { order: 0; }
    .phone { max-width: 300px; }
    .top-nav a:not(.get):not(.nav-chat) { display: none; }
}
@media (max-width: 960px) { .ours-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ours-list { grid-template-columns: 1fr; } .ours { padding-bottom: 32px; margin-bottom: 32px; } }
@media (max-width: 720px) {
    .promo-in { grid-template-columns: 72px minmax(0, 1fr); padding: 24px; gap: 18px 20px; align-items: start; }
    .promo .ring { width: 72px; height: 72px; }
    .promo-go { grid-column: 1 / -1; justify-self: start; }
    .row { grid-template-columns: 5.2em minmax(0, 1fr); gap: 6px 14px; }
    .row-do { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
    .board { padding: 0 16px; border-radius: 18px; }
}
/* phones: the header on one line (brand, Chat, the light / dark switch, Get the app) */
@media (max-width: 600px) {
    .top-in { gap: 8px; }
    .brand { font-size: 15.5px; gap: 7px; }
    .brand .mark { width: 25px; height: 25px; }
    .top-nav { gap: 10px; font-size: 14px; }
    .top-nav .get { padding: 8px 12px; }
    .top-nav .nav-chat .long { display: none; }
    /* the switch as a bare icon, its 32px target overlapping the gaps beside it */
    .theme-switch { width: 32px; height: 32px; margin: 0 -4px; border-color: transparent; }
    .home .theme-switch, .on-dusk .theme-switch { border-color: transparent; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .locate { flex: 1 1 100%; justify-content: center; }
    .row-at { font-size: 21px; }
    .row-name { font-size: 17px; }
    .slot-do { grid-column: 2; flex-direction: row; align-items: center; justify-self: start; }
    .shell { padding: 0 16px; }
    .slot { grid-template-columns: 4.6em minmax(0, 1fr); }
    .slot .until { margin-top: 0; }
    .at { font-size: 22px; }
    .foot-links { grid-template-columns: 1fr; }
}
/* the smallest phones: the header keeps one line */
@media (max-width: 380px) {
    .top-nav { gap: 8px; }
    .top-nav .nav-chat::before { display: none; }
}
@media (max-width: 340px) {
    .top .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
