:root {
  --ink: #181716;
  --muted: #68635e;
  --paper: #f5f1eb;
  --surface: #fffdf9;
  --line: #ded6cd;
  --red: #8b1118;
  --red-bright: #bd1721;
  --red-dark: #3a080c;
  --rose: #f5e5e5;
  --green: #16764a;
  --green-soft: #e5f4eb;
  --amber: #a76b0a;
  --amber-soft: #fff2d5;
  --blue: #245f8d;
  --shadow: 0 18px 55px rgba(54, 25, 19, .11);
  --radius: 18px;

  
  --black: #000000;
    --maroon: #5e0a0a;
  --dark-maroon: #3a0505;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.56;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
summary,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(189, 23, 33, .34);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.12;
}

code {
  font-family: "Cambria Math", Georgia, serif;
}

.site {
  min-height: 100vh;
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--red);
  font-size: .7rem;
  font-weight: 950;
  letter-spacing: .18em;
}

.eyebrow.light {
  color: #f39aa0;
}

.button {
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 9px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  border: 1px solid var(--red-bright);
  color: white;
  background: var(--red-bright);
  box-shadow: 0 10px 28px rgba(168, 12, 23, .24);
}

.button.primary:hover {
  background: #d01b26;
}

.button.ghost {
  border: 1px solid currentColor;
  background: transparent;
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red-bright) !important;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 10px 5vw;
  border-bottom: 1px solid rgba(111, 17, 23, .12);
  background: rgba(250, 248, 244, .95);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand img {
  width: 175px;
  height: auto;
  object-fit: contain;
}

.brand>span {
  display: grid;
  line-height: 1;
  letter-spacing: .09em;
}

.brand b {
  color: var(--red-dark);
  font-size: .88rem;
}

