/* =========================================================================
   hansard.css (2026-10-04) — shared stylesheet for the Hansard AK "operations"
   pages: calendar.html, committees.html, legislators.html, bills.html.
   Same canonical token system as index/search/transcript (warm cream / navy /
   gold, Inter + Fraunces + JetBrains Mono), light + dark, reduced-motion safe.
   One file serves both domains; [data-site] is stamped by hansard.js.
   ========================================================================= */
:root {
    --ink: #0a1628; --ink-soft: #1e293b;
    --paper: #fbf9f4; --surface: #ffffff; --surface-2: #f5f1e8;
    --muted: #475569; --faint: #6b665c; --accent-text: #8a6520;
    --border: #e8e1d0; --border-strong: #d4cbb4;
    --accent: #b8892f; --accent-hover: #95701f; --accent-soft: #f6ecd1;
    --green: #3a6f4a; --green-soft: #e1ecdd;
    --red:   #a63838; --red-soft:   #f4dcdc;
    --amber: #b87a0a; --amber-soft: #faecc8;
    --blue:  #2f5f8f; --blue-soft:  #dde8f3;
    --slate: #475569; --slate-soft: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(10,22,40,0.04);
    --shadow:    0 4px 16px rgba(10,22,40,0.06), 0 1px 2px rgba(10,22,40,0.04);
    --shadow-lg: 0 16px 48px rgba(10,22,40,0.10), 0 4px 12px rgba(10,22,40,0.04);
    --shadow-glow: 0 0 0 3px rgba(184,137,47,0.15);
    --radius-sm: 8px; --radius: 14px; --radius-lg: 20px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1120px;
    --nav-h: 60px;
}
[data-theme="dark"] {
    --ink: #f1e9d8; --ink-soft: #c9c0ad;
    --paper: #0a1628; --surface: #111f38; --surface-2: #0d1a30;
    --muted: #a8a195; --faint: #8d897f; --accent-text: #e5c074;
    --border: rgba(229,192,116,0.12); --border-strong: rgba(229,192,116,0.24);
    --accent: #e5c074; --accent-hover: #f0d080; --accent-soft: rgba(229,192,116,0.10);
    --green: #8dc99b; --green-soft: rgba(141,201,155,0.12);
    --red: #ea9b9b;   --red-soft: rgba(234,155,155,0.12);
    --amber: #e5b76b; --amber-soft: rgba(229,183,107,0.12);
    --blue: #8fb4dc;  --blue-soft: rgba(143,180,220,0.14);
    --slate: #a8a195; --slate-soft: rgba(168,161,149,0.15);
    --shadow: 0 4px 16px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 0 3px rgba(229,192,116,0.20);
}

/* ---- base ------------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
    font-family: var(--font-ui); background: var(--paper); color: var(--ink-soft);
    line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.hk-only, .cr-only { }
[data-site="hansard"] .cr-only, [data-site="codyrice"] .hk-only { display: none !important; }

/* ---- nav (shared with transcript viewer pattern) ----------------------- */
.nav { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
    background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.brand-mark.round { border-radius: 50%; object-fit: cover; border: 1.5px solid var(--border-strong); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 0.84rem; font-weight: 500; color: var(--muted); padding: 7px 12px; border-radius: 8px; transition: color var(--transition), background var(--transition); white-space: nowrap; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: transparent; border: none; transition: color var(--transition), background var(--transition); }
.icon-btn:hover { color: var(--accent); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; } .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; } [data-theme="dark"] .theme-toggle .moon { display: none; }
.nav-toggle { display: none; }
.nav-toggle .close { display: none; }
.nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }
@media (max-width: 760px) {
    .nav-toggle { display: grid; }
    .nav-links { position: absolute; top: 100%; right: 12px; left: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; margin-top: 4px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); display: none; }
    .nav-links.open { display: flex; }
    .nav-links .nav-link { padding: 11px 12px; font-size: 0.95rem; }
}

/* ---- page scaffold ---------------------------------------------------- */
.page { flex: 1; width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 24px 24px 56px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.015em; color: var(--ink); line-height: 1.15; }
.page-head .lede { color: var(--muted); font-size: 0.95rem; max-width: 62ch; margin-top: 6px; }
.meta-line { font-size: 0.78rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.meta-line a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong); }
.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }

