/* Student section — zine / scrapbook brand (isolated from main site) */

@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/archivo-black.woff2") format("woff2");
}

@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/permanent-marker.woff2") format("woff2");
}

@font-face {
  font-family: "Special Elite";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/special-elite.woff2") format("woff2");
}

body.student-theme {
  --st-ink: #0d0d0d;
  --st-paper: #f3eee4;
  --st-paper-deep: #e8e0d2;
  --st-yellow: #e4c000;
  --st-yellow-hot: #f5d400;
  --st-purple: #7a2f86;
  --st-purple-deep: #5c2468;
  --st-magenta: #a83caa;
  --st-cream: #f7f1e6;
  --st-tape: #141414;
  --st-wrap: min(68rem, calc(100% - 2.5rem));
  --st-section-y: clamp(2.75rem, 6vw, 4.5rem);
  --font-display: "Archivo Black", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-marker: "Permanent Marker", "Segoe Print", "Comic Sans MS", cursive;
  --font-type: "Special Elite", "Courier New", Courier, monospace;
  --background: var(--st-paper);
  --background-elevated: var(--st-cream);
  --foreground: var(--st-ink);
  --secondary: #3f3a35;
  --border: #cfc6b6;
  --border-strong: #171717;
  --human: var(--st-purple);
  --ai: var(--st-yellow);
  --judgment: var(--st-magenta);
  background: var(--st-paper);
  color: var(--st-ink);
}

/* —— Site chrome —— */
body.student-theme .site-header {
  background: #0a0a0a;
  border-bottom: 0;
  box-shadow: inset 0 -3px 0 var(--st-yellow);
  backdrop-filter: none;
}

body.student-theme .site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: inset 0 -3px 0 var(--st-yellow), 0 10px 28px rgba(0, 0, 0, 0.35);
}

body.student-theme .site-header__inner {
  padding-block: 0.8rem;
}

body.student-theme .site-header.is-scrolled .site-header__inner {
  padding-block: 0.6rem;
}

body.student-theme .brand__logo {
  filter: invert(1) brightness(1.05);
}

body.student-theme .site-header a,
body.student-theme .nav-desktop a,
body.student-theme .nav-desktop .nav-drop__btn,
body.student-theme .menu-toggle {
  color: #f0ebe1;
}

body.student-theme .menu-toggle {
  border-color: rgba(240, 235, 225, 0.35);
}

body.student-theme .nav-desktop {
  gap: 0.25rem 0.95rem;
}

body.student-theme .nav-desktop > a:not(.btn),
body.student-theme .nav-drop__btn {
  position: relative;
  color: rgba(240, 235, 225, 0.78);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

body.student-theme .nav-desktop > a:not(.btn):hover,
body.student-theme .nav-drop__btn:hover,
body.student-theme .nav-drop.is-open .nav-drop__btn {
  color: #fff;
}

body.student-theme .nav-desktop > a:not(.btn).is-active,
body.student-theme .nav-drop__btn.is-active {
  color: var(--st-yellow-hot);
}

body.student-theme .nav-desktop > a:not(.btn).is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 3px;
  background: var(--st-yellow);
  transform: skewX(-12deg);
}

body.student-theme .nav-drop__panel {
  background: #141414;
  border-color: #333;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

body.student-theme .nav-drop__panel a {
  color: #d9d2c4;
  font-weight: 600;
}

body.student-theme .nav-drop__panel a:hover,
body.student-theme .nav-drop__panel a.is-active {
  color: #fff;
  background: #222;
}

body.student-theme .mobile-nav__group summary {
  color: #f0ebe1;
}

body.student-theme .mobile-nav__group a {
  color: rgba(240, 235, 225, 0.8);
  border-color: #333;
}

body.student-theme .btn-nav,
body.student-theme .btn-primary {
  background: var(--st-yellow);
  color: var(--st-ink);
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--st-magenta);
  font-weight: 700;
}

