/* GED Prep Hub — Schmutz site design system */
:root {
  --ink: #111110;
  --paper: #eeeae2;
  --panel: #171716;
  --panel-raised: #20201e;
  --muted: #aaa79f;
  --line: #494843;
  --line-soft: rgba(238, 234, 226, .14);
  --orange: #fa633a;
  --serif: Georgia, "Times New Roman", serif;
  --success: #d4bd75;
  --warning: #fa633a;
  --danger: #ff775b;
  --shadow: none;
  --radius-lg: 0;
  --radius-md: 0;
  --radius-sm: 0;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  min-height: 100vh;
  padding-top: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
a { color: inherit; }
::selection { color: var(--ink); background: var(--orange); }

html.access-locked,
html.access-locked body { overflow: hidden; }

.schmutz-back {
  position: sticky;
  inset: 0 0 auto;
  z-index: 30;
  width: 100%;
  max-width: 1600px;
  height: 102px;
  margin: 0 auto;
  padding: 0 clamp(22px, 3.8vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.schmutz-back img { width: 180px; height: auto; }
.schmutz-back span { font-size: 12px; color: var(--paper); transition: color .18s ease; }
.schmutz-back span:hover { color: var(--orange); }
.schmutz-back b { color: var(--orange); font-size: 17px; margin-left: 8px; }

.app-shell {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 102px);
  background: var(--ink);
  box-shadow: none;
}
.sidebar, .inspector {
  min-width: 0;
  color: var(--paper);
  background: var(--ink);
  border-color: var(--line);
  backdrop-filter: none;
}
.sidebar {
  padding: 34px 26px;
  border-right: 1px solid var(--line);
}
.inspector {
  padding: 34px 24px;
  border-left: 1px solid var(--line);
}
.workspace { min-width: 0; background: var(--ink); }

.sidebar__brand h1,
.topbar h2,
.section-heading h3,
.subject-shell__intro h3,
.inspector h3,
.surface h4,
.question-card__body h4,
.coverage-domain__header h5 {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
}
.sidebar__brand h1 { font-size: clamp(32px, 3vw, 46px); line-height: .98; }
.sidebar__summary,
.section-copy,
.surface__header p,
.subject-shell__intro p,
.stat-block__detail,
.stack-item__meta,
.mini-stat__label,
.coverage-domain__header p {
  color: var(--muted);
  line-height: 1.75;
}
.eyebrow,
.stat-block__label,
.stack-item__label,
.label,
.readiness-pill span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.sidebar .eyebrow { color: var(--orange); }

.sidebar__nav {
  gap: 0;
  margin-top: 36px;
}
.nav-link {
  display: block;
  padding: 13px 5px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: color .18s ease, padding .18s ease;
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--paper); background: transparent; transform: none; }
.nav-link.is-active {
  position: relative;
  padding-left: 14px;
  color: var(--paper);
  border-color: var(--line-soft);
  background: transparent;
}
.nav-link.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--orange);
}
.sidebar__footer { border-top: 1px solid var(--line); }
.mini-stat {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  color: var(--paper);
  box-shadow: none;
}
.mini-stat__label { color: var(--muted); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(22px, 3.5vw, 48px) 24px;
  color: var(--paper);
  background: rgba(17, 17, 16, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar h2 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: .98;
  font-weight: 400;
}
.topbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.content { padding: clamp(32px, 5vw, 70px) clamp(22px, 3.5vw, 48px) 90px; }

.panel { animation: fadeUp .3s ease; }
.panel.is-visible { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: end;
  gap: 24px 48px;
  padding: 0 0 34px;
  margin: 0 0 36px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: none;
  box-shadow: none;
}
.section-heading > div { min-width: 0; }
.section-heading .eyebrow { margin: 0 0 16px; color: var(--muted); }
.section-heading h3 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
}
.section-heading h3 em,
.subject-shell h3 em { color: var(--orange); font-style: italic; }
.section-heading .section-copy {
  max-width: 520px;
  margin: 0 0 4px auto;
  font-size: 13px;
  line-height: 1.9;
}