.brand small {
  margin-top: 7px;
  color: var(--muted);
  font-size: .55rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav button {
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.main-nav button:hover,
.main-nav button.active {
  color: var(--red);
  background: #f1e8e6;
}

.learner-chip {
  display: grid;
  grid-template-columns: 34px auto;
  grid-template-rows: 17px 15px;
  column-gap: 9px;
  align-items: center;
  padding: 6px 11px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.learner-chip>span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-weight: 950;
}

.learner-chip b {
  align-self: end;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .72rem;
}

.learner-chip small {
  align-self: start;
  color: var(--muted);
  font-size: .6rem;
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 7px;
  border: 0;
  background: transparent;
  font-size: 1.45rem;
  cursor: pointer;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .62fr);
  align-items: center;
  gap: clamp(45px, 8vw, 120px);
  min-height: 675px;
  padding: 82px 5vw;
  color: white;
  background:
    radial-gradient(circle at 88% 22%, rgba(196, 22, 33, .43), transparent 27%),
    linear-gradient(125deg, #190407 0%, #3b080d 52%, #761019 100%);
}

.hero-copy h1 {
  margin-bottom: 25px;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 6.2vw, 6.45rem);
  font-weight: 500;
  letter-spacing: -.055em;
}

.hero-copy h1 em {
  color: #f27079;
  font-weight: 400;
}

.hero-copy>p:not(.eyebrow) {
  max-width: 660px;
  color: #dac7c8;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}

.hero-actions .ghost {
  color: white;
  border-color: rgba(255, 255, 255, .35);
}

.hero-readiness {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 25px;
  background: rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px rgba(255, 255, 255, .09);
}

.mini-gauge {
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  margin: 0 auto 23px;
  border-radius: 50%;
  background: conic-gradient(#f0646d var(--gauge), rgba(255, 255, 255, .12) 0);
  position: relative;
}

.mini-gauge::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #4d0a10;
}

.mini-gauge>div {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.mini-gauge strong {
  font-family: Georgia, serif;
  font-size: 2.8rem;
  line-height: 1;
}

.mini-gauge span {
  color: #e2bfc1;
  font-size: .68rem;
}

.hero-readiness h2 {
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  text-align: center;
}

.hero-readiness>p {
  color: #d9c5c6;
  font-size: .82rem;
  text-align: center;
}

.hero-readiness dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.hero-readiness dl div {
  padding: 14px 5px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
}

.hero-readiness dl div:last-child {
  border: 0;
}

.hero-readiness dt {
  font-weight: 950;
}

.hero-readiness dd {
  margin: 2px 0 0;
  color: #c8aeb0;
  font-size: .56rem;
}

.hero-readiness>button {
  display: block;
  margin: auto;
  padding: 8px;
  border: 0;
  color: #f5a6ab;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: white;
  background: var(--red);
}

.proof-strip article {
  display: grid;
  place-items: center;
  padding: 27px 20px;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.proof-strip strong {
  font-family: Georgia, serif;
  font-size: 2.2rem;
}

.proof-strip span {
  color: #e7bfc1;
  font-size: .7rem;
}

.home-section {
  padding: 72px 5vw;
}

.split-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
}

.split-intro h2,
.section-heading h2 {
  margin-bottom: 0;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.9rem);
  font-weight: 500;
  letter-spacing: -.035em;
}

.split-intro>p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  padding-top: 0;
}

.feature-grid article {
  min-height: 250px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-grid article>span {
  color: #cbbeb5;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.feature-grid h3 {
  margin: 30px 0 10px;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.feature-grid p {
  color: var(--muted);
  font-size: .85rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 28px;
}

.section-heading>button {
  padding: 8px 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.page {
  min-height: 78vh;
}

.page-heading {
  padding: 78px clamp(22px, 8vw, 130px) 38px;
  background: linear-gradient(180deg, #fbf9f5, transparent);
}

.page-heading h1 {
  max-width: 970px;
  margin-bottom: 14px;
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 5.3vw, 5rem);
  font-weight: 500;
  letter-spacing: -.045em;
}

.page-heading>p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.03rem;
}

.filter-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 clamp(22px, 8vw, 130px) 20px;
}

.filter-note span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: white;
  font-size: .7rem;
  font-weight: 750;
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  padding: 20px clamp(22px, 8vw, 130px) 90px;
}

.home-section .chapter-grid {
  padding: 0;
}

.chapter-card {
  display: flex;
  flex-direction: column;
  min-height: 365px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 24px rgba(57, 24, 19, .04);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.chapter-card:hover {
  transform: translateY(-4px);
  border-color: #c9aaa8;
  box-shadow: var(--shadow);
}

.chapter-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter-card header>span {
  color: #cabdb5;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.chapter-card header small {
  color: var(--red);
  font-weight: 900;
}

.chapter-card code {
  min-height: 48px;
  margin: 20px 0;
  padding: 12px;
  border-radius: 8px;
  color: var(--red-dark);
  background: var(--rose);
  font-size: .86rem;
}

.chapter-card h3 {
  margin-bottom: 9px;
  font-family: Georgia, serif;
  font-size: 1.38rem;
}

.chapter-card>p {
  color: var(--muted);
  font-size: .82rem;
}

.chapter-meter {
  height: 6px;
  border-radius: 10px;
  background: #e7dfd7;
  overflow: hidden;
}

.chapter-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #dc3440);
}

.chapter-evidence {
  margin-top: 8px;
  color: var(--muted);
}

.chapter-card>button {
  margin-top: auto;
  padding: 12px 0 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: start;
}

.tutorial-sidebar {
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  padding: 27px 21px;
  overflow-y: auto;
  color: #ead7d8;
  background: #28070a;
}

.tutorial-sidebar>button {
  margin-bottom: 23px;
  padding: 0;
  border: 0;
  color: #ee8b91;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.tutorial-sidebar>small {
  color: #bf777c;
  font-weight: 900;
  letter-spacing: .13em;
}

.tutorial-sidebar h2 {
  margin: 9px 0 20px;
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.sidebar-progress {
  height: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .13);
  overflow: hidden;
}

.sidebar-progress span {
  display: block;
  height: 100%;
  background: #ef6670;
}

.tutorial-sidebar>p {
  margin: 6px 0 16px;
  color: #af8e90;
  font-size: .66rem;
}

.tutorial-sidebar nav {
  display: grid;
}

.tutorial-sidebar a {
  padding: 7px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #cbb9ba;
  font-size: .73rem;
  text-decoration: none;
}

.tutorial-sidebar a:hover {
  color: white;
}

.tutorial-body {
  min-width: 0;
  background: #fbfaf7;
}

.tutorial-hero {
  padding: 70px clamp(24px, 7vw, 105px);
  color: white; 
  background: linear-gradient(125deg, #4a090e, #9c121b);
}

.tutorial-hero>p {
  color: #f2afb4;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .14em;
}

.tutorial-hero h1 {
  max-width: 930px;
  margin-bottom: 26px;
  font-family: Georgia, serif;
  font-size: clamp(2.55rem, 5vw, 5.15rem);
  font-weight: 500;
  letter-spacing: -.045em;
}

.tutorial-hero code {
  display: inline-block;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(0, 0, 0, .13);
}

.tutorial-hero>div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 27px;
}

.tutorial-hero>div span {
  padding: 6px 10px;
  border-radius: 18px;
  color: #f2d5d7;
  background: rgba(255, 255, 255, .1);
  font-size: .66rem;
}

.tutorial-section {
  padding: 70px clamp(24px, 7vw, 105px);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 95px;
}

.section-kicker {
  color: var(--red);
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .17em;
}

.tutorial-section>h2 {
  margin: 9px 0 15px;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -.03em;
}

.section-intro {
  max-width: 780px;
  color: var(--muted);
}

.tutorial-section>h3 {
  margin: 38px 0 17px;
  font-size: 1.08rem;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.definition-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}

.definition-grid strong {
  color: var(--red);
}

.definition-grid p {
  margin: 8px 0;
  font-size: .88rem;
}

.definition-grid small {
  color: var(--muted);
}

.rules-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}

