/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark · macrostructure: Guided Field Guide / Route Map / Workbench / Long Document · genre: editorial · tone: warm candid Korean field report · palette-anchor: deep-green 196 · nav: N9 · footer: Ft6 · theme: custom · design-system: DESIGN.md · contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · chrome: pass (47) · tokens: pass (48) · responsive: pass (49) · icons: pass (30) · mobile: pass (34, 49, 50–57) */

@import url("tokens.css");

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  word-break: keep-all;
  overflow-wrap: normal;
}

/* Korean remains phrase-oriented, while an unspaced URL or English token can still wrap on a narrow screen. */
.page-hero .lead,
.game-card :is(p, h2, h3, strong, small, span, label, button, a),
.content :is(p, li, h2, h3, blockquote),
.faq details > div {
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

h1,
.section-title h2,
.page-hero h1,
.resource-hero h1,
.letter-signoff {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

.page-hero h1,
.page-hero .lead,
.content h2,
.content h3,
.action-card h2,
.guide-cta h2 {
  word-break: keep-all;
  min-width: 0;
}

h1,
h2,
h3 {
  min-width: 0;
}

.no-break {
  white-space: nowrap;
}

.workbook-title {
  font-size: var(--type-workbook);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

.chapter-lead {
  color: var(--ink);
  font-size: var(--type-lead);
}

.action-label {
  color: var(--on-dark);
}

.interview-title {
  font-size: var(--type-interview);
}

.prompt-block {
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--paper);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.site-footer .brand-mark {
  background: var(--on-dark);
  color: var(--ink);
}

.site-footer small {
  color: var(--on-dark-muted);
}

.site-footer .footer-note {
  margin-top: var(--space-md);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

a:active,
button:active,
summary:active,
.text-link:active {
  opacity: .72;
}

a[aria-disabled="true"],
button:disabled,
.button[disabled],
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
  pointer-events: none;
}

.field input,
.field textarea,
.field select {
  min-height: 50px;
  border-width: 1px;
  outline: 2px solid transparent;
  outline-offset: 1px;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--ink2);
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  border-color: var(--focus);
  outline-color: var(--focus);
}

.field input:disabled,
.field textarea:disabled,
.field select:disabled {
  cursor: not-allowed;
  opacity: .55;
  background: var(--sand);
}

input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.preview-note,
.game-error,
.field small {
  min-height: 1lh;
}

.site-header {
  background: var(--paper);
  backdrop-filter: none;
  z-index: var(--z-sticky-nav);
}

.header-inner {
  justify-content: space-between;
}

.brand {
  min-height: var(--touch-target);
}

.site-nav {
  margin-left: 0;
  position: static;
  display: flex;
  padding: 0;
  border: 0;
  background: transparent;
}

.menu-button {
  display: none !important;
}

.site-nav .nav-cta,
.site-nav a:first-child {
  min-height: var(--touch-target);
  padding: 0 var(--space-sm);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-dark);
  display: inline-flex;
  align-items: center;
}

.site-nav .nav-cta:hover,
.site-nav a:first-child:hover {
  background: var(--accent);
}

.launch-line,
.release-line,
.resource-type,
.cadence-day,
.field-note-label {
  font-family: var(--font-meta);
  font-size: var(--type-2xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.launch-line,
.release-line {
  color: var(--accent-dark);
}

.hero {
  padding-block: var(--space-3xl) var(--space-4xl);
}

.hero-copy .hero-actions .button-ghost {
  display: none;
}

.hero h1 {
  max-width: 9.5em;
}

.hero h1 em {
  color: var(--accent-dark);
}

.hero-photo {
  border-radius: var(--radius);
}

.photo-caption {
  background: var(--surface-photo);
  color: var(--on-dark);
}

.promise-note {
  background: var(--mint);
  border-left: 0;
  border-top: 1px solid var(--mint-dark);
  color: var(--ink2);
}

.button,
.answer,
.field input,
.field textarea,
.field select,
.game-back,
summary,
.text-link {
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.button:active,
.answer:active {
  transform: translateY(1px);
}

.button[disabled],
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .52;
  box-shadow: none;
}

.button[aria-busy="true"] {
  cursor: progress;
}

.button-primary {
  background: var(--accent);
  color: var(--color-accent-ink);
  box-shadow: var(--shadow-accent);
}

.button-primary:hover {
  background: var(--accent-soft);
}

.button-outline {
  border-color: var(--line);
  background: var(--white);
}

.button-outline:hover {
  border-color: var(--ink);
}

.game-card {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  overflow: visible;
}

.game-head {
  margin: 0;
  padding: var(--space-sm);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--ink);
  color: var(--on-dark);
}

.game-stage {
  margin-top: 0;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.full-result {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.risk-box,
.action-box,
.axis-card,
.mini-card {
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.action-box {
  border-left: 0;
}

.gate-reveal {
  width: 100%;
  margin-top: var(--space-2xs);
}

.result-summary,
.full-result > h3 {
  margin-top: var(--space-xl);
}

.result-summary h2 {
  margin: var(--space-xs) 0 var(--space-2xs);
  font-size: var(--type-result);
}

.share-title {
  text-align: center;
}

.result-actions {
  justify-content: center;
}

.evidence-section,
.faq-section {
  background: var(--paper2);
}

.closing-action {
  background: var(--ink);
  color: var(--on-dark);
}

.closing-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xl);
  align-items: center;
  flex-wrap: wrap;
}

.closing-inner .eyebrow {
  color: var(--mint);
}

.closing-action .button-dark {
  background: var(--on-dark);
  color: var(--ink);
}

.closing-inner h2 {
  margin: 0;
  font-size: var(--type-closing);
  line-height: var(--leading-tight);
}

.game-stage,
.teaser-card,
.full-result {
  border-radius: calc(var(--radius) - 2px);
}

.answer {
  border-radius: var(--radius-sm);
  background: var(--white);
}

.answer:hover {
  border-color: var(--accent);
}

.answer.selected,
.answer[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.game-result:not([hidden]) {
  display: block;
}

.game-error,
.preview-note.is-error {
  color: var(--error);
}

.preview-note.is-success {
  color: var(--success);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--focus);
  background: var(--white);
}

.field input:user-invalid,
.field textarea:user-invalid,
.field select:user-invalid {
  border-color: var(--error);
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: var(--space-3xs);
  accent-color: var(--accent-dark);
}

.axis-card,
.mini-card,
.risk-box,
.action-box {
  border-radius: var(--radius-sm);
}

.plan-list li {
  grid-template-columns: 42px 1fr;
}

.plan-list li::before {
  content: none;
}

.plan-list li > span {
  color: var(--accent-dark);
  font-family: var(--font-meta);
  font-size: var(--type-xs);
  font-weight: 800;
}

.plan-list li p {
  margin: var(--space-3xs) 0 0;
  color: var(--muted);
  font-size: var(--type-md);
}

.field-note-grid {
  border-top: 2px solid var(--ink);
}

.field-note-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xs);
  align-items: start;
  padding: var(--space-xl) var(--space-3xs);
  border-bottom: 1px solid var(--line);
}

.field-note-card:hover h3 {
  color: var(--accent-dark);
}

.field-note-card h3 {
  margin: 0;
  font-size: var(--type-field-note);
  line-height: var(--leading-copy);
  word-break: keep-all;
}

.field-note-card p {
  margin: 0;
  max-width: var(--reading);
  color: var(--muted);
}

.field-note-card footer {
  grid-column: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  font-size: var(--type-sm);
}

.cadence-strip {
  border-block: 2px solid var(--ink);
}

.cadence-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--line);
}

