:root {
  --paper: #faf9f5;
  --ink: #303833;
  --forest: #24483d;
  --link: #315f49;
  --muted: #53615a;
  --rule: #cbd5ca;
  --soft: #e8ede5;
  --white: #fff;
  --gold: #927f55;
  --error: #8f332d;
  --warm: #fff5e7;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    17px/1.85 system-ui,
    -apple-system,
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    "Noto Sans CJK JP",
    sans-serif;
}
a {
  color: var(--link);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  min-height: 46px;
  background: var(--forest);
  color: var(--white);
  border: 1px solid var(--forest);
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
}
button:hover,
.button-link:hover {
  background: #17392e;
  color: #fff;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.quiet-button,
.button-link.secondary {
  color: var(--forest);
  background: transparent;
  border: 1px solid #8b9e90;
}
.quiet-button:hover,
.button-link.secondary:hover {
  background: var(--soft);
  color: var(--forest);
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.site-head {
  border-top: 5px solid var(--forest);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead {
  max-width: 1200px;
  margin: auto;
  padding: 23px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--forest);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  line-height: 1.5;
}
.brand-mark {
  font:
    25px/1 Georgia,
    serif;
  border: 1px solid var(--forest);
  padding: 11px 8px;
}
.brand-sub {
  display: block;
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 500;
  margin-top: 3px;
}
.primary-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.primary-nav a {
  font-size: 14px;
  text-decoration: none;
  padding: 7px 0;
}
.primary-nav a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
.work-wordmark,
.trial-numbers dd {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", Georgia, serif;
  color: var(--forest);
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(30px, 3.1vw, 44px);
  letter-spacing: 0.01em;
  margin: 12px 0 20px;
}
h2 {
  font-size: 27px;
  margin: 2.7rem 0 1.1rem;
}
h3 {
  font-size: 21px;
  margin: 1.6rem 0 0.7rem;
}
p,
ul,
ol {
  margin: 1rem 0;
}
li + li {
  margin-top: 0.45rem;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.7;
}
.small,
small {
  font-size: 14px;
  color: var(--muted);
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 2rem;
}
.root-shell {
  max-width: 1200px;
  padding: 0 40px 70px;
  margin: auto;
}
.hero {
  padding: 80px 0 65px;
  max-width: 920px;
}
.hero h1 {
  font-size: clamp(34px, 4.7vw, 58px);
  line-height: 1.5;
  letter-spacing: 0.015em;
  margin: 22px 0;
}
.hero-lead {
  font-size: 19px;
  margin: 24px 0;
  line-height: 2;
}
.mobile-break {
  display: none;
}
.home-section {
  padding: 52px 0;
  border-top: 1px solid var(--rule);
}
.section-heading h2 {
  margin: 0.5rem 0 1.6rem;
}
.section-heading .eyebrow {
  margin: 0;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.work-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  padding: 25px 28px;
  background: var(--soft);
  border-top: 3px solid var(--forest);
}
.work-wordmark {
  font-size: 36px;
}
.work-entry strong {
  font-weight: 650;
  font-size: 19px;
}
.work-entry > span:not(.work-wordmark) {
  font-size: 14px;
  line-height: 1.8;
}
.problem-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 42px;
}
.problem-list > a {
  display: grid;
  grid-template-columns: 1fr auto;
  position: relative;
  border-bottom: 1px solid var(--rule);
  padding: 19px 0;
  text-decoration: none;
}
.problem-list span {
  font-weight: 600;
}
.problem-list small {
  grid-row: 2;
}
.problem-list b {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  font-weight: 400;
  padding-left: 12px;
}
.diagram-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.diagram-feature h2,
.research-feature h2 {
  margin: 0.7rem 0 1rem;
}
.model-teaser {
  padding: 30px 22px;
  background: white;
  border: 1px solid var(--rule);
  text-align: center;
}
.model-teaser .tokens,
.model-teaser .seats {
  justify-content: center;
}
.model-teaser .token {
  font-size: 13px;
  padding: 8px 10px;
}
.tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  background: #477c66;
  color: white;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
}
.token.noise,
.token.bad {
  background: #765630;
  color: white;
  border: 1px dashed #624221;
}
.token.ore {
  background: #566975;
  color: white;
}
.seats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.seat {
  padding: 9px 15px;
  background: #fff;
  border: 1px dashed var(--forest);
  border-bottom: 4px solid var(--forest);
  border-radius: 3px;
  min-width: 72px;
  font-weight: 600;
  min-height: 48px;
}
.seat.bad {
  border-color: #765630;
  background: var(--warm);
}
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.method-item {
  border-top: 1px solid var(--gold);
  padding-top: 17px;
}
.method-number {
  font:
    27px/1.5 Georgia,
    serif;
  color: var(--muted);
}
.method-item .article-entry {
  padding-top: 7px;
}
.article-entry {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 23px 32px 23px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
  min-width: 0;
}
.article-entry strong {
  font-size: 17px;
  line-height: 1.7;
  font-weight: 650;
}
.article-entry:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.entry-meta {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.entry-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
}
.entry-arrow {
  position: absolute;
  right: 4px;
  top: 38px;
}
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 42px;
}
.research-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.trial-numbers {
  display: flex;
  justify-content: space-around;
  gap: 20px;
}
.trial-numbers dt {
  font-size: 14px;
  color: var(--muted);
}
.trial-numbers dd {
  margin: 8px 0;
  font-size: 50px;
  line-height: 1.2;
}
.trial-numbers dd span {
  font:
    18px system-ui,
    sans-serif;
  padding-left: 4px;
}
.archive-feature {
  text-align: center;
  padding: 58px 24px;
  background: var(--soft);
  margin: 15px 0 40px;
  border: 0;
}
.archive-feature h2 {
  margin: 0.8rem 0 1.3rem;
}
.legacy-index {
  font-size: 15px;
}
.legacy-index > summary {
  font-size: 16px;
}
.legacy-index h1 {
  font-size: 27px;
}
.legacy-index .portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.legacy-index .card {
  border: 1px solid var(--rule);
  padding: 20px;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: 60px;
  max-width: 1200px;
  margin: auto;
  padding: 42px 40px 65px;
}
.shell main {
  min-width: 0;
}
.guide-nav {
  font-size: 13px;
  padding-top: 3rem;
}
.guide-nav nav {
  position: sticky;
  top: 22px;
}
.guide-nav details {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.guide-nav summary {
  font-size: 14px;
  line-height: 1.7;
}
.guide-nav ul {
  padding: 0;
  list-style: none;
}
.guide-nav a {
  display: block;
  text-decoration: none;
  padding: 6px 0;
  line-height: 1.8;
}
.guide-nav a[aria-current="page"] {
  font-weight: 750;
  text-decoration: underline;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 25px;
}
.article-header h1 {
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.6;
}
.article-summary {
  border-left: 3px solid var(--forest);
  padding: 20px 25px;
  background: var(--soft);
  margin: 30px 0;
}
.article-summary h2 {
  font-size: 23px;
  margin: 8px 0 15px;
}
.article-summary p {
  margin: 8px 0;
  font-size: 15px;
}
.status-note {
  color: var(--error);
  font-weight: 700;
}
.article-toc {
  margin: 28px 0 40px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.article-toc h2 {
  font:
    700 16px/1.6 system-ui,
    sans-serif;
  margin: 0 0 12px;
  color: var(--ink);
}
.article-toc ol {
  padding-left: 25px;
  font-size: 14px;
}
.article-toc li + li {
  margin-top: 8px;
}
.toc-level {
  display: inline-block;
  font-size: 10px;
  color: var(--muted);
  margin-right: 10px;
  min-width: 95px;
}
.research-body {
  overflow-wrap: anywhere;
}
.research-body h2 {
  padding-top: 8px;
}
.panel,
.callout,
.native-figure {
  border: 1px solid var(--rule);
  background: white;
  padding: 24px;
  margin: 25px 0;
  border-radius: 3px;
}
.callout {
  border-left: 3px solid #765630;
  background: var(--warm);
}
.panel p:first-child,
.callout p:first-child {
  margin-top: 0;
}
.panel p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}
.card {
  background: white;
  border: 1px solid var(--rule);
  padding: 22px;
  min-width: 0;
}
.card h3 {
  margin-top: 0;
}
.card.amber {
  background: var(--warm);
}
.evidence {
  margin: 25px 0;
  border-left: 3px solid var(--forest);
  background: var(--soft);
  padding: 20px;
}
.evidence strong {
  display: block;
}
.evidence.仮説,
.evidence.未確認 {
  background: var(--warm);
  border-color: #765630;
}
.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  position: relative;
  counter-increment: step;
  background: white;
  border-bottom: 1px solid var(--rule);
  padding: 18px 20px 18px 56px;
}
.steps > li:before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 12px;
  color: var(--forest);
  font:
    21px Georgia,
    serif;
}
.steps strong {
  display: block;
}
table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.85;
  margin: 25px 0;
  background: white;
}
th,
td {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--soft);
  font-weight: 650;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
}
.table-scroll table {
  min-width: 570px;
}
.diagram-label {
  font-size: 14px;
  font-weight: 650;
}
.diagram-arrow,
.draw-arrow {
  font-size: 24px;
  color: var(--forest);
}
.native-figure figcaption {
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 15px;
}
.chart {
  padding: 20px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.axis {
  display: flex;
  justify-content: space-between;
  margin-left: 65px;
  padding-right: 65px;
  font-size: 11px;
  color: var(--muted);
}
.bar-row {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) 64px;
  gap: 10px;
  align-items: center;
  margin: 15px 0;
  font-size: 15px;
}
.track {
  height: 25px;
  background: #e8ede5;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: #477c66;
}
.position-row {
  margin: 16px 0;
}
.position-row strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.stack {
  display: flex;
  min-height: 29px;
  border-radius: 3px;
  overflow: hidden;
}
.stack span {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 29px;
  min-width: 0;
}
.pos1 {
  background: #173e5c;
  color: #fff;
}
.pos2 {
  background: #287e9c;
  color: #fff;
}
.pos3 {
  background: #bcdce6;
  color: #132d41;
}
.formula {
  padding: 20px;
  border: 1px solid var(--rule);
  background: white;
  overflow-x: auto;
  font-size: 16px;
}
.simulator {
  margin: 30px 0;
  border: 1px solid var(--rule);
  padding: 26px;
  background: #fff;
  max-width: 100%;
}
.sim-heading h2 {
  margin: 10px 0 18px;
  font-size: 25px;
}
.candidate-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 20px 0;
}
.candidate-inputs label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.candidate-inputs small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.candidate-inputs input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #819287;
  background: var(--paper);
  color: var(--ink);
  border-radius: 2px;
  font-size: 19px;
}
.preset-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.preset-buttons button {
  font-size: 12px;
  padding: 8px;
}
.sim-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px 0;
  margin: 25px 0;
}
.sim-metrics span {
  font-size: 13px;
  display: block;
  color: var(--muted);
}
.sim-metrics output {
  display: block;
  color: var(--forest);
  font-size: 27px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  font-weight: 650;
}
.sim-board {
  padding: 20px;
  background: var(--paper);
  text-align: center;
}
.sim-board h3 {
  font:
    600 14px/1.8 system-ui,
    sans-serif;
  margin: 0 0 16px;
  color: var(--ink);
}
.sim-board .tokens,
.sim-board .seats {
  justify-content: center;
}
.sim-board .seat {
  font-size: 14px;
  min-width: 95px;
}
.sim-board .draw-arrow {
  margin: 14px;
}
.sim-board #sim-last {
  font-size: 14px;
}
.sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.sim-actions button {
  flex: 1 1 170px;
  font-size: 14px;
}
.sim-results {
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  min-height: 65px;
}
.input-error {
  color: var(--error);
  font-weight: 600;
  font-size: 14px;
}
.input-error:empty {
  display: none;
}
.related {
  border-top: 2px solid var(--forest);
  margin-top: 55px;
  padding-top: 22px;
}
.related h2 {
  margin: 6px 0 8px;
}
.related .article-entry {
  padding: 19px 30px 19px 0;
}
.work-return,
.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  margin-top: 34px;
}
.scope-note {
  padding: 18px 22px;
  background: var(--soft);
  border-left: 3px solid var(--forest);
  font-size: 15px;
}
.work-page {
  padding-top: 40px;
  max-width: 1050px;
}
.work-page .lead {
  max-width: 780px;
}
.work-page section {
  margin-top: 35px;
}
.mobile-nav {
  display: none;
}
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--soft);
  font-size: 13px;
  padding: 35px 40px;
  color: var(--muted);
}
.site-footer > div {
  max-width: 1120px;
  margin: auto;
}
.site-footer strong {
  color: var(--forest);
}
.site-footer p {
  margin: 6px 0;
}
details {
  border: 1px solid var(--rule);
  padding: 16px 20px;
  background: white;
  border-radius: 3px;
  margin: 20px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
pre {
  max-width: 100%;
  overflow: auto;
  font-size: 14px;
}
img,
video {
  max-width: 100%;
  height: auto;
}
figure {
  margin-left: 0;
  margin-right: 0;
}
button,
a,
input {
  touch-action: manipulation;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 32px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .masthead {
    padding: 20px 28px;
  }
  .primary-nav {
    gap: 17px;
  }
  .method-grid {
    gap: 20px;
  }
  .trial-numbers dd {
    font-size: 43px;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
    padding: 28px 24px 50px;
  }
  .guide-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav details {
    margin: 0 0 24px;
  }
  .mobile-nav nav details {
    padding: 10px 0;
    border: none;
    border-top: 1px solid var(--rule);
    margin: 12px 0 0;
  }
  .mobile-nav ul {
    font-size: 14px;
    list-style: none;
    padding: 0;
  }
  .mobile-nav a {
    display: block;
    padding: 5px 0;
  }
  .root-shell {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero {
    padding: 50px 0 45px;
  }
  .diagram-feature {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .method-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  .method-item .article-entry {
    border: none;
  }
  .research-feature {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .trial-numbers {
    justify-content: start;
    gap: 50px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .masthead {
    flex-wrap: wrap;
    gap: 14px;
  }
  .primary-nav {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--rule);
    padding-top: 10px;
  }
  .primary-nav a {
    font-size: 13px;
  }
  .home-section {
    padding: 37px 0;
  }
  .site-footer {
    padding: 28px 24px;
  }
  .brand {
    font-size: 18px;
  }
}
@media (max-width: 540px) {
  body {
    font-size: 16px;
    line-height: 1.85;
  }
  .root-shell {
    padding: 0 20px 45px;
  }
  .hero {
    padding-top: 38px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .mobile-break {
    display: block;
  }
  .hero-lead {
    font-size: 17px;
  }
  .work-grid,
  .problem-list,
  .entry-grid,
  .cards,
  .legacy-index .portal-grid {
    grid-template-columns: 1fr;
  }
  .work-grid {
    gap: 18px;
  }
  .work-entry {
    padding: 20px 24px;
  }
  .work-wordmark {
    font-size: 32px;
  }
  .problem-list > a {
    padding: 17px 0;
  }
  .problem-list span {
    font-size: 16px;
  }
  .problem-list small {
    font-size: 12px;
  }
  .archive-feature {
    padding: 32px 18px;
  }
  .home-section h2 {
    font-size: 25px;
  }
  .masthead {
    padding: 16px 20px;
  }
  .brand-sub {
    font-size: 9px;
  }
  .brand-mark {
    font-size: 23px;
  }
  .shell {
    padding: 25px 20px 45px;
  }
  .article-header h1 {
    font-size: 29px;
  }
  .article-summary {
    padding: 17px 18px;
  }
  .article-summary h2 {
    font-size: 21px;
  }
  .toc-level {
    display: block;
    line-height: 1.6;
    margin-bottom: 3px;
  }
  .article-toc ol {
    padding-left: 22px;
  }
  .article-toc li + li {
    margin-top: 13px;
  }
  h2 {
    font-size: 24px;
  }
  h3 {
    font-size: 20px;
  }
  .panel,
  .callout,
  .native-figure,
  .evidence {
    padding: 18px;
  }
  .card {
    padding: 18px;
  }
  .seat {
    padding: 7px 10px;
    min-width: 62px;
  }
  .token {
    font-size: 13px;
    padding: 7px 10px;
  }
  .chart {
    padding: 16px 10px;
  }
  .bar-row {
    grid-template-columns: 45px minmax(0, 1fr) 57px;
    font-size: 14px;
    gap: 6px;
  }
  .axis {
    margin-left: 51px;
    padding-right: 63px;
  }
  .simulator {
    padding: 18px 14px;
  }
  .sim-heading h2 {
    font-size: 22px;
  }
  .candidate-inputs {
    gap: 13px;
  }
  .candidate-inputs small {
    font-size: 10px;
  }
  .sim-metrics {
    gap: 15px;
    grid-template-columns: 1fr;
  }
  .sim-metrics output {
    font-size: 27px;
  }
  .sim-board {
    padding: 18px 8px;
  }
  .sim-board .seat {
    min-width: 0;
    flex: 1 1 70px;
    font-size: 12px;
    padding: 7px 4px;
  }
  .sim-actions button {
    flex-basis: 100%;
  }
  .sim-results {
    font-size: 14px;
  }
  .formula {
    font-size: 14px;
    padding: 15px;
  }
  .trial-numbers dd {
    font-size: 45px;
  }
  .work-page {
    padding-top: 28px;
  }
  .work-links {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Phase 3.1: same editorial palette, two-way field navigation and progressive guide tables. */
.work-strip {
  max-width: 1136px;
  padding: 0 0 14px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.primary-nav {
  gap: 15px;
}
.primary-nav a {
  font-size: 12px;
}
.masthead {
  gap: 22px;
}
.gift-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  padding: 22px;
  background: var(--soft);
  border-left: 3px solid var(--forest);
  margin: 24px 0;
}
.gift-controls label {
  font-size: 14px;
  font-weight: 650;
}
.gift-controls label[for^="gift-query"] {
  grid-column: 1;
}
.gift-controls input {
  grid-row: 2;
  grid-column: 1;
}
.gift-controls label[for^="gift-material"] {
  grid-column: 2;
  grid-row: 1;
}
.gift-controls select {
  grid-column: 2;
  grid-row: 2;
}
.gift-controls input,
.gift-controls select {
  font: inherit;
  width: 100%;
  min-width: 0;
  padding: 11px;
  color: var(--ink);
  border: 1px solid #819287;
  background: var(--paper);
  border-radius: 2px;
}
.gift-controls p {
  font-size: 13px;
  align-self: center;
  margin: 0;
}
.gift-controls button {
  font-size: 13px;
}
.resident-gifts {
  min-width: 830px;
}
.gift-item,
.gift-material-item {
  display: block;
  margin: 6px 0;
}
.gift-item small {
  display: block;
  font-size: 11px;
  line-height: 1.5;
}
.gift-material-item {
  padding: 4px 0;
  border-bottom: 1px dotted var(--rule);
}
.source-guide-table {
  min-width: 580px;
}
.gift-browser [hidden],
.spoiler-video [hidden] {
  display: none !important;
}
.compat-anchor {
  display: block;
  scroll-margin-top: 2rem;
}
.spoiler-video {
  background: var(--warm);
  border: 1px solid #9b825e;
  padding: 24px;
  margin: 26px 0;
}
.spoiler-video h3 {
  margin-top: 0;
}
.spoiler-warning strong {
  display: block;
}
.spoiler-video video {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0 0;
  background: #17221b;
}
.spoiler-video [role="status"] {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 1200px) {
  .masthead {
    flex-wrap: wrap;
    gap: 15px;
  }
  .primary-nav {
    width: 100%;
    justify-content: start;
    gap: 10px 18px;
  }
  .work-strip {
    padding: 0 32px 14px;
  }
  .primary-nav a {
    font-size: 13px;
  }
}
@media (max-width: 540px) {
  .work-strip {
    padding: 0 20px 12px;
    gap: 20px;
  }
  .primary-nav {
    gap: 5px 15px;
    justify-content: flex-start;
  }
  .gift-controls {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .gift-controls input,
  .gift-controls select,
  .gift-controls label[for^="gift-query"],
  .gift-controls label[for^="gift-material"] {
    grid-column: 1;
    grid-row: auto;
  }
  .gift-controls input {
    grid-row: 2;
  }
  .gift-controls label[for^="gift-material"] {
    grid-row: 3;
  }
  .gift-controls select {
    grid-row: 4;
  }
  .spoiler-video {
    padding: 18px;
  }
  .gift-controls p {
    font-size: 12px;
  }
}
@media (max-width: 360px) {
  .shell,
  .root-shell {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .brand {
    font-size: 16px;
  }
  .primary-nav a {
    font-size: 12px;
  }
  .article-header h1 {
    font-size: 26px;
  }
}

/* Phase 3.1.1: explicit ingredient → dish → recipient relations. Repeat materials so filtering never breaks row headers. */
.material-gifts {
  min-width: 30rem;
}
.material-gifts th:first-child {
  min-width: 5rem;
}
.material-gifts td:nth-child(2) {
  min-width: 9rem;
}
.gift-material-item {
  display: block;
  margin: 0.25rem 0;
}
.gift-category {
  white-space: nowrap;
}
.gift-item {
  display: block;
}
.gift-controls input,
.gift-controls select {
  max-width: 100%;
  min-width: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 40rem) {
  .material-gifts {
    min-width: 29rem;
  }
  .gift-controls {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .gift-controls button {
    white-space: normal;
  }
}

/* RF5 gift relations: readable names, bounded notes, scroll within tables. */
.rf5-resident-gifts {
  min-width: 54rem;
  table-layout: fixed;
}
.rf5-resident-gifts th:first-child {
  width: 7.5rem;
  white-space: nowrap;
}
.rf5-resident-gifts th:nth-child(2) {
  width: 13rem;
}
.rf5-resident-gifts th:nth-child(3) {
  width: 13rem;
}
.rf5-resident-gifts th:nth-child(4) {
  width: 10rem;
}
.rf5-resident-gifts th:nth-child(5) {
  width: 10.5rem;
}
.rf5-resident-gifts .gift-item {
  display: block;
  word-break: normal;
  overflow-wrap: break-word;
}
.rf5-resident-gifts td:last-child {
  font-size: 0.85em;
}
.gift-browser[data-work="RF5"] .material-gifts {
  min-width: 66rem;
}
.gift-browser[data-work="RF5"] .material-gifts th:first-child {
  min-width: 6rem;
}
.gift-browser[data-work="RF5"] .material-gifts td {
  min-width: 8rem;
}
.gift-browser[data-work="RF5"] .material-gifts td:nth-child(3) {
  min-width: 12rem;
}

.auto-figure {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.auto-figure h3 {
  margin-top: 0.25rem;
}
.auto-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.auto-panels > div {
  min-width: 0;
  padding: 0.75rem;
  border-left: 3px solid var(--forest);
  background: var(--soft);
}
.auto-panels h4 {
  margin: 0.25rem 0 0.75rem;
}
.auto-figure .tokens,
.auto-figure .seats {
  flex-wrap: wrap;
}
.auto-figure .token,
.auto-figure .seat {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}
.auto-flow {
  padding-left: 1.5rem;
}
.auto-flow li,
.learning-path li {
  margin: 0.8rem 0;
}
.auto-figure table {
  min-width: 35rem;
}
@media (max-width: 45rem) {
  .auto-panels {
    grid-template-columns: 1fr;
  }
  .auto-figure {
    padding: 0.85rem;
  }
  .auto-figure .token,
  .auto-figure .seat {
    font-size: 0.9rem;
  }
}
/* Integrated theory: text labels preserve meaning without color. */
.persistence-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-left: 1.5rem;
}
.persistence-flow li {
  padding: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.persistence-flow p {
  margin: 0.4rem 0;
}
.unreferenced {
  border-left: 3px dashed var(--muted);
  background: var(--soft);
}
.unreferenced th,
.unreferenced td {
  font-style: italic;
}
.auto-panels > section {
  min-width: 0;
  padding: 0.75rem;
  border-left: 3px solid var(--forest);
  background: var(--soft);
}
@media (max-width: 45rem) {
  .persistence-flow {
    grid-template-columns: 1fr;
  }
  .auto-panels > section {
    padding: 0.6rem;
  }
}

/* Phase 3.4 — Quiet Editorial hierarchy. No content or model changes. */
.rf34-head .masthead {
  align-items: center;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 16px;
}
.rf34-header-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}
.rf34-core-nav,
.rf34-utility-row,
.rf34-explore-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rf34-core-nav a {
  font-size: 17px;
  font-weight: 750;
  line-height: 1.5;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 6px 2px;
  text-decoration: none;
  color: var(--forest);
  border-bottom: 3px solid transparent;
}
.rf34-core-nav a[aria-current="page"] {
  border-bottom-color: var(--forest);
}
.rf34-utility-row {
  gap: 18px;
  font-size: 13px;
  line-height: 1.5;
}
.rf34-explore-nav {
  gap: 16px;
}
.rf34-explore-nav a,
.rf34-more summary {
  color: var(--muted);
  min-height: 44px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.rf34-explore-nav a[aria-current="page"],
.rf34-more-panel a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-weight: 700;
}
.rf34-more {
  position: relative;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
}
.rf34-more summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  list-style: none;
  gap: 6px;
}
.rf34-more summary:after {
  content: "＋";
  font-size: 16px;
}
.rf34-more[open] summary:after {
  content: "−";
}
.rf34-more summary::-webkit-details-marker {
  display: none;
}
.rf34-more-panel {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 16px;
  min-width: 240px;
  box-shadow: 0 10px 22px #24483d12;
}
.rf34-more-panel nav + nav {
  border-top: 1px solid var(--rule);
  margin-top: 8px;
  padding-top: 8px;
}
.rf34-more-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 4px;
  text-decoration: none;
  font-size: 15px;
}
.rf34-purpose.hero {
  padding: 44px 0 30px;
  max-width: 960px;
}
.rf34-purpose h1 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.4;
}
.rf34-purpose .hero-lead {
  margin: 8px 0 18px;
  font-size: 20px;
  line-height: 1.6;
}
.rf34-purpose h2 {
  font-size: 21px;
  margin: 16px 0 8px;
}
.rf34-purpose p {
  margin: 8px 0;
  max-width: 56em;
}
.rf34-purpose .small {
  font-size: 14px;
  color: var(--muted);
}
.rf34-core-entry {
  padding: 24px 0 48px;
  border-top: 1px solid var(--rule);
}
.rf34-core-entry .section-heading {
  margin-bottom: 20px;
}
.rf34-core-entry h2 {
  margin: 5px 0 0;
  font-size: clamp(24px, 3vw, 32px);
}
.rf34-core-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.rf34-core-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--soft);
  border-top: 4px solid var(--forest);
  padding: 28px 30px;
  text-decoration: none;
  min-width: 0;
}
.rf34-core-card h3 {
  font-size: 29px;
  margin: 8px 0 12px;
}
.rf34-core-card p {
  color: var(--ink);
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.8;
}
.rf34-core-card .eyebrow {
  color: var(--forest);
}
.rf34-card-link {
  margin-top: auto;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.rf34-core-card:hover {
  background: #dfe8dd;
  color: var(--forest);
}
.rf34-support-area {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 8px;
}
.rf34-support-section.home-section {
  padding: 30px 0;
}
.rf34-support-section h2 {
  font-size: 24px;
}
.rf34-support-section .section-heading {
  margin-bottom: 12px;
}
.rf34-nav-group {
  margin: 0 0 24px;
}
.rf34-nav-core {
  border-top: 3px solid var(--forest);
  padding-top: 10px;
}
.rf34-nav-core summary {
  font-weight: 750;
}
.rf34-nav-supporting {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}
.rf34-side-nav summary {
  cursor: pointer;
  padding: 5px 0;
  min-height: 44px;
}
.rf34-side-nav .rf34-field-link {
  font-weight: 600;
}
.guide-nav .rf34-side-nav a {
  min-height: 36px;
}
.rf34-side-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.rf34-index-group {
  margin: 40px 0;
}
.rf34-index-core {
  border-top: 3px solid var(--forest);
  padding-top: 12px;
}
.rf34-group-title {
  font-size: 28px;
  margin: 12px 0 24px;
}
.rf34-index-field h3 {
  font-size: 22px;
  margin: 24px 0 10px;
}
.rf34-index-field h3 a {
  display: inline-block;
  padding: 4px 0;
}
.rf34-index-supporting {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.rf34-index-supporting > .rf34-group-title {
  font-size: 23px;
}
.rf34-index-supporting .rf34-index-field h3 {
  font-size: 20px;
}
@media (max-width: 800px) {
  .rf34-head .masthead {
    padding: 14px 24px;
    gap: 10px;
  }
  .rf34-header-nav {
    align-items: flex-start;
    flex: 1 0 100%;
  }
  .rf34-core-nav {
    gap: 24px;
  }
  .rf34-purpose.hero {
    padding-top: 28px;
  }
  .rf34-core-grid {
    gap: 16px;
  }
  .rf34-core-card {
    padding: 22px;
  }
  .rf34-core-card h3 {
    font-size: 25px;
  }
}
@media (max-width: 560px) {
  .rf34-head .masthead {
    padding: 10px 20px 4px;
    gap: 4px;
  }
  .rf34-head .brand {
    font-size: 17px;
    gap: 10px;
    line-height: 1.25;
  }
  .rf34-head .brand-mark {
    font-size: 21px;
    padding: 8px 7px;
  }
  .rf34-head .brand-sub {
    font-size: 9px;
    letter-spacing: 0.08em;
    margin-top: 3px;
  }
  .rf34-header-nav {
    gap: 0;
  }
  .rf34-core-nav {
    width: 100%;
    gap: 24px;
  }
  .rf34-core-nav a {
    font-size: 16px;
    min-height: 44px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .rf34-utility-row {
    gap: 20px;
    font-size: 13px;
    width: 100%;
  }
  .rf34-explore-nav {
    gap: 18px;
  }
  .rf34-more summary {
    font-size: 13px;
  }
  .rf34-more-panel {
    right: 0;
    min-width: 220px;
    max-width: calc(100vw - 40px);
  }
  .rf34-purpose.hero {
    padding: 24px 0 20px;
  }
  .rf34-purpose h1 {
    font-size: 32px;
    margin: 6px 0;
  }
  .rf34-purpose .hero-lead {
    font-size: 18px;
    margin: 8px 0 16px;
  }
  .rf34-purpose h2 {
    font-size: 19px;
  }
  .rf34-purpose p {
    font-size: 15px;
    line-height: 1.85;
  }
  .rf34-purpose .small {
    font-size: 13px;
  }
  .rf34-core-entry {
    padding: 22px 0 32px;
  }
  .rf34-core-entry h2 {
    font-size: 24px;
  }
  .rf34-core-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rf34-core-card {
    padding: 20px 22px;
  }
  .rf34-core-card h3 {
    font-size: 26px;
    margin: 4px 0 8px;
  }
  .rf34-core-card p {
    font-size: 15px;
    margin-bottom: 14px;
  }
  .rf34-support-section.home-section {
    padding: 24px 0;
  }
  .rf34-index-group {
    margin: 28px 0;
  }
  .rf34-group-title {
    font-size: 25px;
  }
  .rf34-index-field h3 {
    font-size: 21px;
  }
  .rf34-index-field .entry-list {
    min-width: 0;
  }
}

/* Final Phase 3.4 brief: exposed desktop navigation / two-row mobile hybrid. */
.rf34-head {
  position: relative;
}
.rf34-mobile-menu {
  display: none;
}
.rf34-header-nav {
  gap: 0;
}
.rf34-desktop-support,
.rf34-desktop-explore {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.rf34-desktop-support a,
.rf34-desktop-explore a {
  display: flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
  color: var(--muted);
}
.rf34-desktop-explore {
  font-size: 13px;
  gap: 20px;
}
.rf34-desktop-support a[aria-current="page"],
.rf34-desktop-explore a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  font-weight: 700;
}
@media (min-width: 801px) {
  .rf34-head .masthead {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .rf34-header-nav {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 28px;
  }
  .rf34-core-nav {
    grid-column: 1;
  }
  .rf34-desktop-support {
    grid-column: 2;
  }
  .rf34-desktop-explore {
    grid-column: 1/3;
    justify-content: flex-end;
  }
}
@media (max-width: 800px) {
  .rf34-head .masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 14px 20px 8px;
  }
  .rf34-head .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .rf34-header-nav {
    grid-column: 1/3;
    grid-row: 2;
    display: block;
    width: 100%;
  }
  .rf34-core-nav {
    gap: 24px;
  }
  .rf34-core-nav a {
    font-size: 16px;
    min-height: 44px;
  }
  .rf34-desktop-support,
  .rf34-desktop-explore {
    display: none;
  }
  .rf34-mobile-menu {
    grid-column: 2;
    grid-row: 1;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
  }
  .rf34-mobile-menu summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 92px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #8b9e90;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--forest);
    cursor: pointer;
  }
  .rf34-mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .rf34-menu-open {
    display: none;
  }
  .rf34-mobile-menu[open] .rf34-menu-open {
    display: inline;
  }
  .rf34-mobile-menu[open] .rf34-menu-closed {
    display: none;
  }
  .rf34-mobile-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    padding: 12px 20px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 16px #24483d14;
  }
  .rf34-mobile-panel nav + nav {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--rule);
  }
  .rf34-mobile-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.6;
  }
  .rf34-mobile-panel a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
    line-height: 1.75;
  }
  .rf34-head .masthead {
    padding: 12px 16px 8px;
    gap: 8px 10px;
  }
  .rf34-head .brand {
    font-size: 16px;
    gap: 8px;
  }
  .rf34-head .brand-mark {
    font-size: 21px;
    padding: 8px 7px;
  }
  .rf34-head .brand-sub {
    font-size: 8px;
    letter-spacing: 0.05em;
  }
  .rf34-core-nav {
    gap: 20px;
    justify-content: space-between;
    max-width: 350px;
  }
  .rf34-core-nav a {
    font-size: 16px;
    min-height: 44px;
  }
  .rf34-purpose p {
    font-size: 16px;
    line-height: 1.75;
  }
  .rf34-purpose .small {
    font-size: 14px;
    line-height: 1.7;
  }
  .rf34-purpose h1 {
    font-size: 30px;
  }
  .rf34-core-entry {
    display: none;
  }
  .home-section {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .rf34-support-area {
    margin-top: 28px;
  }
  .rf34-support-section.home-section {
    padding: 24px 0;
  }
}
/* Tablet landscape retains visible navigation only when it fits. */
@media (min-width: 1101px) {
  .rf34-header-nav {
    flex: 0 1 680px;
    width: 680px;
    max-width: 100%;
    grid-template-columns: auto auto;
  }
  .rf34-core-nav a,
  .rf34-desktop-support a,
  .rf34-desktop-explore a {
    white-space: nowrap;
  }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .rf34-head .masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 14px 24px 8px;
  }
  .rf34-head .brand {
    grid-column: 1;
    grid-row: 1;
  }
  .rf34-header-nav {
    grid-column: 1/3;
    grid-row: 2;
    display: block;
    width: 100%;
  }
  .rf34-core-nav {
    gap: 28px;
  }
  .rf34-core-nav a {
    font-size: 17px;
    min-height: 44px;
  }
  .rf34-desktop-support,
  .rf34-desktop-explore {
    display: none;
  }
  .rf34-mobile-menu {
    grid-column: 2;
    grid-row: 1;
    display: block;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
  }
  .rf34-mobile-menu summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 92px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid #8b9e90;
    border-radius: 3px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--forest);
    cursor: pointer;
  }
  .rf34-mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .rf34-menu-open {
    display: none;
  }
  .rf34-mobile-menu[open] .rf34-menu-open {
    display: inline;
  }
  .rf34-mobile-menu[open] .rf34-menu-closed {
    display: none;
  }
  .rf34-mobile-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    padding: 12px 24px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 16px #24483d14;
  }
  .rf34-mobile-panel nav + nav {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--rule);
  }
  .rf34-mobile-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.6;
  }
  .rf34-mobile-panel a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }
}
@media (max-width: 560px) {
  .rf34-purpose .mobile-break {
    display: inline;
  }
}

