/* Parent-surface palette — /account + /family.
   DIRECTION (owner, 2026-08-22): evolve, don't redesign. Cream + coral stay; BLUE becomes the brand
   STRUCTURE (a confident royal-blue nav, not a washed-out pale one — that's what reads as "Bucoo").
   Hierarchy: BLUE = Bucoo/navigation/structure · CORAL = action/encouragement · CREAM = warmth ·
   SKY/SOFT BLUE = information · a little GOLD = achievement. Loaded after brand.css; only these two
   pages link it. (Child/Reader surfaces get a bolder, more playful version of this separately.) */
:root{
  --ink:#1c212a; --muted:#505a66; --faint:#8b93a1;
  --bg:#fff9f0; --card:#fffcf8; --line:#e5ded4; --divider:#f0e9dd; --chip:#eff6ff;   /* chip = soft blue (info) */
  /* CORAL = action; BLUE = structure */
  --coral:#ff6b56; --coral-d:#f0553f;
  --blue:#2563eb; --blue-d:#1d4ed8;
  --sky:#e0f2fe; --soft:#eff6ff;
  /* GOLD = achievement (a small amount, per the direction) */
  --gold:#9a6b00; --gold-bg:#fff6df; --gold-line:#f3dfa0;
  /* other semantic pills */
  --ok:#0b6e3d; --ok-bg:#eef7ee; --ok-line:#c3e0c0;
  --assign-bg:#fff5ef; --assign-line:#ffd9c9; --assign-text:#c2410c;                 /* "ask them to read this" */
  --suggest-bg:#eff6ff; --suggest-line:#cfe0ff; --suggest-text:#1d4ed8;               /* info = blue */
  --danger:#dc2626;
  /* royal-blue nav */
  --nav-bg:#2563eb; --nav-line:#1d4ed8;
  --r-card:26px; --r-btn:20px; --r-panel:16px; --r-input:12px; --r-chip:12px;
  --shadow-cta:0 14px 30px -14px rgba(255,107,86,.7);
  --shadow-card:0 22px 50px -30px rgba(28,33,42,.22);
}
body{ background:var(--bg); color:var(--ink); }
/* Fredoka headings at a refined 600 — NOT the chunky UA-default 700 (owner: too bold/dominant + a
   load-flash from light→bold when Fredoka loads). Weight is the key fix; family/account headings set
   no weight of their own, so this wins cleanly. */
h1,h2,h3{ font-family:var(--font-brand,'Fredoka',system-ui,sans-serif); font-weight:600; letter-spacing:-.01em; }

/* The menu bar's colours live in nav.js (cream, or blue with <meta name="bucoo-bar" content="blue">). */

/* Cards + panels → warm cream (#fffcf8), the calm reading/manage surface. */
.card{ background:var(--card); border:1px solid var(--line); border-radius:var(--r-panel); box-shadow:var(--shadow-card); }
.sec{ background:var(--card); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-card); }

/* Inputs */
input[type=text],input[type=email],input[type=number],input[type=search],input[type=password],select{
  border-color:var(--line); border-radius:var(--r-input); background:#fff; color:var(--ink); }
input:focus,select:focus{ outline:2px solid #cfe0ff; outline-offset:1px; border-color:var(--blue); }

/* Buttons — CORAL = the encouraging action (Add a child, Try it now); BLUE = structural (sign-in, controls). */
.btn{ border-radius:12px; background:var(--coral); color:#fff; border-color:transparent; box-shadow:var(--shadow-cta); font-weight:600; }
.btn:hover{ background:var(--coral-d); color:#fff; }
.btn.block{ border-radius:var(--r-btn); }
.btn.ghost{ background:#fff; color:var(--ink); border-color:var(--line); box-shadow:none; }
.btn.ghost:hover{ border-color:var(--blue); color:var(--blue-d); }
.btn.blue{ background:var(--blue); color:#fff; border-color:transparent; box-shadow:none; }        /* sign-in = structural blue */
.btn.blue:hover{ background:var(--blue-d); color:#fff; }
.btn.coral{ background:var(--coral); color:#fff; box-shadow:var(--shadow-cta); }
.btn.coral:hover{ background:var(--coral-d); color:#fff; }
.btn.danger{ background:var(--danger); color:#fff; border-color:transparent; box-shadow:none; }
.btn.danger:hover{ filter:brightness(.94); color:#fff; }
.btn:disabled,.btn[disabled]{ opacity:.5; box-shadow:none; }

/* Links → blue (structure). */
a{ color:var(--blue-d); }

/* Words-read pill (2c/2e) → GOLD = achievement (counts up only, never a score/percentage). */
.wkchip{ color:var(--gold); background:var(--gold-bg); border:1px solid var(--gold-line); border-radius:999px; }

/* Per-child progress card that LEADS a page (2e) → soft-blue "information" surface. */
.progcard{ background:var(--soft); border:1px solid #dbe7ff; border-radius:14px; padding:14px 16px; }

/* Mobile (Mobile QA P1-3 / P3-1): notch safe-area on the parent surfaces (account/family opt into
   viewport-fit=cover) + lift sub-16px inputs so iOS Safari doesn't auto-zoom on focus. */
body{ padding-left:env(safe-area-inset-left); padding-right:env(safe-area-inset-right); }
/* Help is a white ghost button (nav.js bn2-ghost); its text keeps the button's own ink. A forced
   white here made it white-on-white and blank (Matt, 2026-11-15, /read/). */
@media (max-width:520px){
  input[type=text],input[type=email],input[type=search],input[type=number],select{ font-size:16px; }
}