.cadence-step:last-child {
  border-bottom: 0;
}

.cadence-step h3,
.cadence-step p {
  margin: 0;
}

.cadence-step p {
  max-width: var(--reading);
  color: var(--muted);
}

details > div,
.site-footer p,
.resource-note p {
  max-width: var(--reading);
}

.evidence-gallery img {
  border-radius: var(--radius-sm);
}

.privacy-choice {
  position: fixed;
  z-index: var(--z-consent);
  right: var(--space-md);
  bottom: var(--space-md);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  width: min(calc(100% - (2 * var(--space-md))), var(--consent-width));
  padding: var(--space-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
}

.has-privacy-choice {
  padding-bottom: clamp(9rem, 16vw, 12rem);
}

.privacy-choice p {
  margin: 0;
}

.privacy-choice p span {
  display: block;
  margin-top: var(--space-3xs);
  color: var(--muted);
  font-size: var(--type-sm);
}

.privacy-choice > div {
  display: flex;
  gap: var(--space-2xs);
  align-items: center;
}

.privacy-choice .button {
  min-height: var(--touch-target);
  white-space: nowrap;
}

.button,
.site-nav a,
.chapter-nav a,
.footer-links a,
.text-link,
.letter-meta a {
  white-space: nowrap;
}

.workbook-table input,
.workbook-table textarea {
  border: 1px solid transparent;
  outline: 2px solid transparent;
  outline-offset: 1px;
}

.workbook-table input:focus-visible,
.workbook-table textarea:focus-visible {
  border-color: var(--focus);
  outline-color: var(--focus);
}

.game-card :focus-visible,
.site-footer :focus-visible,
.guide-cta :focus-visible {
  outline-color: var(--on-dark);
}

.resource-hero {
  padding: var(--space-3xl) 0 var(--space-4xl);
  border-bottom: 1px solid var(--line);
}

.resource-intro {
  max-width: var(--resource-intro);
}

.resource-hero h1 {
  margin: var(--space-xs) 0 var(--space-md);
  font-size: var(--type-resource);
  line-height: var(--leading-tight);
  word-break: keep-all;
}

.resource-intro > p:last-child {
  max-width: var(--reading);
  color: var(--muted);
  font-size: var(--type-body-lg);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

.resource-item {
  min-height: var(--resource-card-min-height);
  padding: var(--space-xl) var(--space-xl);
  border-bottom: 1px solid var(--line);
}

.resource-item + .resource-item {
  border-left: 1px solid var(--line);
}

.resource-item h2 {
  margin: var(--space-xs) 0;
  font-size: var(--type-heading-fixed);
}

.resource-item p:not(.resource-type) {
  min-height: var(--resource-copy-min-height);
  color: var(--muted);
}

.resource-item .text-link {
  display: block;
  width: fit-content;
  margin-top: var(--space-md);
}

.resource-note {
  max-width: var(--reading);
  margin-top: var(--space-3xl);
}

.letter-close {
  padding-block: var(--space-4xl) var(--space-xl);
}

.letter-signoff {
  max-width: 15em;
  font-size: var(--type-signoff);
  line-height: var(--leading-heading);
  word-break: keep-all;
}

.letter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--surface-dark-soft);
  color: var(--on-dark-muted);
  font-family: var(--font-meta);
  font-size: var(--type-2xs);
}

.content {
  max-width: var(--reading);
}

.content blockquote,
.takeaways,
.action-card,
.chapter-nav a,
.interview-card {
  border-radius: var(--radius-sm);
}

