/* Diagram labels should remain readable at ordinary zoom, including on phones. */
.reading-sentence {
  display: inline-block;
  max-width: 100%;
  padding-inline-end: 0.2em;
  vertical-align: top;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.explanation-list {
  list-style: disc;
  margin: 16px 0 0;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.95;
}
ol.explanation-list {
  list-style: decimal;
}
.section .explanation-list li + li {
  margin-top: 12px;
}
.explanation-list li::marker {
  color: var(--blue);
}
.explanation-list strong:first-child,
.explanation-list b:first-child {
  font-weight: 700;
}
.explanation-group {
  margin: 25px 0;
}
.section .explanation-group h3 {
  margin: 0 0 12px;
  font-size: 21px;
}
.section .explanation-group h4 {
  font-size: 17px;
  margin: 0 0 10px;
}
.termline .explanation-list {
  font-size: 14px;
  margin: 0;
}
.termline .explanation-list li + li {
  margin-top: 12px;
}
.note .explanation-list,
.comparison-tip .explanation-list {
  font-size: 14px;
  margin-top: 10px;
}
@media print {
  .learning-figure {
    max-width: 160mm;
    margin-inline: auto;
  }
  .learning-figure img {
    max-height: 80mm;
    object-fit: contain;
  }
  .learning-figure figcaption {
    font-size: 10pt;
  }
  .reading-sentence {
    display: inline;
  }
  .explanation-list li {
    break-inside: avoid;
  }
}
.card p,
.summary-page .card p,
.phase p,
.esg-triad p,
.support-box p,
.term-grid p,
.study-steps p {
  font-size: 15px;
  line-height: 1.9;
}
.card .mini,
.micro,
.visual-card small,
.health-flow .micro,
.esg-triad .micro {
  font-size: 12px;
  letter-spacing: 0.7px;
  line-height: 1.7;
}
.visual-card p,
.chapter-card-content > p,
.study-path p {
  font-size: 15px;
  line-height: 1.9;
}
.chapter-card-content > p {
  min-height: 86px;
}
.visual-card {
  max-width: 360px;
}
.home-visual {
  min-width: 0;
}
.chapter-card-art span {
  font-size: 17px;
}
.chapter-card-art {
  min-height: 144px;
  height: auto;
  padding-block: 22px;
}
.orb span {
  font-size: 14px;
  letter-spacing: 1px;
}
.art-caption {
  font-size: 12px;
}
.connection::after {
  font-size: 11px;
  letter-spacing: 1px;
}
html[lang='en'] .connection::after {
  content: 'INTERACTION';
}
.flow-node {
  font-size: 18px;
  line-height: 1.6;
}
.flow-node small {
  font-size: 14px;
  line-height: 1.8;
}
.flow-arrow {
  font-size: 22px;
}
.phase .question,
.ux-triad .phase .question {
  font-size: 16px;
  min-height: 0;
}
.example-chip {
  font-size: 14px;
  line-height: 1.8;
}
.essential > span:last-child,
.evolution-row p,
.participation span,
.participation b,
.health-flow div > span:last-child,
.purpose-grid b,
.purpose-grid span,
.experience-path,
.metaphors,
.relation small,
.term-grid small,
.process-note span {
  font-size: 14px;
  line-height: 1.8;
}
.evolution-row h3 {
  font-size: 17px;
}
.purpose-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.purpose-grid div {
  padding: 18px 14px;
}
.loop-caption,
.term-mini {
  font-size: 14px !important;
}
.return-path {
  font-size: 14px;
  line-height: 1.8;
  padding: 12px;
}
.experience-path small {
  font-size: 13px;
}
.process-card > p,
.process-card dl > div {
  font-size: 15px;
  line-height: 1.9;
}
.process-card dl > div {
  grid-template-columns: minmax(100px, 32%) 1fr;
  gap: 15px;
}
.process-ribbon span {
  font-size: 24px;
}
.process-ribbon {
  gap: 12px;
}
.memory-strip b,
.memory-strip small {
  font-size: 13px;
}
.memory-strip span {
  font-size: 16px;
}
.keyword-pair span {
  font-size: 13px;
}
.support-title {
  font-size: 15px;
}
.verification-grid span {
  font-size: 13px;
}
.axis-row {
  grid-template-columns: 135px 1fr 145px;
  font-size: 15px;
  gap: 15px;
}
.axis-list {
  gap: 22px;
}
.axis-list p {
  font-size: 13px;
}
.section .evidence,
.evidence a,
.section .evidence a,
.flag {
  font-size: 12px;
}
.evidence {
  gap: 10px;
}
.source {
  font-size: 12px;
}
.segmented button {
  font-size: 14px;
  padding: 12px 8px;
}
.demo-tag {
  font-size: 12px;
}
.dimension-demo p,
.demo-panel p {
  font-size: 15px;
}
@media (max-width: 1100px) {
  .triad {
    grid-template-columns: 1fr;
  }
  .phase {
    padding: 25px;
  }
  .evolution-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .between {
    transform: rotate(90deg);
    text-align: center;
  }
  .evolution-row h3 {
    min-height: 0;
  }
  .home-hero {
    gap: 28px;
  }
  .visual-card:nth-child(2) {
    margin-left: 15px;
  }
}
@media (max-width: 600px) {
  .chapter-card-art span {
    font-size: 16px;
    padding: 12px;
  }
  .chapter-card-art {
    gap: 10px;
  }
  .chapter-card-content > p {
    min-height: 0;
  }
  .chapter-card-head {
    gap: 10px;
  }
  .esg-triad {
    grid-template-columns: 1fr;
  }
  .esg-triad .phase {
    padding: 23px;
  }
  .esg-triad .micro {
    font-size: 12px;
  }
  .esg-triad p {
    font-size: 15px;
  }
  .health-flow {
    flex-direction: column;
    gap: 14px;
  }
  .health-flow > div {
    width: 100%;
    background: var(--bg);
    padding: 18px;
    border-radius: 14px;
  }
  .health-flow > span {
    transform: rotate(90deg);
  }
  .health-flow div > span:last-child {
    font-size: 15px;
  }
  .process-ribbon {
    flex-direction: column;
    gap: 8px;
    padding: 20px;
  }
  .process-ribbon span {
    font-size: 23px;
  }
  .process-ribbon i {
    transform: rotate(90deg);
  }
  .purpose-grid {
    grid-template-columns: 1fr;
  }
  .purpose-grid div:last-child {
    grid-column: auto;
  }
  .purpose-grid b,
  .purpose-grid span {
    font-size: 15px;
  }
  .process-card dl > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .process-card dd {
    margin: 0;
  }
  .participation div {
    flex-direction: column;
    gap: 3px;
  }
  .essential-grid {
    grid-template-columns: 1fr;
  }
  .essential b {
    font-size: 23px;
  }
  .essential > span:last-child {
    font-size: 14px;
  }
  .axis-row {
    grid-template-columns: 86px 1fr 105px;
    gap: 8px;
    font-size: 14px;
  }
  .axis-list {
    padding: 20px 14px;
  }
  .orb {
    width: 112px;
    height: 126px;
  }
  .hero-art {
    gap: 35px;
    height: 270px;
  }
  .orb span {
    font-size: 12px;
  }
  .art-caption {
    font-size: 11px;
  }
  .connection::after {
    font-size: 9px;
    top: -47px;
  }
  .source {
    font-size: 11px;
  }
  .section-head {
    flex-wrap: wrap;
  }
  .segmented {
    flex-wrap: wrap;
  }
  .segmented button {
    font-size: 13px;
    min-width: 75px;
  }
}
/* Figures share a solid frame, legible labels, and a stable mobile layout. */
.hero-art.interaction-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  gap: 24px;
  max-width: 820px;
  height: auto;
  margin: 36px auto 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
}
.interaction-node {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 182px;
  padding: 20px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface, #fff);
}
.interaction-node svg {
  width: 46px;
  height: 46px;
  color: var(--blue);
}
.interaction-node strong {
  font-size: 20px;
  line-height: 1.5;
}
.interaction-node span,
.interaction-exchange span,
.interaction-map figcaption {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.interaction-exchange {
  display: grid;
  gap: 16px;
}
.interaction-exchange > div {
  display: grid;
  gap: 2px;
}
.interaction-exchange b {
  font-size: 36px;
  line-height: 1;
  color: var(--blue);
}
.interaction-map figcaption {
  grid-column: 1 / -1;
  margin: 0;
  text-wrap: balance;
}
:is(.flow-node, .evolution-row article, .phase, .process-card, .purpose-grid > div) {
  border: 1px solid var(--line);
}
.flow-node {
  align-content: center;
  min-height: 138px;
  padding: 24px 18px;
}
.health-flow > div {
  align-self: stretch;
  align-content: center;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}
.flow-arrow,
.between,
.health-flow > span,
.process-ribbon i {
  color: var(--blue);
  font-size: 24px;
}
@media (max-width: 600px) {
  .hero-art.interaction-map {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
  }
  .interaction-node {
    min-height: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    gap: 3px 16px;
    padding: 18px;
  }
  .interaction-node svg {
    grid-row: 1 / 3;
    align-self: center;
  }
  .interaction-node strong {
    font-size: 18px;
  }
  .interaction-exchange {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .interaction-exchange > div {
    justify-items: center;
    gap: 8px;
  }
  .interaction-exchange b {
    transform: rotate(90deg);
  }
  .flow-node {
    min-height: 0;
  }
  .axis-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
  .axis-row .axis-line {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-right: 4px;
  }
  .axis-list {
    padding: 20px 18px;
  }
  .axis-row > span:last-child {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
}
@media print {
  .learning-figure .figure-open {
    display: none;
  }
  .learning-figure figcaption {
    font-size: 10pt;
  }
  .card p,
  .phase p,
  table,
  .table-wrap td,
  .table-wrap th {
    font-size: 11pt !important;
  }
  .health-flow,
  .process-ribbon {
    flex-direction: row;
  }
  .process-ribbon i,
  .health-flow > span {
    transform: none;
  }
  .esg-triad,
  .triad {
    grid-template-columns: repeat(3, 1fr);
  }
  .essential-grid {
    grid-template-columns: 1fr 1fr;
  }
  .evolution-row {
    grid-template-columns: 1fr 20px 1fr 20px 1fr;
  }
  .between {
    transform: none;
  }
}
/* Design layer (2026-10-06): a handout-like page. One reading column, five type steps,
   two surface levels (page and inset). Colors come from tokens so themes.css only swaps them. */
:root {
  --ink-2: #3b404b;
  --surface: #fff;
  --surface-2: #f5f6f8;
  --accent-soft: #edf3fb;
  --line-strong: #c5ccd8;
  --note: #8a5a00;
  --note-soft: #fbf6ea;
  --measure: 720px;
  --gutter: 48px;
  --fs-display: clamp(32px, 3.3vw, 44px);
  --fs-h2: clamp(25px, 2.2vw, 30px);
  --fs-h3: 20px;
  --fs-body: 16.5px;
  --fs-meta: 13.5px;
  --r: 10px;
}
@media screen {
  .content {
    max-width: calc(var(--measure) + 2 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .course-nav {
    width: calc(100% - 2 * var(--gutter));
    max-width: var(--measure);
    padding-inline: 0;
  }
  .content {
    position: relative;
  }
  .content > .knut-language {
    position: absolute;
    top: 28px;
    right: var(--gutter);
    width: auto;
    padding: 0;
  }
  .course-nav {
    padding-block: 18px;
    font-size: 14px;
    gap: 8px 22px;
  }
  .course-nav a {
    color: var(--ink-2);
  }
  .course-nav a[aria-current] {
    color: var(--blue);
  }

  /* Hero */
  .chapter-hero {
    padding: 56px 0 44px;
  }
  .chapter-hero .eyebrow {
    display: block;
    max-width: calc(100% - 180px);
    font-size: 12.5px;
    letter-spacing: 0.12em;
  }
  .chapter-hero h1,
  .summary-page .chapter-hero h1 {
    margin: 14px 0 16px;
    font-size: var(--fs-display);
    line-height: 1.25;
    letter-spacing: -0.035em;
  }
  .chapter-hero .lede {
    max-width: none;
    font-size: 17.5px;
    line-height: 1.85;
    color: var(--ink-2);
  }
  .chapter-hero .hero-links {
    margin: 22px 0 0;
    gap: 4px 22px;
    font-size: 14px;
    color: var(--muted);
  }
  .course-nav a,
  .chapter-end a,
  .hero-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Concept map: three equal cards, same accent. */
  .concept-map {
    gap: 12px;
    margin-top: 28px;
  }
  .concept-map > div,
  .concept-map > div:nth-child(n) {
    min-width: 0;
    padding: 18px 20px 16px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--blue);
    border-radius: var(--r);
    background: var(--surface);
    overflow-wrap: anywhere;
  }
  .concept-map small {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.6;
    color: var(--muted);
  }
  .concept-map strong {
    display: block;
    margin: 6px 0 4px;
    font-size: 23px;
    line-height: 1.4;
  }
  .concept-map span {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-2);
  }

  /* Sections */
  .section {
    padding-block: 56px;
  }
  .section-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .section h2,
  .summary-page .section h2 {
    margin-bottom: 14px;
    font-size: var(--fs-h2);
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .section h3 {
    font-size: var(--fs-h3);
    line-height: 1.45;
    letter-spacing: -0.02em;
  }
  .section > h3 {
    margin: 44px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--blue);
  }
  .section p,
  .summary-page .section p,
  .section .explanation-list,
  .section ul,
  .section ol,
  .answer,
  .glossary dd {
    font-size: var(--fs-body);
    line-height: 1.9;
  }
  .section .lead,
  .section .intro {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.85;
    color: var(--ink);
  }
  .section .explanation-list li + li {
    margin-top: 10px;
  }
  .section > :is(ul, ol) + p {
    margin-top: 18px;
  }
  .section > p + :is(.grid, .concept-map, .triad, .flow, .dimension-demo, .study-steps),
  .section > :is(.grid, .concept-map, .triad, .flow, .dimension-demo, .study-steps) + p {
    margin-top: 28px;
  }
  .section > :is(.comparison-tip, .table-wrap, .example, .support-box, .termline, details) {
    margin-block: 28px;
  }

  /* Source references: one quiet meta line under the heading. */
  .section .evidence {
    gap: 4px 10px;
    margin: 0 0 20px;
    color: var(--muted);
  }
  .source,
  .section .evidence,
  .section .source-page,
  .section .flag,
  .section .reading-note,
  .section .source-note,
  .nav-bottom {
    font-size: var(--fs-meta);
    line-height: 1.75;
  }
  .section .source-page {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .flag {
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 650;
  }
  .source {
    white-space: normal;
    text-align: right;
  }

  /* Inset notes: learning supplements and source-notation checks. */
  .comparison-tip {
    margin: 28px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--line-strong);
    border-radius: 0 var(--r) var(--r) 0;
    background: var(--surface-2);
  }
  .comparison-tip > .flag {
    margin-bottom: 6px;
  }
  .section .comparison-tip p {
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--ink-2);
  }
  .comparison-tip.source-note {
    border-left-color: var(--note);
    background: var(--note-soft);
  }
  .comparison-tip.source-note > .flag {
    padding: 0;
    background: none;
    color: var(--note);
  }

  /* Source excerpts in summaries */
  .section .source-excerpt + .evidence {
    margin-top: 28px;
  }
  .section .evidence:has(+ .source-excerpt) {
    margin-bottom: 8px;
  }
  .section .source-excerpt {
    margin: 0 0 20px;
    padding: 14px 20px;
    border-left: 3px solid var(--blue);
    border-radius: 0 var(--r) var(--r) 0;
    background: var(--surface-2);
    overflow-wrap: anywhere;
  }
  .section .source-excerpt.red {
    border-left-color: #c14155;
  }
  .section .source-excerpt:is(.bold, .underline, .bold-underline) {
    border-left-color: var(--ink);
  }
  .section .source-excerpt:is(.bold, .bold-underline) > p:first-child {
    font-weight: 700;
  }
  .section .source-excerpt:is(.underline, .bold-underline) > p:first-child,
  .section .source-excerpt:is(.underline, .bold-underline) > p:first-child .reading-sentence {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }
  /* Unformatted letters that finish a word cut by the source formatting.
     inline-block stops the excerpt's underline from reaching them. */
  .section .source-excerpt .excerpt-context {
    display: inline-block;
    color: var(--muted);
    font-weight: 400;
    text-decoration: none;
  }
  :root[data-language='en'] .section .source-excerpt .excerpt-context {
    display: none;
  }
  .section .source-excerpt .reading-note {
    color: var(--muted);
  }

  /* Tables: a title line, a quiet header row, rules between rows. */
  .table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
  }
  .table-wrap caption {
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--line);
    background: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    text-align: left;
  }
  .table-wrap :is(th, td) {
    padding: 13px 16px;
    vertical-align: top;
    font-size: 15px;
    line-height: 1.8;
  }
  .table-wrap th {
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 700;
  }
  .table-wrap td {
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }
  .table-wrap td p {
    font-size: 15px;
  }
  .table-wrap td:first-child {
    font-weight: 650;
  }

  /* Learning figures: the image carries its own frame; caption reads as text. */
  .learning-figure {
    margin: 32px 0;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
    break-inside: avoid;
  }
  .learning-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface-2);
  }
  .learning-figure figcaption {
    padding: 12px 2px 0;
    border-top: 0;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.8;
  }
  .learning-figure .figure-kind {
    display: inline;
    margin: 0 6px 0 0;
    color: var(--blue);
    font-size: 13.5px;
    font-weight: 700;
  }
  .learning-figure .figure-open {
    display: flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    font-size: 14px;
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Interactive demos share one inset panel. */
  .dimension-demo,
  .risk-demo {
    margin-top: 24px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface-2);
  }
  .dimension-demo h3 {
    margin-top: 12px;
  }
  .segmented button[data-usability] {
    flex: 1 1 128px;
    min-height: 44px;
  }
  .risk-controls {
    display: grid;
    gap: 14px;
  }
  .risk-controls fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .risk-controls legend {
    margin-bottom: 6px;
    padding: 0;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 700;
  }
  .risk-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 4px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-size: 15px;
    cursor: pointer;
  }
  .risk-controls label:has(input:checked) {
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--blue);
    color: var(--blue);
    font-weight: 650;
  }
  .risk-controls input {
    margin: 0;
    accent-color: var(--blue);
  }
  .risk-demo .table-wrap {
    margin: 18px 0 0;
  }
  .risk-result {
    margin-top: 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
  }
  .risk-matrix :is(th, td) {
    text-align: center;
    vertical-align: middle;
  }
  .risk-matrix tbody th {
    text-align: left;
    white-space: nowrap;
  }
  .risk-matrix td,
  .risk-matrix td:first-child {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .risk-matrix .grade-1 {
    background: #e6f3e8;
    color: #1e5e2f;
  }
  .risk-matrix .grade-2 {
    background: #eef5e2;
    color: #3f5c16;
  }
  .risk-matrix .grade-3 {
    background: #fcf3d8;
    color: #6e5000;
  }
  .risk-matrix .grade-4 {
    background: #fce6d9;
    color: #8c3a0f;
  }
  .risk-matrix .grade-5 {
    background: #fadde1;
    color: #95213a;
  }
  .risk-matrix td.is-selected {
    box-shadow: inset 0 0 0 3px var(--ink);
  }

  /* Review questions */
  .quiz {
    margin-top: 14px;
    padding: 20px 22px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
  }
  .quiz legend {
    float: left;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    color: var(--ink);
    font-size: var(--fs-body);
    font-weight: 650;
    line-height: 1.7;
  }
  .quiz legend + label {
    clear: both;
  }
  .quiz label {
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-top: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15.5px;
    line-height: 1.6;
  }
  .quiz label:hover {
    background: var(--surface-2);
  }
  .quiz label:has(input:checked) {
    border-color: var(--blue);
    background: var(--accent-soft);
  }
  .quiz input {
    margin: 0;
    flex: none;
  }
  .quiz-result {
    border-radius: 8px;
    font-size: 15px;
  }
  summary {
    min-height: 44px;
  }

  /* Glossary */
  .search-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
  }
  .search-row .glossary-search {
    flex: 1 1 240px;
    min-width: 0;
    margin: 0;
    border-radius: 8px;
  }
  .search-count {
    font-size: 14px;
  }
  .glossary dt {
    font-size: 16px;
    font-weight: 700;
  }
  .glossary dd {
    color: var(--ink-2);
    font-size: 15.5px;
  }

  /* Sidebar: this chapter's sections, then every chapter. */
  .toc a {
    font-size: 13.5px;
    line-height: 1.6;
    padding-block: 9px;
  }
  .chapter-list {
    display: grid;
    gap: 2px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .chapter-list .nav-kicker {
    margin-bottom: 6px;
  }
  .sidebar .chapter-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: 13.5px;
    line-height: 1.5;
  }
  .sidebar .chapter-list a:hover {
    background: var(--surface-2);
    text-decoration: none;
  }
  .sidebar .chapter-list a[aria-current] {
    color: var(--blue);
    font-weight: 650;
  }
  .chapter-list .num {
    min-width: 16px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
  }
  .sidebar-closed .sidebar {
    box-shadow: none;
  }
  .brand-dot,
  .version.is-current {
    color: var(--blue);
  }

  /* Chapter end: next steps as plain bordered links. */
  .chapter-end {
    flex-wrap: wrap;
    gap: 10px;
    padding: 32px 0 44px;
    border-top: 1px solid var(--line);
    font-size: 15px;
  }
  .chapter-end a {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .chapter-end a:hover {
    border-color: var(--blue);
    text-decoration: none;
  }

  @media (max-width: 820px) {
    :root {
      --gutter: 28px;
    }
    .section {
      padding-block: 44px;
    }
  }
  @media (max-width: 600px) {
    :root {
      --gutter: 20px;
      --fs-body: 16px;
    }
    .content > .knut-language {
      position: static;
      padding-top: 12px;
    }
    .chapter-hero {
      padding: 20px 0 32px;
    }
    .chapter-hero .eyebrow {
      max-width: none;
    }
    .chapter-hero .lede {
      font-size: 16px;
    }
    .section .lead,
    .section .intro {
      font-size: 17px;
    }
    .section > h3 {
      margin-top: 36px;
    }
    .section .source-excerpt,
    .comparison-tip {
      padding: 14px 16px;
    }
    .concept-map {
      gap: 8px;
    }
    .concept-map > div,
    .concept-map > div:nth-child(n) {
      padding: 12px 16px;
    }
    .concept-map strong {
      display: inline;
      margin-right: 10px;
      font-size: 19px;
    }
    .concept-map span {
      font-size: 15px;
    }
    .risk-demo,
    .dimension-demo {
      padding: 18px 16px;
    }
    .risk-matrix :is(th, td) {
      padding: 10px 8px;
      font-size: 14px;
    }
    .course-nav {
      padding-block: 14px;
      gap: 4px 16px;
    }
  }
}
