/* ==========================================================================
   CoA Website — Brand Color Tokens
   Source: Canva Brand Kit ("Carrie on Accessibility" > Colors), coa-colors.css
   Scope: carrieonaccessibility.com main site ONLY — kept separate from the
   apps.carrieonaccessibility.com palette by design.
   Dark theme is the baseline (:root).
   Revision 8 (2026-09-21): light theme now uses the SAME color family as
   dark for every role, just the darker step — link/accent/secondary button
   gold (gold-3, hover gold-2), nav accent teal (teal-1), muted text wine
   (wine-4, placeholder wine-6). Before this the light theme swapped hues
   (wine links, teal buttons, gray muted text), which read as a different
   site rather than a lighter version of the same one. All text pairings
   are still AAA on cream-4/cream-3 (lowest is placeholder wine-6 at 7.2:1).
   Revision 7: --link is gold-11 with a
   cream-1 hover in dark theme; wine-6 with a wine-7 hover in light theme —
   independent of --accent-strong, which still drives the secondary button,
   badges/alerts, checkboxes and switches. --text-muted (hints, card
   captions, section intros) and --placeholder-text are now two separate
   tokens — --placeholder-text keeps the old value in dark theme,
   while --text-muted moved one step; light theme's two values
   are still identical (both gray-2), so nothing changed visibly there.
   The secondary button's dark-mode hover now keeps its resting text/border
   and only changes the fill, to gold-2.
   --cta-bg/--cta-bg-hover/--cta-text are the same in both themes (wine-5
   #771e44, white text) — declared ONCE in the unqualified :root and
   deliberately not repeated in the @media/[data-theme] blocks, so the
   cascade carries the single value through regardless of theme.
   See ../internal-tools/coa-library/ (the CoA Design System) for a live, click-to-copy preview of every
   token below plus a WCAG contrast checker and an "Accessible combinations"
   browser (tabbed dark/light background view) listing every AAA/AA-passing
   pair across the whole palette.
   ========================================================================== */
