:root {
  --navy: #063b70;
  --navy2: #0d4f86;
  --cyan: #10bde8;
  --lime: #b9e63a;
  --ink: #18364f;
  --muted: #536f84;
  --line: #c7d9e5;
  --wash: #edf4f7;
  --pale: #eef8fc;
  --green: #f0f8d9;
  --amber: #fff8de;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
a {
  font: inherit;
}
button,
.button {
  min-height: 48px;
  border: 1px solid #86a1b6;
  border-radius: 9px;
  padding: 12px 18px;
  background: white;
  color: var(--navy);
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: var(--pale);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.primary:hover {
  background: var(--navy2);
}
:focus-visible {
  outline: 3px solid #047caa;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px max(22px, calc((100vw - 1040px) / 2));
  background: var(--navy);
  color: white;
}
.site-header img {
  width: 146px;
  display: block;
}
.identity {
  text-align: center;
}
.identity p {
  margin: 0;
  font-size: 24px;
  display: block;
  line-height: 1.2;
}
.identity h1 {
  display: block;
  font-size: 14px;
  color: #c9e8f6;
  margin-top: 5px;
}
.utility {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.utility button {
  min-height: 44px;
  font-size: 13px;
  padding: 8px;
}
main {
  max-width: 1040px;
  margin: auto;
  padding: 26px 22px 30px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  margin-bottom: 10px;
}
.progress-meta strong {
  color: var(--navy);
}
.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.stepper li {
  display: grid;
  min-height: 58px;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-top: 5px solid #cbdbe6;
  border-radius: 9px;
  padding: 9px 10px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}
.stepper .current {
  border-top-color: var(--cyan);
  background: var(--pale);
  color: var(--navy);
}
.stepper .done {
  border-top-color: var(--lime);
  background: #f6fae9;
}
.stepper-number {
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dce8ef;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}
.stepper .current .stepper-number {
  background: var(--cyan);
}
.stepper .done .stepper-number {
  background: var(--lime);
}
.stepper strong {
  font-size: 13px;
}
.screen {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 8px 22px #1644690d;
}
h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.22;
}
.screen > h2 {
  font-size: clamp(29px, 4vw, 44px);
  margin: 8px 0 22px;
  letter-spacing: -0.025em;
}
.screen > h2:focus {
  outline: none;
}
h2 {
  font-size: 23px;
  margin: 0 0 14px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
p {
  margin: 0 0 18px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 850;
  color: var(--navy);
}
.lead {
  font-size: 22px;
  line-height: 1.4;
  max-width: 700px;
}
.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.learn-grid > div {
  padding: 17px 18px;
  background: var(--pale);
  border-left: 4px solid var(--cyan);
  font-weight: 650;
}
.note {
  background: var(--pale);
  border-left: 4px solid var(--cyan);
  padding: 18px 20px;
  margin: 22px 0;
}
.nav-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.nav-band > * {
  width: 100%;
  min-width: 0;
}
.quiz {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.choices {
  display: grid;
  gap: 10px;
}
.choice {
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px;
  font-weight: 500;
  width: 100%;
  padding: 16px;
}
.choice .letter {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
}
.choice.selected {
  border: 2px solid var(--navy);
  padding: 15px;
  background: var(--pale);
}
.choice.correct {
  border: 2px solid #507018;
  padding: 15px;
  background: var(--green);
}
.choice:disabled {
  opacity: 1;
  cursor: default;
}
.check {
  margin-top: 18px;
  width: 100%;
}
.feedback {
  border-radius: 10px;
  background: var(--amber);
  border: 1px solid #d8c683;
  padding: 18px;
  margin-top: 20px;
}
.feedback.success {
  background: var(--green);
  border-color: #bed28b;
}
.feedback p:last-child {
  margin-bottom: 0;
}
.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfd;
  padding: 22px;
  min-width: 0;
}
.panel ul {
  padding-left: 20px;
  margin-bottom: 0;
}
li {
  margin-bottom: 10px;
}
.worked-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.response {
  border-left: 4px solid var(--cyan);
  padding-left: 18px;
  margin: 14px 0;
  font-size: 17px;
}
.reveal {
  margin-top: 20px;
}
.takeaway {
  border: 1px solid var(--line);
  border-top: 5px solid var(--cyan);
  border-radius: 10px;
  padding: 24px;
  margin: 24px 0;
  background: #f8fbfd;
}
.takeaway .card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.takeaway dt {
  font-weight: 750;
  color: var(--navy);
}
.takeaway dd {
  margin: 3px 0 15px;
}
.closing {
  font-weight: 800;
  color: var(--navy);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.series-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--navy);
  text-underline-offset: 4px;
}
.site-footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 0 20px 24px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: 88dvh;
  color: var(--ink);
  box-shadow: 0 24px 80px #001c3c55;
}
dialog::backdrop {
  background: #05233cc4;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.close {
  flex: 0 0 40px;
  min-height: 40px;
  width: 40px;
  padding: 0;
  font-size: 25px;
}
.dialog-top h2 {
  margin: 7px 0 20px;
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--navy);
  padding-right: 10px;
}
details p {
  margin: 14px 0 0;
}
.dialog-return {
  width: 100%;
  margin-top: 20px;
}
#restart-dialog {
  max-width: 560px;
}
#restart-dialog .nav-band {
  margin-top: 16px;
}
@media (max-width: 650px) {
  .evidence-grid,
  .takeaway .card-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 16px 20px;
  }
  .header-space {
    display: none;
  }
  .identity {
    text-align: right;
  }
  .site-header img {
    width: 112px;
  }
  .identity p {
    font-size: 21px;
  }
  .identity h1 {
    font-size: 12px;
  }
  .screen {
    padding: 24px 20px;
  }
  .learn-grid {
    grid-template-columns: 1fr;
  }
  main {
    padding: 22px 12px;
  }
  .stepper li {
    font-size: 11px;
  }
  .nav-band {
    gap: 10px;
  }
  .nav-band button,
  .nav-band .button {
    font-size: 14px;
    padding: 12px 8px;
  }
  .lead {
    font-size: 20px;
  }
}
@media (max-width: 430px) {
  .site-header {
    padding: 12px 10px;
    gap: 6px;
  }
  .site-header img {
    width: 88px;
  }
  .identity p {
    font-size: 18px;
  }
  .identity h1 {
    font-size: 11px;
  }
  .utility {
    gap: 7px;
    padding: 10px;
  }
  .utility button {
    font-size: 12px;
    padding: 6px 3px;
  }
  .stepper {
    gap: 6px;
  }
  .stepper li {
    display: flex;
    min-height: 54px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 6px 3px;
    text-align: center;
  }
  .stepper-number {
    width: 22px;
    height: 22px;
  }
  .stepper strong {
    font-size: 10px;
  }
  dialog {
    padding: 20px;
  }
  #restart-dialog .nav-band {
    grid-template-columns: 1fr;
  }
}

