/* "Warm Guide" theme — Clayton's Claude Design pick (July 10, 2026 export).
   Honey ground, brown ink, Georgia headlines, clay primary action, teal
   links/secondary. Layered on Pico.css v2: Pico still handles typography
   scale, forms, buttons, cards (<article>), spacing and accessibility; this
   file recolors it and styles the custom components. Deliberately a single
   committed light theme (base.html pins data-theme="light"). */

/* Both selectors so the token block outweighs Pico's own
   :root:not([data-theme=dark]) definitions (0,2,0 specificity). */
:root,
:root[data-theme="light"] {
  /* palette */
  --wg-bg: #FBF3E4;          /* honey ground */
  --wg-ink: #3B2E25;         /* warm brown ink */
  --wg-ink-strong: #33261C;  /* headline brown */
  --wg-muted: #83705F;
  --wg-muted-2: #6d5c4c;
  --wg-card: #FFFDF8;        /* cream card */
  --wg-card-line: #E8DCC4;
  --wg-line: #EBDFC8;
  --wg-field-line: #D8C7A6;
  --wg-clay: #A8552F;        /* primary action */
  --wg-clay-hover: #8F4623;
  --wg-clay-ink: #FFF8EF;
  --wg-teal: #175E63;        /* links / secondary */
  --wg-teal-hover: #0f4a4e;
  --wg-warn-bg: #FDF9F0;
  --wg-warn-line: #E0B25C;
  --wg-danger: #8C2F1B;
  --wg-foot: #F7EFDC;
  --wg-hint: #a2907f;

  /* Pico wiring */
  --pico-background-color: var(--wg-bg);
  --pico-color: var(--wg-ink);
  --pico-card-background-color: var(--wg-card);
  --pico-card-border-color: var(--wg-card-line);
  --pico-muted-color: var(--wg-muted);
  --pico-muted-border-color: var(--wg-line);
  --pico-primary-background: var(--wg-clay);
  --pico-primary-hover-background: var(--wg-clay-hover);
  --pico-primary-focus: rgba(168, 85, 47, 0.25);
  --pico-primary: var(--wg-teal);
  --pico-primary-hover: var(--wg-teal-hover);
  --pico-primary-inverse: var(--wg-clay-ink);
  --pico-border-radius: 12px;
  --pico-form-element-spacing-vertical: 0.85rem;
  --pico-form-element-border-color: var(--wg-field-line);
  --pico-form-element-background-color: #fff;

  /* legacy aliases used across templates */
  --brand: var(--wg-clay);
  --muted: var(--wg-muted);
}

html { font-size: 17px; }
body { background: var(--wg-bg); color: var(--wg-ink); }

h1, h2 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--wg-ink-strong);
  font-weight: 700;
}
h1 { font-size: 1.9rem; line-height: 1.15; text-wrap: balance; }

/* Constrain to a comfortable mobile-first column */
main.container { max-width: 560px; }