:root {
  color-scheme: dark;

  /* raw ramps, unchanged from coa-colors.css */
  --gold-1:#26230c; --gold-2:#393513; --gold-3:#544d06; --gold-4:#6d6516;
  --gold-5:#7f761a; --gold-6:#867e28; --gold-7:#aaa039; --gold-8:#c3b83a;
  --gold-9:#d5cb63; --gold-10:#d8ce64; --gold-11:#fff698;
  /* cream-2 #f8f4ca was added 2026-09-23, between the old 1 and 2, and the
     rest of the ramp moved down to make room: 2 and 3 became 3 and 4. Same
     hue as its neighbours (54.8 degrees, between cream-1's 54.3 and
     cream-3's 55.9), halfway on each: 77% saturation, 88% lightness.
     Everything that pointed at a cream moved with it, so nothing changed
     colour. The new cream-2 is unused so far - it is there to be used. */
  /* cream-4 and cream-5 are her note of 2026-09-24: two even steps from
     cream-3 up to white, so the top of the ramp climbs at the same rate as
     the rest of it (the blue channel now goes 221, 232, 244, 255). cream-4
     is redefined rather than added to - it was #fdfcee, which sat almost
     exactly halfway between the two new steps, so the light page background
     moves a hair warmer and nothing else notices. Everything on the light
     page is still AAA on it; the lowest is the placeholder at 7.2:1. */
  --cream-1:#f6f0b7; --cream-2:#f8f4ca; --cream-3:#faf8dd; --cream-4:#fcfae8;
  --cream-5:#fdfdf4;
  --wine-1:#3c1a29; --wine-2:#480521; --wine-3:#5a1330; --wine-4:#6c163a;
  --wine-5:#771e44; --wine-6:#913059; --wine-7:#a7426c; --wine-8:#b6547d;
  /* pink-4 #e8a2af was added 2026-09-23, between the old 3 and 4, and the rest
     of the ramp moved down to make room: 4, 5 and 6 became 5, 6 and 7. Same
     hue as its neighbours (348.9 degrees - what separates them is strength
     and lightness, not hue), halfway on each at 60% saturation and 77%
     lightness. Everything that pointed at a pink moved with it, so nothing
     changed colour, except h4, which was asked to take the new one. */
  --pink-1:#c25e88; --pink-2:#da82a7; --pink-3:#db909e; --pink-4:#e8a2af;
  /* pink-6 #eac0ca was added 2026-09-24, between the old 5 and 6, and the
     two above it moved up: 6 and 7 became 7 and 8. Hue 345.7 sits between
     its neighbours' 348.9 and 336.0, saturation is exactly halfway, and the
     lightness is the same 83.5 all three share. Everything that pointed at a
     pink moved with it, so nothing changed colour, except h4, which was
     asked to take the new one. */
  --pink-5:#f5b4c0; --pink-6:#eac0ca; --pink-7:#dfcbd3; --pink-8:#e8dde1;
  --darkteal-1:#042121; --darkteal-2:#0a3131; --darkteal-3:#043232;
  --darkteal-4:#084343; --darkteal-5:#0f4c4c;
  --teal-1:#0e5c5c; --teal-2:#2a7373; --teal-3:#3b8080; --teal-4:#469292;
  --teal-5:#5c9a9a; --teal-6:#64b0b0;
  /* five even steps from ice-1 to ice-5 (her call 2026-09-25; was three:
     the old ice-2 #d6f1f1 uses now point at ice-3, the old ice-3 is ice-5) */
  --ice-1:#99c4c4; --ice-2:#afd3d3; --ice-3:#c5e2e2; --ice-4:#dbf0f0; --ice-5:#f1ffff;
  /* Not from the Canva kit - there was no green in it, and "it worked" was
     being said in ice blue. Chosen 2026-09-24, both at hue 150 so the two
     themes read as one colour: success-1 deep for a light page, success-4 pale
     for a dark one. 7.6:1 and 10.2:1 on their own backgrounds, 7.3:1 and 7.4:1 on a panel -
     all AAA. Five steps since 2026-09-26 (her ask): 2 and 3 sit evenly between
     the two originals (OKLCH), 5 is paler still; the old success-2 is now 4.
     0 (her ask, same day) is one more step below 1, as far as 1 is from 2. */
  --success-0:#03391c; --success-1:#085e33; --success-2:#368258; --success-3:#5ba87f;
  --success-4:#81cfa8; --success-5:#c0e6d1;
  /* teal-1 at 60% - the hover she picked. It lived in coa-internal.css, which
     the SHARED sheet cannot see, so coa-components.css spelled the rgba out
     six times instead. Here, everything can name it. 2026-09-24. */
  /* teal-1 at 60% for a pointed-at row or tab. The light themes below take it
     down to 25%: over a pale page 60% lands nearly as dark as the ink, which
     is what she was seeing. At 25% black text on it is 13.5:1. */
  --teal-hover: rgba(14, 92, 92, 0.6);
  /* the page dimmed behind an open dialog or drawer, the same in both
     themes (2026-09-27: was typed four times, at 0.6 and 0.65) */
  --backdrop: rgba(0, 0, 0, 0.6);
  /* gold 3 at the teal hover's opacity, for things whose chosen state is
     gold (the tabs) - her ask 2026-09-26. 25% in light mode, as teal. */
  --gold-hover: color-mix(in srgb, var(--gold-3) 60%, transparent);
  /* the same teal, fainter still: a row that has just been ticked and is
     about to drop off a list. It was written out in the tracker's sheet. */
  --teal-tint: rgba(14, 92, 92, 0.25);
  /* NEUTRAL GRAYS (her call 2026-09-27, Playground "Gray options" 3): every
     gray and charcoal used to lean cyan (hue 180, green = blue > red) and
     gray-9 / gray-10 read as pale aqua. Now zero tint, each step at the
     lightness it had, so contrast and the ramp's spacing stay the same. */
  --charcoal-1:#2b2b2b; --charcoal-2:#303030;
  --gray-1:#434343; --gray-2:#5e5e5e; --gray-3:#747474; --gray-4:#9a9a9a;
  --gray-5:#b2b2b2; --gray-6:#bababa; --gray-7:#bcbcbc; --gray-8:#cccccc;
  --gray-9:#e2e2e2; --gray-10:#ededed;
  /* supplemental — not in the Canva brand kit */
  /* Three steps below the kit's darkest neutral, evenly spaced down to black.
     charcoal-00 (#111111) is THE page background everywhere dark - the site,
     the CoA Design System and every internal tool - so they all match. */
  --charcoal-000:#080808;
  --charcoal-00:#111111;
  --charcoal-0:#1a1a1a; /* darker than any kit neutral, added per request */
  /* The two reds, named like the green (her ask 2026-09-25, was
     --danger-supplemental-light / -dark): danger-1 deep, for a light page;
     danger-4 pale, for a dark one. danger-1 was made more saturated and a
     touch lighter 2026-09-24 (S 60 -> 68, L 35 -> 39): 7.0:1, still AAA.
     Five steps since 2026-09-26, built like the green; the old danger-2 is now 4.
     0 (her ask, same day) is one more step below 1. */
  --danger-0:#6f121c; --danger-1:#a7202f; --danger-2:#c6575c; --danger-3:#e38588;
  --danger-4:#ffb3b6; --danger-5:#ffdfdf;
  /* literal black/white — deliberately not charcoal-1/cream-4, for the
     handful of spots asked to be pure black or white specifically */
  /* How wide the page's content runs on a desktop. The title bar is NOT
     bound by this - it spans the window. Full width on smaller screens,
     where 70% would only waste space. */
  --page-width: 70%;

  /* THE SPACING SCALE - her ask, 2026-09-24, and the answer to "everything
     feels inconsistent".

     Colour has been a system here for a while: every colour has a name and
     Active Tokens says which name does which job. Spacing had two tokens and
     33 hand-picked numbers, so a page could be entirely correct and still
     feel like it did not match - the colours agreed and the spacing had
     nothing to agree with.

     Seven steps, each roughly 1.4x the one below it, and an eighth for a page's edge. They are not invented:
     they are the seven values the site already leaned on hardest, so most of
     what is here already sits on the scale and adopting it is a nudge rather
     than an upheaval. Pick the nearest step; do not type a number.

     4  inside a thing - a chip's padding, a tick to its label
     8  between a label and its field, between two buttons
     12 between rows in a list
     16 between one field and the next
     22 between one block and the next (this is --block-gap, unchanged)
     28 between a heading and the section it opens
     40 between one section and the next
     64 a page's edge - the run-out below the last thing on a page, and
        the home page's big bands (added 2026-09-25, her call: one step
        for both jobs, replacing eight numbers from 48 to 100) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: 28px;
  --space-7: 40px;
  --space-8: 64px;

  /* Corners (her call, 2026-09-26): four sizes and "round". Bigger things
     are rounder. Circles stay 50%, and a checkbox stays a touch squarer
     (4px) so it reads as a square beside a round radio button. Anything
     under 4px is a drawing detail, not a corner. Design > Corners. */
  --radius-small: 6px;     /* bits inside other things: a switch half, a list row */
  --radius-control: 8px;   /* buttons, fields, dropdowns */
  --radius-box: 12px;      /* cards, dialogs, panels, callouts */
  --radius-large: 16px;    /* big feature pieces: the hero panel, artwork */
  --radius-round: 999px;   /* pills and badges */

  /* The standing gap between one block and the next. Kept as its own name
     because it says what it is for, not how big it is - every sheet that
     already asks for it goes on working, and it is simply step 5 now. */
  --block-gap: var(--space-5);

  --true-black:#000000;
  --true-white:#ffffff;

  /* semantic roles — dark theme (baseline) */
  --bg: var(--charcoal-00);
  --surface: var(--charcoal-1);
  --surface-2: var(--gray-1);
  /* the plain card's fill. Dark takes the panel colour as it always did;
     light wants gray-9 rather than cream, her note 2026-09-24, so a card
     reads as a card against the cream page instead of nearly merging with
     it. Black on gray-9 is 16.9:1. */
  --card-bg: var(--surface);
  /* the callout's fill. Its own name rather than sharing the card's,
     even though they hold the same value today - a callout is an aside
     inside writing and a card is a thing in a grid, and one should be
     able to move without dragging the other. */
  --callout-bg: var(--surface);
  /* the To do pill's fill. It used to just take --surface-2, but in dark
     gray-1 sits so close to the page that the chip had no edge at all -
     2.0:1, under the 3:1 anything non-text needs. One step lighter, her
     note 2026-09-24: 3.1:1 against the page. The cost is the white on it,
     9.4:1 -> 6.1:1, and white is already the lightest text there is, so
     that is the ceiling at this grey. Light is left as it was; there the
     pill is pale with black on it, which was never the problem. */
  --pill-todo-bg: var(--gray-2);
  --text: var(--true-white);
  /* muted text is ONLY for what you could skip (her rule, 2026-09-25):
     field hints, dates, counts, finished items, footers - the list is on
     Design > Type. Placeholder text is its own token. */
  --text-muted: var(--pink-8);
  --placeholder-text: var(--pink-7);
  /* the section kicker above each home-page h2 (.eyebrow). Its own token
     because it is the one label that does NOT follow --text-muted: pale
     ice in dark, deep teal in light. 15.8:1 and 9.4:1, both AAA. */
  --eyebrow-text: var(--ice-3);
  /* her picks, 2026-09-24. --label-alt is a second small-label colour for
     where the pink one is not wanted; the two heading-link colours are for
     a link that IS a heading, which reads differently from a link in a
     sentence. All four are AAA on the page and on a panel. */
  --label-alt: var(--cream-1);
  --h2-link: var(--pink-6);
  --h3-link: var(--ice-3);
  /* A heading link hovers ONE STEP LIGHTER, in both modes - her call
     2026-09-24, after trying it the other way round in dark first. Every
     link on the site now brightens when you point at it, which is one rule
     to remember rather than two that depend on the theme. */
  --h2-link-hover: var(--pink-7);
  --h3-link-hover: var(--ice-5);
  --drawer-hover: var(--teal-hover);
  --border: var(--gray-8);
  /* a quieter border: the rule between rows of a list, the line under a
     panel heading. It was defined in coa-internal.css, which the shared
     sheet cannot see - so the shared sheet could not name it, and the two
     tools each kept their own divider. Moved here 2026-09-24. */
  --border-soft: var(--gray-2);
  --field-text: var(--true-white);
  /* secondary-button colors, since they no longer just follow --text/--border
     (dark keeps its resting text/border on hover, only the fill changes;
     light gets its own hover treatment below) */
  --btn-secondary-text: var(--cream-1);
  --btn-secondary-border: var(--cream-1);
  /* What a quiet button fills with when you point at it. Their own tokens
     since her note 2026-09-24: the light versions used to be extra rules in
     the components sheet, and those reached :root[data-theme="light"] and the
     media query but MISSED every .theme-light box - which is why the light
     demos on the Design tab hovered to a dark olive. The tokens file spells
     all four blocks out, so it cannot happen here. */
  --btn-secondary-hover-bg: var(--gold-2);
  /* the ON half of a toggle - the theme switch, the section switch, an
     on/off switch. Her pick, and the same in both themes, like --cta-bg:
     a toggle should not change hue when the page does. White on it, at
     5.5:1; black would be 3.8:1. */
  --toggle-on: var(--teal-2);           /* #2a7373 */
  /* "you are here": the selected tab and the selected row in a sidebar.
     Its own role rather than --toggle-on, because a switch being ON and a
     place being WHERE YOU ARE are different ideas, and she wanted to try
     these two deeper without moving every switch on the site. teal-1,
     2026-09-24: white on it is 7.5:1, where teal-2 was 5.5:1. */
  --selected-bg: var(--teal-1);
  /* The lit half of the Light/Dark switch in the TITLE BAR only - her pick,
     2026-09-24, and she may want wine-5 instead, so it is one line rather
     than a hex in the components sheet. Every other switch on the site
     keeps --toggle-on. Same in both themes, like the bar it sits on. */
  --theme-toggle-on: var(--wine-6);
  --toggle-on-text: var(--true-white);

  /* CTA colors are intentionally the same in both themes — this is the one
     true light/dark-independent value, so it's declared once here and
     never repeated in the theme-specific blocks below */
  --cta-bg: var(--wine-5); /* #771e44, per explicit request */
  /* the main button's ring, her pick 2026-09-24, and the same in both
     themes like the fill it sits on. It is doing real work in dark: the
     wine fill is only 1.8:1 against the page, where this ring is 12.1:1,
     so the ring is what says "button" there. 6.6:1 against the fill. In
     light it all but disappears (1.5:1 on cream) and does not need to do
     otherwise - the fill is 9.9:1 on that page and speaks for itself. */
  --cta-border: var(--pink-7);   /* #dfcbd3 */
  /* 8% white, not 18%: enough to read as "hover", little enough that the
     button's white text stays at 8:1 instead of falling to 6.4:1 */
  --cta-bg-hover: color-mix(in srgb, var(--cta-bg) 92%, white 8%);
  --cta-text: var(--true-white);
  --link: var(--pink-5);
  --newtab-icon: var(--cream-1);   /* her rule 2026-09-27: the opens-in-a-new-tab icon */
  --link-hover: var(--pink-6);
  /* the link inside an error alert: her saved "Error link" (2026-09-26).
     Dark: danger-5, and pointed at it brightens - on a color this pale that
     is white. 8.48:1 and 10.55:1 on the alert. */
  --alert-danger-link: var(--danger-5);
  --alert-danger-link-hover: var(--true-white);
  --accent: var(--gold-9);
  --accent-strong: var(--gold-9);
  /* header/nav-only accent — teal in both themes (teal-6 here, teal-1 in light) */
  --nav-accent: var(--teal-6);
  /* text color to place ON TOP of an --accent-strong or --nav-accent fill
     (active theme-toggle button, nav "current page" pill) — kept separate
     from --cta-text because these fills' lightness differs from --cta-bg's,
     so one fixed text color can't serve all three correctly */
  --accent-text: var(--true-black);

  /* The three controls you TICK - checkbox, radio, switch - share one
     colour, because they say one thing: this is on. Their own tokens,
     not --accent-strong, so light mode can lighten them (her note,
     2026-09-24) without moving the secondary button with them. */
  --control-on: var(--gold-9);
  --control-on-mark: var(--true-black);
  --switch-off: var(--border);
  /* the small all-caps label - h4, and the section headings in the tools.
     Her pick, 2026-09-23: the NEW pink-4 (#e8a2af) in dark, the wine step of
     the same family in light. This is the ONE thing the renumbering changed
     on purpose. 9.1:1 on the page, 8.4:1 on a panel - both AAA. It is deliberately the same colour .group-heading
     uses, so the two finally agree. */
  --label: var(--pink-6);
  /* one step up the gold ramp, 2026-09-24. 11.2:1 on the page and 8.2:1
     on a panel; the floor for something that is not text is 3:1. */
  --chevron: var(--gold-9);
  /* the fold marker in the sidebar and the phone drawer. Dark follows the
     dropdowns; light goes two steps deeper than they do - her call,
     2026-09-24 - because a small mark on a pale page needs more than a
     small mark on a dark one. 8.3:1, and it is the same gold --label-alt
     already uses in light. */
  --sidebar-chevron: var(--chevron);
  --focus-ring: var(--gold-11);
  /* the X that closes a dialog - the one control that is pink rather than
     gold, so it reads as the way out and not as another thing to press */
  --close-x: var(--pink-5);
  /* text on the Waiting pill's dark gold fill. Its own role because light
     mode wants light cream there, not the light-mode link colour (her ask,
     2026-09-24). 11.2:1 dark, 11.5:1 light - AAA both. */
  --pill-waiting-text: var(--gold-11);
  --alert-info-bar: var(--accent-strong);
  /* how strong the alert's tint is, her notes 2026-09-24, settled by eye
     on the real page: a tenth, 15%, 20%, 30% (too bright), 25%. Light
     keeps 15% - the same wash over cream is already plain, where over a
     near-black page it all but disappeared. */
  --alert-tint: 25%;
  --float-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 0 6px 16px rgba(0, 0, 0, 0.85);   /* anything floating above the page: a dropdown list, a tooltip. Stronger in dark, which swallows a soft one (her ask 2026-09-26) */
  --tip-bar: var(--teal-6);   /* the Tip callout (teal) and the Quote callout (pink / wine) */
  --quote-bar: var(--pink-4);
  --toggletip-color: var(--pink-4);   /* the info toggletip's circle-i */
  /* one teal-family step lighter than the original ice-1 — dark mode only */
  --success-text: var(--success-4);
  --danger-text: var(--danger-4);
  --danger-border: var(--danger-4);
}