body.student-theme .btn-primary:hover,
body.student-theme .btn-nav:hover {
  background: var(--st-yellow-hot);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--st-magenta);
}

body.student-theme .btn-secondary {
  background: #fff;
  color: var(--st-ink);
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--st-purple);
}

body.student-theme .mobile-nav {
  background: #0a0a0a;
  color: #f0ebe1;
}

body.student-theme .mobile-nav a {
  color: #f0ebe1;
}

body.student-theme .site-footer {
  background: var(--st-ink);
  color: #f3eee4;
  border-top: 4px solid var(--st-purple);
}

body.student-theme .site-footer a,
body.student-theme .site-footer .muted,
body.student-theme .site-footer .footer-brand__def,
body.student-theme .site-footer .footer-bottom {
  color: #d9d2c4;
}

body.student-theme .site-footer .brand__logo {
  filter: invert(1) brightness(1.05);
}

body.student-theme .reading-progress__bar {
  background: linear-gradient(90deg, var(--st-yellow), var(--st-magenta));
}

/* —— Page shell —— */
.student {
  overflow-x: clip;
}

.student .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.student-wrap {
  width: var(--st-wrap);
  margin: 0 auto;
}

.student-section {
  padding: var(--st-section-y) 0;
}

.student-section--dark {
  background: #0b0b0b;
  color: #f7f1e6;
}

.student-section--dark + .student-section--dark {
  padding-top: 0.5rem;
}

.student-section--paper + .student-section:not(.student-section--dark):not(.student-section--paper) {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

.student-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-marker);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--st-purple);
  transform: rotate(-1deg);
}

.student-section--dark .student-eyebrow {
  color: var(--st-yellow);
}

.student-eyebrow--ink {
  color: var(--st-purple) !important;
}

.student-display {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.85rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.student-mark {
  background: linear-gradient(transparent 58%, rgba(228, 192, 0, 0.8) 58%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.12em;
}

.student-mark--purple {
  background: linear-gradient(transparent 58%, rgba(168, 60, 170, 0.4) 58%);
}

/* —— Hero —— */
.student-hero {
  position: relative;
  min-height: min(68vh, 36rem);
  display: grid;
  align-items: center;
  color: #fff;
  background: #0a0a0a;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 3px solid var(--st-yellow);
}

.student-hero__texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.student-hero__inner {
  position: relative;
  z-index: 1;
  width: var(--st-wrap);
  margin: 0 auto;
  padding: 2.75rem 0 3.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12.5rem, 17.5rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.student-hero__copy {
  min-width: 0;
}

.student-hero__eyebrow {
  margin: 0 0 1rem;
}

.student-tape {
  display: inline-block;
  background: var(--st-tape);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  transform: rotate(-1.2deg);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}

.student-tape--yellow {
  background: var(--st-yellow);
  color: var(--st-ink);
}

.student-hero__title {
  margin: 0;
  display: block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--st-ink);
  background: var(--st-yellow);
  padding: 0.35rem 0.55rem 0.45rem;
  box-shadow: 6px 6px 0 #000;
  transform: rotate(-1deg);
}

.student-hero__support {
  margin: 1.2rem 0 0;
  max-width: 24ch;
  font-family: var(--font-marker);
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 400;
  line-height: 1.25;
  color: #f3eee4;
  text-transform: none;
  letter-spacing: 0;
}

.student-hero__lead {
  margin: 0.85rem 0 0;
  max-width: 26rem;
  font-family: var(--font-type);
  font-size: 0.98rem;
  line-height: 1.45;
  color: #cfc6b6;
}

.student-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin-top: 1.45rem;
}

.student-hero__textlink {
  font-family: var(--font-marker);
  font-size: 1.1rem;
  color: var(--st-yellow);
  text-decoration: none;
}

.student-hero__textlink:hover {
  color: #fff;
}

.student-hero__poster {
  position: relative;
  justify-self: stretch;
  width: 100%;
  padding-bottom: 0.75rem;
}

.student-poster {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 1.15rem 0.9rem 1rem;
  background: #111;
  border: 3px solid #fff;
  box-shadow: 7px 7px 0 var(--st-purple);
  transform: rotate(1.5deg);
}

.student-poster__you {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.student-poster__ai {
  display: inline-block;
  margin: 0.1rem 0;
  padding: 0.15rem 0.7rem 0.22rem;
  background: var(--st-yellow);
  color: #000;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 var(--st-magenta);
  transform: rotate(-1.5deg);
}

.student-poster__arrow {
  font-family: var(--font-marker);
  font-size: 1.15rem;
  color: var(--st-yellow);
  line-height: 1;
}

.student-poster__note {
  margin: 0.55rem 0 0;
  font-family: var(--font-type);
  font-size: 0.82rem;
  color: #d9d2c4;
  text-align: center;
  line-height: 1.35;
}

.student-hero__decides {
  position: absolute;
  right: 0;
  bottom: -0.15rem;
  margin: 0;
  font-family: var(--font-marker);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--st-magenta);
  transform: rotate(7deg);
  text-shadow: 2px 2px 0 #000;
}

/* —— Results / flow —— */
.student-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.student-flow__step {
  text-align: center;
  padding: 1rem 0.7rem 0.95rem;
  background: #fff;
  color: var(--st-ink);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 var(--st-purple);
}

.student-flow__step:nth-child(1) { transform: rotate(-0.8deg); }
.student-flow__step:nth-child(2) {
  background: var(--st-yellow);
  box-shadow: 4px 4px 0 #000;
  transform: rotate(0.8deg);
}
.student-flow__step:nth-child(3) { transform: rotate(-1.1deg); }

.student-flow__label {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  text-transform: uppercase;
  line-height: 1;
}

.student-flow__note {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-type);
  font-size: 0.88rem;
  line-height: 1.3;
}