/* Review refinements: neutral explanations, persistent dialog controls, nearby evidence. */

.answer-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.025em;
  margin-bottom: 4px;
  color: var(--navy);
}
.notes-access {
  display: none;
  margin: 0 0 18px;
  font-size: 14px;
}
.takeaway-download {
  width: 100%;
  margin-top: 4px;
}
#faq[open],
#notes-dialog[open] {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
#faq .dialog-top,
#notes-dialog .dialog-top {
  flex: none;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--line);
  background: white;
}
#faq .dialog-top h2,
#notes-dialog .dialog-top h2 {
  margin-bottom: 8px;
}
.dialog-scroll {
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
  padding: 20px 24px 24px;
}
@media (max-width: 650px) {
  .notes-access {
    display: inline-flex;
  }
  #faq .dialog-top,
  #notes-dialog .dialog-top {
    padding: 16px 20px 12px;
  }
  .dialog-scroll {
    padding: 18px 20px 20px;
  }
}

/* LevelUP question and feedback components, from the reference lab. */
:root {
  --red: #8a351f;
}
.decision-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 9px;
}
.decision-feedback strong {
  display: block;
}
.decision-feedback.incorrect {
  border-left: 5px solid var(--red);
  background: #fff2ee;
  color: var(--red);
}
.decision-feedback.correct {
  border-left: 5px solid var(--lime);
  background: var(--green);
  color: var(--navy);
}
.choice-set legend,
.component-bank legend,
.compact-calendar legend,
.condition-grid legend {
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 850;
}
.choice-row span {
  display: grid;
  gap: 3px;
}
.choice-row strong {
  color: var(--navy);
}
.choice-row small {
  color: var(--muted);
}
.locked-choice-set {
  pointer-events: none;
}
.locked-choice-set input:checked {
  opacity: 1;
}
.locked-choice-set input:not(:checked) {
  opacity: 0.42;
}
.locked-choice-set .choice-row:not(:has(input:checked)) {
  opacity: 0.64;
}
.locked-choice-set .choice-row:has(input:checked)::after {
  content: "✓";
  margin-left: auto;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
}
.choice-set {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-set legend {
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 850;
}
.choice-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.choice-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--navy);
}
.choice-row:has(input:checked) {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px #10bde826;
  background: var(--pale);
}
.locked-choice-set .choice-row:has(input:checked) {
  border-color: #9fc52f;
  background: var(--green);
}
.utility {
  grid-template-columns: repeat(3, minmax(0, 148px));
  padding: 8px 16px;
}
.utility button {
  min-height: 40px;
  padding: 6px 10px;
  font-size: 13px;
  background: transparent;
  border-color: var(--line);
}
.series-link {
  margin-top: 18px;
  text-decoration: none;
  width: 100%;
  font-size: 16px;
}
.worked-label {
  margin: 18px 0;
}
.panel h3 {
  margin-top: 20px;
}
@media (max-width: 430px) {
  .utility {
    padding: 8px 10px;
    gap: 7px;
  }
  .utility button {
    min-height: 44px;
    font-size: 12px;
    padding: 6px;
  }
  .identity h1 {
    font-size: 11px;
  }
}