/* below a desktop, the content uses the whole width - 70% of a small screen
   would be wasted space */
@media (max-width: 1100px) {
  :root { --page-width: 100%; }
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: var(--true-white);   /* her call 2026-09-24: plain white, not cream */
    /* cream-4, not cream-3, her call 2026-09-24: anywhere cream-3 was a
       BACKGROUND in light it steps up one. It is the only place it was one -
       the other cream-3s are text and border colours and stay put.
       Worth knowing: a panel has been near-invisible against the page since
       light mode went white this morning (cream-3 was 1.07 against it, this
       is 1.05), so what marks a panel out is its border, not its fill.
       Everything on it is AAA - black 20:1, the muted tier 11:1, the
       placeholder 7.2:1. */
    --surface: var(--gray-10);   /* her call 2026-09-25: was cream-4 */
    --surface-2: var(--gray-9);
    --card-bg: var(--surface);   /* cards and notes are gray-10 like the fields (her call 2026-09-27) */
    --callout-bg: var(--surface);
    --pill-todo-bg: var(--gray-9);
    --text: var(--true-black);
    /* her call 2026-09-25: wine-5 is light mode's muted, and the placeholder
       uses it too - wine-6 fell to 6.7:1 on the gray-10 fields. wine-5 is
       10.2:1 on the page, 9.1 on a field, 8.2 on a card. */
    --text-muted: var(--wine-5);
    --placeholder-text: var(--wine-5);
    --eyebrow-text: var(--darkteal-5);
    --label-alt: var(--gold-3);
    --h2-link: var(--wine-5);
    --h3-link: var(--teal-1);
    /* A heading link hovers ONE STEP LIGHTER, in both modes - her call
       2026-09-24, after trying it the other way round in dark first. Every
       link on the site now brightens when you point at it, which is one rule
       to remember rather than two that depend on the theme. */
    --h2-link-hover: var(--wine-6);
    --h3-link-hover: var(--teal-2);
    --drawer-hover: var(--ice-3);
    --teal-hover: rgba(14, 92, 92, 0.25);
    --gold-hover: color-mix(in srgb, var(--gold-3) 25%, transparent);
    --border: var(--gray-1);
    --border-soft: var(--gray-2);
    --field-text: var(--true-black);
    --btn-secondary-text: var(--gold-3);
    --btn-secondary-border: var(--gold-3);
    --btn-secondary-hover-bg: var(--cream-1);
    /* One step darker at rest, her call 2026-09-24, and the hover moves with
       it so a link still brightens when you point at it. This is what stops
       the hover being the HARDER of the two to read: 10.2:1 at rest and
       7.6:1 hovered, where it had been 7.6 down to 5.8 - and on a card 8.2
       down to 6.1, where it had been 6.1 down to 4.6. */
    --link: var(--wine-5);
    --newtab-icon: var(--gold-4);   /* her rule 2026-09-27: the opens-in-a-new-tab icon */
    --link-hover: var(--wine-6);
    /* light: danger-0, danger-1 pointed at - 9.16:1 and 5.64:1 on the alert */
    --alert-danger-link: var(--danger-0);
    --alert-danger-link-hover: var(--danger-1);
    --accent: var(--gold-3);
    --accent-strong: var(--gold-3);
    --nav-accent: var(--teal-1);
    --accent-text: var(--cream-4);

    /* The three controls you TICK - checkbox, radio, switch - share one
       colour, because they say one thing: this is on. Their own tokens,
       not --accent-strong, so light mode can lighten them (her note,
       2026-09-24) without moving the secondary button with them. */
    --control-on: var(--gold-6);          /* was gold-3, too dark to read as ON */
    --control-on-mark: var(--true-white); /* her note 2026-09-24: white, 4.2:1 on gold-6 */
    --switch-off: var(--gray-3);          /* was gray-1, which read as a dark slab */
    --label: var(--wine-4);
  --chevron: var(--gold-5);
  --sidebar-chevron: var(--gold-3);
    --focus-ring: var(--gold-4);
    --close-x: var(--wine-4);
    --pill-waiting-text: var(--cream-3);
    --alert-info-bar: var(--gold-6);
    --alert-tint: 15%;
    --float-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
    --tip-bar: var(--teal-1);
    --quote-bar: var(--wine-5);
    --toggletip-color: var(--wine-5);
    --success-text: var(--success-1);
    --danger-text: var(--danger-1);
    --danger-border: var(--wine-1);
  }
}