/* ── Top bar (quiet: sits on the honey ground, no band) ─────────────────── */
.topbar { background: transparent; margin-bottom: 0.5rem; }
.topbar nav {
  max-width: 560px; margin: 0 auto; padding: 0.35rem 1rem 0;
  display: flex; justify-content: space-between; align-items: center;
}
.topbar .brand { color: var(--wg-ink); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.topbar a { color: var(--wg-clay); font-weight: 700; text-decoration: underline; padding: 0.9rem 0 0.9rem 0.8rem; }

.foot {
  border-top: 1px solid var(--wg-line); background: var(--wg-foot);
  margin-top: 1.2rem; padding: 0.9rem 1rem 1.1rem;
  color: var(--wg-muted); font-size: 0.8rem; text-align: left;
}
.foot p { max-width: 560px; margin: 0 auto; }
.foot p + p { margin-top: 0.4rem; }
/* Labor Code 5432(a): mandatory WC fraud notice, at least 12-point (=16px)
   roman boldface. Do not shrink below 16px or unbold — it's a statutory size. */
.wc-fraud-notice {
  font-size: 16px; font-weight: 700; line-height: 1.5;
  color: var(--wg-ink); margin: 0 0 0.6rem;
}

/* ── Cards / buttons ────────────────────────────────────────────────────── */
article {
  background: var(--wg-card);
  border: 1px solid var(--wg-card-line);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(103, 74, 48, 0.08);
}
.cta { width: 100%; min-height: 54px; font-weight: 700; }
button.secondary, a.secondary[role="button"] {
  background: transparent; border: 1.5px solid var(--wg-teal); color: var(--wg-teal);
  font-weight: 700;
}
.btnrow { margin-top: 0.75rem; }
input[type="text"], input[type="date"], input[type="number"], input[type="tel"], select {
  border: 1.5px solid var(--wg-field-line); background: #fff; color: var(--wg-ink);
}
input::placeholder { color: var(--wg-hint); }

/* ── Flash messages ────────────────────────────────────────────────────── */
.flash { padding: 0.75rem 0.9rem; border-radius: var(--pico-border-radius); margin: 0.6rem 0; }
.flash.ok  { background: #E9F0E9; color: #1D5B41; border: 1px solid #BCD5C2; }
.flash.err { background: #F9E9E3; color: var(--wg-danger); border: 1px solid #E5B9A6; }

/* ── Article variants (cards) ──────────────────────────────────────────── */
article.warn { border: 1.5px solid var(--wg-warn-line); background: var(--wg-warn-bg); }
article.highlight { border: 2px solid var(--wg-clay); }
.center { text-align: center; }

/* ── Hero (landing) ────────────────────────────────────────────────────── */
.hero { text-align: center; }
.hero h1 { font-size: 1.9rem; }
.bullets { list-style: none; padding: 0; margin: 1.4rem 0; text-align: left; }
.bullets li { padding: 0.6rem 0 0.6rem 1.9rem; position: relative; border-bottom: 1px solid var(--wg-line); }
.bullets li::before { content: "✓"; color: var(--wg-teal); position: absolute; left: 0.2rem; font-weight: 700; }
.fineprint { color: var(--wg-muted); font-size: 0.82rem; }

/* ── Notice blocks ─────────────────────────────────────────────────────── */
.notice {
  background: var(--wg-warn-bg); border: 1.5px solid var(--wg-warn-line);
  border-radius: var(--pico-border-radius); padding: 0.9rem; margin-bottom: 0.8rem;
}
.notice ul { margin: 0.5rem 0 0; }
.notice.fraud { background: var(--wg-card); border-color: var(--wg-field-line); font-weight: 600; }

/* ── List rows (claims / forms) ────────────────────────────────────────── */
.list { list-style: none; padding: 0; margin: 0.5rem 0; }
.list .row, a.row {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  color: var(--wg-ink); background: var(--wg-card);
  border: 1px solid var(--wg-card-line); border-radius: var(--pico-border-radius);
  padding: 0.9rem; margin-bottom: 0.6rem;
}
.row-main { font-weight: 600; }
.row-sub { color: var(--wg-muted); font-size: 0.88rem; }

/* ── Trips table ───────────────────────────────────────────────────────── */
table.trips { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
table.trips th { color: var(--wg-muted); }
table.trips td, table.trips th { padding: 0.5rem 0.4rem; background: transparent; border-bottom-color: var(--wg-line); }
table.trips form { margin: 0; }
.iconbtn { background: none; border: none; color: var(--wg-danger); cursor: pointer; padding: 0; width: auto; }
.dangerlink { color: var(--wg-danger); font-size: 0.9rem; }
.rowacts { white-space: nowrap; }
.rowacts a { text-decoration: none; margin-right: 0.5rem; font-size: 1.1rem; }
.rowacts form { display: inline; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.datebox { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.datebox input { flex: 1; margin: 0; }

/* Interview progress bar + its label */
.progress {
  height: 8px; background: var(--wg-line); border-radius: 4px;
  margin-bottom: 1.2rem; overflow: hidden;
}
.progress > div { height: 100%; background: var(--wg-clay); border-radius: 4px; }

/* Signature pad */
.sigpad {
  display: block; width: 100%; height: 170px;
  border: 2px dashed var(--wg-field-line); border-radius: 12px;
  background: #fff; touch-action: none; cursor: crosshair;
}

/* Address autocomplete dropdown */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: #fff;
  border: 1.5px solid var(--wg-card-line);
  border-radius: 12px; box-shadow: 0 6px 18px rgba(103, 74, 48, 0.15);
  max-height: 240px; overflow-y: auto; margin-top: 4px;
}
.ac-item { padding: 0.7rem 0.8rem; cursor: pointer; font-size: 0.95rem; font-weight: 600; border-bottom: 1px solid #F2EADA; }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.ac-active { background: var(--wg-foot); color: var(--wg-ink-strong); }
.ac-item.ac-hint { cursor: default; color: var(--wg-hint); font-style: italic; font-weight: 400; }
.ac-item.ac-hint:hover { background: inherit; color: var(--wg-hint); }
.muted { color: var(--wg-muted); }
a.link, a { color: var(--wg-teal); }

/* Interview: claim-count grid, full-width choice buttons, inline plain link */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.choice-grid button { margin: 0; }
button.wide { display: block; width: 100%; margin-bottom: 0.6rem; }
button.link-plain { background: none; border: none; color: var(--wg-teal);
  text-decoration: underline; font-weight: 700; padding: 0.25rem 0; width: auto; cursor: pointer; }

/* Signature page: CCP 2015.5 declaration */
.declaration { border-left: 4px solid var(--wg-clay); padding-left: 0.8rem; }

/* ── July 10 design upgrades (Clayton's Claude Design export) ───────────── */
/* Interview: anchor the answer card + its action low (thumb reach; the go
   button lives in the same spot on every question). Full flex chain so the
   card sits directly above the footer regardless of screen height; the
   footer also stops floating mid-screen on short pages. */
body { display: flex; flex-direction: column; min-height: 100dvh; }
main.container { flex: 1 0 auto; width: 100%; display: flex; flex-direction: column; }
.iv { flex: 1; display: flex; flex-direction: column; }
.iv article { margin-top: auto; }
/* Disabled-until-valid primary buttons */
button[disabled] { opacity: 0.45; cursor: default; }
/* Quiet pick-confirmation under address fields */
.ac-saved { margin: 0.5rem 0 0; font-size: 0.9rem; font-weight: 700; color: var(--wg-teal); }
/* Signature gate hint (hidden once signed + both boxes checked) */
.gate-hint { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--wg-muted); text-align: center; }

/* Back control on every category sub-screen (July 17) */
.backrow { margin-top: 0.7rem; }