/* Shared Arial typography for the local lab and downloadable reference. */
body {
  font-family: Arial, "Segoe UI", sans-serif;
}
.opening-nav {
  grid-template-columns: 1fr;
}
.completion-nav {
  grid-template-columns: 1fr 1fr;
}
.completion-nav .button {
  margin: 0;
  font-size: 15px;
  text-align: center;
}
.takeaway {
  font-family: Arial, "Segoe UI", sans-serif;
}
@media (max-width: 520px) {
  .completion-nav {
    grid-template-columns: 1fr;
  }
}

.reference-habits {
  background: var(--pale);
  border-left: 5px solid var(--cyan);
  padding: 22px;
  margin: 16px 0 28px;
}
.reference-habits ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 34px;
  padding-left: 22px;
  margin-bottom: 0;
}
.reference-habits li {
  margin: 0;
}
.closing {
  background: var(--green);
  padding: 18px;
  border: 0;
  border-radius: 8px;
}
@media (max-width: 650px) {
  .reference-habits ol {
    grid-template-columns: 1fr;
  }
}

.model-visual {
  margin: 26px 0;
  display: grid;
  gap: 22px;
}
.model-visual section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfd;
}
.model-visual h2 {
  font-size: 18px;
}
.model-flow {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  align-items: stretch;
  gap: 10px;
}
.model-flow.response-flow {
  grid-template-columns: 1fr 28px 1fr 28px 1fr;
}
.model-flow > div {
  padding: 16px;
  background: white;
  border-top: 4px solid var(--cyan);
  border-radius: 5px;
}
.model-flow strong,
.model-flow span:not(.flow-arrow) {
  display: block;
}
.model-flow strong {
  color: var(--navy);
  line-height: 1.35;
}
.model-flow div span {
  font-size: 14px;
  margin-top: 8px;
  color: var(--muted);
}
.flow-arrow {
  align-self: center;
  justify-self: center;
  color: var(--navy);
  font-size: 26px;
}
@media (max-width: 650px) {
  .model-flow,
  .model-flow.response-flow {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    transform: rotate(90deg);
    line-height: 1;
  }
  .model-visual section {
    padding: 18px;
  }
}

