/* Design tokens measured from the reference (see docs/visual-spec.md).
   Phase 3: text, state and control colours use the accessible palette (docs/p03-public-palette-ledger.md).
   The reference hue is kept; values are darkened only where a WCAG 2.1 AA pair failed.
   --c-accent stays the reference orange for decorative rules and borders; anything that carries text,
   a state or a focus ring uses --c-accent-strong / --c-focus. */
:root {
  --c-page: #f2f2f2;
  --c-text: #333333;
  --c-muted: #5e5e5e;
  --c-link: #006699;
  --c-link-hover: #004466;
  --c-accent: #fc642d;
  --c-accent-strong: #b5400f;
  --c-accent-strong-hover: #9c370d;
  --c-accent-strong-border: #a33a0d;
  --c-focus: #b5400f;
  --c-green: #08703c;
  --c-green-hover: #065c31;
  --c-info: #0073a8;
  --c-danger: #c0392b;
  --c-danger-border: #a93226;
  --c-warning-border: var(--c-accent-strong-border);
  --c-nav-video: #c40000;
  --c-nav-clip: #b81232;
  --c-share-copy: #0a78bd;
  --c-rating-off: #858585;
  --c-navbar: #f8f8f8;
  --c-navbar-border: #e7e7e7;
  --c-input-border: #8a8a8a;
  --c-input-text: #555555;
  --c-page-active: #337ab7;
  --c-pager-border: #dddddd;
  --c-toc-active: #dddddd;
  --c-share: #1466d6;
  --c-share-hover: #1259bd;
  --c-fb: #3b5998;
  --c-white: #ffffff;
  --c-ad: #e9e9e9;
  --c-ad-text: #616161;

  --badge-1: #ffc204;
  --badge-2: #2170b9;
  --badge-3: #ff644f;
  --badge-4: #00afc7;
  --badge-5: #00ad9f;
  --badge-6: #7bc240;
  --badge-7: #b4ce22;
  --badge-8: #ffc100;
  --badge-9: #ffac00;
  --badge-10: #ff644f;

  --font: Arial, Helvetica, sans-serif;
  --fs-base: 14px;
  --lh-base: 20px;
  --fs-h1: 28px;
  --lh-h1: 30.8px;
  --fs-h3: 23px;
  --lh-h3: 25.3px;
  --fs-h4: 18px;
  --lh-h4: 19.8px;
  --fs-h5: 14px;
  --lh-h5: 15.4px;
  --fs-lead: 21px;
  --lh-lead: 29.4px;
  --fs-entry: 18px;
  --lh-entry: 28.8px;
  --fs-label: 10.5px;

  --shadow-box: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow-menu: 0 6px 12px rgba(0, 0, 0, 0.176);
  --r-box: 20px;
  --r-thumb: 10px;
  --r-pill: 20px;

  --header-h: 54px;
  --header-hide: -55px;
  --body-top: 50px;
  --content-max: 688px;
  --footer-max: 1168px;
  --container: 1170px;

  --t-header: 0.4s;
  --t-fast: 0.15s;
}

@media (max-width: 767.98px) {
  :root {
    --fs-lead: 16px;
    --lh-lead: 22.4px;
  }
}

/* Phase 2 additions (account pages, editor, entry modules). */
:root {
  --c-field-border: #8a8a8a;
  --c-error: #c62828;
  --c-error-bg: #fdecea;
  --c-success-bg: #e8f5ee;
  --c-note-bg: #fff6e5;
  --c-note-border: #f5c06b;
  --c-row-alt: #fafafa;
  --c-table-border: #dddddd;
  --c-status-default: #6b6b6b;
  --r-field: 10px;
  --space-form: 16px;
}
