/* Color tokens for the planner and for About, Privacy, and Contact.
   Light --link is #0c4a6e (9.0:1 on #f1f5f9). Light --muted is #334155 on the page background (9.9:1). Button labels share one size and weight.
   The light hour labels below stay at the contrast they were measured at. */

:root {
    --bg: #060913;
    --card: #0d1424;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f8fafc;
    --muted: #a5b4c8;
    --link: #67e8f9;
    /* Header segments (assets/planner.css .seg). */
    --seg-bg: rgb(30, 41, 59);
    --seg-line: rgba(255, 255, 255, 0.16);
    --hot-line: rgb(8, 145, 178);
    /* Away Snap, Calendar, Share, and Add City. Dark fill is --neon, dark edge is --neon. Light overrides below. */
    --hot-fill: var(--neon);
    --hot-edge: var(--neon);
    --btn-size: 1rem;
    --btn-weight: 600;
    --cyan: #00f0ff;
    /* Primary button, both modes: white on #0c4a6e is 9.9:1, on hover #082f49 is 13.5:1. */
    --btn-primary: #0c4a6e;
    --btn-primary-hover: #082f49;
    --work: #064e3b;
    /* Early/late: the old brown #7c2d12 (OKLCH hue 38°) mixed toward yellow and lightened.
       #7a4d00 is hue 71°, still the same ochre family. Hour labels: #fff on #7a4d00 is 7.27:1. */
    --shoulder: #7a4d00;
    --night: #991b1b;
    --work-ink: #fff;
    --shoulder-ink: #fff;
    --night-ink: #fff;
    /* Text in the shoulder and night colours on the page background (7:1 or more).
       #fcc682 on #060913 is 12.82:1. */
    --shoulder-text: #fcc682;
    --night-text: #fca5a5;
    --night-stripe: rgba(0,0,0,0.16);
    --hour-edge: rgba(0,0,0,0.18);
    --track: #04060b;
    --weekend-wash: rgba(255, 255, 255, 0.06);
    --weekend-dot: rgba(255, 255, 255, 0.95);
    --weekend-mark: 3px;
    /* Bank-only closure. Amber, a colour no hour band uses. */
    --bank: #fcd34d;
    color-scheme: dark;
}
html.light {
    --bg: #f1f5f9;
    --card: #ffffff;
    --line: rgba(15, 23, 42, 0.1);
    --text: #0f172a;
    --muted: #334155;
    --link: #0c4a6e;
    --seg-bg: #ffffff;
    --seg-line: rgba(15, 23, 42, 0.14);
    --hot-fill: var(--cyan-200);
    --hot-edge: var(--cyan-600);
    --cyan: #0284c7;
    --track: #e2e8f0;
    /* Light-mode hour palette: lighter fills, dark labels. Work and night are unchanged.
       Early/late fill #fcc682 is the old #fdba74 shifted toward yellow and lightened (hue 66° to 72°).
       Hour labels: #422803 on #fcc682 is 8.81:1. */
    --work: #6ee7b7;
    --shoulder: #fcc682;
    --night: #fecaca;
    --work-ink: #022c22;
    --shoulder-ink: #422803;
    --night-ink: #3b0707;
    --night-stripe: rgba(127,29,29,0.14);
    --hour-edge: rgba(15,23,42,0.12);
    /* #6a4202 on #f1f5f9 is 8.01:1. */
    --shoulder-text: #6a4202;
    --night-text: #991b1b;
    /* The 5px near-black dots stay. The wash is only a tenth of slate. */
    --weekend-wash: rgba(15, 23, 42, 0.10);
    --weekend-dot: #020617;
    --weekend-mark: 5px;
    --bank: #78350f;
    color-scheme: light;
}

/* Colour literals copied from the sheets. Each value is the colour already painted.
   These do not switch with the theme, so a rule that was #fff stays white in both modes.
   --bank above does switch: #fcd34d in the dark, #78350f in the light. */