/* LearnWorlds-inspired brand hierarchy, with a distinct opening presentation. */
.site-header {
  grid-template-columns: minmax(220px, 1fr) minmax(320px, auto) minmax(
      220px,
      1fr
    );
  padding: 22px max(28px, calc((100vw - 1200px) / 2));
  gap: 40px;
  min-height: 126px;
}
.site-header__home {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}
.site-header img {
  width: 230px;
}
.identity {
  justify-self: center;
  text-align: center;
}
.identity h1 {
  margin: 0 0 8px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #c9e8f6;
}
.identity p {
  margin: 0;
  color: white;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 600;
  line-height: 1.2;
}
.site-header__labs {
  justify-self: end;
  align-self: center;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid #c9e8f6;
  border-radius: 9px;
  padding: 9px 16px;
  background: transparent;
  color: white;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.site-header__labs:hover {
  border-color: white;
  background: white;
  color: var(--navy);
}
.site-header__home:focus-visible,
.site-header__labs:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}
main:has(.opening-screen) {
  max-width: 1200px;
  padding-top: 58px;
}
.opening-screen {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0 34px;
  max-width: 1040px;
}
.opening-screen > h2 {
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.12;
  max-width: 1000px;
  margin: 0 0 30px;
  letter-spacing: -0.025em;
}
.opening-screen p {
  max-width: 820px;
  font-size: 20px;
  line-height: 1.55;
}
.opening-screen .opening-lead {
  font-size: 24px;
  max-width: 900px;
  margin-bottom: 22px;
}
.opening-screen .opening-nav {
  border: 0;
  margin-top: 32px;
  padding: 0;
  max-width: 340px;
}
.opening-screen .opening-nav button {
  font-size: 18px;
  min-height: 56px;
}
.opening-screen .opening-access {
  font-size: 14px;
  color: var(--muted);
  margin-top: 15px;
}
.utility {
  background: transparent;
  border-bottom: 0;
  padding-top: 16px;
}
.utility button {
  background: transparent;
}
@media (max-width: 650px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 18px 16px;
    min-height: 0;
  }
  .site-header img {
    width: 132px;
  }
  .identity {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    text-align: center;
  }
  .identity p {
    font-size: 16px;
  }
  .identity h1 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .site-header__labs {
    font-size: 14px;
    padding: 8px 12px;
  }
  main:has(.opening-screen) {
    padding: 30px 22px 20px;
  }
  .opening-screen > h2 {
    font-size: 38px;
  }
  .opening-screen .opening-lead {
    font-size: 21px;
  }
  .opening-screen p {
    font-size: 18px;
  }
  .opening-screen .opening-nav {
    max-width: none;
  }
}
@media (max-width: 430px) {
  .site-header img {
    width: 108px;
  }
  .site-header {
    gap: 14px;
    padding: 16px 12px;
  }
  .identity p {
    font-size: 15px;
  }
  .identity h1 {
    font-size: 17px;
  }
  .site-header__labs {
    font-size: 13px;
    padding: 8px 10px;
  }
  .opening-screen > h2 {
    font-size: 35px;
  }
}

/* Compact phone diagram; preserve reading order and text size. */
@media (max-width: 650px) {
  .model-visual {
    margin: 20px 0;
    gap: 14px;
  }
  .model-visual section {
    padding: 14px;
  }
  .model-visual h2 {
    margin-bottom: 10px;
  }
  .model-flow,
  .model-flow.response-flow {
    gap: 5px;
  }
  .model-flow > div {
    padding: 11px 12px;
  }
  .model-flow div span {
    margin-top: 4px;
  }
  .flow-arrow {
    font-size: 22px;
  }
}

/* Clear secondary controls on the gray page background. */
.utility button {
  border: 2px solid var(--navy);
  color: var(--navy);
}
.utility button:hover {
  background: var(--pale);
  border-color: var(--navy2);
}
.reference-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  padding: 18px;
  margin-bottom: 22px;
  color: white;
  font-weight: 700;
}
.reference-brand img {
  width: 130px;
  height: auto;
}
.reference-brand span {
  text-align: right;
}
@media (max-width: 430px) {
  .reference-brand {
    gap: 12px;
    padding: 14px;
  }
  .reference-brand img {
    width: 95px;
  }
  .reference-brand span {
    font-size: 14px;
  }
}

.build-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.answer-changed {
  padding: 12px 0;
  color: var(--navy);
  font-weight: 700;
}
.stepper li {
  font-size: 13px;
  line-height: 1.35;
}
.screen {
  margin-bottom: 30px;
}
.decision-feedback {
  scroll-margin-bottom: 140px;
}
@media (max-width: 430px) {
  .stepper li {
    font-size: 12px;
  }
}