.student-note {
  position: relative;
  margin: 1.75rem auto 0;
  max-width: 40rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: #fffdf7;
  border: 2px solid #000;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.85);
  transform: rotate(-0.5deg);
}

.student-note::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  width: 4rem;
  height: 0.95rem;
  background: rgba(228, 192, 0, 0.55);
  transform: rotate(-2deg);
}

.student-note p {
  margin: 0;
  font-family: var(--font-type);
  font-size: 1rem;
  line-height: 1.5;
}

/* —— Map / chapters —— */
.student-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem auto 0;
  width: min(100%, 52rem);
}

.student-chapter {
  padding: 1.1rem 1.1rem 1.2rem;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 var(--st-ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.student-chapter:nth-child(odd) { transform: rotate(-0.35deg); }
.student-chapter:nth-child(even) { transform: rotate(0.4deg); }

.student-chapter:hover {
  transform: translate(-2px, -2px) rotate(0deg);
  box-shadow: 6px 6px 0 var(--st-purple);
}

.student-chapter__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.student-chapter__num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 2.15rem;
  height: 2.15rem;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.student-chapter h3 {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.9vw, 1.12rem);
  text-transform: uppercase;
  line-height: 1.25;
  background: rgba(228, 192, 0, 0.78);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.12rem 0.28rem;
}

.student-chapter p {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #2d2a26;
}

/* —— Reality —— */
.student-reality {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(11rem, 0.55fr);
  gap: 1.15rem 1.35rem;
  align-items: center;
}

.student-paper {
  position: relative;
  padding: 1.35rem 1.25rem 1.45rem 1.85rem;
  background: #fffdf8;
  color: var(--st-ink);
  border: 2px solid #000;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.9);
}

.student-paper::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 2px;
  background: repeating-linear-gradient(#c45b5b 0 10px, transparent 10px 18px);
  opacity: 0.5;
}

.student-paper .student-display {
  max-width: 14ch;
  color: var(--st-ink);
}

.student-tags {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 0.55rem;
}

.student-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  background: var(--st-purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid #000;
  box-shadow: 3px 3px 0 #000;
}

.student-tag:nth-child(odd) { transform: rotate(-1deg); }
.student-tag:nth-child(even) {
  background: var(--st-yellow);
  color: #000;
  transform: rotate(1deg);
  margin-left: 0.85rem;
}

.student-checklist {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.student-checklist li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.65rem;
  font-family: var(--font-type);
  font-size: 0.95rem;
  line-height: 1.35;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.16);
}

