/* Layout: the TalkHalifax design system (Light, and Charcoal after dark). White, frosted and quiet: Home is a grid of glass cards on a near-white page, each article a room with its live chat docked beside it. Colour arrives later as splashes on the page layer. */
:root {
  color-scheme: light;
  --chatw: 400px;         /* docked chat width */
  /* Design system colour tokens: Light */
  --surface-page: #f5f6f7;
  --surface-solid: #ffffff;
  --surface-sunken: #eef0f2;
  --surface-glass: rgba(255, 255, 255, 0.62);
  --surface-glass-hover: rgba(255, 255, 255, 0.82);
  --edge-glass: rgba(18, 20, 23, 0.07);
  --line: #e3e5e8;
  --ink: #121417;
  --ink-muted: #5b6168;
  --ink-faint: #7e848b;
  --on-ink: #ffffff;
  --on-signal: #ffffff;   /* text on a signal-colour fill (the LIVE badge) */
  --signal-warn: #b3261e;
  --signal-warn-wash: rgba(179, 38, 30, 0.07);
  --signal-caution: #8a5a00;
  --signal-ok: #1d6a86;
  --banner-warn: #fbeceb;     /* solid band behind a city notice or weather warning */
  --banner-caution: #f7f0e3;  /* solid band behind a weather watch or statement */
  --shadow-glass: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 2px rgba(18, 20, 23, 0.04), 0 8px 24px rgba(18, 20, 23, 0.06);
  --focus: var(--ink);
  --splash: var(--ink);   /* your colour splash: points at ink until you choose one */
  --glass-blur: blur(20px) saturate(1.2);
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 18px;
  /* The site's older names, kept as aliases so every rule follows the tokens above */
  --bg: var(--surface-page);
  --glass: var(--surface-glass);
  --glass-hover: var(--surface-glass-hover);
  --glass-edge: var(--edge-glass);
  --glass-shadow: var(--shadow-glass);
  --notice-glass: var(--signal-warn-wash);
  --muted: var(--ink-muted);
  --accent: var(--splash);
  --adv: var(--signal-caution);
  --warn: var(--signal-warn);
  --info: var(--ink-muted);
  --ok: var(--signal-ok);
  --field: var(--surface-solid);
  --f-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: Inter, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-read: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
/* Charcoal: the same system after dark. Only the colour tokens change. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface-page: #1c1d1f;
    --surface-solid: #26282b;
    --surface-sunken: #18191b;
    --surface-glass: rgba(44, 46, 50, 0.58);
    --surface-glass-hover: rgba(52, 55, 59, 0.72);
    --edge-glass: rgba(255, 255, 255, 0.08);
    --line: #35383c;
    --ink: #edeeef;
    --ink-muted: #a3a8ae;
    --ink-faint: #7a7f86;
    --on-ink: #121417;
    --on-signal: #1c1d1f;
    --signal-warn: #f2a49e;
    --signal-warn-wash: rgba(242, 164, 158, 0.10);
    --signal-caution: #e8be6a;
    --signal-ok: #8ecbe0;
    --banner-warn: #3a2422;
    --banner-caution: #332b1b;
    --shadow-glass: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
/* The page colour goes on html too: glass blurs what's behind it, and without this the blur samples a white canvas in Charcoal */
html { background: var(--surface-page); }
body { color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; background: var(--surface-page); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.glass { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.wrap { margin: 0 auto; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
a { color: var(--accent); }
button, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; left: -9999px; }

/* Header + nav */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--glass-edge); }
header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 12px; }
.name { all: unset; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.name span { color: var(--accent); }
/* Views */
.view { padding-block: 32px 64px; }
.view > h1 { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 6px; text-wrap: balance; }
.lede { color: var(--muted); margin: 0 0 6px; max-width: 58ch; }
.more { all: unset; cursor: pointer; font-size: 13.5px; color: var(--accent); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Home: the developing stories */
.home-top { margin-bottom: 20px; }
.forum-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.forum-top h1 { font-family: var(--f-display); font-weight: 700; font-size: 32px; line-height: 1.08; letter-spacing: -.025em; margin: 0; }
.sorts { display: flex; gap: 16px; }
.sort { all: unset; cursor: pointer; font-size: 14px; color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1.5px solid transparent; box-sizing: border-box; }
.sort:hover { color: var(--ink); }
.sort[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.forum-lede { color: var(--muted); margin: 6px 0 22px; max-width: 58ch; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.cards > .msg { grid-column: 1 / -1; }
.card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 18px 16px; border-radius: 18px; transition: background .2s, transform .2s, box-shadow .2s; }
/* Glass comes after the reset above, which would otherwise wipe it */
.card.glass { background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.card:hover { background: var(--glass-hover); }
.card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.card .k { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card .tt { font-weight: 600; letter-spacing: -.01em; font-size: 17px; line-height: 1.3; text-wrap: pretty; }
.card .dk { font-size: 14.5px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .ft { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.card .ft .recent { color: var(--ok); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-family: var(--f-body); font-size: 12.5px; font-variant-numeric: tabular-nums; background: var(--field); border: 1px solid var(--glass-edge); color: var(--ink); white-space: nowrap; }
.pill.zero { color: var(--muted); }
/* Live viewer counter on developing cards: a headshot and how many people have the story open */
.viewers { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.viewers b { font-weight: 600; font-variant-numeric: tabular-nums; }
.viewers.on { color: var(--ink); }
.viewers.on svg { color: var(--signal-warn); }
@media (prefers-reduced-motion: no-preference) {
  .viewers.on svg { animation: viewerPulse 2.4s ease-in-out infinite; }
}
@keyframes viewerPulse { 50% { opacity: .45; } }
.card.lead { grid-column: 1 / -1; padding: 24px 24px 20px; }
@media (min-width: 760px) { .card.lead { grid-column: span 2; } }
.card.lead .tt { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.12; letter-spacing: -.025em; }
.card.lead .dk { font-size: 16px; -webkit-line-clamp: 3; }
/* Alert banners: city notices and weather warnings, pinned under the header on Home. Solid bands, not glass. */
.abars { display: flex; flex-direction: column; }
.abar { background: var(--banner-warn); border-top: 1px solid var(--line); }
.abar.caution { background: var(--banner-caution); }
header .abar-row { display: flex; flex-wrap: nowrap; align-items: center; justify-content: normal; gap: 8px; padding-block: 0; }
.abar-in { flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 4px 12px; min-height: 44px; padding-block: 8px; }
.abar-tog { all: unset; box-sizing: border-box; flex: none; cursor: pointer; min-height: 44px; padding: 0 0 0 12px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.abar-tog:hover { color: var(--ink); }
.abar-tog:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.abar-in:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.abar-in:hover .abar-t { text-decoration: underline; text-underline-offset: 3px; }
.abar-k { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--signal-warn); }
.abar.caution .abar-k { color: var(--signal-caution); }
.abar-t { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abar-m { flex: none; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 560px) {
  .abar-in { flex-wrap: wrap; align-items: baseline; padding-block: 10px; }
  .abar-t { flex-basis: 100%; order: 3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .abar-m { margin-left: auto; }
}
/* Pull to refresh (home-screen app only): slides out from under the header */
.ptr { position: fixed; z-index: 8; left: 50%; top: calc(env(safe-area-inset-top, 0px) + var(--hdr, 64px) + 6px); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); opacity: 0; pointer-events: none; transform: translate(-50%, -52px); transition: transform .2s ease, opacity .2s ease; }
.ptr.drag { transition: none; }
.ptr.ready { color: var(--accent); }
.ptr .spin, .ptr.busy .arrow { display: none; }
.ptr.busy .spin { display: block; color: var(--accent); animation: ptr-spin .8s linear infinite; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr { transition: opacity .2s ease; } .ptr.busy .spin { animation: none; } }
.forum-foot { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Status lists */
.list { list-style: none; margin: 0; padding: 0; }
.msg { padding: 18px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); }

/* Article */
/* Profile button (header) and profile page */
.me-btn { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); color: var(--muted); flex: none; }
.me-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-btn:hover { color: var(--ink); }
.me-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.me-btn[aria-current="page"] { box-shadow: 0 0 0 2px var(--accent); }
.profile { max-width: 760px; margin: 0 auto; }
.profile-card { display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 20px; margin: 18px 0 16px; }
.profile-card .pic { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--field); border: 1px solid var(--glass-edge); flex: none; display: grid; place-items: center; color: var(--muted); }
.profile-card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-card h1 { font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 6px; overflow-wrap: anywhere; }
.profile-card p { margin: 0; color: var(--muted); font-size: 14px; }
.role { display: inline-block; margin-left: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--field); border: 1px solid var(--glass-edge); color: var(--accent); vertical-align: middle; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { padding: 14px 16px; border-radius: 16px; }
.stat b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }
.p-h { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.activity { list-style: none; margin: 0 0 28px; padding: 0; }
.activity li { border-bottom: 1px solid var(--line); }
.activity button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; width: 100%; padding: 12px 0; }
.activity button:hover .q { text-decoration: underline; text-underline-offset: 3px; }
.activity .q { font-size: 15px; overflow-wrap: anywhere; }
.activity .w { grid-column: 1; font-size: 13px; color: var(--muted); }
.activity .r { font-family: var(--f-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.setting small { display: block; color: var(--muted); font-size: 13px; }
.switch { all: unset; cursor: pointer; width: 44px; height: 26px; border-radius: 999px; background: var(--ink-faint); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-solid); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.p-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.back { all: unset; cursor: pointer; font-size: 14px; color: var(--accent); }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.kicker { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
article h1 { font-family: var(--f-display); font-weight: 700; font-size: 38px; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; text-wrap: balance; }
.dek { font-family: var(--f-read); font-size: 19px; line-height: 1.45; color: var(--ink-muted); margin: 0 0 12px; max-width: 34em; }
.byline { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 20px; }
.byline > span { display: block; }
.byline a { color: inherit; }
.todo { background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 20px; margin: 0 0 26px; max-width: 40em; }
.todo h2, .key-details h2 { font-size: 15px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.todo ul { margin: 0; padding-left: 18px; }
.todo li { font-family: var(--f-read); font-size: 16px; line-height: 1.45; margin-bottom: 6px; }
.todo li:last-child { margin-bottom: 0; }
.todo a, .facts a, .body a { color: inherit; }
.facts { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 20px; margin: 0 0 24px; max-width: 40em; }
.facts dt, .facts dd { margin: 0; line-height: 1.45; }
.facts dt { font-size: 13.5px; color: var(--muted); }
.facts dd { font-size: 15px; overflow-wrap: anywhere; }
.key-details { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); }
.key-details .facts { margin-bottom: 0; }
.body p { font-family: var(--f-read); font-size: 17.5px; line-height: 1.65; margin: 0 0 1em; max-width: 36em; }
.body h2 { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin: 30px 0 8px; }
.body h2.means-h { font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .1em; line-height: inherit; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.body ul { margin: 0 0 1em; padding-left: 1.1em; max-width: 36em; }
.body li { font-family: var(--f-read); font-size: 17.5px; line-height: 1.55; margin-bottom: .4em; }
.source { margin-top: 26px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.byline .by-link { all: unset; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.byline .by-link:hover { text-decoration-color: currentColor; }
.byline .by-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.author-card { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.author-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.author-card .av { width: 44px; height: 44px; font-size: 18px; flex: none; }
.author-card b { display: block; font-weight: 600; font-size: 15px; }
.author-card .ac-bio { display: block; margin: 2px 0 0; font-size: 14px; color: var(--muted); max-width: 60ch; }
.author-card .ac-more { display: block; margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.author-card:hover .ac-more { text-decoration: underline; text-underline-offset: 3px; }
.u-bio { margin: -4px 0 16px; font-size: 15.5px; line-height: 1.5; max-width: 62ch; }
.kicker.notice { color: var(--warn); }
.banner { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--notice-glass); font-size: 14.5px; }
.banner b { color: var(--warn); }
.banner:hover span { text-decoration: underline; text-underline-offset: 3px; }
.closed { margin-top: 36px; padding: 16px 0; border-top: 1px solid var(--ink); font-size: 14px; color: var(--muted); }

/* Article room: article on the left, live chat docked on the right */
#article.wide { padding-top: 24px; transition: padding-right .28s ease; }
body.chat-open #article.wide { padding-right: calc(var(--chatw) + max(28px, env(safe-area-inset-right, 0px))); }
.room > div { min-width: 0; max-width: 820px; margin: 0 auto; }
/* The chat is pinned to the right edge of the window, under the header, and slides out when hidden */
.chat { position: fixed; z-index: 7; top: var(--hdr, 64px); right: 0; bottom: 0; width: var(--chatw); display: flex; flex-direction: column; overflow: hidden; border-width: 0 0 0 1px; border-radius: 0; padding-right: env(safe-area-inset-right, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); transition: transform .28s ease; }
.chat.hidden { transform: translateX(100%); box-shadow: none; }
.chat-head { box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; border-bottom: 1px solid var(--glass-edge); position: relative; }
.chat-head h2 { margin-right: auto !important; }
.chat-toggle { all: unset; cursor: pointer; width: 44px; height: 44px; border-radius: var(--radius-s); display: grid; place-items: center; color: var(--muted); flex: none; }
.chat-toggle:hover { background: var(--field); color: var(--ink); }
.chat-toggle:focus-visible { outline: 2px solid var(--accent); }
.chat-toggle .down { display: none; }
.chat-reopen { all: unset; position: fixed; z-index: 7; right: 0; top: calc(var(--hdr, 64px) + 20px); display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 14px; padding-right: max(16px, env(safe-area-inset-right, 0px)); border-radius: 14px 0 0 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.chat-reopen[hidden] { display: none; }
.chat-reopen.glass { border-right: 0; }
.chat-reopen:hover { background: var(--glass-hover); }
.chat-reopen:focus-visible { outline: 2px solid var(--accent); }
.chat-reopen .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.chat-reopen span.n { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 400; }
.chat-head h2 { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -.015em; margin: 0; display: flex; align-items: center; gap: 8px; }
.chat-head h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.chat-head .grab { display: none; }
.here { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.stack { display: flex; }
.stack .av { width: 22px; height: 22px; margin-left: -6px; border: 2px solid var(--bg); }
.stack .av:first-child { margin-left: 0; }
.av { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: var(--line); display: block; flex: none; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msgs { flex: 1; overflow-y: auto; padding: 8px 14px 6px; overscroll-behavior: contain; }
.chat-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; padding: 20px; }
.grp { margin-top: 12px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 0 8px; }
.grp .av { grid-row: 1 / span 99; align-self: end; }
.grp .meta { font-size: 12px; color: var(--muted); margin: 0 0 3px 2px; }
.grp .meta b { color: var(--ink); font-weight: 600; }
.bubble-row { display: flex; align-items: center; gap: 4px; margin-top: 3px; min-width: 0; }
.bubble { background: var(--surface-sunken); color: var(--ink); border: 1px solid transparent; padding: 7px 11px; border-radius: 14px 14px 14px 5px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.grp.mine { grid-template-columns: minmax(0, 1fr); }
.grp.mine .av, .grp.mine .meta b { display: none; }
.grp.mine .meta { text-align: right; }
.grp.mine .bubble-row { flex-direction: row-reverse; }
.grp.mine .bubble { background: var(--ink); color: var(--on-ink); border-color: transparent; border-radius: 14px 14px 5px 14px; }
.grp.mine .bubble a { color: inherit; }
.x { all: unset; cursor: pointer; font-size: 12px; color: var(--muted); padding: 2px 6px; border-radius: 6px; opacity: 0; flex: none; }
.bubble-row:hover .x, .x:focus-visible, .x.armed { opacity: 1; }
.x.armed { color: var(--warn); font-weight: 600; }
@media (hover: none) { .x { opacity: .6; } }
.typing { font-size: 12px; color: var(--muted); padding: 0 16px 4px; min-height: 20px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--glass-edge); }
.composer textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; border: 1px solid var(--ink-faint); background: var(--field); border-radius: var(--radius-s); padding: 10px 12px; line-height: 1.4; font-size: 14.5px; }
.send { border: 0; background: var(--ink); color: var(--on-ink); width: 44px; height: 44px; border-radius: var(--radius-m); cursor: pointer; display: grid; place-items: center; flex: none; }
.send:disabled { opacity: .35; cursor: default; }
.chat-note { padding: 12px 16px 14px; border-top: 1px solid var(--glass-edge); font-size: 13.5px; color: var(--muted); }
.chat-err { color: var(--warn); font-size: 12.5px; padding: 0 16px 6px; }
.offline-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr, 64px)); z-index: 8; padding: 8px 16px; font-size: 13.5px; text-align: center; color: var(--ink); background: var(--banner-caution); border-bottom: 1px solid var(--line); }
.offline-bar[hidden] { display: none; }

/* Global footer: the brand, every section, the official sources behind the facts, then the fine print */
.site-foot { border-top: 1px solid var(--line); background: var(--surface-sunken); color: var(--ink-muted); font-size: 14px; }
.site-foot .wrap { padding-block: 40px calc(28px + env(safe-area-inset-bottom, 0px)); }
.sf-top { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.sf-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.sf-brand .name { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); }
.sf-brand .name > span { color: var(--ink); }
.sf-brand .name > span > span { color: var(--accent); }
.sf-brand .name img { width: 32px; height: 32px; border-radius: 8px; }
.sf-brand p { margin: 0; max-width: 34ch; line-height: 1.5; }
.sf-col h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.sf-col ul { list-style: none; margin: 0; padding: 0; }
.sf-col li > a, .sf-col li > button { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); font-size: 14.5px; }
.sf-col li > a:hover, .sf-col li > button:hover { text-decoration: underline; text-decoration-color: var(--ink-faint); text-underline-offset: 3px; }
.sf-col li > a:focus-visible, .sf-col li > button:focus-visible, .sf-brand .name:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sf-col li[hidden] { display: none; }
.sf-col .ext::after { content: "↗"; margin-left: 4px; font-size: 12px; color: var(--ink-faint); }
.sf-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.sf-fine p { margin: 0; max-width: 72ch; }
.sf-fine a { color: var(--ink); }
/* Keep clear of the docked chat: beside it on desktop, above its bar on phones */
body.chat-open .site-foot .wrap { padding-right: calc(var(--chatw) + max(28px, env(safe-area-inset-right, 0px))); }
@media (max-width: 960px) {
  body.chat-open .site-foot .wrap { padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  body.wide-view .site-foot .wrap { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}
/* Install the app: the browser's own prompt where there is one, otherwise these steps */
.install { width: min(420px, calc(100vw - 32px)); max-width: none; margin: auto; padding: 0; border: 1px solid var(--edge-glass); border-radius: var(--radius-l); background: var(--surface-solid); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.install::backdrop { background: rgba(18, 20, 23, .34); }
.ins-in { padding: 22px 22px 20px; }
.ins-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ins-head img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.ins-head h2 { margin: 0; font-family: var(--f-display); font-size: 20px; letter-spacing: -.01em; line-height: 1.2; flex: 1; }
.ins-x { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; margin: -8px -10px 0 0; display: grid; place-items: center; border-radius: var(--radius-s); color: var(--ink-muted); flex: none; }
.ins-x:hover { background: var(--surface-sunken); color: var(--ink); }
.ins-x:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.install ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.install li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; }
.install li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); font-size: 13px; font-weight: 700; }
.install .ico { display: inline-grid; place-items: center; width: 26px; height: 26px; vertical-align: -7px; margin: 0 2px; border-radius: 6px; background: var(--surface-sunken); color: var(--signal-ok); }
.install .ins-note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-muted); line-height: 1.45; }
@media (prefers-reduced-motion: no-preference) { .install[open] { animation: ins-in .22s cubic-bezier(.2, .7, .2, 1); } @keyframes ins-in { from { opacity: 0; transform: translateY(12px) scale(.98); } } }
@media (max-width: 860px) { .sf-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-foot .wrap { padding-top: 32px; } .sf-top { gap: 28px 20px; } .sf-sources { grid-column: 1 / -1; } .sf-fine { margin-top: 28px; } }

@media (max-width: 560px) {
  header .wrap { padding-block: 10px; }
  .name { font-size: 23px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .view { padding-block: 24px 48px; }
  .view > h1, .forum-top h1 { font-size: 32px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card.lead { padding: 20px 18px 16px; }
  .card.lead .tt { font-size: 28px; }
  .stats { gap: 8px; }
  .stat { padding: 12px; }
  .stat b { font-size: 24px; }
  .profile-card { padding: 18px; gap: 14px; }
  .profile-card .pic { width: 64px; height: 64px; }
  .profile-card h1 { font-size: 28px; }
  article h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 10px; }
  .dek { font-size: 17px; line-height: 1.42; }
  .byline { font-size: 13px; margin-bottom: 18px; }
  .todo { padding: 14px 16px; margin-bottom: 22px; }
  .body p { font-size: 17.5px; line-height: 1.6; }
  .body h2 { font-size: 20px; margin-top: 26px; }
  .facts { grid-template-columns: 104px minmax(0, 1fr); gap: 10px 12px; margin-bottom: 18px; }
  .facts dt { font-size: 13px; }
  .facts dd { font-size: 14.5px; }
}
/* Below 960px the chat becomes a sheet docked to the bottom edge; its header bar toggles it */
@media (max-width: 960px) {
  #article.wide, body.chat-open #article.wide { padding-right: max(20px, env(safe-area-inset-right, 0px)); padding-bottom: 110px; }
  .chat, .chat.hidden { top: auto; left: 0; width: auto; height: min(78vh, 640px); border-width: 1px 0 0; border-radius: 20px 20px 0 0; padding-right: 0; transform: translateY(calc(100% - 62px - env(safe-area-inset-bottom, 0px))); }
  .chat.open { transform: translateY(0); }
  .chat-head { cursor: pointer; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); min-height: 62px; }
  .chat-toggle .side { display: none; }
  .chat-toggle .down { display: block; transition: transform .28s ease; }
  .chat.open .chat-toggle .down { transform: rotate(180deg); }
  .chat-reopen { display: none; }
  .chat-head .grab { display: block; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--muted); opacity: .4; }
  .composer, .chat-note { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .chat { transition: none; } }
@media (prefers-reduced-motion: no-preference) {
  .flash { animation: flash 1.6s ease-out; }
  @keyframes flash { 0%, 35% { background: color-mix(in srgb, var(--accent) 12%, transparent); } }
}
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; } /* no double-tap zoom */
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.av, .me-btn .ini { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.me-btn .ini { width: 100%; height: 100%; font-size: 15px; }
.signin { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin-top: 18px; }
.btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 16px; border-radius: var(--radius-m); font-weight: 600; font-size: 15px; text-align: center; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.ghost { border: 1px solid var(--ink-faint); background: var(--glass); }
.btn.ghost:hover { background: var(--glass-hover); }
.dev { display: flex; gap: 8px; }
.dev input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--ink-faint); background: var(--field); border-radius: var(--radius-s); padding: 10px 12px; font: inherit; }
.signout { margin-top: 22px; }
/* Developing vs Articles */
/* Header sections (desktop); phones get them in the drawer behind the profile button */
.hnav { display: flex; gap: 22px; margin-left: auto; }
.hnav button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--ink-muted); border-bottom: 1.5px solid transparent; }
.hnav button:hover { color: var(--ink); }
.hnav button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.hnav button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 760px) { .hnav { display: none; } }
/* Weather: a quiet line beside the sections on desktop, at the bottom of the menu on phones */
.wx { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: var(--ink-muted); text-decoration: none; white-space: nowrap; }
.wx[hidden] { display: none; }
.wx:hover { color: var(--ink); }
.wx svg { flex: none; color: var(--ink); }
.wx:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-s); }
header .wx { margin-left: auto; }
header .wx:not([hidden]) + .hnav { margin-left: 0; }
@media (max-width: 960px) { header .wx .wx-lbl { display: none; } }
@media (max-width: 760px) { header .wx { display: none; } }
.dr-wx { display: flex; margin-top: auto; padding-top: 24px; }
.dr-wx + .dr-foot { margin-top: 0; padding-top: 6px; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(320px, 86vw); max-width: none; height: 100%; max-height: none; padding: 0; border: 0; border-left: 1px solid var(--edge-glass); background: var(--surface-solid); color: var(--ink); box-shadow: -12px 0 40px rgba(0, 0, 0, .14); }
.drawer::backdrop { background: rgba(18, 20, 23, .34); }
.dr-in { box-sizing: border-box; min-height: 100%; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 10px) calc(env(safe-area-inset-right, 0px) + 16px) calc(env(safe-area-inset-bottom, 0px) + 18px) 18px; }
.dr-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dr-who { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 52px; }
.dr-who .av { width: 44px; height: 44px; font-size: 18px; }
.dr-who .av.anon { background: var(--surface-sunken); color: var(--ink-muted); }
.dr-who b { display: block; font-weight: 650; font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-who small { display: block; font-size: 13px; color: var(--ink-muted); }
.dr-x { all: unset; box-sizing: border-box; cursor: pointer; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: var(--radius-s); color: var(--ink-muted); }
.dr-x:hover, .dr-link:hover { background: var(--surface-sunken); color: var(--ink); }
.dr-nav { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.dr-link { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 12px; margin: 0 -12px; border-radius: var(--radius-m); font-weight: 600; font-size: 17px; }
.dr-link[aria-current="page"] { background: var(--surface-sunken); }
.dr-link .n { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--signal-warn); }
.dr-x:focus-visible, .dr-link:focus-visible, .dr-who:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.drawer:focus, .dr-x:focus:not(:focus-visible), .dr-link:focus:not(:focus-visible), .dr-who:focus:not(:focus-visible) { outline: none; }
.dr-foot { margin-top: auto; padding-top: 24px; font-size: 12.5px; color: var(--ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] { animation: dr-in .28s cubic-bezier(.2, .7, .2, 1); }
  .drawer[open]::backdrop { animation: dr-fade .28s ease; }
  .drawer.closing { animation: dr-out .2s ease forwards; }
  .drawer.closing::backdrop { animation: dr-fade-out .2s ease forwards; }
}
@keyframes dr-in { from { transform: translateX(100%); } }
@keyframes dr-out { to { transform: translateX(100%); } }
@keyframes dr-fade { from { opacity: 0; } }
@keyframes dr-fade-out { to { opacity: 0; } }
#devCards { position: relative; }
.card.ghost { position: absolute; margin: 0; pointer-events: none; z-index: 1; }
.live-h { display: flex; align-items: center; gap: 12px; }
.live-h::after { content: "LIVE"; font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--signal-warn); }
.section-gap { margin-top: 44px; }
.sect-title { font-family: var(--f-display); font-weight: 700; font-size: 28px; line-height: 1.1; letter-spacing: -.025em; margin: 0; }
.card .upd { color: var(--warn); font-weight: 600; }
.card.archived .k { color: var(--muted); }
.updated-banner { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 9%, transparent); font-size: 14.5px; }
.updated-banner b { color: var(--warn); }
.flash-update { animation: flashUpd 2.4s ease-out; }
@keyframes flashUpd { 0%, 30% { background: color-mix(in srgb, var(--warn) 10%, transparent); } }
@media (prefers-reduced-motion: reduce) { .flash-update { animation: none; } }
.stage-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.stage-tools button { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; }
.stage-tools button:hover { text-decoration: underline; }
/* Threaded comments on Articles */
.comments-sec { max-width: 820px; margin: 44px auto 0; }
.c-head2 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.c-head2 h2 { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0; }
.c-head2 span { font-size: 13px; color: var(--muted); }
.c-compose { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
.c-compose textarea { width: 100%; min-height: 72px; resize: vertical; border: 1px solid var(--ink-faint); background: var(--field); border-radius: var(--radius-s); padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.45; }
.c-compose .row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.c-compose .btn { padding: 8px 16px; font-size: 14px; }
.c-compose .btn:disabled { opacity: .4; cursor: default; }
.cthread { list-style: none; margin: 0; padding: 0; }
.cthread > li { border-top: 1px solid var(--line); }
.cm { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
.cm .av { width: 36px; height: 36px; font-size: 14px; }
.cm .who { font-size: 14px; }
.cm .who b { font-weight: 600; }
.cm .who span { color: var(--muted); }
.cm p { margin: 4px 0 6px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 64ch; }
.cm .acts { display: flex; gap: 16px; font-size: 13px; }
.cm .acts button { all: unset; cursor: pointer; color: var(--muted); }
.cm .acts button:hover { color: var(--ink); }
.cm .acts .danger { color: var(--warn); font-weight: 600; }
.creplies { list-style: none; margin: 0 0 4px 48px; padding: 0 0 0 14px; border-left: 2px solid var(--line); }
.creplies .cm { padding: 10px 0; }
.creplies .c-compose { padding: 8px 0 12px; }
.grp.sys { grid-template-columns: minmax(0, 1fr); }
.grp.sys .bubble { background: transparent; border: 1px dashed var(--ink-faint); color: var(--ink-muted); border-radius: 12px; font-size: 13.5px; }
@media (max-width: 560px) { .creplies { margin-left: 18px; } .sect-title { font-size: 28px; } }
.draft { border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.draft summary { cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.draft summary .k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.draft summary b { font-size: 16px; }
.draft p, .draft li { font-family: var(--f-read); font-size: 16px; line-height: 1.55; max-width: 62ch; }
.draft .dek-s { font-size: 17px; }
.draft .src-s { font-family: var(--f-body); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.review-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.review-acts .btn { padding: 9px 16px; font-size: 14px; }
.auth-tabs { display: flex; gap: 18px; margin: 4px 0 12px; }
.auth-form { display: flex; flex-direction: column; gap: 6px; max-width: 420px; padding: 20px; border-radius: 18px; }
.auth-form label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.auth-form label:first-child { margin-top: 0; }
.auth-form input { min-height: 44px; border: 1px solid var(--ink-faint); background: var(--field); border-radius: var(--radius-s); padding: 11px 12px; font: inherit; font-size: 16px; }
.auth-form input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.auth-form small { font-size: 12.5px; color: var(--muted); }
.auth-form .btn { margin-top: 14px; }
.auth-form .btn:disabled { opacity: .5; cursor: default; }
.auth-err { color: var(--warn); font-size: 14px; margin-top: 6px; }
.auth-err.ok { color: var(--ink-muted); }
.ts-box { margin-top: 12px; min-height: 65px; }
/* Moderation: reports, moderator tools on a profile, reset links, account settings */
.report { border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.report .k { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.report .rq { font-size: 16px; line-height: 1.5; margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.report .rw { font-size: 13.5px; color: var(--muted); margin: 0; }
.report .by-link, .dr-foot .by-link { all: unset; cursor: pointer; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.report .by-link:focus-visible, .dr-foot .by-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.mod-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.mod-tools .btn { padding: 9px 16px; font-size: 14px; }
.danger-btn { color: var(--warn); border-color: var(--warn) !important; }
.reset-link { display: flex; flex-direction: column; gap: 8px; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; max-width: 560px; }
.reset-link label { font-size: 13px; font-weight: 600; }
.reset-link .row2 { display: flex; gap: 8px; }
.reset-link input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--ink-faint); background: var(--field); border-radius: var(--radius-s); padding: 0 12px; font: inherit; font-family: var(--f-mono); font-size: 13px; }
.reset-link small { font-size: 12.5px; color: var(--muted); }
.setting-more { border-bottom: 1px solid var(--line); padding: 12px 0; }
.setting-more summary { cursor: pointer; font-size: 15px; }
.setting-more .auth-form { margin-top: 12px; }
.del-acct { margin-top: 10px; }
.rep-done { cursor: default; }
/* Privacy notice */
.legal > p, .legal > ul { max-width: 68ch; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { font-family: var(--f-read); font-size: 16.5px; line-height: 1.6; }
.legal ul { padding-left: 20px; margin: 0; }
.legal li { margin-bottom: 6px; }
/* Notices: one card per notice, coloured by severity (urgent, disruption, info, resolved) */
.nfilters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.nfilters button { all: unset; box-sizing: border-box; cursor: pointer; min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.nfilters button:hover { color: var(--ink); }
.nfilters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface-page); }
.nfilters button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nfilters .c { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .75; }
.ncards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.ncard { --sev: var(--signal-ok); all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--sev) 12%, var(--surface-page)); border: 1px solid color-mix(in srgb, var(--sev) 18%, transparent); }
.ncard:hover { background: color-mix(in srgb, var(--sev) 17%, var(--surface-page)); }
.ncard:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ncard.urgent { --sev: var(--signal-warn); }
.ncard.disruption { --sev: var(--signal-caution); }
.ncard.info { --sev: var(--signal-ok); }
.ncard.resolved { --sev: var(--ink-faint); }
.ncard .nk { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sev); }
.ncard.resolved .nk { color: var(--ink-muted); }
.ncard .nk .st { font-weight: 600; letter-spacing: .04em; color: var(--ink-muted); }
.ncard .tt { font-weight: 600; font-size: 16.5px; line-height: 1.3; letter-spacing: -.01em; text-wrap: pretty; }
.ncard.resolved .tt { color: var(--ink-muted); }
.ncard .dk { font-size: 14px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .ft { margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.n-sub { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 34px 0 12px; }