.stats-grid,
.three-up,
.dashboard-layout,
.two-up { gap: 0; }
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-block,
.surface,
.controls-panel,
.inspector__block,
.question-card,
.passage-card,
.subject-summary,
.stack-item,
.empty-state,
.readiness-pill,
.quiz-card,
.study-card,
.diagnostic-card,
.exam-card,
.plan-card,
.subject-card,
.progress-card,
.essay-card,
.metric-card,
.chart-card {
  color: var(--paper);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.stat-block {
  min-height: 155px;
  padding: 22px 20px 24px;
  border-top: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
}
.stat-block:last-child { border-right: 0; }
.stat-block:nth-child(n) { border-top-color: transparent; }
.stat-block__label, .stack-item__label { color: var(--muted); }
.stat-block__value {
  display: block;
  margin: 21px 0 10px;
  color: var(--paper);
  font: 400 clamp(34px, 4vw, 54px)/1 var(--serif);
  letter-spacing: -.04em;
}
.stat-block__value--small { font-size: 28px; }
.stat-block__detail { font-size: 11px; }
.surface {
  min-width: 0;
  padding: 26px 24px;
  border-top: 1px solid var(--line);
}
.surface__header {
  align-items: start;
  margin-bottom: 20px;
}
.surface__header h4,
.surface h4 { font-size: 26px; line-height: 1.08; }
.surface__header p { max-width: 360px; font-size: 11px; }
.dashboard-layout,
.two-up { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); margin-top: 36px; }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack-list { gap: 0; }
.stack-item,
.empty-state {
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
}
.stack-item__label { margin-bottom: 8px; }
.stack-item__meta { font-size: 11px; }

.subject-shell {
  align-items: end;
  gap: 32px;
  padding: 30px 0;
  margin: 0 0 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: transparent;
}
.subject-shell__intro { max-width: 760px; }
.subject-shell__intro .eyebrow { color: var(--muted); }
.subject-shell__intro h3 { font-size: clamp(40px, 5vw, 70px); line-height: 1; }
.subject-shell__intro p { margin-top: 14px; max-width: 570px; }
.subject-shell__controls { display: flex; flex-wrap: wrap; gap: 10px; }
.subject-shell + * { margin-top: 22px; }

.button,
.nav-link {
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.button {
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: transparent;
  transform: none;
}
.button:hover,
.button:focus-visible {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange);
  transform: none;
}
.button--ghost { border-color: var(--line); }
.button--primary,
button.button--primary {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: none;
  font-weight: 700;
}
.button--primary:hover,
button.button--primary:hover { background: #ff7957; border-color: #ff7957; }
.button--secondary {
  color: var(--paper);
  border-color: var(--line);
  background: transparent;
}
.button--secondary:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.button-row { gap: 10px; }
.pill,
.badge,
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.controls-panel {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.field { gap: 8px; }
.field select,
.field input,
.field textarea,
input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: #171716;
}
.field select:focus,
.field input:focus,
.field textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-color: var(--orange);
}
select option { color: var(--paper); background: var(--ink); }
input::placeholder, textarea::placeholder { color: #827f77; }
textarea { line-height: 1.75; }
.field .label, .field > span { color: var(--muted); }

.progress-row {
  grid-template-columns: minmax(120px, 1fr) minmax(0, 3fr) auto;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.progress-bar, .chart-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 0;
  background: #2a2926;
}
.progress-bar__fill, .chart-bar__fill {
  border-radius: 0;
  background: var(--orange);
}
.chart { gap: 16px; }
.chart-row { gap: 15px; }
.activity-chart { min-height: 210px; gap: 9px; }
.activity-bar { gap: 8px; }
.activity-bar__value, .activity-bar__sub { color: var(--muted); font-size: 10px; }
.activity-bar__track {
  height: 124px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #252522;
}
.activity-bar__column {
  width: 100%;
  border-radius: 0;
  background: var(--orange);
}
.activity-bar__label { color: var(--paper); font-size: 11px; }
.coverage-domain { padding-top: 22px; border-top: 1px solid var(--line); }
.coverage-domain:first-of-type { padding-top: 0; border-top: 0; }
.coverage-domain__header { margin-bottom: 15px; }
.coverage-domain__header h5 { font-size: 22px; }
.coverage-domain__header p { font-size: 11px; }
.coverage-list { gap: 0; }
.coverage-row {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}
.coverage-row__main { gap: 10px; }

.study-workspace { gap: 20px; }
.question-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.question-card__header,
.question-card__footer {
  padding: 17px 20px;
  border-color: var(--line);
  background: #1b1b19;
}
.question-card__header,
.question-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.question-card__footer { border-top: 1px solid var(--line); }
.question-card__body { display: grid; gap: 20px; padding: 24px 20px; }
.question-card__body h4 { font-size: clamp(23px, 2.5vw, 32px); line-height: 1.35; }
.passage-card {
  padding: 22px;
  border-left: 2px solid var(--orange);
  background: #1b1b19;
}
.passage-card p { line-height: 1.85; color: var(--paper); }
.choices { gap: 0; border-top: 1px solid var(--line); }
.choice {
  display: flex;
  align-items: start;
  gap: 13px;
  padding: 16px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--paper);
  background: transparent;
  transition: background .18s ease, color .18s ease;
}
.choice:hover { transform: none; background: #20201e; }
.choice.is-correct {
  color: var(--paper);
  border-color: var(--line);
  background: rgba(212, 189, 117, .12);
}
.choice.is-incorrect {
  color: var(--paper);
  border-color: var(--line);
  background: rgba(250, 99, 58, .15);
}
.question-nav {
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 0;
}
.question-nav__btn {
  padding: 10px 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
}
.question-nav__btn:hover { color: var(--paper); background: #20201e; }
.question-nav__btn.is-current {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange);
}
.question-nav__btn.is-correct { color: var(--success); border-color: var(--line); }
.question-nav__btn.is-incorrect { color: var(--orange); border-color: var(--line); }
.explanation-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--orange);
  border-radius: 0;
  color: var(--paper);
  background: #1b1b19;
  line-height: 1.8;
}
.meta-line { gap: 8px; }

