/* bpage:client-name: Silver Dollar */
/* Silver Dollar client-only page theme. Colours from SDE Brand Guidelines 1.0
   (August 2026) as implemented by Silver Dollar's own app and docs tokens.
   Sources, derivations, contrast and type decisions: CLIENT-THEMES.md beside
   the bpage templates ("Client-only pages"). Light is primary; dark is the
   guidelines' reversed treatment. No font files are embedded. */

/* Selector weight is load-bearing: the shared stylesheet's co-branded
   [data-client="silver-dollar"] blocks reach (0,3,0). The base block below is
   (0,3,0) and loads after them; the dark blocks are (0,4,0). */
:root[data-brand="client"][data-client="silver-dollar"] {
  /* --bg / --surface / --surface-2 */
  --paper:#F5F7F9; --card:#FFFFFF; --card2:#EEF1F5;
  /* --ink (Navy) / --ink-3 (Neutral 3) / --hair (navy 12%) flattened on white */
  --ink:#002864; --muted:#4B596E; --line:#E0E5EC;
  /* --accent-ink (Navy tint 1, "UI states, links") / white on it, 8.73:1 */
  --accent:#0E4899; --accent-ink:#FFFFFF;
  /* --accent-soft / --accent-soft-2: the light pink field */
  --accent-bg:#FFEBF5; --accent-line:#FFD6EE;
  /* the counterparty axis is Neutral 3 on --surface-2, distinct from the blue */
  --other:#4B596E; --other-bg:#EEF1F5; --other-line:#E6EAF0;
  /* --good-ink / --warm-ink / --alert-ink on their soft tints */
  --kept:#17664D; --partial:#7C552F; --gap:#A43651;
  --chip-kept:#E4FAF2; --chip-partial:#FFF0E3; --chip-gap:#FEE6E8;
  /* identity tokens follow the client: navy, on the light pink field */
  --bt:#002864; --bt-bg:#FFEBF5; --bt-line:#FFD6EE; --bt-ink:#FFFFFF;
}
:root[data-theme="dark"][data-brand="client"][data-client="silver-dollar"] {
  /* dark --bg (Navy) / --surface / --surface-2 */
  --paper:#002864; --card:#053373; --card2:#083A81;
  /* --ink / --ink-3 / --hair (white 14%) flattened on navy */
  --ink:#FFFFFF; --muted:#C2CFE8; --line:#24467A;
  /* --accent-ink is pink on navy; --on-accent is navy on pink */
  --accent:#FF80D5; --accent-ink:#002864;
  /* --accent-soft / --accent-soft-2 (pink 12% / 16% into navy) */
  --accent-bg:#1F3372; --accent-line:#293676;
  /* --ink-2 on --surface-2 / --surface-3 */
  --other:#CCD8EF; --other-bg:#083A81; --other-line:#0E4899;
  /* dark --good / --warm / --alert and their soft tints */
  --kept:#60CCA1; --partial:#FEBD78; --gap:#F098AA;
  --chip-kept:#043F67; --chip-partial:#293B5E; --chip-gap:#242C64;
  --bt:#FF80D5; --bt-bg:#1F3372; --bt-line:#293676; --bt-ink:#002864;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-brand="client"][data-client="silver-dollar"] {
    --paper:#002864; --card:#053373; --card2:#083A81;
    --ink:#FFFFFF; --muted:#C2CFE8; --line:#24467A;
    --accent:#FF80D5; --accent-ink:#002864;
    --accent-bg:#1F3372; --accent-line:#293676;
    --other:#CCD8EF; --other-bg:#083A81; --other-line:#0E4899;
    --kept:#60CCA1; --partial:#FEBD78; --gap:#F098AA;
    --chip-kept:#043F67; --chip-partial:#293B5E; --chip-gap:#242C64;
    --bt:#FF80D5; --bt-bg:#1F3372; --bt-line:#293676; --bt-ink:#002864;
  }
}

[data-brand="client"][data-client="silver-dollar"] body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
[data-brand="client"][data-client="silver-dollar"] h1,
[data-brand="client"][data-client="silver-dollar"] h2,
[data-brand="client"][data-client="silver-dollar"] h3,
[data-brand="client"][data-client="silver-dollar"] .pnav-cur {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

/* The lockup is the page's only mark. Pink symbol on both grounds; the
   SILVER / DOLLAR letters navy on light ("Pink on white", the preferred
   default) and white on navy (the reversed treatment). Guidelines pp. 6-8. */
[data-brand="client"][data-client="silver-dollar"] .cobrand-sd { display: inline-flex; }
[data-brand="client"][data-client="silver-dollar"] .cobrand.cobrand-sd svg.sd-lockup { height: 40px; width: auto; }
[data-brand="client"] .sd-lockup .sd-lockup-mark { fill: #FF80D5; }
[data-brand="client"] .sd-lockup .sd-lockup-word { fill: #002864; }
[data-theme="dark"][data-brand="client"] .sd-lockup .sd-lockup-word { fill: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-brand="client"] .sd-lockup .sd-lockup-word { fill: #FFFFFF; }
}
@media (max-width: 380px) {
  [data-brand="client"][data-client="silver-dollar"] .cobrand.cobrand-sd svg.sd-lockup { height: 34px; }
}