/* ---- tabs ---------------------------------------------------------------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 14px; font-weight: 500; font-size: 0.9rem; color: var(--muted); white-space: nowrap; border-radius: 6px 6px 0 0; transition: color var(--transition), border-color var(--transition); }
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab .count { display: inline-block; min-width: 1.4em; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.72rem; font-weight: 600; text-align: center; }
.tab[aria-selected="true"] .count { background: var(--accent-soft); color: var(--accent-hover); }

/* ---- toolbar / filters --------------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1 1 260px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.input, .select { width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-size: 0.92rem; transition: border-color var(--transition), box-shadow var(--transition); min-height: 40px; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-glow); }
.input::placeholder { color: var(--faint); }
.search-wrap { position: relative; }
.search-wrap .input { padding-left: 36px; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 8px 12px; font-size: 0.85rem; font-weight: 500; color: var(--muted); min-height: 40px; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-hover); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 0.8rem; color: var(--muted); }
.chip[aria-pressed="true"], .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); }

/* ---- buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-size: 0.86rem; font-weight: 500; min-height: 40px; transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition); white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
[data-theme="dark"] .btn.primary { color: var(--paper); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- cards & lists ------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.pad { padding: 18px 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.day-head { position: sticky; top: var(--nav-h); z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); padding: 10px 0 6px; margin: 14px 0 6px; border-bottom: 1px solid var(--border); display: flex; align-items: baseline; gap: 12px; }
.day-head h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.day-head .sub { font-size: 0.8rem; color: var(--muted); }
.day-head.today h2::before { content: "Today"; font-family: var(--font-ui); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-hover); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; margin-right: 10px; vertical-align: middle; }

.evt { display: grid; grid-template-columns: 28px 86px 1fr auto; gap: 12px 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition); }
.evt:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.evt.selected { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.evt.canceled { opacity: 0.72; }
.evt.canceled .evt-title { text-decoration: line-through; }
.evt .pick { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.evt-time { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.evt-time .tz { display: block; font-family: var(--font-ui); font-weight: 400; font-size: 0.7rem; color: var(--faint); }
.evt-body { min-width: 0; }
.evt-title { font-weight: 600; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.evt-title a { color: inherit; }
.evt-sub { color: var(--muted); font-size: 0.84rem; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.evt-agenda { margin-top: 8px; font-size: 0.86rem; color: var(--ink-soft); }
.evt-agenda ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.evt-agenda li { padding-left: 14px; position: relative; }
.evt-agenda li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.evt-agenda li.bill::before { background: var(--accent); }
.evt-agenda .more { color: var(--muted); font-size: 0.8rem; background: none; border: 0; padding: 0; text-decoration: underline; }
.evt-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em; padding: 2px 8px; border-radius: 999px; background: var(--slate-soft); color: var(--slate); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.gold { background: var(--accent-soft); color: var(--accent-hover); }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (max-width: 680px) {
    .evt { grid-template-columns: 24px 1fr; }
    .evt-time { grid-column: 2; }
    .evt-body { grid-column: 2; }
    .evt-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
}

/* ---- data table ------------------------------------------------------------ */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th { text-align: left; font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.tbl .num { font-family: var(--font-mono); font-size: 0.82rem; text-align: right; }

/* ---- detail panel (drawer) --------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 960px) { .split.has-detail { grid-template-columns: minmax(0, 1fr) 420px; align-items: start; } .detail { position: sticky; top: calc(var(--nav-h) + 12px); max-height: calc(100vh - var(--nav-h) - 24px); overflow: auto; } }
.detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.detail h2 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.detail .close { float: right; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 0.86rem; margin-top: 12px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { color: var(--ink); word-break: break-word; }
.section-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.list-plain { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.person { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); }
.person:hover { background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; background: var(--accent-soft); color: var(--accent-hover); flex: 0 0 auto; letter-spacing: 0.02em; }
.avatar.d { background: var(--blue-soft); color: var(--blue); }
.avatar.r { background: var(--red-soft); color: var(--red); }
.avatar.i, .avatar.n { background: var(--slate-soft); color: var(--slate); }
.person .who { min-width: 0; }
.person .who b { display: block; color: var(--ink); font-weight: 600; font-size: 0.9rem; }
.person .who span { color: var(--muted); font-size: 0.78rem; }
.person .role { margin-left: auto; }

/* ---- stat tiles ----------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.stat span { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- timeline ------------------------------------------------------------- */
.timeline { list-style: none; position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 4px 0 10px; font-size: 0.86rem; }
.timeline li::before { content: ""; position: absolute; left: -17px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline li.future::before { background: var(--accent); }
.timeline .when { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); display: block; }

/* ---- sticky selection bar ------------------------------------------------ */
.selbar { position: sticky; bottom: 12px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; margin-top: 18px; background: var(--ink); color: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .selbar { background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); }
.selbar b { font-size: 0.95rem; }
.selbar .btn { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.selbar .btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.selbar .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.selbar .spacer { flex: 1; }

/* ---- subscribe panel ------------------------------------------------------ */
.feeds { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feed { padding: 14px 16px; }
.feed h3 { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.feed p { font-size: 0.82rem; color: var(--muted); margin: 4px 0 10px; }
.urlbox { display: flex; gap: 6px; }
.urlbox input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 0.76rem; padding: 7px 9px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); color: var(--ink); }
.howto summary { cursor: pointer; font-size: 0.82rem; color: var(--muted); }
.howto ol { font-size: 0.82rem; color: var(--ink-soft); padding-left: 20px; margin-top: 6px; }

/* ---- menus / popovers ----------------------------------------------------- */
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; z-index: 25; display: none; }
.menu-list.open { display: block; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 6px; font-size: 0.86rem; color: var(--ink); background: none; border: 0; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); text-decoration: none; }
.menu-list svg { width: 16px; height: 16px; color: var(--muted); }
.menu-list .hint { font-size: 0.7rem; color: var(--faint); margin-left: auto; }

/* ---- states --------------------------------------------------------------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty h3 { font-family: var(--font-display); color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.error { background: var(--red-soft); color: var(--red); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); height: 84px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 0.86rem; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity var(--transition), transform var(--transition); z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
[data-theme="dark"] .toast { background: var(--accent); color: var(--paper); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: 0.84rem; border: 1px solid var(--border); }
.notice b { color: var(--ink); }

/* ---- footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 20px 16px 28px; text-align: center; font-size: 0.8rem; color: var(--muted); line-height: 1.7; }
.site-footer a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); }
@media print {
    .nav, .toolbar, .selbar, .evt-actions, .tabs, .site-footer, .feeds, .pick { display: none !important; }
    .page { padding: 0; } .evt { break-inside: avoid; box-shadow: none; }
}

/* sprint1 2026-10-05: de-emphasise empty tabs (C1) */
.tab.zero { opacity: .55; }
.tab.zero[aria-selected="true"] { opacity: 1; }