.worksheet {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.worksheet-section {
  padding-inline: var(--space-lg);
  background: repeating-linear-gradient(to bottom, var(--white) 0, var(--white) 31px, var(--grid-line) 32px);
}

.content blockquote {
  border-left: 0;
  border-top: 2px solid var(--accent);
}

.chapter .content blockquote {
  border-top-color: var(--chapter-accent);
}

.chapter .action-card {
  background: var(--ink);
  color: var(--on-dark);
}

.today-action {
  background: var(--accent-soft);
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero-grid,
  .page-hero-grid,
  .about-grid,
  .interview-card,
  .proof-grid,
  .evidence-layout,
  .about-moments {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-note-card {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }

  .field-note-card p,
  .field-note-card footer {
    grid-column: 1;
  }

  .cadence-step {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
  }

  .cadence-step p {
    grid-column: 2;
  }

  .privacy-choice {
    grid-template-columns: 1fr;
  }

  .privacy-choice > div {
    justify-content: stretch;
  }

  .privacy-choice .button {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - (2 * var(--mobile-edge))), var(--shell));
  }

  .site-nav {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-button {
    display: none;
  }

  .hero {
    padding-top: var(--space-lg);
  }

  .hero h1,
  .page-hero h1 {
    font-size: var(--type-mobile-display);
  }

  .game-card {
    padding: var(--space-xs);
  }

  .game-stage,
  .teaser-card,
  .full-result {
    padding: var(--space-md);
  }

  .answer {
    min-height: 72px;
  }

  .field-note-card {
    display: block;
  }

  .field-note-card h3,
  .field-note-card p,
  .field-note-card footer {
    margin-top: 0;
  }

  .field-note-card footer {
    display: block;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-item {
    min-height: 0;
    padding: var(--space-lg) var(--space-3xs);
  }

  .resource-item + .resource-item {
    border-left: 0;
  }

  .guide-cta h2 {
    font-size: var(--type-heading-mobile);
    word-break: keep-all;
  }

  .privacy-choice {
    right: var(--mobile-edge);
    bottom: var(--mobile-edge);
    width: calc(100% - (2 * var(--mobile-edge)));
  }

  .privacy-choice > div {
    flex-direction: column-reverse;
  }

  .privacy-choice .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .brand-copy strong {
    font-size: var(--type-sm);
  }

  .site-nav .nav-cta {
    padding-inline: var(--space-xs);
    font-size: var(--type-sm);
  }

  .game-stage {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .diagnostic-workbench .answer {
    scroll-margin-top: 260px;
  }
}

@media print {
  .privacy-choice {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

.site-nav {
  gap: var(--space-lg);
}

.site-nav a:not(.nav-cta) {
  display: inline-flex;
  min-height: var(--touch-target);
  align-items: center;
}

.site-nav .nav-cta {
  display: inline-flex;
  padding-inline: var(--space-md);
}

.hero-copy .hero-actions .button-outline {
  display: inline-flex;
}

.guide-map-section {
  background: var(--paper2);
}

.guide-map {
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.guide-map-item {
  display: grid;
  grid-template-columns: var(--guide-index-column) minmax(0, 1fr) minmax(var(--guide-action-column), .44fr);
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) var(--space-3xs);
  border-bottom: 1px solid var(--line);
}

.guide-map-item.is-featured {
  background: color-mix(in srgb, var(--mint) 22%, transparent);
}

.guide-index,
.guide-kicker {
  color: var(--accent-dark);
  font-family: var(--font-meta);
  font-size: var(--type-xs);
  font-weight: 850;
  letter-spacing: var(--tracking-label);
}

.guide-map-item h3,
.guide-map-item p {
  margin: 0;
}

.guide-map-item p {
  word-break: normal;
  overflow-wrap: break-word;
}

.guide-map-item h3 {
  margin-block: var(--space-3xs);
  font-size: var(--type-field-note);
  line-height: var(--leading-copy);
}

.guide-map-item div > p:last-child {
  max-width: var(--guide-copy-measure);
  color: var(--muted);
}

.guide-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.guide-links a {
  display: inline-flex;
  min-height: var(--touch-target);
  padding: 0 var(--space-sm);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: var(--type-sm);
  font-weight: 800;
  white-space: nowrap;
}

.guide-links a:hover {
  border-color: var(--ink);
  color: var(--accent-dark);
}

.guide-map-next {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xl);
  align-items: center;
  padding-top: var(--space-xl);
}

.guide-map-next p {
  max-width: var(--reading);
  margin: 0;
}

.diagnostic-intro {
  margin-block: var(--space-2xl) var(--space-xl);
}

.privacy-choice {
  position: static;
  width: min(calc(100% - (2 * var(--mobile-edge))), var(--consent-width));
  margin: var(--space-sm) auto 0;
  box-shadow: none;
}

.hero-photo,
.photo-frame {
  min-height: 0;
  height: auto;
  overflow: hidden;
  background: var(--paper2);
}

.hero-photo img,
.photo-frame img,
.evidence-photo img,
.evidence-gallery img,
.evidence-gallery .evidence-main,
.about-moments img,
.photo-proof img,
.interview-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.hero-photo .photo-caption,
.photo-frame .photo-caption {
  position: static;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0;
  background: var(--ink);
}

.evidence-gallery {
  align-items: start;
}

@media (max-width: 900px) {
  .site-nav {
    flex-direction: row;
    align-items: center;
  }

  .guide-map-item {
    grid-template-columns: var(--guide-index-column-tablet) minmax(0, 1fr);
  }

  .guide-links {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-copy strong {
    max-width: var(--brand-copy-mobile);
    font-size: var(--type-sm);
    line-height: var(--leading-brand-mobile);
  }

  .site-nav {
    display: flex;
    gap: var(--space-2xs);
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .site-nav a:first-child:not(.nav-cta) {
    display: inline-flex;
    padding-inline: var(--space-2xs);
  }

  .site-nav .nav-cta {
    display: inline-flex;
    padding-inline: var(--space-xs);
    font-size: var(--type-xs);
  }

  .hero-grid {
    display: grid;
  }

  .hero-copy {
    display: block;
  }

  .hero-photo {
    width: 100%;
    min-height: 0;
    height: auto;
    border-radius: var(--radius-md);
  }

  .hero-photo img,
  .photo-frame,
  .photo-frame img,
  .about-grid .photo-frame,
  .about-grid .photo-frame img {
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .hero-photo .photo-caption,
  .photo-frame .photo-caption {
    padding: var(--space-2xs) var(--space-xs);
    font-size: var(--type-2xs);
  }

  .hero-actions .button {
    width: 100%;
  }

  .guide-map-item {
    grid-template-columns: var(--guide-index-column-mobile) minmax(0, 1fr);
    gap: var(--space-xs);
    padding-block: var(--space-xl);
  }

  .guide-map-item h3 {
    font-size: var(--type-guide-mobile);
  }

  .guide-links {
    gap: var(--space-2xs);
  }

  .guide-links a {
    flex: 1 1 var(--guide-link-basis);
    justify-content: center;
  }

  .guide-map-next {
    display: block;
  }

  .guide-map-next .button {
    width: 100%;
    margin-top: var(--space-sm);
  }

  .privacy-choice {
    right: auto;
    bottom: auto;
    width: min(calc(100% - (2 * var(--mobile-edge))), var(--consent-width));
  }

  .privacy-choice > div {
    flex-direction: row;
  }
}

.method-section {
  background: var(--ink);
  color: var(--on-dark);
}

.method-intro {
  display: grid;
  grid-template-columns: minmax(0, var(--method-layout-left)) minmax(0, var(--method-layout-right));
  gap: var(--space-4xl);
  align-items: end;
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--on-dark-rule);
}

.method-intro .eyebrow,
.method-action .text-link {
  color: var(--mint);
}

.method-intro h2 {
  max-width: var(--method-title-measure);
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-closing);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
}

.method-intro > p {
  max-width: var(--reading);
  margin: 0;
  color: var(--on-dark-muted);
  font-size: var(--type-body-lg);
}

.method-intro > p strong {
  color: var(--on-dark);
}

.method-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: var(--space-2xl) 0 0;
  list-style: none;
}

.method-principles li {
  display: grid;
  grid-template-columns: minmax(var(--method-label-min), var(--method-label-share)) minmax(0, 1fr);
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg) var(--space-md) 0;
  border-bottom: 1px solid var(--on-dark-rule);
}

.method-principles li:nth-child(even) {
  padding-right: 0;
  padding-left: var(--space-lg);
  border-left: 1px solid var(--on-dark-rule);
}

.method-principles span {
  color: var(--mint);
  font-family: var(--font-meta);
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
}

.method-principles strong {
  font-size: var(--type-body-lg);
  line-height: var(--leading-heading);
}

.method-action {
  margin: var(--space-xl) 0 0;
  color: var(--on-dark-muted);
}

.game-wrap {
  padding-block: var(--space-5xl);
  background: var(--paper2);
}

.game-result .teaser-card {
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.result-summary {
  max-width: var(--article-reading);
}

.result-summary > p:not(.diagnostic-disclaimer) {
  font-size: var(--type-body-lg);
}

.game-result .game-label,
.experiment-card .game-label,
.result-assets .game-label,
.ending-sentence .game-label,
.save-map .game-label {
  color: var(--accent-dark);
}

.diagnostic-disclaimer {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-sm);
}

.decision-correction,
.result-story,
.experiment-card,
.result-assets,
.ending-sentence,
.save-map {
  display: block;
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

.decision-correction > h3,
.result-story h3,
.experiment-card h3,
.result-assets > h3,
.save-map h3 {
  margin: var(--space-xs) 0 var(--space-md);
  font-family: var(--font-display);
  font-size: var(--type-heading-fixed);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-section-heading);
}

.correction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.correction-grid .risk-box,
.correction-grid .action-box {
  margin: 0;
  padding: var(--space-lg) 0 0;
}

.correction-grid strong {
  display: block;
  font-size: var(--type-body-lg);
  line-height: var(--leading-result-copy);
}

.result-story {
  max-width: var(--article-reading);
}

.story-source,
.mini-card > span {
  color: var(--accent-dark);
  font-family: var(--font-meta);
  font-size: var(--type-2xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
}

.result-story > p:not(.story-source),
.save-map-intro > p {
  font-size: var(--type-body-lg);
  line-height: var(--leading-article);
}

.experiment-card {
  padding: var(--space-xl);
  border-top: 2px solid var(--accent);
  background: var(--accent-soft);
}

.experiment-card .date-box {
  margin: var(--space-md) 0;
}

.experiment-time {
  color: var(--muted);
}

.experiment-card ol {
  margin: var(--space-lg) 0;
  padding-left: var(--space-lg);
}

.experiment-card li {
  margin-block: var(--space-xs);
  line-height: var(--leading-form-copy);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
}

.asset-grid .mini-card {
  display: flex;
  min-height: var(--asset-card-min-height);
  flex-direction: column;
  padding: var(--space-lg);
  border: 1px solid var(--line);
  background: var(--paper2);
}

.asset-grid .mini-card strong {
  margin-block: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--type-lead);
  line-height: var(--leading-heading);
}

.asset-grid .text-link {
  margin-top: auto;
}

.ending-sentence > strong,
.ending-sentence > small {
  display: block;
}

.ending-sentence > strong {
  margin-block: var(--space-xs) var(--space-md);
  font-family: var(--font-display);
  font-size: var(--type-lead);
}

.ending-sentence textarea {
  width: 100%;
  min-height: var(--ending-field-min-height);
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper2);
  font-size: var(--type-body-lg);
  line-height: var(--leading-form-copy);
  resize: vertical;
}

.ending-sentence textarea:focus-visible {
  border-color: var(--focus);
  outline-color: var(--focus);
}

.ending-sentence > small {
  margin-top: var(--space-2xs);
  color: var(--muted);
  line-height: var(--leading-caption);
}

.result-actions {
  justify-content: flex-start;
  margin-top: var(--space-xl);
}

.save-map {
  padding: var(--space-xl);
  border: 1px solid var(--line);
  background: var(--paper);
}

.save-map-intro {
  max-width: var(--article-reading);
}

.save-map .gate-reveal {
  width: auto;
  margin-top: var(--space-lg);
}

.email-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.email-recovery-actions .preview-note {
  flex: 1 1 min(100%, 22rem);
  margin: 0;
}

.field-note-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-card-heading);
}