/* A THEME IN A BOX. These same two blocks answer to a class as well as to
   <html>, so putting class="theme-light" on any container makes everything
   inside it light while the page around it stays dark - and the other way
   round. That is how the CoA Design System shows a light-mode component without
   making you switch the whole screen over to review it.

   Manual toggle wins over the OS preference in both directions — stamp
   data-theme="dark"|"light" on <html> from JS (see index.html for a
   working example). --cta-* tokens are intentionally absent from
   both blocks below — they inherit the single :root value unchanged. */
:root[data-theme="dark"],
.theme-dark {
  color-scheme: dark;
  --bg: var(--charcoal-00);
  --surface: var(--charcoal-1);
  --surface-2: var(--gray-1);
  /* the plain card's fill. Dark takes the panel colour as it always did;
     light wants gray-9 rather than cream, her note 2026-09-24, so a card
     reads as a card against the cream page instead of nearly merging with
     it. Black on gray-9 is 16.9:1. */
  --card-bg: var(--surface);
  /* the callout's fill. Its own name rather than sharing the card's,
     even though they hold the same value today - a callout is an aside
     inside writing and a card is a thing in a grid, and one should be
     able to move without dragging the other. */
  --callout-bg: var(--surface);
  /* the To do pill's fill. It used to just take --surface-2, but in dark
     gray-1 sits so close to the page that the chip had no edge at all -
     2.0:1, under the 3:1 anything non-text needs. One step lighter, her
     note 2026-09-24: 3.1:1 against the page. The cost is the white on it,
     9.4:1 -> 6.1:1, and white is already the lightest text there is, so
     that is the ceiling at this grey. Light is left as it was; there the
     pill is pale with black on it, which was never the problem. */
  --pill-todo-bg: var(--gray-2);
  --text: var(--true-white);
  --text-muted: var(--pink-8);
  --placeholder-text: var(--pink-7);
  /* the section kicker above each home-page h2 (.eyebrow). Its own token
     because it is the one label that does NOT follow --text-muted: pale
     ice in dark, deep teal in light. 15.8:1 and 9.4:1, both AAA. */
  --eyebrow-text: var(--ice-3);
  --label-alt: var(--cream-1);
  --h2-link: var(--pink-6);
  --h3-link: var(--ice-3);
  /* A heading link hovers ONE STEP LIGHTER, in both modes - her call
     2026-09-24, after trying it the other way round in dark first. Every
     link on the site now brightens when you point at it, which is one rule
     to remember rather than two that depend on the theme. */
  --h2-link-hover: var(--pink-7);
  --h3-link-hover: var(--ice-5);
  --drawer-hover: var(--teal-hover);
  --border: var(--gray-8);
  --border-soft: var(--gray-2);
  --field-text: var(--true-white);
  --btn-secondary-text: var(--cream-1);
  --btn-secondary-border: var(--cream-1);
  /* What a quiet button fills with when you point at it. Their own tokens
     since her note 2026-09-24: the light versions used to be extra rules in
     the components sheet, and those reached :root[data-theme="light"] and the
     media query but MISSED every .theme-light box - which is why the light
     demos on the Design tab hovered to a dark olive. The tokens file spells
     all four blocks out, so it cannot happen here. */
  --btn-secondary-hover-bg: var(--gold-2);
  --link: var(--pink-5);
  --newtab-icon: var(--cream-1);   /* her rule 2026-09-27: the opens-in-a-new-tab icon */
  --link-hover: var(--pink-6);
  --alert-danger-link: var(--danger-5);
  --alert-danger-link-hover: var(--true-white);
  --accent: var(--gold-9);
  --accent-strong: var(--gold-9);
  --nav-accent: var(--teal-6);
  --accent-text: var(--true-black);

  /* The three controls you TICK - checkbox, radio, switch - share one
     colour, because they say one thing: this is on. Their own tokens,
     not --accent-strong, so light mode can lighten them (her note,
     2026-09-24) without moving the secondary button with them. */
  --control-on: var(--gold-9);
  --control-on-mark: var(--true-black);
  --switch-off: var(--border);
  --label: var(--pink-6);
  /* one step up the gold ramp, 2026-09-24. 11.2:1 on the page and 8.2:1
     on a panel; the floor for something that is not text is 3:1. */
  --chevron: var(--gold-9);
  --sidebar-chevron: var(--chevron);
  --focus-ring: var(--gold-11);
  --close-x: var(--pink-5);
  --pill-waiting-text: var(--gold-11);
  --alert-info-bar: var(--accent-strong);
  /* how strong the alert's tint is, her notes 2026-09-24, settled by eye
     on the real page: a tenth, 15%, 20%, 30% (too bright), 25%. Light
     keeps 15% - the same wash over cream is already plain, where over a
     near-black page it all but disappeared. */
  --alert-tint: 25%;
  --float-shadow: 0 18px 48px rgba(0, 0, 0, 0.95), 0 6px 16px rgba(0, 0, 0, 0.85);   /* anything floating above the page: a dropdown list, a tooltip. Stronger in dark, which swallows a soft one (her ask 2026-09-26) */
  --tip-bar: var(--teal-6);   /* the Tip callout (teal) and the Quote callout (pink / wine) */
  --quote-bar: var(--pink-4);
  --toggletip-color: var(--pink-4);   /* the info toggletip's circle-i */
  --success-text: var(--success-4);
  --danger-text: var(--danger-4);
  --danger-border: var(--danger-4);
}

