/* yellow. theme for UniteGPS /feeds public pages
   Originally a research draft for Harsha; adapted and shipped from here.
   Approved yellow. tokens v1.0 (Christopher, 2026-12-03).
   Source: /workspace/yellow-brand-standard/yellow-tokens-v1.0.css
           and template-kit/01-web/yellow-web-base-v1.0.css

   As applied in this repo:
   - Loaded from base_public.html, after public.css, which puts it after
     service.css too (head_extra renders above the public.css link, so
     service pages load service.css first). That ordering is what lets
     this file outrank both without a single !important.
   - It recolours by redefining public.css's own :root tokens, so every
     rule in public.css and service.css that reads var(--teal), var(--ink)
     and the rest follows along. Only literal hex values need a rule of
     their own - see "service.css hold-outs" at the foot of this file.
   - The DM Sans @import was removed: base_public.html carries the font
     as a <link>, which the browser can start fetching without waiting
     for this file to arrive. Font lives with the other <link> tags.
   - The .preview-banner rule was dropped. It recoloured the "Draft
     preview" strip from amber to Brand Blue, against its own comment
     asking to keep the warning treatment - and that strip is the one
     place on /feeds where looking like a warning is the point.
   - Logo: note 4 of the original draft asked for a Compass-vs-wordmark
     decision before any swap. The Compass lockup shipped on 4 Dec 2026
     (PR #224) and is live. If Christopher picks the yellow. wordmark
     instead, the srcs are in base_public.html and the .footer-logo white
     plate below comes out with it.

   Yellow (#FFD800) is a signal accent of no more than about 2%. Use it
   only on Brand Blue or Night Navy (and as the period in the yellow.
   wordmark). Never as text or lines on White or Cloud, and never as a
   background. This file uses it only as a 4px rule on the teal-to-blue
   CTA banner (Brand Blue) and on the footer (Night Navy).
*/

/* ---- yellow. tokens v1.0 ---- */
:root {
  --yellow-brand-blue: #0A2F8F;
  --yellow-yellow: #FFD800;
  --yellow-night-navy: #0B1F3A;
  --yellow-white: #FFFFFF;
  --yellow-cloud: #F4F6FA;
  --yellow-slate: #5B6475;
  --yellow-text: var(--yellow-brand-blue);
  --yellow-text-secondary: var(--yellow-slate);
  --yellow-text-on-dark: var(--yellow-white);
  --yellow-accent-on-dark: var(--yellow-yellow);
  --yellow-bg: var(--yellow-white);
  --yellow-bg-band: var(--yellow-cloud);
  --yellow-bg-dark: var(--yellow-night-navy);
  --yellow-bg-brand: var(--yellow-brand-blue);
  --yellow-link: var(--yellow-brand-blue);
  --yellow-link-on-dark: var(--yellow-white);
  --yellow-divider: var(--yellow-cloud);
  --yellow-focus: var(--yellow-brand-blue);
  --yellow-focus-on-dark: var(--yellow-yellow);
  --yellow-font: "DM Sans", Arial, Helvetica, sans-serif;
  --yellow-radius-control: 6px;
  --yellow-radius-card: 8px;
  --yellow-callout-bar: 4px;
  --yellow-button-height: 48px;

  /* Remap the existing public.css tokens so most rules follow yellow. */
  --teal: var(--yellow-brand-blue);
  --teal-dark: var(--yellow-night-navy);
  --teal-tint: var(--yellow-cloud);
  --ink: var(--yellow-brand-blue);
  --body: var(--yellow-brand-blue);
  --muted: var(--yellow-slate);
  --faint: var(--yellow-slate);
  --border: var(--yellow-cloud);
  --bg: var(--yellow-white);
  --bg-soft: var(--yellow-cloud);
  --radius: var(--yellow-radius-card);
  --shadow: 0 1px 3px rgba(11, 31, 58, .06), 0 4px 14px rgba(11, 31, 58, .06);
  --shadow-hover: 0 4px 10px rgba(11, 31, 58, .08), 0 12px 28px rgba(11, 31, 58, .1);
}

/* ---- Type ---- */
body {
  font-family: var(--yellow-font);
  color: var(--yellow-text);
  background: var(--yellow-bg);
}