.chapter .site-header {
  position: static;
  backdrop-filter: none;
}

.chapter .page-hero {
  background-image: none;
  padding-block: var(--space-4xl) var(--space-5xl);
}

.chapter .page-hero-grid {
  width: min(calc(100% - (2 * var(--article-edge))), var(--article-reading));
  max-width: var(--article-reading);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.chapter .page-hero .eyebrow span {
  min-width: 0;
  height: auto;
  border: 0;
  border-radius: 0;
}

.chapter .page-hero .status {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.chapter .page-hero .photo-frame {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.chapter .page-hero .photo-caption {
  padding: var(--space-xs) 0 0;
  background: transparent;
  color: var(--muted);
}

.chapter .page-hero h1 {
  font-size: var(--type-article-title);
  line-height: var(--leading-article-title);
  letter-spacing: var(--tracking-article-title);
}

.chapter .page-hero .chapter-lead {
  max-width: var(--article-reading);
  font-size: var(--type-article-copy);
  line-height: var(--leading-article-lead);
}

.chapter .content {
  width: min(calc(100% - (2 * var(--article-edge))), var(--article-reading));
  max-width: var(--article-reading);
}

.chapter .content p,
.chapter .content li {
  font-size: var(--type-article-copy);
  line-height: var(--leading-article);
  letter-spacing: var(--tracking-article);
}

.chapter .content p {
  margin-bottom: var(--paragraph-gap);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.chapter .content h2 {
  margin-top: var(--space-5xl);
  padding-bottom: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--type-heading-fixed);
  line-height: var(--leading-heading);
}

.chapter .content h3 {
  margin-top: var(--space-3xl);
  font-family: var(--font-display);
  font-size: var(--type-lead);
  line-height: var(--leading-heading);
}

.chapter .content blockquote {
  margin-block: var(--space-3xl);
  padding: var(--space-xl) 0;
  background: transparent;
  font-size: var(--type-lead);
  line-height: var(--leading-article-lead);
}

.chapter .takeaways {
  padding: var(--space-xl) 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.chapter .takeaways h2 {
  padding: 0;
  border: 0;
  font-size: var(--type-lead);
}

.chapter .action-card {
  margin-block: var(--space-5xl);
  padding: var(--space-xl);
}

.chapter .chapter-nav {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .method-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .correction-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-sm);
  }

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

@media (max-width: 640px) {
  .method-section,
  .game-wrap {
    padding-block: var(--space-4xl);
  }

  .method-principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .method-principles li,
  .method-principles li:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xs);
    padding-inline: 0;
    border-left: 0;
  }

  .game-result .teaser-card {
    padding: var(--space-lg);
  }

  .decision-correction,
  .result-story,
  .experiment-card,
  .result-assets,
  .ending-sentence,
  .save-map {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
  }

  .decision-correction > h3,
  .result-story h3,
  .experiment-card h3,
  .result-assets > h3,
  .save-map h3 {
    font-size: var(--type-heading-mobile);
  }

  .experiment-card,
  .save-map {
    padding: var(--space-lg);
  }

  .asset-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .asset-grid .mini-card {
    min-height: 0;
  }

  .save-map .gate-reveal,
  .result-actions .button,
  .email-recovery-actions .button {
    width: 100%;
  }

  .email-recovery-actions {
    align-items: stretch;
  }

  .field-note-card {
    padding-block: var(--space-2xl);
    border-radius: 0;
  }

  .field-note-card h3 {
    margin-block: var(--space-sm);
    font-size: var(--type-heading-mobile);
    line-height: var(--leading-field-note-mobile);
  }

  .field-note-card p {
    font-size: var(--type-article-copy-mobile);
    line-height: var(--leading-article);
  }

  .chapter .page-hero {
    padding-block: var(--space-3xl) var(--space-4xl);
  }

  .chapter .page-hero h1 {
    font-size: var(--type-article-title-mobile);
    line-height: var(--leading-article-title-mobile);
  }

  .chapter .page-hero .chapter-lead,
  .chapter .content p,
  .chapter .content li {
    font-size: var(--type-article-copy-mobile);
  }

  .chapter .content h2 {
    margin-top: var(--space-4xl);
    font-size: var(--type-heading-mobile);
  }

  .chapter .content blockquote {
    margin-block: var(--space-2xl);
    padding-block: var(--space-lg);
  }
}

@media (max-width: 360px) {
  .chapter {
    --article-edge: 18px;
  }
}

/* 2026-08-10 renewal: one decision path, then the workbench. */
.renewal-header .header-inner {
  min-height: 68px;
}

.renewal-nav {
  margin-left: auto;
}

.renewal-nav .nav-cta {
  min-height: var(--touch-target);
  padding-inline: var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--on-dark);
}