.access-gate {
  min-height: 100vh;
  padding: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}
html.access-locked .access-gate { display: flex; }
html.access-locked .app-shell { display: none; }
.access-gate__panel {
  position: relative;
  width: min(600px, 100%);
  padding: 40px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 0;
  color: var(--paper);
  background: #171716;
  box-shadow: none;
}
.access-gate__panel::before { display: none; }
.access-gate__panel h1 {
  margin: 0 0 18px;
  color: var(--paper);
  font: 400 clamp(42px, 7vw, 70px)/.98 var(--serif);
  letter-spacing: -.04em;
}
.access-gate__panel .eyebrow { color: var(--orange); }
.access-gate__copy,
.access-gate__status { color: var(--muted); line-height: 1.8; }
.access-gate__form { gap: 18px; margin-top: 28px; }
.access-gate__status { margin: 18px 0 0; }
.access-gate__status.is-error { color: var(--danger); }
.access-gate__status.is-success { color: var(--success); }
.access-gate__buy { margin: 20px 0 0; color: var(--muted); line-height: 1.8; }
.access-gate__buy a { color: var(--orange); text-decoration: underline; text-underline-offset: 4px; }
.access-gate__buy a:hover { color: var(--paper); }

.inspector__block {
  padding: 19px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.inspector h3 { font-size: 26px; }
.readiness-pill {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.readiness-pill span { color: var(--muted); }
.empty-state { color: var(--muted); }

@media (max-width: 1280px) {
  .app-shell { grid-template-columns: 255px minmax(0, 1fr); }
  .inspector { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px;
  }
  .sidebar__brand { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
  .sidebar__summary { max-width: 320px; margin: 0; font-size: 11px; }
  .sidebar__nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
    overflow-x: auto;
    margin-top: 18px;
    padding-bottom: 2px;
  }
  .nav-link { flex: 0 0 auto; border: 0; padding: 11px 0; }
  .nav-link.is-active { padding-left: 0; }
  .nav-link.is-active::before { top: auto; right: 0; bottom: 0; width: auto; height: 2px; }
  .sidebar__footer { display: none; }
  .topbar { position: static; flex-direction: column; align-items: stretch; padding: 26px 22px 20px; }
  .topbar__actions { justify-content: flex-start; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; padding-bottom: 24px; }
  .section-heading .section-copy { margin: 0; }
  .stats-grid, .three-up, .dashboard-layout, .two-up, .controls-panel { grid-template-columns: 1fr; }
  .stat-block { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .stat-block__value { margin: 12px 0 7px; }
  .surface { padding: 23px 0; }
  .surface__header { flex-direction: column; }
  .subject-shell { align-items: start; flex-direction: column; padding: 24px 0; }
  .coverage-row, .chart-row, .progress-row { grid-template-columns: 1fr; }
  .coverage-domain__header { display: flex; flex-direction: column; }
  .content { padding: 30px 22px 60px; }
  .schmutz-back { height: 80px; padding: 0 22px; }
  .schmutz-back img { width: 150px; }
}
@media (max-width: 600px) {
  .schmutz-back { height: 72px; padding: 0 18px; }
  .schmutz-back img { width: 126px; }
  .schmutz-back span { font-size: 10px; }
  .sidebar__brand { display: block; }
  .sidebar__summary { margin-top: 10px; }
  .sidebar__nav { gap: 17px; }
  .nav-link { font-size: 11px; }
  .topbar h2 { font-size: 42px; }
  .content { padding: 25px 18px 48px; }
  .section-heading h3 { font-size: clamp(40px, 12vw, 56px); }
  .section-heading .section-copy { font-size: 12px; }
  .surface__header h4, .surface h4 { font-size: 23px; }
  .access-gate { padding: 18px; }
  .access-gate__panel { padding: 28px 22px; }
  .access-gate__panel h1 { font-size: clamp(42px, 12vw, 58px); }
  .activity-chart { grid-template-columns: repeat(auto-fit, minmax(30px, 1fr)); gap: 5px; }
  .activity-bar__track { height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
:root{--control-radius:12px}
button,input[type="button"],input[type="submit"],input[type="reset"],a.button,a[class*="button"],a.download,.download[role="button"],.ged-membership-card__buy,.membership-button,[role="button"]{border-radius:var(--control-radius)!important}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),textarea,select{border-radius:var(--control-radius)!important}