:root {
    --white: #fff;
    --slate-50: #f8fafc;
    --slate-300: #cbd5e1;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --gray-900: #111827;
    --ink: #090d16;
    --hot-ink: #04222b;
    --green-500: #10b981;
    --green-900: #065f46;
    --green-950: #064e3b;
    --green-100: #d1fae5;
    --neon: #00f0ff;
    --cyan-200: #67e8f9;
    --cyan-300: #22d3ee;
    --cyan-600: #0891b2;
    --sky-600: #0284c7;
    --violet: #5B21B6;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --amber-950: #78350f;
    --amber-975: #451a03;
    --red-300: #fca5a5;
    --red-500: #ef4444;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --white-65: rgba(255, 255, 255, 0.65);
    --white-50: rgba(255, 255, 255, 0.5);
    --white-18: rgba(255, 255, 255, 0.18);
    --white-06: rgba(255, 255, 255, 0.06);
    --slate-900-55: rgba(15, 23, 42, 0.55);
    --slate-900-45: rgba(15, 23, 42, 0.45);
    --slate-900-35: rgba(15, 23, 42, 0.35);
    --slate-900-28: rgba(15, 23, 42, 0.28);
    --slate-900-22: rgba(15, 23, 42, 0.22);
    --slate-900-20: rgba(15, 23, 42, 0.2);
    --slate-900-18: rgba(15, 23, 42, 0.18);
    --slate-900-16: rgba(15, 23, 42, 0.16);
    --slate-900-14: rgba(15, 23, 42, 0.14);
    --black-45: rgba(0, 0, 0, 0.45);
    --black-40: rgba(0, 0, 0, 0.4);
    --black-35: rgba(0, 0, 0, 0.35);
    --black-28: rgba(0, 0, 0, 0.28);
    --black-20: rgba(0, 0, 0, 0.2);
    --neon-75: rgba(0, 240, 255, 0.75);
    --neon-70: rgba(0, 240, 255, 0.7);
    --neon-50: rgba(0, 240, 255, 0.5);
    --neon-45: rgba(0, 240, 255, 0.45);
    --neon-32: rgba(0, 240, 255, 0.32);
    --neon-25: rgba(0, 240, 255, 0.25);
    --neon-08: rgba(0, 240, 255, 0.08);
    --neon-0: rgba(0, 240, 255, 0);
    --hot-line-35: rgba(8, 145, 178, 0.35);
    --ink-78: rgba(6, 9, 19, 0.78);
    --ink-72: rgba(6, 9, 19, 0.72);
    --ink-35: rgba(6, 9, 19, 0.35);
    --sky-35: rgba(3, 105, 161, 0.35);
}

/* Spacing and breakpoint lengths copied from the current sheets.
   Nothing reads these yet. Phase 2 swaps call sites. Phase 5 merges breakpoints.
   Each value is the current px, rem, or em. This is not a new scale. */
:root {
    --space-1px: 1px;
    --space-2px: 2px;
    --space-2-25px: 2.25px;
    --space-3px: 3px;
    --space-4px: 4px;
    --space-5px: 5px;
    --space-6px: 6px;
    --space-7px: 7px;
    --space-8px: 8px;
    --space-9px: 9px;
    --space-10px: 10px;
    --space-11px: 11px;
    --space-12px: 12px;
    --space-14px: 14px;
    --space-16px: 16px;
    --space-18px: 18px;
    --space-20px: 20px;
    --space-22px: 22px;
    --space-24px: 24px;
    --space-26px: 26px;
    --space-28px: 28px;
    --space-30px: 30px;
    --space-32px: 32px;
    --space-36px: 36px;
    --space-40px: 40px;
    --space-48px: 48px;
    --space-52px: 52px;
    --space-56px: 56px;
    --space-64px: 64px;
    --space-0-15rem: 0.15rem;
    --space-0-2rem: 0.2rem;
    --space-0-25em: .25em;
    --space-0-35rem: 0.35rem;
    --space-0-45rem: 0.45rem;
    --space-0-5rem: 0.5rem;
    --space-0-5625rem: 0.5625rem;
    --space-0-7rem: 0.7rem;
    --space-0-75rem: 0.75rem;
    --space-1-25rem: 1.25rem;
    --space-1-4em: 1.4em;
    --space-3rem: 3rem;
    --space-neg-1px: -1px;
    --space-neg-2px: -2px;
    --space-neg-3px: -3px;
    --space-neg-4px: -4px;
    --space-neg-6px: -6px;
    --space-neg-16px: -16px;
    /* .card-head margin-bottom is 14px, and 18px at max-width 600px. */
    --gap-card-head: 14px;
    --gap-card-head-600: 18px;
    /* .hint-row margin-bottom. */
    --gap-now-timeline: 14px;
    /* .add-row margin-block-start is 14px from 768px. Below that it is 12px 16px. */
    --gap-timeline-add: 14px;
    --gap-timeline-add-767-start: 12px;
    --gap-timeline-add-767-end: 16px;
    /* .stack:has(.hour[data-dst]) .track margin-top is 52px, and 36px at max-width 600px. */
    --gap-dst-reserve: 52px;
    --gap-dst-reserve-600: 36px;
    /* Current .ad-slot --ad-reserve. Rem stays rem. The rail is the 600px column. */
    --ad-reserve-phone: 6.25rem;
    --ad-reserve-timeline: 5.625rem;
    --ad-reserve-timeline-wide: 17.5rem;
    --ad-reserve-rail: 600px;
    --bp-340: 340px;
    --bp-359: 359px;
    --bp-360: 360px;
    --bp-370: 370px;
    --bp-380: 380px;
    --bp-400: 400px;
    --bp-447: 447px;
    --bp-480: 480px;
    --bp-600: 600px;
    --bp-601: 601px;
    --bp-640: 640px;
    --bp-641: 641px;
    --bp-700: 700px;
    --bp-760: 760px;
    --bp-767: 767px;
    --bp-768: 768px;
    --bp-820: 820px;
    --bp-900: 900px;
    --bp-1024: 1024px;
    --bp-1199: 1199px;
    --bp-1399: 1399px;
    --bp-1400: 1400px;
    --bp-1479: 1479px;
    --bp-1680: 1680px;
    --bp-31-25rem: 31.25rem;
    --bp-37-5625rem: 37.5625rem;
    --bp-50rem: 50rem;
}