:root[data-theme="light"],
.theme-light {
  color-scheme: light;
  --bg: var(--true-white);   /* her call 2026-09-24: plain white, not cream */
  /* cream-4, not cream-3, her call 2026-09-24: anywhere cream-3 was a
     BACKGROUND in light it steps up one. It is the only place it was one -
     the other cream-3s are text and border colours and stay put.
     Worth knowing: a panel has been near-invisible against the page since
     light mode went white this morning (cream-3 was 1.07 against it, this
     is 1.05), so what marks a panel out is its border, not its fill.
     Everything on it is AAA - black 20:1, the muted tier 11:1, the
     placeholder 7.2:1. */
  --surface: var(--gray-10);
  --surface-2: var(--gray-9);
  --card-bg: var(--surface);   /* cards and notes are gray-10 like the fields (her call 2026-09-27) */
  --callout-bg: var(--surface);
  --pill-todo-bg: var(--gray-9);
  --text: var(--true-black);
  --text-muted: var(--wine-5);
  --placeholder-text: var(--wine-5);
  --eyebrow-text: var(--darkteal-5);
  --label-alt: var(--gold-3);
  --h2-link: var(--wine-5);
  --h3-link: var(--teal-1);
  /* A heading link hovers ONE STEP LIGHTER, in both modes - her call
     2026-09-24, after trying it the other way round in dark first. Every
     link on the site now brightens when you point at it, which is one rule
     to remember rather than two that depend on the theme. */
  --h2-link-hover: var(--wine-6);
  --h3-link-hover: var(--teal-2);
  --drawer-hover: var(--ice-3);
  --teal-hover: rgba(14, 92, 92, 0.25);
  --gold-hover: color-mix(in srgb, var(--gold-3) 25%, transparent);
  --border: var(--gray-1);
  --border-soft: var(--gray-2);
  --field-text: var(--true-black);
  --btn-secondary-text: var(--gold-3);
  --btn-secondary-border: var(--gold-3);
  --btn-secondary-hover-bg: var(--cream-1);
  /* One step darker at rest, her call 2026-09-24, and the hover moves with
     it so a link still brightens when you point at it. This is what stops
     the hover being the HARDER of the two to read: 10.2:1 at rest and
     7.6:1 hovered, where it had been 7.6 down to 5.8 - and on a card 8.2
     down to 6.1, where it had been 6.1 down to 4.6. */
  --link: var(--wine-5);
  --newtab-icon: var(--gold-4);   /* her rule 2026-09-27: the opens-in-a-new-tab icon */
  --link-hover: var(--wine-6);
  --alert-danger-link: var(--danger-0);
  --alert-danger-link-hover: var(--danger-1);
  --accent: var(--gold-3);
  --accent-strong: var(--gold-3);
  --nav-accent: var(--teal-1);
  --accent-text: var(--cream-4);

    /* The three controls you TICK - checkbox, radio, switch - share one
       colour, because they say one thing: this is on. Their own tokens,
       not --accent-strong, so light mode can lighten them (her note,
       2026-09-24) without moving the secondary button with them. */
    --control-on: var(--gold-6);          /* was gold-3, too dark to read as ON */
    --control-on-mark: var(--true-white); /* her note 2026-09-24: white, 4.2:1 on gold-6 */
    --switch-off: var(--gray-3);          /* was gray-1, which read as a dark slab */
  --label: var(--wine-4);
  --chevron: var(--gold-5);
  --sidebar-chevron: var(--gold-3);
  --focus-ring: var(--gold-4);
  --close-x: var(--wine-4);
  --pill-waiting-text: var(--cream-3);
  --alert-info-bar: var(--gold-6);
    --alert-tint: 15%;
    --float-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
    --tip-bar: var(--teal-1);
    --quote-bar: var(--wine-5);
    --toggletip-color: var(--wine-5);
  --success-text: var(--success-1);
  --danger-text: var(--danger-1);
  --danger-border: var(--wine-1);
}