.student-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  background: var(--st-yellow);
  border: 1.5px solid #000;
  font-family: var(--font-marker);
  font-size: 0.85rem;
  line-height: 1;
}

.student-banner {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1.1rem auto 0;
  padding: 0.5rem 0.75rem;
  background: var(--st-purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-0.8deg);
  box-shadow: 3px 3px 0 #000;
}

/* —— One-liner (compact horizontal, not a second hero) —— */
.student-oneline {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.student-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 0.75rem;
  width: 100%;
  max-width: 42rem;
}

.student-stack__you,
.student-stack__ai {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.95;
}

.student-stack__you {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.student-stack__ai {
  padding: 0.15rem 0.7rem 0.22rem;
  background: #fff;
  color: #000;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 var(--st-yellow);
  transform: rotate(-1deg);
}

.student-stack__arrow {
  font-family: var(--font-marker);
  font-size: 1.35rem;
  color: var(--st-yellow);
}

.student-stack__aside {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  font-family: var(--font-marker);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--st-yellow);
}

.student-stack__aside span {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.student-sticky {
  width: min(100%, 30rem);
  margin-inline: auto;
  padding: 1rem 1.15rem;
  background: var(--st-yellow);
  color: #000;
  border: 2px solid #000;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.75);
  transform: rotate(-1.2deg);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.student-sticky::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 0.8rem;
  margin: -1.25rem auto 0.7rem;
  background: rgba(180, 180, 180, 0.65);
  transform: rotate(2deg);
}

.student-closeout {
  display: block;
  margin: 0 auto;
  width: min(100%, 44rem);
  padding: 0.85rem 1.1rem;
  background: #111;
  color: #fff;
  border: 2px solid var(--st-yellow);
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 2.4vw, 1.15rem);
  line-height: 1.25;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.02em;
}

/* —— Judgment —— */
.student-judge {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.75fr);
  gap: 1.15rem 1.35rem;
  margin: 1.35rem auto 0;
  max-width: 52rem;
  align-items: start;
  justify-items: stretch;
}

.student-checkcard {
  background: #fff;
  border: 2px solid #000;
  padding: 1.15rem 1.15rem 1.25rem;
  box-shadow: 5px 5px 0 var(--st-purple);
}

.student-checkcard h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-marker);
  font-size: 1.4rem;
  color: var(--st-purple);
}

.student-check {
  display: grid;
  gap: 0.75rem;
}

.student-check--panel {
  margin: 1.25rem auto 0;
  width: min(100%, 40rem);
  background: #fff;
  border: 2px solid #000;
  padding: 1.15rem;
  box-shadow: 5px 5px 0 var(--st-purple);
  color: #0d0d0d;
}

.student-check article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.16);
}

.student-check article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.student-box {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  border: 2px solid var(--st-purple);
  background: #fff;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--st-yellow);
}

.student-check strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.student-check p {
  margin: 0.12rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #3a3530;
}

.student-side-stack {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.student-callout {
  margin: 0 auto;
  width: min(100%, 36rem);
  padding: 1rem;
  background: var(--st-purple);
  color: #fff;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(1deg);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  text-transform: uppercase;
  line-height: 1.15;
  text-align: center;
}

.student-mini-sticky {
  width: min(100%, 20rem);
  margin-inline: auto;
  padding: 0.9rem 0.95rem;
  background: var(--st-yellow);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-1.2deg);
}