a { color: var(--yellow-link); }
a:hover { color: var(--yellow-night-navy); }
a:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--yellow-focus);
  outline-offset: 2px;
}

/* ---- Header / nav ---- */
.site-header {
  background: var(--yellow-white);
  border-bottom: 1px solid var(--yellow-cloud);
}
.nav-link {
  color: var(--yellow-brand-blue);
  border-radius: var(--yellow-radius-control);
}
.nav-link:hover {
  background: var(--yellow-cloud);
  color: var(--yellow-night-navy);
}
.nav-cta {
  background: var(--yellow-brand-blue);
  color: var(--yellow-white);
}
.nav-cta:hover {
  background: var(--yellow-night-navy);
  color: var(--yellow-white);
}

/* ---- Buttons ---- */
.btn {
  border-radius: var(--yellow-radius-control);
  font-family: var(--yellow-font);
  min-height: var(--yellow-button-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--yellow-brand-blue);
  color: var(--yellow-white);
}
.btn-primary:hover {
  background: var(--yellow-night-navy);
  color: var(--yellow-white);
}
.btn-light {
  background: var(--yellow-white);
  color: var(--yellow-brand-blue);
}
.btn-light:hover {
  background: var(--yellow-cloud);
  color: var(--yellow-brand-blue);
}

/* ---- Article hero (date + H1 band) ---- */
.article-hero {
  background: linear-gradient(180deg, var(--yellow-cloud) 0%, var(--yellow-white) 100%);
}
.article-date {
  color: var(--yellow-slate);
}
.article-hero h1 {
  color: var(--yellow-brand-blue);
  font-family: var(--yellow-font);
}

/* ---- TOC ---- */
.toc-box {
  background: var(--yellow-white);
  border: 1px solid var(--yellow-cloud);
}
.toc-label {
  color: var(--yellow-slate);
}
.toc-box a {
  color: var(--yellow-slate);
  text-decoration: none;
}
.toc-box a:hover {
  color: var(--yellow-brand-blue);
}

/* ---- Sidebar CTA card ---- */
.cta-box {
  background: var(--yellow-cloud);
  border-radius: var(--yellow-radius-card);
  border-left: var(--yellow-callout-bar) solid var(--yellow-brand-blue);
}
.cta-box h3 {
  color: var(--yellow-brand-blue);
}
.cta-box .btn {
  text-decoration: none;
}