.rule-row {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.8fr;
  gap: 17px;
  align-items: start;
  padding: 15px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
}

.rule-row:first-child {
  border: 0;
}

.rule-head {
  color: white;
  background: var(--red-dark);
  font-size: .72rem;
}

.rule-row code {
  color: var(--red);
}

.rule-row p {
  margin: 0;
  color: var(--muted);
}

.learning-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.learning-list li {
  padding-left: 8px;
}

.tips li::marker {
  color: var(--green);
  font-weight: 900;
}

.mistakes li::marker {
  color: var(--red-bright);
  font-weight: 900;
}

.question-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.question-list li {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.question-list header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.question-list header b {
  color: var(--red);
}

.question-list header span {
  color: var(--muted);
  font-size: .73rem;
}

.question-list li>p {
  margin: 17px 0 25px;
  font-weight: 620;
}

.working-space {
  padding: 34px 0 5px;
  border-top: 1px dashed #bbb1aa;
  color: #aea59d;
  font-size: .68rem;
  font-style: italic;
}

.solution-list {
  display: grid;
  gap: 11px;
}

.solution-list details {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  overflow: hidden;
}

.solution-list summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
  color: var(--red-dark);
  cursor: pointer;
}

.solution-list summary span {
  color: var(--muted);
  font-size: .72rem;
}