.renewal-nav .nav-cta:hover,
.renewal-nav .nav-cta:focus-visible,
.renewal-nav .nav-cta:active {
  background: var(--accent-dark);
  color: var(--on-dark);
}

.return-home-link {
  display: inline-flex;
  min-height: var(--touch-target);
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-size: var(--type-sm);
  font-weight: 700;
}

.home-hero {
  padding-block: var(--space-5xl);
}

.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr);
  gap: clamp(var(--space-2xl), 6vw, var(--space-5xl));
  align-items: center;
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-copy .launch-line {
  margin-bottom: var(--space-md);
  color: var(--accent-dark);
  font-family: var(--font-meta);
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.home-hero h1,
.diagnostic-introduction h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  line-height: 1.06;
  text-wrap: balance;
  word-break: keep-all;
}

.home-hero h1 em {
  color: var(--accent-dark);
  font-style: normal;
}

.home-hero-body {
  max-width: 37rem;
  margin-top: var(--space-xl);
}

.home-hero-body p {
  margin-bottom: var(--space-sm);
  font-size: var(--type-body-lg);
  line-height: var(--leading-result-copy);
  word-break: keep-all;
}

.home-hero-body p:nth-child(2) {
  color: var(--ink2);
}

.home-hero .hero-actions {
  margin-top: var(--space-xl);
}

.home-hero .button-primary,
.home-closing .button-dark {
  color: var(--ink);
}