.student-mini-sticky h4 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.student-mini-sticky ul {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.student-paint {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.student-paint span {
  display: grid;
  place-items: center;
  padding: 0.7rem 0.65rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(0.82rem, 1.8vw, 1.05rem);
  line-height: 1.15;
  text-align: center;
  border: 2px solid #000;
}

.student-paint span:nth-child(1) {
  background: #111;
  color: #fff;
  transform: rotate(-0.5deg);
}

.student-paint span:nth-child(2) {
  background: var(--st-yellow);
  color: #000;
  transform: rotate(0.6deg);
}

.student-paint span:nth-child(3) {
  background: var(--st-purple);
  color: #fff;
  transform: rotate(-0.3deg);
}

/* —— CTA —— */
.student-cta {
  padding: 1.75rem 1.25rem;
  background: var(--st-yellow);
  border: 3px solid #000;
  box-shadow: 7px 7px 0 var(--st-purple);
  text-align: center;
}

.student-cta h2 {
  margin: 0 auto;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  text-transform: uppercase;
  line-height: 0.98;
}

.student-cta p {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  font-family: var(--font-type);
  font-size: 0.98rem;
  line-height: 1.45;
}

.student-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.student-cta__actions .btn {
  min-height: 2.75rem;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .student-hero__inner {
    grid-template-columns: 1fr;
    padding: 2.35rem 0 2.75rem;
  }

  .student-hero__poster {
    max-width: 17rem;
    justify-self: start;
  }

  .student-poster {
    transform: rotate(-1deg);
  }

  .student-reality,
  .student-judge {
    grid-template-columns: 1fr;
  }

  .student-tags {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .student-paint {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  body.student-theme {
    --st-wrap: min(68rem, calc(100% - 1.5rem));
    --st-section-y: 2.5rem;
  }

  .student-hero {
    min-height: 0;
  }

  .student-hero__title {
    font-size: clamp(2.1rem, 11vw, 2.8rem);
    transform: rotate(-0.6deg);
  }

  .student-flow,
  .student-map-grid {
    grid-template-columns: 1fr;
  }

  .student-flow__step,
  .student-chapter,
  .student-chapter:nth-child(odd),
  .student-chapter:nth-child(even) {
    transform: none;
  }

  .student-stack__you {
    font-size: 1.7rem;
  }

  .student-stack__ai {
    font-size: 1.5rem;
  }

  .student-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .student-cta__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-chapter {
    transition: none;
  }
}

/* —— Email gate (blur overlay toast) —— */
body.student-locked {
  overflow: hidden;
}

body.student-locked .student-hero,
body.student-locked .student-guide,
body.student-locked .site-footer {
  filter: blur(7px);
  transform: scale(1.01);
  pointer-events: none;
  user-select: none;
}

body.student-locked .site-header {
  filter: blur(4px);
  pointer-events: none;
}

.student-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  overflow: auto;
}

.student-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 214, 10, 0.12), transparent 55%),
    rgba(8, 8, 8, 0.62);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

.student-gate__toast {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  margin: auto;
  padding: 1.35rem 1.25rem 1.45rem;
  background: var(--st-cream);
  color: var(--st-ink);
  border: 3px solid #000;
  box-shadow:
    10px 10px 0 var(--st-purple),
    0 18px 50px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.5deg);
  animation: student-toast-in 0.45s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.student-gate__toast .student-display {
  margin-top: 0.85rem;
  margin-bottom: 0;
  color: var(--st-ink);
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1.05;
}

.student-gate__toast .student-type {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

@keyframes student-toast-in {
  from {
    opacity: 0;
    transform: rotate(-0.5deg) translateY(1.25rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: rotate(-0.5deg) translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-gate__toast {
    animation: none;
  }
}

.student-gate__form {
  position: relative;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.student-gate__form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.student-gate__form input[type="email"],
.student-gate__form select {
  border: 2px solid #000;
  border-radius: 0;
  padding: 0.7rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--st-ink);
}

.student-gate__form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.student-gate__form .form-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.4;
}

.student-gate__form .form-check input {
  margin-top: 0.2rem;
}

.student-gate__form .btn-primary {
  width: 100%;
  justify-content: center;
}

.student-guide[hidden] {
  display: none !important;
}

/* —— Guide chrome —— */
.student-toc {
  position: sticky;
  top: var(--header-h, 4.5rem);
  z-index: 15;
  background: #0a0a0a;
  border-bottom: 2px solid var(--st-yellow);
}

.student-toc__inner {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.65rem 0;
  scrollbar-width: thin;
}

.student-toc__inner a {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border: 2px solid transparent;
  color: #d9d2c4;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.student-toc__inner a:hover {
  color: var(--st-yellow);
  border-color: var(--st-yellow);
}

/* —— Rules / stat —— */
.student-rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 1.25rem auto 0;
  max-width: 40rem;
  justify-items: center;
}

.student-stat {
  width: min(100%, 22rem);
  padding: 1.25rem 1.2rem;
  background: var(--st-purple);
  color: #fff;
  border: 2px solid #000;
  box-shadow: 5px 5px 0 #000;
  transform: rotate(-1deg);
  text-align: center;
}

.student-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 0.9;
}

.student-stat p {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.student-dont {
  width: 100%;
  background: #fff;
  border: 2px solid #000;
  padding: 1rem;
  box-shadow: 4px 4px 0 var(--st-ink);
  color: var(--st-ink);
}

.student-dont h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
}

.student-dont ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.student-dont li {
  display: grid;
  gap: 0.4rem;
}

.student-dont button {
  width: 100%;
  text-align: left;
  border: 2px solid #000;
  background: #fff;
  padding: 0.55rem 0.65rem;
  font: inherit;
  cursor: pointer;
}

.student-dont button.is-active,
.student-dont button:hover {
  background: var(--st-yellow);
}

.student-dont__rebuttal {
  margin: 0;
  padding: 0.7rem 0.8rem;
  background: var(--st-yellow);
  border: 2px solid #000;
  font-family: var(--font-marker);
  font-size: 1.05rem;
}

/* —— Accordion —— */
.student-accordion {
  display: grid;
  gap: 0.65rem;
  margin: 1.15rem auto 0;
  width: min(100%, 44rem);
}

.student-acc {
  background: #fff;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 var(--st-purple);
  color: var(--st-ink);
}

.student-acc summary,
.student-acc__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: inherit;
  text-transform: uppercase;
  list-style: none;
}