/* Interactive introduction examples */
.ai-examples {
  margin: 28px 0;
}
.ai-examples > h2 {
  font-size: 23px;
  max-width: 700px;
}
.examples-instruction {
  color: var(--muted);
  font-size: 16px;
}
.ai-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.ai-example {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: 10px;
  background: var(--pale);
  overflow: hidden;
}
.ai-example summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--navy);
}
.ai-example summary::-webkit-details-marker {
  display: none;
}
.ai-example summary:hover {
  background: #e1f3fa;
}
.ai-example summary:focus-visible {
  outline: 3px solid #047caa;
  outline-offset: -5px;
}
.example-number {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
}
.example-title {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  min-height: 53px;
}
.example-preview {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
  min-height: 48px;
}
.example-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 15px;
  font-weight: 750;
}
.example-chevron {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.15s;
}
.example-action .example-hide {
  display: none;
}
.ai-example[open] .example-show {
  display: none;
}
.ai-example[open] .example-hide {
  display: inline;
}
.ai-example[open] .example-chevron {
  transform: rotate(180deg);
}
.example-role {
  flex: 1;
  padding: 20px;
  border-top: 1px solid var(--line);
  background: white;
}
.example-role h3 {
  font-size: 17px;
}
.example-role p {
  margin: 0;
  font-size: 16px;
}
.examples-bridge {
  border-left: 4px solid var(--cyan);
  padding: 14px 18px;
  background: var(--pale);
}
@media (max-width: 760px) {
  .ai-example-grid {
    grid-template-columns: 1fr;
  }
  .ai-example summary {
    padding: 18px;
    gap: 10px;
  }
  .example-title,
  .example-preview {
    min-height: 0;
  }
  .example-role {
    padding: 18px;
  }
  .ai-examples {
    margin: 24px 0;
  }
}

.closing-reflection {
  padding: 24px;
  background: var(--pale);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: 10px;
  margin: 24px 0;
}
.reflection-choices {
  border: 0;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.reflection-choices legend {
  font-weight: 750;
  color: var(--navy);
  margin-bottom: 12px;
}
.reflection-choices .choice-row {
  font-weight: 650;
  align-items: center;
}
.reflection-result {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}
.reflection-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.reflection-columns h4 {
  color: var(--navy);
  margin: 8px 0;
  font-size: 17px;
}
.reflection-think {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.reflection-summary {
  margin-bottom: 0;
}
.reflection-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .closing-reflection {
    padding: 18px;
  }
  .reflection-choices,
  .reflection-columns {
    grid-template-columns: 1fr;
  }
  .reflection-columns {
    gap: 0;
  }
  .reflection-result {
    padding: 16px;
  }
}

.reference-redesign {
  padding: 0;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.reference-redesign .reference-brand {
  margin: 0;
  padding: 24px 28px;
  border-bottom: 3px solid var(--cyan);
}
.reference-brand > div {
  text-align: right;
}
.reference-brand strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}
.reference-brand > div span {
  font-size: 16px;
  font-weight: 400;
}
.reference-content {
  padding: 24px;
}
.reference-redesign .reference-habits {
  background: transparent;
  padding: 0;
  border: 0;
}
.reference-redesign h2 {
  font-size: 21px;
}
.reference-redesign .reference-habits ol {
  list-style: none;
  counter-reset: habit;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
}
.reference-redesign .reference-habits li {
  position: relative;
  counter-increment: habit;
  margin: 0;
  padding: 18px 16px 18px 54px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 500;
}
.reference-redesign .reference-habits li::before {
  content: counter(habit);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  text-align: center;
  line-height: 26px;
  font-weight: 750;
}
.reference-concepts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.reference-concepts > section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.reference-concepts > section::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--cyan);
  border-radius: 2px;
  margin-bottom: 14px;
}
.reference-concepts p {
  margin: 0;
}
.reference-redesign h3 {
  font-size: 18px;
}
.reference-terms dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.reference-terms dl > div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.reference-redesign .reference-terms dd {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
.reference-redesign .closing {
  margin: 22px 0 0;
  padding: 20px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  text-align: center;
}
@media (max-width: 700px) {
  .reference-redesign .reference-habits ol,
  .reference-concepts {
    grid-template-columns: 1fr;
  }
  .reference-terms dl {
    grid-template-columns: 1fr 1fr;
  }
  .reference-content {
    padding: 16px;
  }
  .reference-redesign .reference-brand {
    padding: 18px;
  }
  .reference-brand strong {
    font-size: 23px;
  }
}
@media (max-width: 430px) {
  .reference-terms dl {
    grid-template-columns: 1fr;
  }
  .reference-brand > div span {
    font-size: 14px;
  }
}

.reference-redesign .reference-habits,
.reference-redesign .reference-explanations,
.reference-redesign .reference-terms {
  background: #e6eef3;
  border: 1px solid #91a5b5;
  border-radius: 12px;
  padding: 18px;
  margin: 0 0 18px;
}
.reference-redesign .reference-habits ol,
.reference-redesign .reference-concepts {
  margin-bottom: 0;
}
.reference-redesign .reference-habits h2,
.reference-explanations h2,
.reference-terms h2 {
  margin: 0 0 16px;
  font-size: 21px;
}
.reference-redesign .reference-habits li,
.reference-concepts > section,
.reference-terms dl > div {
  border-color: #91a5b5;
}
.reference-redesign .reference-terms dd {
  font-size: 16px;
}
.reference-redesign .closing {
  margin-top: 0;
}
@media (max-width: 700px) {
  .reference-redesign .reference-habits,
  .reference-redesign .reference-explanations,
  .reference-redesign .reference-terms {
    padding: 12px;
  }
  .reference-content {
    padding: 12px;
  }
}

.reference-brand > div .reference-label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
  margin-bottom: 7px;
  color: #c9e8f6;
}
.reference-brand > div strong {
  font-size: 28px;
}
@media (max-width: 430px) {
  .reference-brand > div .reference-label {
    font-size: 11px;
  }
  .reference-brand > div strong {
    font-size: 21px;
  }
}