.solution-content {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.solution-content>ol,
.question-solution ol {
  display: grid;
  gap: 10px;
  padding-left: 21px;
}

.solution-content li,
.question-solution li {
  padding-left: 5px;
}

.solution-content li small,
.question-solution li small {
  display: block;
  color: var(--red);
  font-weight: 900;
}

.solution-content li span,
.question-solution li span {
  display: block;
}

.final-answer {
  display: block;
  margin-top: 18px;
  padding: 13px 15px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  color: #0e5937;
  background: var(--green-soft);
}

.assessment-launcher {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin: 13px 0;
  padding: 21px;
  border: 1px solid #d9c4c2;
  border-left: 5px solid var(--red);
  border-radius: 13px;
  background: white;
}

.assessment-launcher.emphasis {
  color: white;
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.assessment-launcher small {
  color: var(--red);
  font-weight: 950;
  letter-spacing: .12em;
}

.assessment-launcher.emphasis small {
  color: #ef9ca1;
}

.assessment-launcher h3 {
  margin: 5px 0;
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.assessment-launcher p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

.assessment-launcher.emphasis p {
  color: #d4b9bb;
}

.assessment-launcher>button {
  flex: 0 0 auto;
  min-width: 142px;
  padding: 11px 16px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.assessment-launcher.emphasis>button {
  color: var(--red-dark);
  background: white;
}

.mastery-checklist {
  display: grid;
  gap: 9px;
}

.mastery-checklist label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  cursor: pointer;
}

.mastery-checklist input {
  margin-top: 4px;
  accent-color: var(--red);
}

.chapter-complete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;  
  margin: 70px clamp(24px, 7vw, 105px); 
  padding: 26px 30px;
  border-radius: var(--radius);
  color: white;
  background: var(--red-dark);
}

.chapter-complete small {
  color: #e79096;
  letter-spacing: .14em;
}

.chapter-complete h2 {
  margin: 5px 0;
  font-family: Georgia, serif;
}

.chapter-complete p {
  margin: 0;
  color: #d1b4b6;
}

.chapter-complete button {
  padding: 12px 17px;
  border: 0;
  border-radius: 8px;
  color: var(--red-dark);
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.assessment-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 clamp(22px, 8vw, 130px) 45px;
}

.assessment-rules article {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.assessment-rules b {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  background: var(--red);
}

.assessment-rules span {
  font-size: .78rem;
  font-weight: 700;
}

.assessment-catalogue {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 25px 55px;
}

.quick-quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.quick-quiz-grid article {
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.quick-quiz-grid article>span {
  color: var(--red);
  font-size: .67rem;
  font-weight: 900;
}

.quick-quiz-grid h3 {
  margin: 9px 0;
  font-family: Georgia, serif;
}

.quick-quiz-grid p {
  color: var(--muted);
  font-size: .78rem;
}

.quick-quiz-grid button {
  margin-top: auto;
  padding: 9px 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.dashboard-page {
  min-height: 80vh;
  padding-bottom: 90px;
  background: #f2eee8;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 55px;
  align-items: center;
  padding: 60px clamp(22px, 8vw, 130px);
  color: white;
  background: linear-gradient(125deg, #230609, #5e0c13 68%, #8d1119);
}

.dashboard-heading h1 {
  max-width: 900px;
  margin-bottom: 17px;
  font-family: Georgia, serif;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -.043em;
}

.dashboard-heading>p:not(.eyebrow) {
  max-width: 730px;
  color: #dec8ca;
}

.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 20px;
  color: #e7cacc;
  font-size: .68rem;
}

.evidence-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef6470;
  box-shadow: 0 0 0 4px rgba(239, 100, 112, .17);
}

.readiness-gauge {
  display: grid;
  place-items: center;
  width: 230px;
  height: 230px;
  margin: auto;
  border-radius: 50%;
  background: conic-gradient(#ed606b var(--gauge), rgba(255, 255, 255, .13) 0);
  position: relative;
}

.readiness-gauge::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: #4c0a10;
}

.readiness-gauge>div {
  position: relative;
  z-index: 1;
  display: grid;
  width: 170px;
  text-align: center;
}

.readiness-gauge strong {
  font-family: Georgia, serif;
  font-size: 3.5rem;
  line-height: 1;
}

.readiness-gauge span {
  margin-top: 6px;
  font-weight: 850;
}

.readiness-gauge small {
  color: #d4b7b9;
}

.diagnostic-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  margin: 28px clamp(22px, 8vw, 130px) 0;
  padding: 28px;
  border: 1px solid #e0c28f;
  border-left: 6px solid var(--amber);
  border-radius: var(--radius);
  background: #fff8e9;
}

.diagnostic-callout h2 {
  margin-bottom: 7px;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.diagnostic-callout p:last-child {
  margin: 0;
  color: #765b30;
}

.diagnostic-callout>button {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  padding: 28px clamp(22px, 8vw, 130px) 13px;
}

.metric-grid article {
  display: grid;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.metric-grid small {
  color: var(--red);
  font-size: .65rem;
  font-weight: 950;
  letter-spacing: .1em;
}

.metric-grid strong {
  margin: 8px 0 3px;
  font-family: Georgia, serif;
  font-size: 2.5rem;
}

.metric-grid span {
  color: var(--muted);
  font-size: .68rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  padding: 0 clamp(22px, 8vw, 130px) 13px;
}

.dashboard-grid.wide-left {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .65fr);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 7px 26px rgba(53, 25, 20, .04);
}

.panel>header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  padding: 23px 24px;
  border-bottom: 1px solid var(--line);
}

.panel>header h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.65rem;
}

.panel>header .eyebrow {
  margin-bottom: 5px;
}

.panel>header>span {
  color: var(--muted);
  font-size: .66rem;
}

.paper-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 24px;
}

.paper-comparison>div {
  display: grid;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbf9f5;
}

.paper-comparison b {
  color: var(--red);
}

.paper-comparison strong {
  margin: 8px 0 2px;
  font-family: Georgia, serif;
  font-size: 2.5rem;
}

.paper-comparison span {
  color: var(--muted);
  font-size: .68rem;
}

.paper-comparison>div>div,
.factor>div,
.progress-summary article>div:not(.readiness-gauge),
.table-meter {
  height: 6px;
  margin-top: 13px;
  border-radius: 10px;
  background: #e7dfd8;
  overflow: hidden;
}

.paper-comparison i,
.factor i,
.progress-summary i,
.table-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #dc3843);
}

.insight {
  margin: 0 24px 24px;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  color: #38576e;
  background: #eaf3f8;
  font-size: .78rem;
}

.readiness-factors {
  padding-bottom: 16px;
}

.factor {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 15px;
  padding: 13px 24px 4px;
}