/* Phase 3.4 review: mobile purpose typography, independent of article body. */
@media (max-width: 560px) {
  .rf34-purpose.hero {
    padding: 20px 0 18px;
  }
  .rf34-purpose > .eyebrow {
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.09em;
    margin: 0 0 8px;
    max-width: none;
  }
  .rf34-purpose h1 {
    margin: 6px 0 8px;
    font-size: 30px;
    line-height: 1.35;
  }
  .rf34-purpose .hero-lead {
    margin: 6px 0 16px;
  }
  .rf34-purpose h2 {
    margin: 12px 0 10px;
  }
  .rf34-purpose p {
    font-size: 16px;
    line-height: 1.7;
    margin: 10px 0;
  }
  .rf34-purpose .small {
    font-size: 14px;
    line-height: 1.65;
    margin-top: 12px;
  }
}

/* Both principal destinations stay visible; current location remains underlined. */
@media (max-width: 560px) {
  .rf34-core-nav {
    gap: 12px;
    max-width: none;
  }
  .rf34-core-nav a {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    min-height: 44px;
    padding: 8px 10px;
    color: #fff;
    background: var(--forest);
    border: 1px solid var(--forest);
    border-radius: 3px;
  }
  .rf34-core-nav a[aria-current="page"] {
    border-bottom-color: var(--forest);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .rf34-core-nav a:hover {
    background: #17392e;
    color: #fff;
  }
  .rf34-core-nav a:focus-visible {
    outline-offset: 3px;
  }
}

/* Final review: visible purpose, progressive detail, compact core entries. */
.rf34-purpose-short,
.rf34-purpose-details {
  display: none;
}
.rf34-purpose-full {
  display: block;
}
.rf34-core-card {
  background: var(--forest);
  color: #fff;
  border-top-color: var(--forest);
}
.rf34-core-card h3,
.rf34-core-card p,
.rf34-core-card .eyebrow {
  color: #fff;
}
.rf34-core-card:hover {
  background: #17392e;
  color: #fff;
}
.rf34-core-card:focus-visible {
  outline-offset: 4px;
}
@media (max-width: 560px) {
  .rf34-purpose-short {
    display: block;
  }
  .rf34-purpose-full {
    display: none;
  }
  .rf34-purpose-details {
    display: block;
    border: 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 0;
    margin: 12px 0 0;
    background: transparent;
  }
  .rf34-purpose-details summary {
    font-size: 14px;
    line-height: 1.6;
    min-height: 44px;
    padding: 10px 0;
    cursor: pointer;
    color: var(--forest);
    font-weight: 600;
  }
  .rf34-purpose-details p {
    font-size: 15px;
    line-height: 1.7;
  }
  .rf34-purpose-scope {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .rf34-core-entry {
    display: block;
    padding: 18px 0 26px;
  }
  .rf34-core-entry .section-heading {
    margin-bottom: 12px;
  }
  .rf34-core-entry .eyebrow {
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.08em;
  }
  .rf34-core-entry h2 {
    font-size: 21px;
    line-height: 1.5;
    margin-top: 4px;
  }
  .rf34-core-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .rf34-core-card {
    padding: 14px 16px;
    border-top-width: 2px;
  }
  .rf34-core-card h3 {
    font-size: 22px;
    margin: 4px 0 6px;
    line-height: 1.4;
  }
  .rf34-core-card p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .rf34-card-link {
    font-size: 14px;
    padding-bottom: 0;
  }
  .rf34-core-card .eyebrow {
    font-size: 10px;
    line-height: 1.45;
  }
}
@media (max-width: 560px) {
  .rf34-head .brand-sub {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0;
    max-width: 128px;
    white-space: normal;
  }
}

/* Phase 3.4.1: stable labels and groups, width-responsive placement. */
.rf341-head .masthead {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  flex-wrap: nowrap;
}
.rf341-head .brand {
  flex: 0 0 240px;
}
.rf341-head .rf34-header-nav {
  display: block;
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
}
.rf341-main-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
}
.rf341-head .rf34-core-nav {
  display: block;
  flex: 0 1 auto;
  white-space: nowrap;
}
.rf341-head .rf34-core-nav a {
  display: inline-block;
  font-size: 17px;
  font-weight: 750;
  min-height: 44px;
  padding: 8px 0;
  margin-right: 22px;
  white-space: nowrap;
  vertical-align: middle;
}
.rf341-head .rf34-core-nav a:last-child {
  margin-right: 0;
}
.rf341-head .rf34-desktop-support {
  display: block;
  flex: 1 1 250px;
  text-align: right;
  font-size: 13px;
  line-height: 1.5;
}
.rf341-head .rf34-desktop-support a {
  display: inline-block;
  min-height: 44px;
  padding: 12px 0;
  margin-left: 18px;
  vertical-align: middle;
  white-space: nowrap;
}
.rf341-head .rf34-desktop-support a:first-child {
  margin-left: 0;
}
.rf341-explore-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
  border-top: 1px solid var(--rule);
  margin-top: 6px;
  padding-top: 5px;
}
.rf341-head .rf34-desktop-explore,
.rf341-work-nav {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}
.rf341-head .rf34-desktop-explore a,
.rf341-work-nav a {
  display: inline-block;
  min-height: 36px;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  margin-right: 20px;
  white-space: nowrap;
}
.rf341-head .rf34-desktop-explore a:last-child,
.rf341-work-nav a:last-child {
  margin-right: 0;
}
.rf341-head a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.rf341-head a:hover {
  text-decoration: underline;
}
.rf341-head .rf34-mobile-menu {
  display: none;
}
.rf341-map-list {
  padding-left: 1.3rem;
}
.rf341-map-list li {
  margin: 0;
}
.rf341-map-list a {
  display: inline-block;
  min-height: 44px;
  padding: 8px 0;
  line-height: 1.6;
}
.rf341-map-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-block: 1px solid var(--rule);
  padding: 12px 0;
}
.rf341-map-jumps a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
}
@media (max-width: 1100px) {
  .rf341-head .masthead {
    flex-wrap: wrap;
    padding: 18px 24px 12px;
    gap: 12px;
  }
  .rf341-head .brand {
    flex: 1 1 180px;
    font-size: 21px;
  }
  .rf341-head .brand-sub {
    font-size: 11px;
    letter-spacing: 0.12em;
    max-width: none;
  }
  .rf341-head .rf34-mobile-menu {
    display: block;
    flex: 0 0 auto;
  }
  .rf341-head .rf34-header-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 16px;
    flex: 1 0 100%;
    width: 100%;
    margin: 0;
    padding: 0 16px;
    background: var(--forest);
  }
  .rf341-main-row {
    flex: 1 1 auto;
    display: block;
    min-width: 0;
  }
  .rf341-head .rf34-core-nav {
    display: flex;
    gap: 0;
    justify-content: flex-start;
    max-width: none;
    white-space: normal;
    flex-wrap: wrap;
  }
  .rf341-head .rf34-core-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #fff;
    padding: 12px 22px;
    min-height: 50px;
    font-size: 17px;
  }
  .rf341-head .rf34-core-nav a:first-child {
    padding-left: 0;
  }
  .rf341-head .rf34-core-nav a:hover {
    background: #17392e;
  }
  .rf341-head .rf34-core-nav a:focus-visible {
    outline-color: #fff;
    outline-offset: -4px;
  }
  .rf341-head .rf34-desktop-support,
  .rf341-head .rf34-desktop-explore {
    display: none;
  }
  .rf341-explore-row {
    margin: 0;
    padding: 0;
    border: 0;
    flex: 0 1 auto;
    display: block;
  }
  .rf341-work-nav a {
    color: #fff;
    min-height: 50px;
    padding: 15px 0;
    margin-right: 16px;
  }
  .rf341-head .rf341-menu-works {
    display: none;
  }
  .rf341-head .rf34-mobile-panel {
    max-height: 65vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 560px) {
  .rf341-head .masthead {
    padding: 12px 16px;
    gap: 12px 8px;
  }
  .rf341-head .brand {
    flex: 1 1 160px;
    font-size: 16px;
    gap: 8px;
  }
  .rf341-head .brand-sub {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0;
    max-width: 128px;
  }
  .rf341-head .rf34-header-nav {
    padding: 0 6px;
    gap: 0;
  }
  .rf341-head .rf34-core-nav {
    width: 100%;
    gap: 0;
    justify-content: space-between;
  }
  .rf341-head .rf34-core-nav a,
  .rf341-head .rf34-core-nav a:first-child {
    font-size: 15px;
    min-height: 48px;
    padding: 10px 6px;
    flex: 1;
  }
  .rf341-head .rf341-explore-row {
    display: none;
  }
  .rf341-head .rf341-menu-works {
    display: block;
  }
  .rf341-head .rf34-mobile-menu summary {
    min-width: 88px;
    font-size: 13px;
  }
}
/* Header remains in flow; the existing desktop sidebar stays accessible at short heights. */
@media (min-width: 1101px) {
  .guide-nav nav {
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 6px 8px 4px;
  }
}

/* Prevent duplicate active navigation indicators. */
.rf341-head .rf34-core-nav a[aria-current="page"] {
  text-decoration: none;
}
