/* 01-base.css — Foundational typography, body reset, generic .panel, .btn,
   raw form-control baseline, and the "Easy 2 Read" (scheme 9) accessibility
   text-size + focus-ring overrides.
   These rules are page-agnostic — every page uses them. LOAD ORDER: second.
   Was: app.css lines 107–210, 428–447, 448–458, 580–622. */

/* =========================================================================
   Easy 2 Read (scheme 9) — accessibility-leaning theme.
   Pure black bg + pure white text (21:1 contrast) + bright yellow accent.
   Body baseline bumps to 19px / weight 400 / line-height 1.65 for comfort.
   Per-element overrides scale the px-chrome that won't inherit from body.
   ========================================================================= */
[data-scheme="9"]{
  /* body baseline lift */
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
}
/* px-chrome bumps: 12px → 15px (nav links, picker labels, small labels) */
[data-scheme="9"] .tania-navlink,
[data-scheme="9"] .scheme-picker,
[data-scheme="9"] .scheme-picker select,
[data-scheme="9"] .tania-bar-logout,
[data-scheme="9"] .section-head,
[data-scheme="9"] .ai-quote,
[data-scheme="9"] .legal-note,
[data-scheme="9"] .modal-error,
[data-scheme="9"] .dash-metric__label,
[data-scheme="9"] .dash-control-label{
  font-size: 15px;
}
/* px-chrome bumps: 13px → 16px (bar text, secondary labels) */
[data-scheme="9"] .tania-bar,
[data-scheme="9"] .summary-grid .meta,
[data-scheme="9"] .answer-hint,
[data-scheme="9"] .timer-chip{
  font-size: 16px;
}
/* px-chrome bumps: 14px → 17px (buttons, inputs, list copy) */
[data-scheme="9"] .btn,
[data-scheme="9"] .tania-btn,
[data-scheme="9"] .tania-btn-primary,
[data-scheme="9"] .back-link,
[data-scheme="9"] .info-list,
[data-scheme="9"] .nav-right,
[data-scheme="9"] .tania-status,
[data-scheme="9"] .tania-error,
[data-scheme="9"] input,
[data-scheme="9"] select,
[data-scheme="9"] textarea{
  font-size: 17px;
}
/* px-chrome bumps: 16px → 19px (page bodies, list items) */
[data-scheme="9"] .plan p,
[data-scheme="9"] .plan li{
  font-size: 19px;
  line-height: 1.7;
}
/* top utility bar headline grows to match the heavier theme weight */
[data-scheme="9"] .tania-topbar-inner{
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .02em;
}
/* visible borders — 1px disappears at high zoom, the theme's whole promise
   is "no squinting" so we beef structural lines to 2px under this scheme */
[data-scheme="9"] .tania-bar,
[data-scheme="9"] .tania-topbar,
[data-scheme="9"] .panel,
[data-scheme="9"] .qcard,
[data-scheme="9"] .tania-panel,
[data-scheme="9"] .tania-card,
[data-scheme="9"] .btn.ghost,
[data-scheme="9"] .tania-bar-logout,
[data-scheme="9"] .scheme-picker select{
  border-width: 2px;
}
/* always underline links — color alone fails for users with CVD */
[data-scheme="9"] a{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
/* nav links keep their pill chrome, no underline; they read as nav buttons */
[data-scheme="9"] .tania-navlink{ text-decoration: none; }
/* larger focus rings for keyboard navigation */
[data-scheme="9"] *:focus-visible,
[data-scheme="9"] .scheme-picker select:focus,
[data-scheme="9"] .tania-bar-logout:focus-visible,
[data-scheme="9"] .tania-navlink:focus-visible{
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
/* picker chevrons + gear icon scale with the larger text */
[data-scheme="9"] .scheme-picker .gear{ width: 18px; height: 18px; }
[data-scheme="9"] .scheme-picker svg{ width: 18px; height: 18px; }

/* ---------- Document / body reset ---------- */
html, body{ margin:0; padding:0; overflow-x: hidden; }
body{
  font-family: var(--tania-font-sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  transition: background .25s, color .25s;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.tania h1, .tania h2, .tania h3, .tania h4, .tania h5, .tania h6,
.tania strong, .tania b{ font-weight: 500; }

/* ---------- Headings + body baseline ---------- */
.tania-container h1{ font-size: 28px; font-weight: 500; letter-spacing:-.01em; margin: 0 0 14px; color: var(--text); }
.tania-container h2{ font-size: 20px; font-weight: 500; margin: 0 0 12px; color: var(--text); }
.tania-container h3{ font-size: 16px; font-weight: 500; margin: 0 0 10px; color: var(--text); }
.tania-container p { color: var(--text); line-height: 1.55; }
.tania-container a { color: var(--link); }
.tania-container ul, .tania-container ol { color: var(--text); line-height: 1.55; }

/* ---------- Raw form-control baseline (so any <input>/<textarea>/<select>
   in the body inherits the dark theme even without a wrapper class) ---------- */
.tania-container input[type="email"],
.tania-container input[type="text"],
.tania-container input[type="password"],
.tania-container input[type="number"],
.tania-container input[type="search"],
.tania-container input[type="tel"],
.tania-container input[type="url"],
.tania-container textarea,
.tania-container select{
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  min-width: 220px;
  box-sizing: border-box;
}
.tania-container textarea{ width: 100%; min-height: 96px; resize: vertical; }
.tania-container input:focus,
.tania-container textarea:focus,
.tania-container select:focus{
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.tania-container input::placeholder,
.tania-container textarea::placeholder{ color: var(--text-muted); opacity: .8; }

/* All buttons inherit font + cursor (raw <button> looked grey otherwise) */
.tania-container button{ font-family: inherit; cursor: pointer; }

/* ---------- Buttons (.btn base + ghost + primary modifier) ---------- */
.btn{
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover{ filter: brightness(1.08); }
.btn.ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover{ border-color: var(--accent); color: var(--accent); }
.btn.primary{ background: var(--accent); color: var(--accent-text); }

/* ---------- Panels / cards (generic .panel container used everywhere) ---------- */
.panel{
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