.student-acc--open .student-acc__head {
  cursor: default;
}

.student-acc summary::-webkit-details-marker {
  display: none;
}

.student-acc p {
  margin: 0;
  padding: 0 1rem 1rem 1rem;
  font-size: 0.98rem;
  line-height: 1.45;
}

/* —— Use cards / prompts —— */
.student-use-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.15rem auto 0;
  width: min(100%, 56rem);
}

.student-use-card {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  text-align: left;
  padding: 0.95rem;
  background: #fff;
  color: var(--st-ink);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 var(--st-ink);
  cursor: pointer;
  font: inherit;
}

.student-use-card--static {
  cursor: default;
}

.student-use-card strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.student-use-card span {
  font-size: 0.9rem;
  line-height: 1.4;
}

.student-use-card em {
  font-family: var(--font-marker);
  font-style: normal;
  color: var(--st-purple);
  font-size: 0.9rem;
}

.student-use-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--st-magenta);
}

.student-use-card--static:hover {
  transform: none;
  box-shadow: 4px 4px 0 var(--st-ink);
}

.student-prompt-drawer {
  margin: 1rem auto 0;
  width: min(100%, 48rem);
  padding: 1rem;
  background: var(--st-yellow);
  border: 2px solid #000;
  color: var(--st-ink);
  text-align: center;
}