.home-hero .button-primary:hover,
.home-hero .button-primary:focus-visible,
.home-closing .button-dark:hover,
.home-closing .button-dark:focus-visible {
  background: var(--accent-dark);
  color: var(--on-dark);
}

.home-hero-meta {
  margin: var(--space-md) 0 0;
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: var(--type-xs);
  letter-spacing: .04em;
}

.home-hero-photo,
.employment-photo {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper2);
  overflow: hidden;
}

.home-hero-photo img,
.employment-photo img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.home-hero-photo figcaption,
.employment-photo figcaption {
  padding: var(--space-xs) var(--space-sm);
  color: var(--muted);
  font-size: var(--type-xs);
  line-height: var(--leading-caption);
}

.home-source {
  border-top: 1px solid var(--line);
}

.home-source-layout,
.employment-layout,
.home-closing-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(var(--space-xl), 6vw, var(--space-5xl));
  align-items: start;
}

.home-source h2,
.employment-copy h2,
.city-record-heading h2,
.home-closing h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: var(--tracking-section-heading);
  line-height: var(--leading-heading);
  text-wrap: pretty;
  word-break: keep-all;
}

.home-source-copy {
  max-width: 37rem;
  padding-top: var(--space-2xs);
}

.home-source-copy p,
.employment-copy p,
.city-record-heading > p {
  font-size: var(--type-body-lg);
  line-height: var(--leading-result-copy);
  word-break: keep-all;
}

.home-source-copy p + p,
.employment-copy p + p {
  margin-top: var(--space-md);
}

.home-employment {
  padding-block: var(--space-5xl);
  background: var(--paper2);
}

.employment-layout {
  align-items: center;
}

.employment-photo {
  border-radius: var(--radius-md);
}

.employment-copy {
  max-width: 40rem;
}

.employment-copy .eyebrow {
  margin-bottom: var(--space-md);
}

.employment-copy > h2 + p {
  margin-top: var(--space-xl);
}

.city-record-heading {
  max-width: 48rem;
  margin-bottom: var(--space-2xl);
}

.city-record-heading > p {
  max-width: 34rem;
  margin: var(--space-md) 0 0;
  color: var(--muted);
}

.city-record {
  margin: 0;
  border-top: 2px solid var(--ink);
}

.city-record > div {
  display: grid;
  grid-template-columns: minmax(100px, .24fr) minmax(0, .76fr);
  gap: var(--space-xl);
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.city-record dt {
  color: var(--accent-dark);
  font-family: var(--font-meta);
  font-size: var(--type-md);
  font-weight: 700;
}

.city-record dd {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, .66fr);
  gap: var(--space-xl);
  margin: 0;
}

.city-record dd strong {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: var(--tracking-card-heading);
  line-height: var(--leading-heading);
  word-break: keep-all;
}

.city-record dd span {
  color: var(--ink2);
  font-size: var(--type-body-lg);
  line-height: var(--leading-result-copy);
  word-break: keep-all;
}

.home-closing {
  background: var(--ink);
  color: var(--on-dark);
}

.home-closing .eyebrow {
  color: var(--mint);
}

.home-closing-layout {
  align-items: center;
}

.home-closing .button-dark {
  justify-self: end;
  background: var(--accent);
}

.renewal-footer {
  max-width: 50rem;
}

.renewal-footer > p:last-of-type {
  max-width: 36rem;
}

.diagnostic-introduction {
  padding-block: var(--space-5xl) var(--space-3xl);
  border-bottom: 1px solid var(--line);
}

.diagnostic-introduction-copy {
  width: min(calc(100% - (2 * var(--article-edge))), var(--article-reading));
}

.diagnostic-introduction h1 {
  font-size: clamp(42px, 5vw, 64px);
}

.diagnostic-introduction-copy > p:not(.eyebrow) {
  max-width: 39rem;
  margin: var(--space-xl) 0 0;
  font-size: var(--type-body-lg);
  line-height: var(--leading-article-lead);
  word-break: keep-all;
}

.diagnostic-promises {
  display: grid;
  gap: var(--space-xs);
  margin: var(--space-2xl) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.diagnostic-promises li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  font-size: var(--type-md);
  line-height: var(--leading-result-copy);
}

.diagnostic-promises span {
  color: var(--accent-dark);
  font-family: var(--font-meta);
  font-size: var(--type-xs);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
}

.diagnostic-workbench {
  padding-block: var(--space-4xl) var(--space-5xl);
}

.diagnostic-workbench .game-card {
  max-width: 56rem;
  margin-inline: auto;
}

.diagnostic-workbench .game-stage {
  min-height: 0;
  margin-top: var(--space-sm);
  border-top: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.diagnostic-workbench .game-stage > .game-head {
  display: none;
}

.date-box {
  padding: var(--space-sm);
  background: var(--ink);
  color: var(--on-dark);
}

.date-box span {
  display: block;
  margin-bottom: var(--space-3xs);
  color: var(--mint);
  font-family: var(--font-meta);
  font-size: var(--type-xs);
  letter-spacing: var(--tracking-label);
}

.date-box strong {
  display: block;
  font-size: var(--type-body-lg);
  line-height: var(--leading-result-copy);
}

.result-support-links {
  margin: var(--space-2xl) 0 0;
  color: var(--muted);
  font-size: var(--type-md);
  line-height: var(--leading-result-copy);
}

.result-support-links a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-weight: 700;
}

.privacy-choice {
  position: fixed;
  z-index: var(--z-consent);
  right: var(--space-md);
  bottom: max(var(--space-md), env(safe-area-inset-bottom));
  width: min(calc(100% - (2 * var(--space-md))), var(--consent-width));
  margin: 0;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .renewal-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .home-hero-layout,
  .home-source-layout,
  .employment-layout,
  .home-closing-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-closing .button-dark {
    justify-self: start;
  }

  .city-record dd {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }
}

