:root {
  --ink: #152e27;
  --pine: #193e34;
  --paper: #fbfaf6;
  --line: #d4d9ce;
  --mute: #4f6158;
  --orange: #ff873f;
  --lilac: #d5cbf5;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 100%;
  line-height: 1.45;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
select {
  font: inherit;
  color: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #b94b1f;
  outline-offset: 3px;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.58;
}
button {
  background: #fff;
  border: 1px solid #b9c3b7;
  border-radius: 8px;
  padding: 0.68rem 1rem;
  font-weight: 650;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.07;
  letter-spacing: -0.045em;
}
p {
  line-height: 1.53;
}
button,
.primary {
  min-height: 44px;
}
.wrap,
.bar,
footer > div {
  width: min(1240px, calc(100% - 88px));
  margin-inline: auto;
}
header {
  background: #fffefa;
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  min-height: 75px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 560;
  letter-spacing: -0.055em;
}
.brand b {
  font-weight: 900;
}
.brand-icon {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  background: var(--pine);
  padding: 8px 7px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  transform: rotate(-3deg);
}
.brand-icon i {
  display: block;
  background: #fff9e6;
  width: 5px;
  height: 50%;
}
.brand-icon i:nth-child(2) {
  height: 75%;
}
.brand-icon i:last-child {
  height: 100%;
  background: #ffa15c;
}
nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
nav a,
.back {
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
  padding: 0.75rem 0;
}
nav a:hover,
.back:hover {
  text-decoration: underline;
}
.hero {
  margin: 2rem 0 2.85rem;
  border-radius: 19px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  background: var(--pine);
  color: #fffdf4;
}
.hero-copy {
  padding: clamp(2rem, 4.2vw, 4.25rem);
  align-self: center;
}
.meta {
  font: 650 0.78rem/1.45 var(--mono);
  letter-spacing: 0.075em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.meta > b {
  margin-left: auto;
}
.hero .meta {
  color: #e3f0da;
}
.tiny-mark {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid #ffa969;
  box-shadow:
    inset 3px 0 #193e34,
    inset 5px 0 #ffa969;
}
.hero h1 {
  font-size: clamp(3.1rem, 5.55vw, 5.25rem);
  max-width: 10ch;
  line-height: 0.96;
  margin: 1.45rem 0;
  letter-spacing: -0.072em;
}
.hero h1 em {
  color: #ffad70;
  font-family: Georgia, serif;
  font-weight: normal;
  letter-spacing: -0.07em;
}
.hero p {
  font-size: clamp(1.08rem, 1.45vw, 1.36rem);
  max-width: 28em;
  color: #f1f4e9;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  background: var(--pine);
  border: 1px solid var(--pine);
  color: white;
  border-radius: 8px;
  font-weight: 750;
  padding: 0.82rem 1.15rem;
}
.primary:hover {
  filter: brightness(1.13);
}
.hero .primary {
  margin-top: 1.6rem;
  background: #ff9957;
  color: #202a20;
  border-color: transparent;
}
.hero-image {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
  background: var(--lilac);
}
.hero-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
}
.hero-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.15rem;
  color: #1e2544;
  background: #e5dff8f4;
  font: 600 0.76rem var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.055em;
}
.section-title,
.snapshot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.05rem;
}
.section-title h2,
.snapshot-head h2,
.panel h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}
.section-title > span,
.snapshot-head > span,
.fine,
.doc-line {
  color: var(--mute);
  font-size: 0.9rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem;
}
.lab-card,
.panel,
.slip,
.document {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 13px;
  min-width: 0;
}
.lab-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
}
.lab-card h3 {
  font-size: 1.45rem;
  margin: 1.05rem 0 0.52rem;
}
.lab-card h3 a {
  text-decoration: none;
}
.lab-card p {
  color: #45574e;
  max-width: 36em;
}
.card-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.05rem;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-top .meta {
  font-size: 0.73rem;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1.3;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  border: 0;
  background: transparent;
  padding: 0;
}
.illustration {
  width: 44px;
  height: 44px;
  background: #ffddbc;
  border-radius: 11px;
  position: relative;
  color: #4d3a24;
}
.illustration i,
.illustration b {
  position: absolute;
  display: block;
}
.illustration.shop i {
  width: 25px;
  height: 16px;
  border: 2px solid;
  top: 16px;
  left: 9px;
  transform: skewY(-6deg);
}
.illustration.shop b {
  left: 7px;
  top: 13px;
  border: 2px solid;
  width: 29px;
  height: 7px;
  transform: skewY(-6deg);
  background: #ffbc85;
}
.illustration.bank {
  background: #d8e7d5;
  color: #2a5146;
}
.illustration.bank i {
  width: 22px;
  height: 26px;
  left: 11px;
  top: 9px;
  border: 2px solid;
  border-radius: 2px;
  transform: rotate(-7deg);
  background: repeating-linear-gradient(
    0deg,
    transparent 0 5px,
    #59806e 5px 7px
  );
  background-clip: content-box;
  padding: 3px;
}
.illustration.error {
  background: #e2daf9;
  color: #43365e;
}
.illustration.error i {
  width: 18px;
  height: 18px;
  border: 2px solid;
  border-radius: 50%;
  left: 10px;
  top: 9px;
}
.illustration.error b {
  height: 13px;
  width: 3px;
  background: currentColor;
  transform: rotate(-42deg);
  top: 23px;
  left: 27px;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
}
footer > div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 1.35rem 0;
  font-size: 0.88rem;
  color: var(--mute);
}
footer strong {
  color: var(--ink);
}
.page-title,
.lab-title {
  margin: 2.25rem 0 1.5rem;
}
.page-title h1,
.lab-title h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0.55rem 0;
}
.page-title p,
.lab-title p {
  max-width: 55rem;
}
.lab-wrap {
  max-width: 970px;
}
.back {
  display: inline-block;
  margin-top: 1rem;
  color: var(--mute);
}
.lab-title {
  margin-top: 0.55rem;
}
.panel,
.snapshot,
.two-docs {
  margin: 1.1rem 0;
}
.panel,
.slip,
.document {
  padding: clamp(1.1rem, 3vw, 2rem);
}
.panel h2 {
  margin: 0.5rem 0 0.7rem;
}
.panel h3,
.slip h3 {
  font-size: 1.2rem;
  margin: 1.1rem 0 0.55rem;
}
.panel p + p,
.panel p + .primary {
  margin-top: 0.6rem;
}
.choices,
.chips {
  display: grid;
  gap: 0.5rem;
  margin: 0.8rem 0 1rem;
}
.choices button,
.chips button {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.choices button i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 25px;
  height: 25px;
  font: 0.8rem var(--mono);
  border: 1px solid #bcc5bd;
  border-radius: 4px;
}
.choices button:hover,
.chips button:hover,
.tabs button:hover {
  background: #f2f4ec;
}
.choices button[aria-pressed="true"],
.chips button[aria-pressed="true"],
.tabs button[aria-pressed="true"] {
  background: var(--pine);
  color: white;
}
.source-fold {
  margin-top: 0.85rem;
}
.source-fold summary {
  font-size: 0.92rem;
  color: var(--mute);
  min-height: 40px;
  padding: 0.55rem 0;
}
.document {
  background: #fffdf5;
  border: 1px dashed #a5ad9d;
}
.document h4 {
  font-size: 1.2rem;
  margin: 0.7rem 0 0.2rem;
}
.document p {
  margin: 0.65rem 0;
}
.snapshot {
  background: #e8eee4;
  border: 1px solid #d2dccf;
  padding: 1.2rem;
  border-radius: 14px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: start;
}
.metric {
  min-width: 0;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.metric summary {
  list-style: none;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.metric summary strong {
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  letter-spacing: -0.04em;
}
.metric summary small {
  font-weight: 700;
  font-size: 0.91rem;
}
.metric summary > span {
  font: 0.76rem var(--mono);
  color: var(--mute);
}
.metric[open] {
  grid-column: 1/-1;
}
.metric-trace {
  padding: 0 0.85rem 0.8rem;
}
.response,
.feedback {
  padding: 1rem;
  background: #e6efdf;
  border-left: 4px solid #57856a;
  margin: 0.75rem 0 1rem;
  border-radius: 4px;
}
.response p {
  margin-top: 0.25rem;
}
.outcome {
  background: #f1f2e7;
}
.outcome .text-link,
.panel .primary + .text-link {
  margin-left: 0.5rem;
}
.tabs,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tabs {
  margin: 1rem 0;
}
.tabs button {
  font-size: 0.87rem;
}
.entry {
  border-top: 1px solid var(--line);
}
.entry > summary {
  padding: 0.75rem 0;
  font-weight: 650;
  min-height: 44px;
}
.entry > summary small {
  font: normal 0.78rem var(--mono);
  margin-left: 0.5rem;
}
.inset {
  padding: 0.4rem 0.35rem 0.7rem 0.7rem;
  border-left: 2px solid #dce1d4;
}
.inset > .document {
  margin: 0.5rem 0;
}
.row,
.trial {
  display: grid;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.row {
  grid-template-columns: minmax(0, 1fr) auto;
}
.trial {
  grid-template-columns: minmax(0, 1fr) minmax(4rem, auto) minmax(4rem, auto);
  font-variant-numeric: tabular-nums;
}
.row b,
.trial b:not(:first-child),
.row strong {
  text-align: right;
}
.row small {
  display: block;
  color: var(--mute);
  font: normal 0.77rem var(--mono);
}
.line-head,
.total {
  background: #eef1e9;
  padding-inline: 0.4rem;
}
.entry > summary.row,
.entry > summary.trial {
  display: grid;
}
.entry > summary.row span:first-child:before,
.entry > summary.trial span:first-child:before {
  content: "› ";
  color: #5c7362;
}
.two-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.slip p {
  margin: 0.7rem 0;
}
.progress {
  width: 100%;
  height: 8px;
  accent-color: var(--pine);
  margin-top: 1rem;
}
.progress + p {
  font-size: 0.85rem;
}
dialog {
  max-width: min(92vw, 440px);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: 12px;
  color: var(--ink);
}
dialog::backdrop {
  background: #12291dcc;
}
dialog p {
  margin: 1rem 0;
}
dialog form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skip,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  z-index: 5;
  clip-path: none;
  width: auto;
  height: auto;
  background: white;
  padding: 0.8rem;
}
@media (max-width: 850px) {
  .wrap,
  .bar,
  footer > div {
    width: calc(100% - 44px);
  }
  .cards {
    gap: 0.7rem;
  }
  .lab-card {
    padding: 1rem;
  }
  .card-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-copy {
    padding: 2.2rem 1.7rem;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
}
@media (max-width: 670px) {
  .wrap,
  .bar,
  footer > div {
    width: calc(100% - 28px);
  }
  .bar {
    gap: 0.4rem;
    min-height: 60px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 1.03rem;
    gap: 0.35rem;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
    padding: 6px 5px;
  }
  nav {
    gap: 0.74rem;
  }
  nav a {
    font-size: 0.82rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .hero {
    grid-template-columns: 1fr;
    margin: 1rem 0 1.8rem;
    border-radius: 15px;
  }
  .hero-copy {
    padding: 1.65rem 1.3rem;
  }
  .hero h1 {
    font-size: clamp(2.8rem, 11.7vw, 4.2rem);
    max-width: 12ch;
    margin: 0.9rem 0;
  }
  .hero p {
    font-size: 1.06rem;
  }
  .hero .primary {
    margin-top: 1.15rem;
  }
  .hero-image {
    min-height: auto;
    aspect-ratio: 2.02;
  }
  .hero-image img {
    object-position: center 53%;
  }
  .hero-image figcaption {
    padding: 0.45rem 0.8rem;
    font-size: 0.69rem;
  }
  .cards,
  .two-docs {
    grid-template-columns: 1fr;
  }
  .card-top {
    flex-direction: row;
    align-items: center;
  }
  .lab-card {
    padding: 1.12rem;
  }
  .section-title,
  .snapshot-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .snapshot {
    padding: 0.85rem;
  }
  .two-docs {
    gap: 0.6rem;
  }
  .trial {
    gap: 0.38rem;
    font-size: 0.88rem;
  }
  .panel,
  .slip,
  .document {
    padding: 1rem;
  }
  .inset {
    padding-left: 0.45rem;
  }
  .lab-title h1 {
    font-size: 2.45rem;
  }
  .panel h2 {
    font-size: 1.65rem;
  }
  .tab,
  .tabs button {
    font-size: 0.85rem;
  }
  .entry,
  .panel,
  .document {
    overflow-wrap: anywhere;
  }
  .lab-wrap .back {
    margin-top: 0.3rem;
  }
  .lab-title {
    margin-top: 0.1rem;
  }
  .lab-title .meta {
    font-size: 0.72rem;
  }
  .fine {
    font-size: 0.85rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition: background-color 0.15s ease;
  }
}

.practice-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 1.2rem 0;
  padding: 1.55rem 1.7rem;
  border: 1px solid #b9bfdf;
  border-left: 5px solid #746caa;
  border-radius: 12px;
  background: #f0edf8;
}
.practice-banner h2 {
  font-size: 1.55rem;
  margin: 0.4rem 0;
}
.practice-banner p {
  max-width: 60ch;
}
.practice-banner .primary {
  white-space: nowrap;
}
.practice-banner small {
  display: block;
  margin-top: 0.4rem;
  text-align: center;
}
.practice-desk {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 1rem;
  margin: 1.2rem 0;
}
.practice-desk .panel {
  margin: 0;
}
.practice-evidence {
  padding: 1rem;
  background: #edece5;
  border-radius: 12px;
}
.practice-evidence h2 {
  font-size: 1.35rem;
  margin: 0.25rem 0 0.75rem;
}
.practice-evidence .document {
  margin: 0.6rem 0;
  padding: 0.9rem;
}
.posting-hint {
  margin: 1rem 0;
}
.posting-hint summary {
  padding: 0.5rem 0;
  font-weight: 650;
}
.posting-hint p {
  padding: 0.45rem 0.7rem;
  border-left: 3px solid #b8b1d6;
}
.journal-line,
.answer-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.7rem;
  min-width: 0;
  margin: 1rem 0;
}
.journal-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem;
}
.journal-line legend {
  font: 0.8rem var(--mono);
  padding: 0 0.25rem;
  font-weight: bold;
}
.practice-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.87rem;
  font-weight: 650;
  min-width: 0;
}
.practice-form input,
.practice-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  font: inherit;
  font-size: 1rem;
  font-weight: normal;
  border: 1px solid #9aaa9f;
  background: #fff;
  border-radius: 6px;
  padding: 0.46rem;
  color: var(--ink);
}
.journal-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.65rem;
  background: #f0f3e9;
  font-size: 0.86rem;
}
.journal-totals b {
  display: block;
}
.practice-form .primary {
  margin-top: 0.8rem;
}
.practice-feedback:not(:empty),
.posted-note {
  border-left: 3px solid #8d6823;
  padding: 0.75rem;
  background: #fff0d6;
  margin: 0.85rem 0;
}
.practice-form [aria-invalid] {
  border: 2px solid #9b5213;
}
.posted-note {
  border-color: #498468;
  background: #e4efe6;
}
@media (max-width: 700px) {
  .practice-banner,
  .practice-desk {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }
  .practice-banner {
    padding: 1.1rem;
  }
  .practice-banner small {
    text-align: left;
  }
  .practice-evidence .document {
    padding: 0.75rem;
  }
  .practice-desk .practice-evidence p {
    margin: 0.4rem 0;
  }
  .answer-pair {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 370px) {
  .journal-line {
    grid-template-columns: 1fr;
  }
}
.practice-banner .practice-reset {
  display: block;
  margin: 0.15rem auto 0;
}

.review-step {border-top:1px solid var(--line); margin-top:1rem}
.review-step > summary {padding:.9rem 0; font-weight:700}
.review-step table {width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; margin:1rem 0}
.review-step caption {text-align:left; font-weight:700; margin-bottom:.45rem}
.review-step th,.review-step td {text-align:right; padding:.5rem .2rem; border-bottom:1px solid var(--line)}
.review-step th:first-child {text-align:left}
@media(max-width:400px){.review-step table{font-size:.83rem}}