.student-prompt-drawer .student-eyebrow {
  text-align: center;
}

.student-prompt-box,
.student-prompt-out {
  display: block;
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 0.85rem;
  background: #111;
  color: #f3eee4;
  border: 2px solid #000;
  font-family: var(--font-type);
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
  text-align: left;
}

.student-prompt-drawer .btn {
  margin-top: 0.85rem;
}

.student-prompt-out {
  margin-top: 1rem;
}

/* —— Compare tabs —— */
.student-compare {
  margin-inline: auto;
  max-width: 48rem;
}

.student-compare__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.student-compare__tabs button {
  border: 2px solid #000;
  background: #fff;
  color: var(--st-ink);
  padding: 0.45rem 0.75rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
}

.student-compare__tabs button.is-active {
  background: var(--st-yellow);
}

.student-compare__panel {
  background: #fff;
  color: var(--st-ink);
  border: 2px solid #000;
  padding: 1rem;
  box-shadow: 4px 4px 0 var(--st-purple);
}

/* —— Judgment extras —— */
.student-check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.student-check-row:last-child {
  border-bottom: 0;
}

.student-check-row input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--st-purple);
}

.student-check-row strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.88rem;
}

.student-check-row em,
.student-check-row small {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  color: #3a3530;
  margin-top: 0.15rem;
}

.student-xlist {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.student-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin: 1.25rem auto 0;
  max-width: 48rem;
}

.student-vs > div {
  background: #fff;
  color: var(--st-ink);
  border: 2px solid #000;
  padding: 1rem;
  box-shadow: 4px 4px 0 var(--st-ink);
}

.student-vs h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.student-vs > span {
  align-self: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* —— Skills / worksheet —— */
.student-pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.15rem auto 0;
  width: min(100%, 56rem);
}

.student-pillars article {
  background: #fff;
  color: var(--st-ink);
  border: 2px solid #000;
  padding: 0.85rem;
  box-shadow: 3px 3px 0 var(--st-yellow);
}

.student-pillars h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--st-purple);
}

.student-pillars ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.student-worksheet {
  display: grid;
  gap: 0.85rem;
  margin: 1.15rem auto 0;
  width: 100%;
  max-width: 40rem;
}

.student-worksheet--inline {
  max-width: none;
}

.student-worksheet--inline .student-dir-actions {
  margin-top: 1rem;
  justify-content: center;
}

.student-worksheet--inline .student-dir-actions .btn {
  justify-self: auto;
  width: auto;
  min-width: 10rem;
}

.student-worksheet--inline [data-dir-status] {
  text-align: center;
}

.student-worksheet label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.85rem;
}

.student-worksheet textarea,
.student-chapter textarea {
  width: 100%;
  border: 2px solid #000;
  border-radius: 0;
  padding: 0.65rem;
  font-family: var(--font-type);
  font-size: 0.95rem;
  resize: vertical;
  background: #fff;
  color: var(--st-ink);
}

.student-worksheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.student-form-status,
.student-worksheet [data-ws-status] {
  margin: 0.75rem 0 0;
}

.student-form-status.is-error,
.student-worksheet [data-ws-status].is-error {
  color: #8b1e1e;
  font-weight: 600;
}

.student-chapter__num-like {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  background: var(--st-yellow);
  padding: 0.15rem 0.4rem;
  border: 2px solid #000;
}

@media (max-width: 960px) {
  .student-vs,
  .student-use-grid,
  .student-pillars,
  .student-judge {
    grid-template-columns: 1fr;
  }

  .student-use-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-mini-sticky {
    width: min(100%, 24rem);
  }
}

@media (max-width: 700px) {
  .student-use-grid {
    grid-template-columns: 1fr;
  }
}