/* One shared rule: every enabled link, button and control (header, nav, dropdowns,
   pills, Add to Calendar, Share, Add a city, jump buttons, theme, 24H) shows the
   pointing hand on every page. The timeline hand stays on the track itself.
   Disabled controls get the arrow. !important stays on that arrow: .fb-send[disabled]
   sets cursor:progress, and without it the disabled Send button would change. */
:is(a[href], button, summary, label[for], [role="button"], [role="menuitem"], [role="menuitemradio"], [role="switch"], [role="tab"], select, input[type="checkbox"], input[type="radio"]) { cursor: pointer; }
:is(button, input, select):disabled, [aria-disabled="true"] { cursor: default !important; }
/* Watch the demo is a content link. The arrow rule above would leave the
   default cursor on it. Same pointing hand as links on every other page. */
body.planner .explainer .demo-link a { cursor: pointer; }

/* One FAQ disclosure. Native <details> keeps the answer searchable. The chevron
   is the click cue; the pointer wins on the planner page too (same specificity
   as the arrow rule above, and this rule comes later). */
.faq { display: grid; gap: 10px; }
.faq > details {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
}
.faq > details > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    min-block-size: 44px;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    border-radius: 11px;
}
/* The planner arrow rule's :is() list includes attribute selectors, so it
   outranks a plain .faq summary. This puts the pointing hand back on questions. */
body.planner .faq > details > summary { cursor: pointer; }
.faq > details[open] > summary {
    border-end-start-radius: 0;
    border-end-end-radius: 0;
}
.faq > details > summary::-webkit-details-marker { display: none; }
.faq > details > summary::marker { content: ""; }
.faq > details > summary > span { flex: 1 1 auto; min-inline-size: 0; }
.faq-chevron {
    width: 20px;
    height: 20px;
    flex: none;
    margin-inline-start: auto;
    transition: transform 0.2s ease;
}
.faq > details[open] > summary .faq-chevron { transform: rotate(180deg); }
.faq > details > summary:hover,
.faq > details > summary:focus-visible {
    background: color-mix(in srgb, var(--text) 12%, var(--card));
}
.faq > details > summary:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: 2px;
}
.faq > details > p { color: var(--muted); margin: 0; padding: 0 16px 14px; }
html.light .faq > details > p { color: var(--slate-700); }
@media (prefers-reduced-motion: reduce) {
    .faq-chevron { transition: none; }
}
@media (forced-colors: active) {
    .faq > details > summary:focus-visible { outline: 3px solid Highlight; }
}

/* The light wordmark stays hidden until html.light. These selectors beat
   `.logo img { display: block }`, so the swap does not use !important. */
.logo img.logo-light { display: none; }
html.light .logo img.logo-light { display: block; }
html.light .logo img.logo-dark { display: none; }

/* Theme switcher (System / Light / Dark): icon button and a small radio menu. */
.theme-switch { position: relative; display: flex; }
/* Beats the later `.btn svg { 16px }` in assets/components.css. */
.theme-switch__btn.btn svg { width: 18px; height: 18px; }
.theme-switch__icon--dark { display: none; }
html.dark .theme-switch__icon--light { display: none; }
html.dark .theme-switch__icon--dark { display: block; }
.theme-switch__menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 220px;
    display: grid; gap: 2px; padding: 6px;
    background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 32px var(--black-35);
}
.theme-switch__menu[hidden] { display: none; }
.theme-switch__option {
    display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center;
    width: 100%; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 8px;
    background: transparent; color: inherit; font: inherit; text-align: left;
}
.theme-switch__option:hover { background: color-mix(in srgb, var(--cyan) 10%, transparent); }
.theme-switch__option:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.theme-switch__option[aria-checked="true"] { background: color-mix(in srgb, var(--cyan) 14%, transparent); }
.theme-switch__check { width: 16px; height: 16px; visibility: hidden; color: var(--cyan); }
.theme-switch__option[aria-checked="true"] .theme-switch__check { visibility: visible; }
.theme-switch__name { display: block; font-size: var(--btn-size); font-weight: var(--btn-weight); line-height: 1.2; }
/* The checked option sits on a cyan tint, where plain --muted drops below 7:1. */
.theme-switch__hint { display: block; font-size: 0.75rem; color: color-mix(in srgb, var(--muted) 40%, var(--text)); line-height: 1.3; }

/* Time-zone menu, and the country list on holiday calendars.
   The doubled class beats .prose ul / .prose a in site.css, which loads later.
   auto-fill keeps empty tracks at 130px, so a short last row does not stretch. */
.nav-dropdown__list.nav-dropdown__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
}
.nav-dropdown__list--grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 4px 10px;
}
.nav-dropdown__list.nav-dropdown__list > li { margin: 0; }
.nav-dropdown__list.nav-dropdown__list a {
    display: block;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown__list.nav-dropdown__list a:hover {
    background: color-mix(in srgb, var(--cyan) 12%, transparent);
    color: var(--cyan);
}
.nav-dropdown__list.nav-dropdown__list a:focus-visible {
    outline: 3px solid var(--text);
    outline-offset: 2px;
}
