/* Shared semantic palette for public controls, cards and links. */
/* Shared layout budgets. Page modules retain their confirmed typography and geometry. */
:root{
  --layout-container-max:1240px;
  --layout-gutter:16px;
  --article-measure-min:680px;
  --article-measure-max:720px;
  --article-column-min:640px;
  --article-sidebar-width:300px;
  --article-column-gap:32px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-6:24px;
  --space-8:32px;
  --space-12:48px;
  --space-16:64px;
  --font-body:Arial,Helvetica,sans-serif;
  --font-editorial:Georgia,"Times New Roman",serif;
  --ui-brand:#f6c927;
  --ui-brand-hover:#edbc17;
  --ui-on-brand:#111827;
  --ui-brand-teal:#0f5156;
  --ui-brand-teal-hover:#0a4145;
  --ui-gold-text:#6b4c14;
  --ui-surface:#faf9f6;
  --ui-card:#fff;
  --ui-text:#111827;
  --ui-muted:#64748b;
  --ui-border:#e5e7eb;
  --ui-radius:6px;
  --ui-pill:9999px;
  --ui-disabled-opacity:.55;
}
@media(min-width:768px){
  :root{
    --layout-gutter:24px;
  }
}
:root{
  --surface:#fffdf9;
  --surface-raised:#eeeae2;
  --link:#245bc1;
  --focus:#92702d;
  --on-accent:#10171c;
  --chart-series:#167a78;
  --chart-grid:#d7d3c9;
  --chart-label:#58656e;
  --chart-category-1:#167a78;
  --chart-category-2:#b78318;
  --chart-category-3:#0b202b;
  --chart-category-4:#a64538;
  --chart-category-5:#779996;
  --chart-category-6:#d3ccc0;
}
html[data-theme="light"]{
  color-scheme:light
}
html:not([data-theme="dark"]) body:has(.full-public-header){
  --public-card-background:var(--ui-card);
  --public-card-raised:var(--ui-surface);
  --public-card-text:var(--ui-text);
  --public-card-muted:var(--ui-muted);
  --public-card-border:var(--ui-border);
  --public-action:var(--ui-brand-teal);
  --public-action-hover:var(--ui-brand-teal-hover);
  --public-action-soft:#e9f3f0;
  --public-link:var(--ui-brand-teal);
}
html[data-theme="dark"]{
  color-scheme:dark;
  --public-page-background:#10171c;
  --ui-surface:#10171c;
  --ui-card:#172229;
  --ui-text:#e8ece9;
  --ui-muted:#b5c0c5;
  --ui-border:#43515b;
  --paper:#10171c;
  --ink:#e8ece9;
  --muted:#b5c0c5;
  --line:#43515b;
  --gold:#d4aa58;
  --red:#f29d9d;
  --surface:#172229;
  --surface-raised:#223039;
  --link:#9fc7f5;
  --focus:#e1ba72;
  --theme-text:#e8ece9;
  --theme-secondary:#b5c0c5;
  --theme-accent:#e1ba72;
  --theme-link:#9fc7f5;
  --theme-line:#43515b;
  --theme-surface:#172229;
  --theme-raised:#223039;
  --theme-page:#10171c;
  --theme-green:#85d4b4;
  --theme-red:#f29d9d;
  --theme-purple:#c9aff1;
  --theme-blue-soft:#1c3045;
  --theme-green-soft:#16352e;
  --theme-red-soft:#3b242c;
  --theme-gold-soft:#352e21;
  --theme-purple-soft:#30273f;
  --theme-action-green:#115d5b;
  --theme-action-red:#9e3038;
  --theme-action-blue:#244f7d;
  --chart-series:#70c8bd;
  --chart-grid:#43515b;
  --chart-label:#b5c0c5;
  --chart-category-1:#70c8bd;
  --chart-category-2:#d4aa58;
  --chart-category-3:#9fc7f5;
  --chart-category-4:#f29d9d;
  --chart-category-5:#a9c9c5;
  --chart-category-6:#aab6bf;
}
html[data-theme="dark"],html[data-theme="dark"] body{
  background:var(--paper);
  color:var(--ink)
}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{
  outline:2px solid var(--focus);
  outline-offset:3px
}
html[data-theme="dark"] :where(input,textarea,select,[contenteditable="true"]){
  color-scheme:dark;
  caret-color:var(--ink)
}
:where(input,textarea)::placeholder{
  color:var(--muted);
  opacity:1
}