.factor>span {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.factor>span small {
  color: var(--muted);
  font-size: .62rem;
}

.factor>strong {
  color: var(--red);
}

.factor>div {
  grid-column: 1 / -1;
  margin-top: 0;
}

.method-note {
  display: block;
  margin: 18px 24px 4px;
  color: var(--muted);
  line-height: 1.45;
}

.priority-panel {
  margin: 0 clamp(22px, 8vw, 130px) 13px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.priority-grid>article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 25px;
  border-right: 1px solid var(--line);
}

.priority-grid>article:last-child {
  border: 0;
}

.priority-rank {
  position: absolute;
  right: 20px;
  top: 18px;
  color: #e0d5cd;
  font-family: Georgia, serif;
  font-size: 2.5rem;
}

.priority-grid article>small {
  max-width: 75%;
  color: var(--red);
  font-weight: 900;
  letter-spacing: .08em;
}

.priority-grid h3 {
  max-width: 85%;
  margin: 9px 0 17px;
  font-family: Georgia, serif;
  font-size: 1.36rem;
}

.priority-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.priority-score b {
  font-family: Georgia, serif;
  font-size: 2.3rem;
}

.priority-score span {
  color: var(--muted);
  font-size: .65rem;
}

.priority-grid h4 {
  margin: 18px 0 6px;
}

.priority-grid p {
  color: var(--muted);
  font-size: .77rem;
}

.priority-grid article>div:last-child {
  display: flex;
  gap: 7px;
  margin-top: auto;
}

.priority-grid button {
  flex: 1;
  padding: 9px;
  border: 1px solid var(--red);
  border-radius: 7px;
  color: var(--red);
  background: transparent;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}

.priority-grid button:last-child {
  color: white;
  background: var(--red);
}

.chapter-analysis {
  min-width: 0;
}

.chapter-table {
  overflow-x: auto;
}

.chapter-table-head,
.chapter-table-row {
  display: grid;
  grid-template-columns: 1.7fr .7fr .65fr 1.1fr .55fr;
  gap: 12px;
  align-items: center;
  min-width: 680px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}

.chapter-table-head {
  border: 0;
  color: var(--muted);
  background: #f7f3ef;
  font-size: .64rem;
  font-weight: 900;
}

.chapter-table-row {
  font-size: .75rem;
}

.chapter-table-row>span:first-child {
  display: grid;
}

.chapter-table-row>span:first-child small {
  color: var(--muted);
}

.chapter-table-row>span:nth-child(4) {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.chapter-table-row .table-meter {
  margin: 0;
}

.chapter-table-row button {
  padding: 6px 9px;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.study-plan {
  padding-bottom: 20px;
}

.study-plan>article {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.study-plan>article>b {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  height: 29px;
  border-radius: 50%;
  color: white;
  background: var(--red);
}

.study-plan article small {
  color: var(--red);
  font-weight: 900;
}

.study-plan article h3 {
  margin: 3px 0 5px;
  font-size: .9rem;
}

.study-plan article p {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
}

.study-plan>button {
  margin: 20px 20px 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.activity-panel,
.achievements-panel {
  min-height: 375px;
}

.attempt-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 245px;
  padding: 28px 22px 18px;
}

.attempt-chart>div {
  display: grid;
  grid-template-rows: 190px auto;
  flex: 1;
  height: 100%;
  min-width: 28px;
  text-align: center;
}

.attempt-chart>div>span {
  position: relative;
  display: block;
  align-self: end;
  width: 100%;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
}

.attempt-chart span.good {
  background: var(--green);
}

.attempt-chart span.fair {
  background: var(--amber);
}

.attempt-chart span.low {
  background: var(--red);
}

.attempt-chart span i {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .62rem;
  font-style: normal;
  font-weight: 850;
}

.attempt-chart small {
  margin-top: 6px;
  color: var(--muted);
  font-size: .55rem;
}

.achievements-panel>div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  padding: 20px;
}

.achievements-panel article {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.achievements-panel article>span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 900;
}

.achievements-panel article.earned>span {
  color: white;
  background: var(--green);
}

.achievements-panel article.locked {
  opacity: .5;
}

.achievements-panel article.locked>span {
  background: #ded8d1;
}

.achievements-panel article b {
  font-size: .72rem;
}

.achievements-panel article small {
  color: var(--muted);
  font-size: .58rem;
}

.empty-panel {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-panel p {
  margin: 5px 0 15px;
}

.empty-panel button {
  padding: 9px 14px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: var(--red);
  font-weight: 850;
  cursor: pointer;
}

.profile-panel {
  margin: 0 clamp(22px, 8vw, 130px);
}

.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 13px;
  align-items: end;
  padding: 23px 24px 15px;
}

.profile-form label {
  display: grid;
  gap: 6px;
  font-size: .72rem;
  font-weight: 800;
}

.profile-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bdb3ab;
  border-radius: 7px;
  background: white;
}

.profile-form button {
  min-height: 43px;
  padding: 10px 16px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.exam-countdown {
  margin: 0 24px 15px;
  padding: 12px;
  border-left: 4px solid var(--amber);
  color: #75531b;
  background: var(--amber-soft);
}

.exam-countdown b {
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 24px 23px;
}

.data-actions button {
  padding: 8px 11px;
  border: 1px solid #b8aea6;
  border-radius: 7px;
  background: white;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.data-actions .danger-link {
  margin-left: auto;
  color: var(--red);
  border-color: #dfb6b9;
}

.progress-summary {
  display: grid;
  grid-template-columns: .8fr 1fr 1fr;
  gap: 14px;
  padding: 0 clamp(22px, 8vw, 130px) 30px;
}

.progress-summary>article {
  display: grid;
  align-content: center;
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.progress-summary .readiness-gauge {
  width: 205px;
  height: 205px;
  color: white;
}

.progress-summary article>small {
  color: var(--red);
  font-weight: 900;
  letter-spacing: .1em;
}

.progress-summary article>strong {
  margin: 10px 0;
  font-family: Georgia, serif;
  font-size: 3rem;
}

.progress-summary article>span {
  margin-top: 9px;
  color: var(--muted);
  font-size: .75rem;
}

.progress-chapters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  padding: 0 clamp(22px, 8vw, 130px) 30px;
}

.progress-chapters article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.progress-chapters header {
  display: flex;
  gap: 13px;
  align-items: center;
}

.progress-chapters header>span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: var(--red);
  font-family: Georgia, serif;
}

.progress-chapters header small {
  color: var(--red);
  font-weight: 900;
}

.progress-chapters h3 {
  margin: 3px 0;
  font-family: Georgia, serif;
}

.progress-chapters dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
}

.progress-chapters dl div {
  border-right: 1px solid var(--line);
  text-align: center;
}

.progress-chapters dl div:last-child {
  border: 0;
}

.progress-chapters dt {
  font-weight: 900;
}

.progress-chapters dd {
  margin: 0;
  color: var(--muted);
  font-size: .62rem;
}

.progress-chapters button {
  margin-top: 12px;
  padding: 7px 0;
  border: 0;
  color: var(--red);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.attempt-history {
  margin: 0 clamp(22px, 8vw, 130px) 80px;
}

.attempt-history>article {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
}

.history-score {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: white;
  font-weight: 900;
}

.history-score.good {
  background: var(--green);
}

.history-score.fair {
  background: var(--amber);
}

.history-score.low {
  background: var(--red);
}

.attempt-history h3 {
  margin: 0 0 4px;
  font-size: .92rem;
}

.attempt-history p {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
}

.attempt-history>article>button {
  padding: 8px 12px;
  border: 1px solid var(--red);
  border-radius: 7px;
  color: var(--red);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 40px;
  align-items: center;
  padding: 7.5vh 5vw;
  color: #c9a8aa;
    background: radial-gradient(var(--dark-maroon), var(--black));
}

.site-footer>div {
  display: grid;
  letter-spacing: .1em;
}

.site-footer>div strong {
  color: white;
}

.site-footer>div span {
  margin-top: 6px;
  font-size: .58rem;
}

.site-footer p {
  margin: 0;
  font-size: .7rem;
}

.site-footer button {
  padding: 8px 0;
  border: 0;
  color: #ef8e95;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

body.exam-open {
  overflow: hidden;
}

.exam-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: #ece6df;
  overflow-y: auto;
}

.exam-app {
  min-height: 100vh;
  background: #f7f4ef;
}

.exam-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 72px);
  color: white;
  background: #250609;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .25);
}

.exam-header>div {
  display: grid;
}

.exam-header small {
  color: #df898f;
  font-weight: 900;
  letter-spacing: .12em;
}

.exam-header strong {
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.exam-header button {
  padding: 8px 12px;
  border: 1px solid #bd7176;
  border-radius: 7px;
  color: white;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.exam-setup {
  width: min(720px, calc(100% - 30px));
  margin: 60px auto;
  padding: clamp(25px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.exam-setup>h2 {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.setup-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 25px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.setup-summary span {
  display: grid;
  padding: 13px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
  text-align: center;
}

.setup-summary span:last-child {
  border: 0;
}

.setup-summary b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.exam-setup>label {
  display: grid;
  gap: 6px;
  margin: 16px 0;
  font-size: .77rem;
  font-weight: 850;
}

.exam-setup select,
.exam-setup input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8aea6;
  border-radius: 8px;
  background: white;
}

.exam-setup label small {
  color: var(--muted);
  font-weight: 500;
}

.exam-instructions {
  margin: 24px 0;
  padding: 18px;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
}

.exam-instructions h3 {
  margin-bottom: 8px;
}

.exam-instructions ul {
  margin: 0;
  padding-left: 20px;
  font-size: .8rem;
}

.begin-exam {
  width: 100%;
}

.exam-workspace {
  max-width: 1000px;
  margin: 0 auto;
  padding: 25px 22px 100px;
}

.exam-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.exam-position {
  margin-right: auto;
}

.exam-timer {
  padding: 7px 11px;
  border-radius: 7px;
  color: white;
  background: var(--red);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.exam-timer.urgent {
  animation: timerPulse 1s infinite;
  background: #d41420;
}

@keyframes timerPulse {
  50% {
    box-shadow: 0 0 0 6px rgba(212, 20, 32, .17);
  }
}

.timer-visibility {
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
}

.question-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 17px 0 23px;
}

.question-palette button {
  width: 39px;
  height: 39px;
  border: 1px solid #bcb2aa;
  border-radius: 7px;
  background: white;
  font-weight: 850;
  cursor: pointer;
}

.question-palette button.active {
  outline: 3px solid #39302b;
  outline-offset: 2px;
}

.question-palette button.submitted {
  color: white;
  border-color: var(--green);
  background: var(--green);
}

.question-palette button.review {
  color: #5f3c04;
  border-color: #dfa63d;
  background: #f8ce7c;
}

.question-palette button.blocked {
  animation: blockedFlash .55s ease 2;
}

@keyframes blockedFlash {
  50% {
    transform: scale(1.15);
    background: #efabb0;
  }
}

.exam-question {
  padding: clamp(22px, 4vw, 38px);
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.exam-question>header {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}

.exam-question>header small {
  color: var(--red);
  font-weight: 900;
  letter-spacing: .1em;
}

.exam-question>header h2 {
  margin: 3px 0;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.exam-question>header>span {
  color: var(--muted);
  font-size: .75rem;
}

.exam-question>p {
  margin: 25px 0;
  font-size: 1.08rem;
  font-weight: 630;
  white-space: pre-line;
}

.exam-question>label {
  display: grid;
  gap: 7px;
  font-size: .75rem;
  font-weight: 850;
}

.exam-question textarea {
  width: 100%;
  min-height: 195px;
  padding: 14px;
  border: 1px solid #aca198;
  border-radius: 8px;
  background: #fffefb;
  resize: vertical;
}

.exam-question textarea:disabled {
  color: #37312d;
  background: #eee9e4;
}

.exam-question.submitted {
  border-color: #9dcab2;
}

.exam-question.review {
  border-color: #dca13a;
}

.exam-question.correct {
  border-color: var(--green);
  background: #f5fcf8;
}

.exam-question.incorrect {
  border-color: var(--red-bright);
  background: #fff7f7;
}

.question-status {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  margin-top: 7px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.question-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #aaa29b;
}

.submitted .question-status {
  color: var(--green);
}

.submitted .question-status span {
  background: var(--green);
}

.review .question-status {
  color: var(--amber);
}

.review .question-status span {
  background: var(--amber);
}

.question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.question-actions button,
.exam-navigation button,
.submit-exam {
  padding: 9px 14px;
  border: 1px solid #aba199;
  border-radius: 7px;
  background: white;
  font-weight: 850;
  cursor: pointer;
}

.question-actions [data-exam="submit-answer"],
.submit-exam {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.question-actions [data-exam="review"] {
  color: #6c4607;
  border-color: #d99f31;
  background: var(--amber-soft);
}

.question-solution {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.question-solution>strong {
  display: block;
  margin-top: 17px;
  padding: 12px;
  border-left: 4px solid var(--green);
  color: #115837;
  background: var(--green-soft);
}

.exam-navigation {
  display: flex;
  justify-content: space-between;
  margin: 19px 0;
}

.exam-navigation button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.submit-exam {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
}

.exam-message {
  min-height: 32px;
  margin-top: 12px;
  color: var(--red);
  text-align: center;
}

.result-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(27, 5, 7, .88);
  backdrop-filter: blur(7px);
  overflow-y: auto;
}

.result-card {
  width: min(620px, 100%);
  padding: clamp(25px, 5vw, 43px);
  border-radius: 23px;
  background: white;
  box-shadow: 0 35px 100px rgba(0, 0, 0, .42);
  text-align: center;
}

.result-card h2 {
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.result-ring {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 22px auto;
  border-radius: 50%;
  background: conic-gradient(var(--red-bright) var(--result), #e5ded7 0);
  position: relative;
}

.result-ring::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: white;
}

.result-ring>div {
  position: relative;
  z-index: 1;
  display: grid;
}

.result-ring strong {
  font-family: Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
}

.result-ring span {
  color: var(--muted);
  font-size: .74rem;
}

.result-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.result-stat-grid article {
  display: grid;
  padding: 10px;
  border-radius: 8px;
  background: #f2ede8;
}

.result-stat-grid strong {
  font-size: 1.2rem;
}

.result-stat-grid span {
  color: var(--muted);
  font-size: .62rem;
}

.result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 21px 0;
}

.result-actions button {
  padding: 9px 13px;
  border: 1px solid #aaa097;
  border-radius: 7px;
  background: white;
  font-weight: 850;
  cursor: pointer;
}

.result-actions [data-exam="restart"] {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.result-actions [data-exam="show-solutions"] {
  color: var(--green);
  border-color: var(--green);
}

.result-actions [data-exam="dashboard"] {
  color: var(--blue);
  border-color: var(--blue);
}

.result-card>small {
  display: block;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    right: 16px;
    left: 16px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav button {
    text-align: left;
  }

  .menu-button {
    display: block;
  }

  .learner-chip {
    margin-left: auto;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-readiness {
    max-width: 660px;
  }

  .chapter-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tutorial-layout {
    display: block;
  }

  .tutorial-sidebar {
    position: static;
    height: auto;
  }

  .tutorial-sidebar nav {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 18px;
  }

  .dashboard-grid.wide-left {
    grid-template-columns: 1fr;
  }

  .quick-quiz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {

  .proof-strip,
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-intro,
  .dashboard-grid,
  .dashboard-hero,
  .progress-summary {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .assessment-rules,
  .priority-grid {
    grid-template-columns: 1fr;
  }

  .priority-grid>article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .priority-grid>article:last-child {
    border-bottom: 0;
  }

  .dashboard-hero .readiness-gauge {
    order: -1;
  }

  .profile-form {
    grid-template-columns: 1fr;
  }

  .data-actions .danger-link {
    margin-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .progress-chapters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 9px 14px;
  }

  .brand small,
  .learner-chip b,
  .learner-chip small {
    display: none;
  }

  .learner-chip {
    display: block;
    padding: 4px;
    border: 0;
    background: transparent;
  }

  .learner-chip>span {
    width: 35px;
    height: 35px;
  }

  .home-hero {
    min-height: 0;
    padding: 60px 21px;
  }

  .hero-copy h1 {
    font-size: 3.05rem;
  }

  .hero-readiness {
    padding: 23px;
  }

  .hero-readiness dl,
  .setup-summary {
    grid-template-columns: 1fr;
  }

  .hero-readiness dl div,
  .setup-summary span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .setup-summary span {
    border-color: var(--line);
  }

  .proof-strip,
  .chapter-grid,
  .definition-grid,
  .quick-quiz-grid,
  .metric-grid,
  .paper-comparison,
  .progress-chapters {
    grid-template-columns: 1fr;
  }

  .home-section,
  .page-heading {
    padding-right: 21px;
    padding-left: 21px;
  }

  .chapter-grid {
    padding-right: 21px;
    padding-left: 21px;
  }

  .chapter-card {
    min-height: 0;
  }

  .tutorial-sidebar nav {
    grid-template-columns: 1fr;
  }

  .tutorial-hero {
    padding: 47px 21px;
  }

  .rule-row,
  .rule-head {
    grid-template-columns: 1fr;
  }

  .rule-head b:not(:first-child) {
    display: none;
  }

  .question-list header,
  .solution-list summary,
  .assessment-launcher,
  .chapter-complete,
  .diagnostic-callout,
  .exam-question>header {
    flex-direction: column;
    align-items: stretch;
  }

  .assessment-launcher>button {
    width: 100%;
  }

  .chapter-complete {
    margin-right: 18px;
    margin-left: 18px;
  }

  .dashboard-hero {
    padding-right: 21px;
    padding-left: 21px;
  }

  .dashboard-heading h1 {
    font-size: 2.7rem;
  }

  .readiness-gauge {
    width: 205px;
    height: 205px;
  }

  .diagnostic-callout,
  .priority-panel,
  .profile-panel,
  .attempt-history {
    margin-right: 16px;
    margin-left: 16px;
  }

  .metric-grid,
  .dashboard-grid,
  .progress-summary,
  .progress-chapters {
    padding-right: 16px;
    padding-left: 16px;
  }

  .panel>header {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .achievements-panel>div {
    grid-template-columns: 1fr;
  }

  .attempt-history>article {
    grid-template-columns: 58px 1fr;
  }

  .attempt-history>article>button {
    grid-column: 1 / -1;
  }

  .exam-header {
    align-items: flex-start;
    padding: 12px 15px;
  }

  .exam-header strong {
    font-size: .92rem;
  }

  .exam-header button {
    white-space: nowrap;
    font-size: .7rem;
  }

  .result-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  .site-footer,
  .diagnostic-callout,
  .profile-panel,
  .data-actions,
  .priority-grid button,
  .chapter-table button {
    display: none !important;
  }

  .dashboard-page {
    background: white;
  }

  .dashboard-hero {
    color: black;
    background: white;
    border-bottom: 2px solid var(--red);
  }

  .dashboard-heading>p:not(.eyebrow),
  .evidence-badge {
    color: #444;
  }

  .readiness-gauge {
    color: white;
    print-color-adjust: exact;
  }

  .metric-grid,
  .dashboard-grid {
    break-inside: avoid;
  }

  .panel {
    box-shadow: none;
  }
}

/* ========================================================================== */
/* SMOOTH ON-LOAD REVEALS */
/* ========================================================================== */

.onload-reaveals-left,
.onload-reaveals-bottom {
    opacity: 0;
    visibility: hidden;

    will-change: opacity, translate;

    transition:
        opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
        translate 1000ms cubic-bezier(0.16, 1, 0.3, 1);

    transition-delay: var(--reveal-delay, 0ms);
}


/* Reveal from left */

.onload-reaveals-left {
    translate: -40px 0;
}


/* Reveal from bottom */

.onload-reaveals-bottom {
    translate: 0 35px;
}


/* Final visible position */

.onload-reaveals-left.reveal-visible,
.onload-reaveals-bottom.reveal-visible {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
}