/* Scannable lesson sections */
.privacy-lead {
  font-size: 19px;
  line-height: 1.5;
}
.privacy-lead strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}
.privacy-grid,
.concept-pair,
.request-parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}
.privacy-panel,
.concept-pair > section {
  background: var(--pale);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: 10px;
  padding: 22px;
}
.privacy-panel h2,
.concept-pair h2 {
  font-size: 21px;
}
.privacy-panel p:last-child,
.concept-pair p:last-child {
  margin-bottom: 0;
}
.privacy-panel ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.privacy-panel li {
  margin-bottom: 8px;
}
.privacy-check {
  border-left: 4px solid var(--cyan);
  padding: 18px 22px;
  background: var(--pale);
  margin: 24px 0;
}
.privacy-check h2 {
  font-size: 20px;
}
.privacy-check p {
  margin-bottom: 0;
}
.request-example {
  background: var(--wash);
  padding: 24px;
}
.request-parts {
  align-items: stretch;
}
.request-parts > section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.request-parts h3 {
  margin-top: 0;
  font-size: 20px;
}
.request-parts ul {
  padding-left: 20px;
}
.request-prompt blockquote {
  margin: 0;
  border-left: 4px solid var(--cyan);
  padding-left: 16px;
  font-size: 18px;
  line-height: 1.6;
}
.request-explanation {
  margin-bottom: 0;
}
.role-takeaway {
  background: var(--green);
  border: 1px solid #a6be68;
  border-radius: 12px;
  padding: 26px;
  margin-top: 26px;
}
.role-takeaway h2 {
  font-size: 25px;
}
.role-takeaway p {
  margin-bottom: 0;
  font-size: 18px;
}
@media (max-width: 700px) {
  .privacy-grid,
  .concept-pair,
  .request-parts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .privacy-panel,
  .concept-pair > section,
  .request-example,
  .request-parts > section {
    padding: 18px;
  }
  .role-takeaway {
    padding: 20px;
  }
}

.ai-opening-intro {
  font-size: 19px;
  line-height: 1.6;
}
.prompt-callout {
  background: var(--pale);
  border: 1px solid var(--line);
  border-left: 5px solid var(--cyan);
  border-radius: 10px;
  padding: 22px 24px;
  margin: 24px 0;
}
.prompt-callout strong {
  display: block;
  color: var(--navy);
  font-size: 19px;
  margin-bottom: 10px;
}
.prompt-callout p {
  margin: 0;
}
.generative-callout {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
}
.generative-callout > p {
  padding: 20px 24px;
  margin: 0;
}
.generative-callout .ai-opening-check {
  background: var(--green);
  border-top: 1px solid #b8ca8b;
}
.ai-opening + .ai-examples {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 30px;
}
@media (max-width: 600px) {
  .ai-opening-intro {
    font-size: 18px;
  }
  .prompt-callout {
    padding: 18px;
  }
  .generative-callout > p {
    padding: 18px;
  }
}