/* ---- Article body ---- */
.article-body {
  color: var(--yellow-brand-blue);
}
.article-body h2,
.article-body h3,
.article-body h4,
.article-body strong {
  color: var(--yellow-brand-blue);
}
.article-body a {
  color: var(--yellow-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body a:hover {
  color: var(--yellow-night-navy);
  text-decoration-thickness: 2px;
}
.article-body blockquote {
  border-left: var(--yellow-callout-bar) solid var(--yellow-brand-blue);
  background: var(--yellow-cloud);
  color: var(--yellow-brand-blue);
}
.article-body th,
.article-body td {
  border: 1px solid var(--yellow-cloud);
  color: var(--yellow-brand-blue);
}
.article-body th {
  background: var(--yellow-brand-blue);
  color: var(--yellow-white);
}
.article-body tr:nth-child(even) td {
  background: var(--yellow-cloud);
}
.article-body figcaption {
  color: var(--yellow-slate);
}

/* ---- Related cards ---- */
.related-section {
  background: var(--yellow-cloud);
}
.related-section h2 {
  color: var(--yellow-brand-blue);
}
.article-card {
  background: var(--yellow-white);
  border: 1px solid var(--yellow-cloud);
  text-decoration: none;
}
.card-title,
.card-body h2 {
  color: var(--yellow-brand-blue);
}
.card-date {
  color: var(--yellow-slate);
}
.chip {
  background: var(--yellow-cloud);
  color: var(--yellow-brand-blue);
}
.chip-service {
  background: var(--yellow-cloud);
  color: var(--yellow-brand-blue);
}

/* ---- Bottom CTA banner (Brand Blue; Yellow rule is the 2% accent) ---- */
.cta-banner {
  background: var(--yellow-brand-blue);
  color: var(--yellow-white);
  border-top: 4px solid var(--yellow-yellow);
}
.cta-banner h2 {
  color: var(--yellow-white);
}
.cta-banner p {
  color: var(--yellow-white);
}
.cta-banner a {
  color: var(--yellow-white);
}
.cta-banner .btn-light {
  color: var(--yellow-brand-blue);
  text-decoration: none;
}
.cta-banner .btn-light:hover {
  background: var(--yellow-cloud);
  color: var(--yellow-brand-blue);
}
.cta-banner .btn-light:focus-visible {
  outline-color: var(--yellow-yellow);
}

/* ---- Footer (Night Navy; Yellow rule is the 2% accent) ---- */
.site-footer {
  background: var(--yellow-night-navy);
  color: var(--yellow-white);
  border-top: 4px solid var(--yellow-yellow);
}
.site-footer a:focus-visible {
  outline-color: var(--yellow-yellow);
}
.footer-logo {
  background: var(--yellow-white);
  /* Keep the white plate while the logo is a dark lockup or wordmark.
     Drop this background if the header/footer switch to the reversed
     yellow. wordmark (white mark on Night Navy). */
}
.footer-tagline,
.footer-col h3 {
  color: var(--yellow-white);
}
.footer-link {
  color: var(--yellow-white);
}
.footer-link:hover {
  color: var(--yellow-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-viewall {
  color: var(--yellow-white);
}
.footer-viewall:hover {
  color: var(--yellow-white);
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid var(--yellow-cloud);
  color: var(--yellow-white);
}

/* ---- Hub index (same chrome, if this file is loaded site-wide) ---- */
.hub-hero {
  background: linear-gradient(180deg, var(--yellow-cloud) 0%, var(--yellow-white) 100%);
}
.hub-hero h1 { color: var(--yellow-brand-blue); }
.hub-hero p { color: var(--yellow-slate); }
.filter-tab {
  color: var(--yellow-slate);
  border: 1px solid var(--yellow-cloud);
  background: var(--yellow-white);
}
.filter-tab:hover {
  border-color: var(--yellow-brand-blue);
  color: var(--yellow-brand-blue);
}
.filter-tab.active {
  background: var(--yellow-brand-blue);
  border-color: var(--yellow-brand-blue);
  color: var(--yellow-white);
}
.card-media-placeholder {
  background: linear-gradient(135deg, var(--yellow-cloud), var(--yellow-cloud));
}
.badge-recent {
  background: var(--yellow-night-navy);
  color: var(--yellow-white);
}

/* ---- service.css hold-outs ----
   Six colours service.css writes as literal hex instead of reading a
   token, so remapping :root above cannot reach them and they would have
   stayed teal against Brand Blue. Five are corrected here; the sixth,
   .svc-stars, is left alone on purpose - see the note at the foot.

   Overridden here rather than in service.css so the whole yellow. layer
   stays in one file that comes out again by deleting one <link>.

   Each value follows a pattern this file already sets elsewhere: Brand
   Blue for a hover or open border (as .filter-tab:hover does), Cloud
   for a resting border (as .article-card does), flat Cloud for an image
   placeholder (as .card-media-placeholder does). */
.svc-card:hover { border-color: var(--yellow-brand-blue); }
.rh-faq-item:hover { border-color: var(--yellow-brand-blue); }
.rh-faq-item[open] { border-color: var(--yellow-brand-blue); }
.svc-inline-cta { border-color: var(--yellow-cloud); }
.svc-member-initials {
  background: linear-gradient(135deg, var(--yellow-cloud), var(--yellow-cloud));
}

/* .svc-stars is DELIBERATELY NOT OVERRIDDEN. Review stars stay amber
   #f0a92e on Cloud, as service.css has them.

   Open question for Christopher, who has not ruled on it. The standard
   says never use yellow as text on White or Cloud, and amber stars read
   close to that - but the rule is written about the brand yellow
   (#FFD800), and #f0a92e is a different colour, so it may never have
   been in scope. Gold stars are also near-universal for a rating, and
   Brand Blue ones read as odd to anyone not thinking in tokens.

   Leaving them is the status quo; changing them would be a brand
   decision nobody made. If he wants them on-token:
       .svc-stars { color: var(--yellow-brand-blue); }
   The other hold-outs above are not a judgement call - those are
   unambiguously the old teal palette. */
