:root {
  color-scheme: light;
  --ink: #1e344f;
  --muted: #46617c;
  --link: #245582;
  --line: #c8d9e8;
  --serif: "Iowan Old Style", "Palatino Linotype", "AppleMyungjo", "Batang", Georgia, serif;
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f5f9fd; font: 1rem/1.78 var(--sans); word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--link); text-underline-offset: .21em; }
a:hover { color: #123652; }
a:focus-visible { outline: 3px solid #28649a; outline-offset: 4px; }
.skip { position: absolute; top: -10rem; z-index: 1; padding: .6rem; background: white; }
.skip:focus { top: 0; }
.top { background: #e4f0fb; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 68rem; margin: auto; padding: .95rem clamp(1.15rem, 4vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.5rem; flex-wrap: wrap; }
.brand { color: var(--ink); font: 600 1.12rem/1.4 var(--serif); text-decoration: none; }
nav { display: flex; gap: 1.5rem; font-size: .9rem; line-height: 2; }
nav a { text-decoration: none; color: var(--muted); }
nav a[aria-current] { color: var(--ink); border-bottom: 2px solid #477ca9; }
.sheet { max-width: 58rem; margin: auto; padding: 0 clamp(1.15rem, 4vw, 3rem) 4.5rem; }
.hero { padding: clamp(3rem, 7vw, 5rem) 0 2.3rem; }
.eyebrow, .section-label { color: var(--muted); font-size: .8rem; font-weight: 650; letter-spacing: .045em; }
.hero h1 { margin: .36rem 0 .6rem; font: 550 clamp(2.1rem, 5.6vw, 3.9rem)/1.15 var(--serif); letter-spacing: -.035em; }
.hero p { margin: 1rem 0 0; color: var(--muted); max-width: 42rem; }
.entry { background: #fff; border: 1px solid var(--line); border-top: .25rem solid #9dbedb; border-radius: .25rem; padding: clamp(1.15rem, 5vw, 3.8rem); }
.section-label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; padding-bottom: 1.05rem; border-bottom: 1px solid var(--line); }
.section-label a { text-decoration-thickness: 1px; }
h2 { font: 600 clamp(1.75rem, 3.5vw, 2.4rem)/1.3 var(--serif); letter-spacing: -.02em; margin: 1.6rem 0 1rem; }
h3 { font: 650 1.14rem/1.45 var(--sans); margin: 2rem 0 .4rem; }
p { margin: .5rem 0 1rem; }
.standfirst { font-size: 1.09rem; line-height: 1.8; }
:target { scroll-margin-top: 1rem; }
@media (max-width: 32rem) {
  .top-inner { flex-direction: column; align-items: flex-start; gap: .3rem; }
  nav { gap: 1rem; }
  .hero { padding: 2.25rem 0 1.6rem; }
  .sheet { padding-inline: .85rem; }
}

/* The columns share an event order, so overlapping work reads vertically. */
nav { flex-wrap: wrap; }
/* Neutral tokens also style roles added before a family is assigned. */
[data-family] {
  --role-on: #ced0d9;
  --role-run: #e5e6ec;
  --role-soft: #f3f3f7;
  --role-edge: #777986;
  --role-ink: #30313c;
}
[data-family="question"] {
  --role-on: #d1b9ed; --role-run: #e7daf6; --role-soft: #f6effb;
  --role-edge: #87689f; --role-ink: #45304f;
}
[data-family="exploration"] {
  --role-on: #9dd9bd; --role-run: #d1efdf; --role-soft: #eff9f3;
  --role-edge: #527f69; --role-ink: #244635;
}
[data-family="analysis"] {
  --role-on: #a9cdea; --role-run: #d7e8f6; --role-soft: #edf5fc;
  --role-edge: #62829e; --role-ink: #273f58;
}
[data-family="publication"] {
  --role-on: #f2bc91; --role-run: #fae0ca; --role-soft: #fff4ea;
  --role-edge: #986f50; --role-ink: #583b28;
}
[data-role="next"] { --role-on: #dec2ea; --role-run: #eddef4; }
.role-key { display: flex; flex-wrap: wrap; gap: .25rem .9rem; padding: 0; margin: .55rem 0 .85rem; list-style: none; }
.role-key li { color: var(--muted); font-size: .8rem; }
.role-key li::before, .track th[scope=row]::before {
  content: ""; display: inline-block; width: .64rem; height: .64rem; margin-right: .38rem;
  vertical-align: -.02em; background: var(--role-on); border: 1px solid var(--role-edge); border-radius: 50%;
}
.workflow-hero { padding-bottom: 1.7rem; }
.workflow-entry + .workflow-entry { margin-top: 1.7rem; }
.workflow-entry { min-width: 0; }
.workflow-entry h2 { margin-top: 1.25rem; }
.track-scroll { max-width: 100%; overflow-x: auto; margin: 1.65rem 0 .6rem; }
.track-scroll:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.track { border-collapse: separate; border-spacing: 0 .32rem; min-width: 100%; font-size: .79rem; }
.track caption { text-align: left; font-size: 1rem; font-weight: 650; }
.track caption span { display: inline-block; margin-inline-start: .3rem; color: var(--muted); font-size: .8rem; font-weight: 400; }
.track th, .track td { padding: .22rem .3rem; text-align: center; white-space: nowrap; }
.track th[scope=row], .track thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; padding-left: 0; padding-right: .85rem; }
.track thead th { color: var(--muted); font-weight: 500; }
.track td { min-width: 2.55rem; background: #f3f6f9; }
.track td.running { background: var(--role-run); }
.track td.on { background: var(--role-on); border-radius: .45rem 0 0 .45rem; }
.track td.off { background: var(--role-soft); border-radius: 0 .45rem .45rem 0; box-shadow: inset 0 0 0 1px var(--role-edge); }
.mark a { display: block; color: var(--role-ink); text-decoration: none; font: 650 .74rem/1.7 var(--sans); }
.mark a:hover { text-decoration: underline; }
.track-group { color: var(--muted); font-size: .87rem; }
.track-group strong { color: var(--ink); margin-right: .45rem; }
.event-log { margin: .8rem 0 0; padding-left: 1.8rem; }
.event-log li { padding: .6rem .6rem .55rem .2rem; border-bottom: 1px solid var(--line); }
.event-log li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.event-log li:target { background: var(--role-soft); outline: 1px solid var(--role-edge); }
.event-log li p { margin: .15rem 0 0; }
.decision-record { margin: .65rem 0; padding: .65rem .9rem; border-inline-start: .2rem solid var(--role-edge); background: var(--role-soft); }
.decision-record dt { font-weight: 650; font-size: .83rem; color: var(--role-ink); }
.decision-record dd { margin: .1rem 0 .65rem; }
.decision-record dd:last-child { margin-bottom: 0; }
.event-label { display: inline-block; min-width: 3em; text-align: center; margin-right: .3rem; border-radius: .2rem; font: 700 .73rem/1.65 var(--sans); }
.event-label.on { background: var(--role-on); color: var(--role-ink); }
.event-label.off { background: var(--role-soft); color: var(--role-ink); box-shadow: inset 0 0 0 1px var(--role-edge); }
.actor { color: var(--muted); font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.turn-index { gap: .4rem 1rem; margin-top: 1rem; }
.turn-index a { text-decoration: underline; color: var(--link); }

/* Overview uses the same journal and event anchors as the detailed pages. */
.overview-hero { padding-bottom: 1.7rem; }
.overview-hero > a { display: inline-block; margin-top: .7rem; font-size: .9rem; }
.sheet:has(.overview) { max-width: 68rem; }
.overview { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 1.2rem; align-items: start; }
.overview-section { min-width: 0; padding: clamp(1rem, 2.5vw, 1.65rem); }
.overview-section h2 { margin: 0 0 .45rem; font-size: 1.55rem; }
.overview-section > p { margin: 0 0 1.25rem; font-size: .9rem; color: var(--muted); }
.research-tree, .research-tree ul { margin: 0; padding: 0; list-style: none; }
.research-tree { max-height: 65vh; overflow: auto; padding: .3rem; }
.research-tree ul { padding-left: 1.3rem; }
.research-tree li { position: relative; padding: .25rem 0; }
.research-tree ul > li { padding-left: .95rem; }
.research-tree ul > li::before, .research-tree ul > li::after { content: ""; position: absolute; left: 0; }
.research-tree ul > li::before { top: -.26rem; bottom: -.26rem; border-left: 1px solid #8dafcf; }
.research-tree ul > li:last-child::before { bottom: auto; height: 1.76rem; }
.research-tree ul > li::after { top: 1.5rem; width: .95rem; border-top: 1px solid #8dafcf; }
.turn-node { display: block; width: fit-content; min-width: 9rem; padding: .65rem .95rem; background: #edf5fc; border: 1px solid #adc9e1; border-radius: .35rem; text-decoration: none; }
.turn-node:hover { background: #e1effa; border-color: #7195b5; }
.turn-number { display: block; color: var(--muted); font-size: .76rem; }
.turn-question { display: block; font-weight: 650; line-height: 1.5; }
.matrix-scroll { margin: 0; padding: .2rem; }
.participation-matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .87rem; }
.participation-matrix th, .participation-matrix td { padding: .46rem .65rem; text-align: center; white-space: nowrap; border-bottom: 1px solid #dde7f0; }
.participation-matrix th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; }
.participation-matrix thead th { background: #f1f6fb; color: var(--muted); }
.participation-matrix thead th:first-child { background: #f1f6fb; }
.participation-matrix th[scope=row]::before { content: ""; display: inline-block; width: .68rem; height: .68rem; margin-right: .5rem; background: var(--role-on); border: 1px solid var(--role-edge); border-radius: 50%; }
.participation { display: inline-block; padding: .05rem .5rem; border-radius: .3rem; font-size: .8rem; }
.participation.on { background: var(--role-on); color: var(--role-ink); }
.participation.off { border: 1px solid var(--role-edge); color: var(--role-ink); }
.participation.unknown { color: var(--muted); }
.guide { margin-top: clamp(1.2rem, 5vw, 3.25rem); }
.guide h1 { font: 600 clamp(1.9rem, 5vw, 2.75rem)/1.22 var(--serif); margin: 0 0 1.25rem; }
.guide h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.guide li + li { margin-top: .5rem; }
.guide table { display: block; overflow-x: auto; border-collapse: collapse; font-size: .93rem; }
.guide th, .guide td { padding: .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide th { background: #edf5fc; }
.guide code { overflow-wrap: anywhere; }
@media (max-width: 48rem) {
  .overview { grid-template-columns: minmax(0, 1fr); }
  .research-tree ul { padding-left: .5rem; }
}

.entry + .entry { margin-top: 1rem; }
.journal-text { white-space: pre-line; }
.guide dd { margin: .2rem 0 .7rem; }

#content .entry > div[lang="en"] { font: 1.08rem/1.68 var(--serif); word-break: normal; }
#content .entry > div[lang="en"] h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
#content .entry > div[lang="en"] h4 { margin-bottom: .4rem; font-size: 1.14rem; }
math[display="block"] { display: block math; max-width: 100%; overflow-x: auto; padding: .3rem 0; }