.ai-opening-check .callout-heading {
  display: block;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.ai-opening .generative-callout,
.ai-opening .judgment-callout {
  border: 1px solid #d6cfe6;
  border-left: 5px solid #8263a6;
  border-radius: 10px;
  background: #f3eff8;
  padding: 22px 24px;
  margin: 24px 0;
}
.ai-opening .judgment-callout {
  background: var(--green);
  border-color: #b8ca8b;
  border-left-color: #789b25;
}
.ai-opening .generative-callout > p,
.ai-opening .judgment-callout > p {
  margin: 0;
  padding: 0;
}
.ai-opening .callout-heading {
  display: block;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.4;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .ai-opening .generative-callout,
  .ai-opening .judgment-callout {
    padding: 18px;
  }
}

.ai-opening .generative-callout {
  background: #f2f4f6;
  border-color: #c7d1da;
  border-left-color: var(--navy);
}

.example-action {
  justify-content: flex-start;
  gap: 8px;
}
.example-chevron {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-self: center;
  transform-origin: center;
  transition: none;
}

/* Approved ChatGPT demonstration. Playback is optional and never gates progress. */
.foundations-demo {
  margin-top: 32px;
  border-top: 1px solid #b8cad8;
  padding-top: 28px;
}
.demo-heading h2 {
  margin: 8px 0 12px;
}
.demo-heading p {
  margin-bottom: 22px;
}
.demo-player {
  max-width: min(100%, calc((100dvh - 180px) * 1.77778));
  margin-inline: auto;
  border: 1px solid #a9bccd;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 12px;
}
.demo-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f1f5f7;
}
.demo-note {
  color: #486176;
  font-size: 15px;
  margin: 16px 0;
}
.demo-transcript {
  margin: 14px 0;
  border: 1px solid #a9bccd;
  border-radius: 10px;
  padding: 16px 20px;
  background: #fff;
}
.demo-transcript summary {
  cursor: pointer;
  color: #07396b;
  font-weight: 700;
}
.demo-transcript > div {
  margin-top: 18px;
}
.demo-transcript p {
  max-width: 76ch;
}
.demo-transcript h3 {
  margin-top: 24px;
}
.demo-exchange {
  white-space: pre-wrap;
}
.demo-player video::cue {
  color: #fff;
  background: #07396bf2;
}
@media (max-width: 700px) {
  .demo-player {
    max-width: 100%;
  }
  .demo-transcript {
    padding: 16px;
  }
}

/* Approved model explanation: concrete example and response reveal. */
.training-example,
.generation-example {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--wash);
  padding: 24px;
  margin: 24px 0;
}
.training-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.training-cards > section,
.generation-cards > section {
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: 9px;
  padding: 20px;
}
.training-cards p,
.generation-cards p {
  margin: 0;
}
.training-arrow {
  align-self: center;
  color: var(--navy);
  font-size: 28px;
}
.generation-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.generation-example blockquote {
  margin: 0;
  border-left: 4px solid var(--cyan);
  padding-left: 16px;
}
.illustration-label {
  font-size: 14px;
  color: var(--muted);
}
.model-reveal {
  margin: 20px 0 0;
  border: 0;
  background: transparent;
}
.model-reveal summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 750;
  list-style: none;
}
.model-reveal summary::-webkit-details-marker {
  display: none;
}
.model-reveal summary svg {
  flex-shrink: 0;
}
.model-reveal[open] summary svg {
  transform: rotate(180deg);
}
.model-reveal > section {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 8px;
  margin-top: 12px;
}
.model-takeaway {
  border: 1px solid #b8ca8b;
  border-left: 5px solid #789b25;
  border-radius: 10px;
  padding: 22px;
  background: var(--green);
  margin: 24px 0;
}
.model-takeaway p {
  margin: 0;
}
.model-takeaway strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 19px;
}
@media (max-width: 600px) {
  .training-cards,
  .generation-cards {
    grid-template-columns: 1fr;
  }
  .training-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
  .training-example,
  .generation-example {
    padding: 18px;
  }
}