@media (max-width: 640px) {
  .renewal-header .header-inner {
    min-height: 62px;
  }

  .renewal-nav .nav-cta {
    padding-inline: var(--space-xs);
    font-size: var(--type-xs);
  }

  .home-hero {
    padding-block: var(--space-3xl) var(--space-4xl);
  }

  .home-hero-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    align-items: stretch;
  }

  .home-hero h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .home-hero-body {
    margin-top: var(--space-lg);
  }

  .home-hero-body p,
  .home-source-copy p,
  .employment-copy p,
  .city-record dd span,
  .diagnostic-introduction-copy > p:not(.eyebrow) {
    font-size: var(--type-article-copy-mobile);
  }

  .home-hero .hero-actions,
  .home-hero .hero-actions .button {
    width: 100%;
  }

  .home-hero-photo {
    order: 2;
  }

  .home-hero-copy {
    order: 1;
  }

  .home-source,
  .home-employment,
  .home-city-record {
    padding-block: var(--space-4xl);
  }

  .home-source h2,
  .employment-copy h2,
  .city-record-heading h2,
  .home-closing h2 {
    font-size: clamp(32px, 9.6vw, 42px);
  }

  .city-record > div {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
  }

  .city-record dd strong {
    font-size: var(--type-guide-mobile);
  }

  .home-closing .button-dark {
    width: 100%;
  }

  .diagnostic-introduction {
    padding-block: var(--space-4xl) var(--space-2xl);
  }

  .diagnostic-introduction h1 {
    font-size: clamp(36px, 10vw, 44px);
  }

  .diagnostic-workbench {
    padding-block: var(--space-3xl) var(--space-5xl);
  }

  .has-privacy-choice .diagnostic-workbench {
    padding-bottom: calc(var(--space-5xl) + 13rem);
  }

  .correction-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-choice {
    right: var(--mobile-edge);
    bottom: max(var(--mobile-edge), env(safe-area-inset-bottom));
    width: calc(100% - (2 * var(--mobile-edge)));
  }

  .privacy-choice > div {
    flex-direction: row;
  }

  .privacy-choice .button {
    width: auto;
    flex: 1;
    padding-inline: var(--space-2xs);
    font-size: var(--type-xs);
  }

  .privacy-choice {
    gap: var(--space-2xs);
    padding: var(--space-xs);
  }

  .privacy-choice p span {
    display: none;
  }

  .has-privacy-choice {
    padding-bottom: 13rem;
  }

  .has-privacy-choice .home-hero-photo {
    margin-top: calc(var(--space-xl) + 10rem);
  }
}

/* Final accessibility pass: one narrow consent rule, 44px controls, and
   reflow for the effective CSS widths produced by browser-level 200% zoom. */
@media (max-width: 360px) {
  .privacy-choice {
    left: var(--mobile-edge);
    right: var(--mobile-edge);
    width: auto;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-choice > div {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2xs);
  }

  .privacy-choice .button {
    width: 100%;
    min-width: 0;
    flex: none;
  }
}

@media (max-width: 220px) {
  .home-hero h1 {
    font-size: clamp(32px, 20vw, 44px);
  }

  .header-inner {
    min-width: 0;
    gap: var(--space-xs);
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-nav {
    display: none;
  }

  .privacy-choice {
    position: static;
    width: 100%;
    max-width: 100%;
    margin: var(--mobile-edge) 0 0;
    box-sizing: border-box;
  }

  .privacy-choice p {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .game-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-controls > * {
    grid-column: 1;
  }

  .game-controls .button {
    width: 100%;
    max-width: 100%;
  }

  .diagnostic-introduction h1,
  .game-stage h2,
  .game-interlude,
  .game-interlude p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .button,
  button {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  body {
    overflow-wrap: anywhere;
  }

  .site-nav {
    display: none;
  }

  .chapter-nav,
  .chapter-nav a,
  .letter-signoff,
  .text-link {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.diagnostic-workbench .game-stage,
.diagnostic-workbench .game-result {
  scroll-margin-top: 90px;
}

.letter-meta a,
.footer-links a,
.text-link,
.result-support-links a,
.renewal-nav a,
.guide-links a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: var(--touch-target);
}

input[type="date"],
.game-inline-field input,
.game-back,
.button-ghost,
.workbook-table input,
.workbook-table textarea {
  min-width: 44px;
  min-height: var(--touch-target);
}

.consent,
.check {
  min-height: var(--touch-target);
}

/* Lean launch: one proof image, one shared orientation, and one result-to-email path. */
.home-source-copy strong {
  color: var(--accent-dark);
}

.home-closing p:not(.eyebrow) {
  max-width: 37rem;
  margin: var(--space-lg) 0 0;
  color: var(--on-dark-muted);
  font-size: var(--type-body-lg);
  line-height: var(--leading-result-copy);
  word-break: keep-all;
}

.diagnostic-orientation-photo {
  margin: var(--space-2xl) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper2);
}

.diagnostic-orientation-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.diagnostic-orientation-photo figcaption {
  padding: var(--space-xs) var(--space-sm);
  color: var(--muted);
  font-size: var(--type-xs);
  line-height: var(--leading-caption);
}

.diagnostic-orientation {
  display: grid;
  gap: var(--space-sm);
  max-width: 42rem;
  margin-top: var(--space-xl);
  padding-left: var(--space-lg);
  border-left: 2px solid var(--accent);
}

.diagnostic-orientation p {
  margin: 0;
  font-size: var(--type-body-lg);
  line-height: var(--leading-result-copy);
  word-break: keep-all;
}

.game-helper,
.calculator-preview,
.game-follow-up {
  margin: var(--space-sm) 0 0;
  color: var(--muted);
  font-size: var(--type-md);
  line-height: var(--leading-result-copy);
}

.game-helper {
  max-width: 42rem;
  padding: var(--space-xs) 0 var(--space-xs) var(--space-sm);
  border-left: 2px solid var(--accent);
}

.custom-goal-field {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0 0;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--paper2);
}

.custom-goal-field > span {
  color: var(--ink);
  font-size: var(--type-sm);
  font-weight: 760;
  line-height: var(--leading-snug);
}

.custom-goal-field > textarea {
  width: 100%;
  min-height: 88px;
  box-sizing: border-box;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  line-height: var(--leading-result-copy);
  resize: none;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.custom-goal-field > textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.custom-goal-field > textarea:focus-visible {
  border-color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--accent-faint);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.action-date-field {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 0;
  padding: var(--space-md);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--paper2);
}

.action-date-label {
  color: var(--ink);
  font-size: var(--type-body-lg);
  font-weight: 760;
  line-height: var(--leading-snug);
}

.action-date-helper {
  margin: calc(var(--space-2xs) * -1) 0 0;
  color: var(--muted);
  font-size: var(--type-sm);
  line-height: var(--leading-result-copy);
}

.action-date-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-xs);
}

.action-date-choice {
  display: grid;
  align-content: center;
  gap: var(--space-3xs);
  min-width: 0;
  min-height: 82px;
  padding: var(--space-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.action-date-choice:hover,
.action-date-choice:focus-visible {
  border-color: var(--accent);
}

.action-date-choice.selected,
.action-date-choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.action-date-choice strong {
  font-size: var(--type-sm);
  line-height: var(--leading-snug);
}

.action-date-choice span {
  color: var(--muted);
  font-family: var(--font-meta);
  font-size: var(--type-xs);
  line-height: var(--leading-caption);
}

.action-date-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 12rem);
  gap: var(--space-sm);
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--line);
}

.action-date-custom > span {
  color: var(--muted);
  font-size: var(--type-sm);
  line-height: var(--leading-snug);
}

.action-date-custom input {
  width: 100%;
  min-width: 0;
  min-height: var(--touch-target);
  padding: 0 var(--space-xs);
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-meta);
  font-variant-numeric: tabular-nums;
}

.action-date-custom input:focus-visible {
  border-bottom-color: var(--accent);
  background: var(--accent-faint);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.action-date-custom[hidden] {
  display: none;
}

.calculator-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: var(--space-lg);
  padding: 0 var(--space-sm);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper2);
  overflow: hidden;
}

.calculator-fields .game-inline-field {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 8rem);
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
  min-height: 82px;
  margin: 0;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line);
}

.calculator-fields .game-inline-field:last-child {
  border-bottom: 0;
}

.calculator-fields .game-inline-field > span {
  color: var(--ink);
  font-size: var(--type-sm);
  font-weight: 760;
  line-height: var(--leading-snug);
}

.calculator-fields .game-inline-field input {
  width: 100%;
  min-width: 0;
  min-height: var(--touch-target);
  padding: 0 calc(var(--space-xs) + 1.8rem) 0 var(--space-xs);
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-meta);
  font-variant-numeric: tabular-nums;
  text-align: right;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
  appearance: textfield;
}

.calculator-fields .game-inline-field input::-webkit-outer-spin-button,
.calculator-fields .game-inline-field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.calculator-fields .game-inline-field input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.calculator-fields .game-inline-field input:focus-visible {
  border-bottom-color: var(--accent);
  background: var(--accent-faint);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.calculator-fields .game-inline-field::after {
  position: absolute;
  right: var(--space-xs);
  bottom: calc(var(--space-sm) + 0.75rem);
  color: var(--muted);
  content: "CAD";
  font-family: var(--font-meta);
  font-size: var(--type-xs);
  font-weight: 760;
  letter-spacing: var(--tracking-label);
  pointer-events: none;
}

.game-follow-up {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.result-summary h2 {
  white-space: pre-line;
}

.result-headline-nowrap {
  white-space: nowrap;
}

/* A clipped table is still usable, but the reader should know it moves. */
.table-scroll {
  position: relative;
}

@media (max-width: 900px) {
  .table-scroll::after {
    position: absolute;
    top: var(--space-2xs);
    right: var(--space-2xs);
    z-index: 1;
    padding: var(--space-3xs) var(--space-2xs);
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--on-dark);
    content: "↔ 좌우로 밀어 확인";
    font-family: var(--font-meta);
    font-size: 10px;
    font-weight: 760;
    letter-spacing: var(--tracking-label);
    line-height: 1.2;
    pointer-events: none;
    white-space: nowrap;
  }
}

@media print {
  .table-scroll::after {
    display: none;
  }
}

.decision-correction .risk-box .game-label,
.decision-correction .action-box .game-label {
  margin-bottom: var(--space-xs);
}

.experiment-card ol {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 0;
  padding-left: 1.35em;
  line-height: var(--leading-result-copy);
}

.save-map .gate-form {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.save-map .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.save-map .button-primary {
  justify-self: start;
}

@media (max-width: 640px) {
  .action-date-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-date-custom {
    grid-template-columns: minmax(0, 1fr);
  }

  .calculator-fields {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: var(--space-sm);
  }

  .calculator-fields .game-inline-field {
    grid-template-columns: minmax(0, 1fr) minmax(0, 8rem);
  }

  .save-map .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .save-map .button-primary {
    width: 100%;
  }

}

@media print {
  .skip-link {
    display: none !important;
  }

  .table-scroll {
    overflow: visible;
  }

  .workbook-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 8px;
  }

  .workbook-table th,
  .workbook-table td {
    padding: 3px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .workbook-table th:nth-child(1),
  .workbook-table td:nth-child(1) { width: 14%; }
  .workbook-table th:nth-child(2),
  .workbook-table td:nth-child(2) { width: 16%; }
  .workbook-table th:nth-child(3),
  .workbook-table td:nth-child(3) { width: 17%; }
  .workbook-table th:nth-child(4),
  .workbook-table td:nth-child(4) { width: 17%; }
  .workbook-table th:nth-child(5),
  .workbook-table td:nth-child(5) { width: 17%; }
  .workbook-table th:nth-child(6),
  .workbook-table td:nth-child(6) { width: 19%; }

  .workbook-table input,
  .workbook-table textarea {
    min-width: 0;
    width: 100%;
    font-size: 8px;
  }

  .workbook-table input::placeholder,
  .workbook-table textarea::placeholder {
    color: transparent;
  }
}
