/* Shared field-guide theme. Existing data and interaction selectors stay stable. */
:root {
  color-scheme: light;
  --paper: #f4efe3;
  --white: #fffcf5;
  --ink: #30281f;
  --muted: #625749;
  --edge: #c8baa2;
  --green: #70432a;
  --green-dark: #503421;
  --gold: #e7c98e;
  --focus: #95451f;
  --control-edge: #89765f;
  --wash: #e9dfcd;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --sans: 'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
  --page-width: 90rem;
  --gutter: clamp(1.15rem, 4.5vw, 4.5rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-block-start: 1.5rem; }
::selection { color: var(--white); background: var(--green); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem / 1.65 var(--sans);
}
a { color: var(--green); text-underline-offset: .22em; text-decoration-thickness: .06em; }
a:hover { color: var(--ink); text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input, select, button { font: inherit; }
input, select { min-width: 0; }
button { cursor: pointer; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
button:disabled { cursor: default; opacity: .65; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 4.8vw, 4.5rem); font-weight: 400; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.65rem); font-weight: 500; letter-spacing: -.025em; }
h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -.012em; }
p { text-wrap: pretty; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip { position: fixed; z-index: 20; left: .75rem; top: .75rem; padding: .6rem .9rem; background: var(--white); transform: translateY(-175%); }
.skip:focus { transform: translateY(0); }
.site-head { border-block: 4px solid var(--green-dark); border-block-end-width: 1px; background: var(--paper); }
.head-inner {
  max-width: var(--page-width);
  min-height: 6rem;
  margin: auto;
  padding: .85rem var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(12rem, 19rem);
  align-items: center;
  gap: clamp(.75rem, 1.7vw, 1.75rem);
}
.wordmark { display: inline-flex; gap: .75rem; align-items: center; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.wordmark:hover { color: var(--green); text-decoration: none; }
.wordmark-title { display: block; font-size: 1.42rem; letter-spacing: -.025em; }
.wordmark-subtitle { display: block; margin-top: .25rem; font: 400 .74rem / 1.25 var(--sans); letter-spacing: .1em; color: var(--muted); }
.crest { display: grid; place-items: center; flex: none; width: 2.55rem; aspect-ratio: 1; border: 1px solid var(--green-dark); outline: 1px solid var(--edge); outline-offset: 3px; font-size: .85rem; background: var(--green-dark); color: var(--gold); }
.head-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem clamp(.75rem, 1.45vw, 1.4rem); }
.head-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; font-weight: 600; padding: .3rem 0; text-decoration: none; border-bottom: 1px solid transparent; }
.head-nav a:is(:hover, [aria-current]) { border-color: currentColor; }
.head-inner:not(:has(.head-search)) { grid-template-columns: auto 1fr auto; }
.language-switch { display: flex; gap: .25rem; }
.language-switch > * { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: .25rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; }
.language-switch [aria-current] { color: var(--white); background: var(--green-dark); border-radius: 0; }
.english-main { width: min(100% - 2.3rem, 66rem); margin: 2.5rem auto; }
.search-form { display: flex; min-width: 0; gap: .45rem; }
.search-form input, .search-panel input, .search-panel select, .calculator input, .calculator select, .calendar-filter select {
  min-height: 2.75rem;
  width: 100%;
  padding: .5rem .7rem;
  border: 1px solid var(--control-edge);
  border-radius: .1rem;
  color: var(--ink);
  background: var(--white);
}
.search-form button, .calculator button { min-height: 2.75rem; padding: .45rem .9rem; border-radius: .1rem; border: 1px solid var(--green-dark); color: var(--white); background: var(--green-dark); font-weight: 600; }
.search-form button:hover, .calculator button:hover { background: var(--green); }
.search-form button:active, .calculator button:active { transform: translateY(1px); }

.hero {
  position: relative;
  background: #2c231b;
  color: #fff8ea;
  min-height: clamp(28rem, 62svh, 42rem);
  display: grid;
  align-items: center;
  border-bottom: 4px solid var(--green-dark);
}
.hero-image {
  --hero-artwork: url('village-2172.webp');
  --hero-overlay: linear-gradient(90deg, #211a15f5 0%, #211a15e6 35%, #211a1570 66%, #211a1529 100%);
  background-image: var(--hero-overlay), var(--hero-artwork);
  background-size: cover;
  background-position: center 52%;
}
@media (max-width: 100rem) and (max-resolution: 1.49dppx) {
  .hero-image { --hero-artwork: url('village-1650.webp'); }
}
@media (max-width: 75rem) and (max-resolution: 1.49dppx) {
  .hero-image { --hero-artwork: url('village-1200.webp'); }
}
@media (max-width: 32rem) {
  .hero-image { --hero-artwork: url('village-mobile-1086.webp'); }
}
@media (max-width: 32rem) and (max-resolution: 1.49dppx) {
  .hero-image { --hero-artwork: url('village-mobile-540.webp'); }
}
.hero-inner { width: min(100%, var(--page-width)); margin: auto; padding: clamp(2.3rem, 5vw, 5rem) var(--gutter); }
.hero-kicker { margin-bottom: 1.1rem; color: var(--gold); font-weight: 600; font-size: .76rem; letter-spacing: .15em; }
.hero h1 { max-width: 11ch; font-size: clamp(3.45rem, 7.8vw, 7.5rem); font-weight: 400; line-height: .96; letter-spacing: -.045em; }
.hero-inner > p:not(.hero-kicker) { max-width: 38ch; margin: 1.4rem 0 1.7rem; color: #fff8ea; font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.6rem; margin-block-start: .8rem; }
.hero-actions a, .hero-primary, .hero-secondary { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem 0; border: 0; border-bottom: 1px solid var(--gold); border-radius: 0; color: #fff8ea; background: transparent; font-weight: 600; text-decoration: none; }
.hero-actions a:hover, .hero-primary:hover, .hero-secondary:hover { color: var(--gold); border-bottom-width: 2px; background: transparent; }
.hero a:focus-visible, .hero button:focus-visible { outline-color: var(--gold); }

.starter-guides { max-width: 92rem; margin: auto; padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 6vw, 6rem) 0; }
.starter-guides ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(.75rem, 2vw, 1.6rem); margin: .65rem 0 0; padding: 0; list-style: none; }
.starter-guides li { border-block-start: 1px solid var(--edge); }
.starter-guides a { display: flex; flex-direction: column; gap: .2rem; min-height: 2.75rem; padding: .55rem .2rem; text-decoration: none; }
.starter-guides a span { font: 700 1.15rem / 1.16 var(--serif); color: var(--green-dark); text-decoration: underline; text-underline-offset: .15em; }
.starter-guides a small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.starter-guides a:hover { background: var(--white); }
@media (max-width: 52rem) {
  .starter-guides ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-content {
  max-width: 92rem;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(16rem, 1fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 6vw, 6rem) 3rem;
}
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: 1.25rem; }
.section-head span, .group-count, .version-note { color: var(--muted); font-size: .87rem; }
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); padding: 0; list-style: none; margin: 0; border-top: 1px solid var(--edge); column-gap: 1.5rem; }
.group-grid li { min-width: 0; border-bottom: 1px solid var(--edge); }
.group-grid a { display: flex; min-height: 6.5rem; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .9rem .25rem; text-decoration: none; }
.group-grid a:hover .group-title { text-decoration: underline; }
.group-title { color: var(--green-dark); font: 600 1.6rem / 1.15 var(--serif); text-decoration: underline; text-underline-offset: .18em; text-decoration-color: var(--edge); }
.group-description { color: var(--muted); line-height: 1.35; }
.group-count { padding-top: .17rem; }
.home-aside { padding-left: clamp(.8rem, 2.1vw, 2rem); border-left: 1px solid var(--edge); }
.home-aside > h2 { margin-bottom: .45rem; }
.home-aside > h2:not(:first-child) { margin-top: 1.3rem; }
.home-aside .entry-list p { display: none; }
.home-aside .entry-list li { padding: .55rem 0; }
.tool-links { margin-top: .5rem; }

.shell {
  display: grid;
  grid-template-columns: minmax(10rem, 12.5rem) minmax(0, 1fr);
  gap: clamp(1.7rem, 4vw, 4.5rem);
  max-width: var(--page-width);
  padding: 2.25rem var(--gutter) 5rem;
  margin: auto;
}
.sidebar { align-self: start; border-right: 1px solid var(--edge); padding-right: 1rem; }
.sidebar-title { color: var(--muted); margin: .5rem 0 .8rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; }
.sidebar ul { margin: 0 0 1.3rem; padding: 0; list-style: none; }
.sidebar a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .45rem .45rem; font-size: .9rem; text-decoration: none; border-bottom: 1px solid transparent; }
.sidebar a:hover { border-bottom-color: var(--edge); }
.sidebar a[aria-current] { background: var(--wash); border-left: 3px solid var(--green-dark); font-weight: 700; }
.sidebar small { color: var(--muted); }
.page-main { min-width: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; margin: 0 0 1.7rem; font-size: .8rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: .35rem; }
.article { max-width: 66rem; }
.article-shell, .article-body { min-width: 0; }
.article-head { max-width: 66rem; padding-bottom: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--edge); }
.article-head p { margin: .85rem 0 .25rem; }
.article-heading { display: flex; align-items: flex-start; gap: clamp(.85rem, 2.5vw, 1.65rem); }
.article-heading > div { min-width: 0; flex: 1; }
.article-icon, .entry-icon {
  flex: none;
  background: #40392c;
  border: 1px solid #77684e;
  border-radius: .15rem;
  aspect-ratio: 1;
  object-fit: contain;
}
.article-icon { width: clamp(3.5rem, 8vw, 4.75rem); height: auto; padding: .4rem; margin-block-start: .4rem; }
.entry-icon { width: 2.55rem; height: auto; padding: .18rem; }
.table-icon { width: 2rem; height: auto; margin-inline-end: .6rem; vertical-align: middle; }
.table-icon.crest-icon { width: 4.25rem; }
.quest-contact-portrait {
  display: block;
  width: 7rem;
  max-inline-size: 100%;
  height: auto;
  margin-block-end: .3rem;
  border-radius: .25rem;
}
.table-cell-detail { color: var(--muted); font-size: .9em; font-weight: 400; margin-block-start: .3rem; }
.illustrated-directory {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(15rem, 30vw, 24rem);
  border: 0;
  color: #fff8ea;
  background: #263427;
  overflow: hidden;
}
.directory-image, .illustrated-directory::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.directory-image { z-index: -2; object-fit: cover; object-position: 60% center; }
.illustrated-directory::after { content: ''; z-index: -1; background: linear-gradient(88deg, #142016 4%, #142016ce 43%, #14201621 89%); }
.illustrated-directory > div { padding: clamp(1rem, 4vw, 3.4rem); }
.illustrated-directory p { max-width: 36ch; color: #fff8ea; }
.directory-action { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem 0; border: 0; border-bottom: 1px solid currentColor; border-radius: 0; font-weight: 600; text-decoration: none; }
.byline { color: var(--muted); font-size: .82rem; }
.article-head .byline { margin-block: .65rem 0; font-size: .875rem; line-height: 1.6; }
.article-meta-text { margin-inline-end: .6rem; }
.article-source-link { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; }
.lead, .answer { font-size: clamp(1.08rem, 1.8vw, 1.3rem); max-width: 60ch; }
.lead { line-height: 1.6; }
.answer { font-weight: 500; line-height: 1.6; padding: .65rem 0 .65rem 1.1rem; margin-block: .5rem 1.75rem; border-inline-start: 3px solid var(--green); background: transparent; }
.prose p, .prose ol, .prose ul, .article-body > p { max-width: 68ch; }
.prose h2, .related h2, .page-main section > h2 { margin: 2.5rem 0 .9rem; }
.article-body > section + section { margin-block-start: 2.5rem; }
.article-body > section > h2 { padding-top: .5rem; }

/* Long articles: a quieter opening, distinct chapters and native reading tools. */
.article > .prose > .answer { padding-block: .3rem; border-inline-start-width: 2px; font-weight: 400; }
.article > .prose > section { margin-block-start: 2rem; }
.article > .prose > section + section { padding-block-start: 1.25rem; border-block-start: 1px solid var(--edge); }
.article > .prose > section > h2 { margin-block: 0 .9rem; font-size: clamp(1.7rem, 2.45vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em; }
.article > .prose > section h3 { margin-block: 1.7rem .7rem; font-size: 1.3rem; line-height: 1.3; }
.article[data-article-navigation] { --article-tools-height: 4rem; }
.article[data-article-navigation] [id] { scroll-margin-block-start: calc(var(--article-tools-height) + 1rem); }
.article-tools { position: sticky; inset-block-start: 0; z-index: 6; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 .8rem; margin-block: 1.5rem 0; padding: .3rem .25rem; border-block: 1px solid var(--edge); background: var(--paper); font-size: .85rem; line-height: 1.4; }
.article-tools a { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; min-inline-size: 0; padding: .35rem .45rem; font: 600 .85rem / 1.4 var(--sans); }
.article-tools a { text-decoration-thickness: 1px; }
.article-tools a:hover { background: var(--wash); }
.article-tools [data-article-return] { grid-column: 1; }
.article-tools [data-article-current] { grid-column: 2; min-inline-size: 0; padding-inline-start: .8rem; border-inline-start: 1px solid var(--edge); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .83rem; font-weight: 400; }
.article-tools [data-article-section-link] { grid-column: 3; }
.article-tools [data-article-current]:empty { display: none; }
.article-tools + .contents { max-width: none; margin-block-start: 0; border-block-start: 0; }
.article [data-article-toc] ul { max-width: none; }
.article [data-article-toc] a { display: block; min-height: 2.75rem; padding: .4rem .5rem; line-height: 1.5; }
.article [data-article-toc] a[aria-current="location"] { color: var(--ink); background: var(--wash); font-weight: 600; text-decoration-color: currentColor; text-decoration-thickness: .12em; }
@media (max-width: 48rem) {
  .article[data-article-navigation] { --article-tools-height: 5.5rem; }
  .article-tools { grid-template-columns: auto minmax(0, 1fr); column-gap: .25rem; }
  .article-tools [data-article-current] { grid-column: 1 / -1; grid-row: 1; padding: .25rem .2rem .35rem; border-inline-start: 0; }
  .article-tools [data-article-return] { grid-column: 1; grid-row: 2; }
  .article-tools [data-article-section-link] { grid-column: 2; grid-row: 2; }
  .article > .prose > section + section { padding-block-start: 1.1rem; }
}
@media (max-width: 40rem) and (max-height: 30rem) {
  .article-tools { position: static; }
}
.prose li + li { margin-top: .35rem; }
.contents, .toc { padding: 1rem 0; margin-block: 1.75rem 2.25rem; max-width: 60rem; border-block: 1px solid var(--edge); background: transparent; }
.contents :is(h2, h3), .toc :is(h2, h3) { margin: 0 0 .5rem; font: 600 .82rem / 1.4 var(--sans); letter-spacing: .06em; }
.contents ul, .toc ul { columns: 2; column-gap: 2.5rem; margin: .5rem 0 0; padding-inline-start: 1.15rem; font-size: .93rem; }
.contents li, .toc li { break-inside: avoid; margin-block: .25rem; }
.contents a, .toc a { text-decoration-color: var(--edge); }
.compact-contents { padding: 0; }
.compact-contents > summary { min-height: 2.75rem; padding: .7rem .25rem; color: var(--ink); font-size: .95rem; font-weight: 600; cursor: pointer; list-style-position: inside; }
.compact-contents > summary::marker { color: var(--green); font-size: .85em; }
.compact-contents > summary > span { float: right; margin-inline-start: 1rem; color: var(--muted); font-size: .8rem; font-weight: 400; }
.compact-contents > summary:hover { color: var(--green); }
.compact-contents > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.compact-contents[open] > summary { border-bottom: 1px solid var(--edge); }
.compact-contents[open] > nav { padding: .35rem .25rem 1rem; }

.facts { margin-block: 1.5rem; font-variant-numeric: tabular-nums; }
dl.facts { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 2fr); gap: .5rem 1.5rem; border-block: 1px solid var(--edge); padding-block: 1rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 600; }
.vendor-index { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; }
.vendor-index ul { margin-top: .3rem; }
.vendor-index li { margin-bottom: .22rem; }
.related { margin-top: 3.25rem; padding-top: 1.25rem; border-top: 1px solid var(--edge); }
.related > h2 { margin: 0 0 .85rem; font-size: 1.65rem; font-weight: 500; }
.related > ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; max-width: none; margin: 0; padding: 0; list-style: none; }
.related > ul > li { min-width: 0; margin: 0; border-bottom: 1px solid var(--edge); }
.related > ul > li > a { display: flex; align-items: center; min-height: 2.75rem; padding-block: .65rem; font: 500 1.2rem / 1.3 var(--serif); text-decoration-color: var(--edge); overflow-wrap: anywhere; }
.related > ul > li > a:hover { text-decoration-color: currentColor; }
@media (min-width: 64rem) {
  .related > ul:has(> li:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.provenance { margin-top: 2rem; color: var(--muted); font-size: .9rem; }
.provenance ul { margin-top: .25rem; }
.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list li { display: flex; gap: .65rem; align-items: center; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid var(--edge); }
.entry-list li > div { flex: 1; min-width: 0; }
.entry-list a { overflow-wrap: anywhere; font-weight: 700; }
.entry-list p { margin: .2rem 0 0; color: var(--muted); font-size: .93rem; }
.search-results { max-width: 72ch; }
.search-results li { padding-block: 1.15rem; }
.search-results li > div > a:first-of-type { font: 600 1.5rem / 1.2 var(--serif); letter-spacing: -.015em; }
.search-results small { display: block; font-size: .76rem; color: var(--muted); margin-bottom: .35rem; letter-spacing: .025em; }
.search-route-links { display: grid; gap: .18rem; margin-block-start: .25rem; }
.search-stock-plan { max-width: 72ch; border: 0; border-block: 1px solid var(--edge); padding: 1rem 0; margin-block: 1.5rem; }
.search-stock-plan h2 { margin-block: 0 .4rem; font-size: 1.2rem; }
.search-stock-plan ul { margin-block: .4rem 0; }
.more-results { min-height: 2.75rem; margin-block: 1.5rem; padding: .45rem .85rem; color: var(--green-dark); background: transparent; border: 1px solid var(--green-dark); font-weight: 600; border-radius: .1rem; }
.more-results:hover { color: var(--white); background: var(--green-dark); }
.entry-arrow { color: var(--muted); }

/* Topic directories: a readable index with locally filtered, complete HTML lists. */
.directory-meta { max-width: 68ch; margin-block: .75rem 1rem; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.directory-meta a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: .35rem; vertical-align: middle; }
.directory-browser { min-inline-size: 0; }
.directory-tools { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) auto; align-items: end; gap: .75rem 1rem; margin-block: 1.25rem; padding-block: 1.1rem; border-block: 1px solid var(--edge); }
.directory-query, .directory-section-control { min-inline-size: 0; }
.directory-tools label { display: block; margin: 0; }
.directory-tools label > span { display: block; margin-block-end: .35rem; font-size: .83rem; font-weight: 600; line-height: 1.45; }
.directory-tools :is(input[type="search"], select) { display: block; width: 100%; min-inline-size: 0; min-height: 2.75rem; padding: .5rem .7rem; border: 1px solid var(--control-edge); border-radius: .1rem; color: var(--ink); background: var(--white); font: 400 1rem / 1.4 var(--sans); }
.directory-tools button { min-height: 2.75rem; padding: .45rem .9rem; border: 1px solid var(--green-dark); border-radius: .1rem; color: var(--green-dark); background: transparent; font-weight: 600; white-space: nowrap; }
.directory-tools button:hover { color: var(--white); background: var(--green-dark); }
.directory-status { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.directory-browser > .contents { max-width: none; }
.directory-empty { max-width: 68ch; margin-block: 1.5rem; padding-block: 1.25rem; border-block: 1px solid var(--edge); font-size: 1.05rem; }
.directory-browser [data-directory-section] > h2 { margin-block: 2.5rem .6rem; padding-block-end: .55rem; border-bottom: 2px solid var(--green-dark); font-size: clamp(1.55rem, 2.65vw, 2.15rem); font-weight: 500; }
.directory-browser .entry-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: clamp(1.5rem, 3vw, 3rem); }
.directory-browser .entry-list > li { min-inline-size: 0; align-items: flex-start; column-gap: .8rem; padding-block: .7rem 1rem; }
.directory-browser .entry-list > li > div > a:first-child { display: flex; align-items: center; min-height: 2.75rem; padding-block: .2rem; font: 600 1.28rem / 1.25 var(--serif); letter-spacing: -.01em; text-decoration-color: var(--edge); }
.directory-browser .entry-list > li > div > a:first-child:hover { text-decoration-color: currentColor; }
.directory-browser .entry-list p { max-width: 55ch; margin-top: .2rem; font-size: .9rem; line-height: 1.55; }
.directory-browser .entry-icon { margin-block-start: .15rem; }
.directory-browser .entry-arrow { flex: none; margin-block-start: .7rem; font-size: .9rem; }
@media (min-width: 72rem) {
  .directory-browser .entry-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .directory-tools { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .directory-tools button { justify-self: start; }
  .directory-browser [data-directory-section] > h2 { margin-block-start: 2rem; }
}
.table-wrap { max-width: 100%; overflow: auto; margin: 1rem 0 1.75rem; border: 0; border-block: 1px solid var(--edge); scrollbar-color: var(--control-edge) var(--paper); }
/* One-column references read as routes; comparative tables retain their layout. */
.table-wrap:has(> table > thead > tr:only-child > th:only-child:not([colspan])):not(:has(> table > tbody > tr > :nth-child(2))) { max-width: 68ch; border: 0; }
.table-wrap:has(> table > thead > tr:only-child > th:only-child:not([colspan])):not(:has(> table > tbody > tr > :nth-child(2))) :is(table, thead th, tbody tr:nth-child(even), tbody tr:hover) { background: transparent; }
.table-wrap:has(> table > thead > tr:only-child > th:only-child:not([colspan])):not(:has(> table > tbody > tr > :nth-child(2))) :is(th, td) { padding: .7rem .1rem; }
.table-wrap:has(> table > thead > tr:only-child > th:only-child:not([colspan])):not(:has(> table > tbody > tr > :nth-child(2))) thead th { color: var(--muted); font-size: .85rem; font-weight: 500; }
.table-wrap:has(> table > thead > tr:only-child > th:only-child:not([colspan])):not(:has(> table > tbody > tr > :nth-child(2))) tbody td { border-bottom: 1px solid var(--edge); }

.atlas { max-width: 43rem; margin-block: .75rem 1.5rem; }
.atlas-search { margin-block-end: 1rem; }
.atlas-search input { flex: 1 1 14rem; min-inline-size: 0; }
.atlas-search-results { list-style: none; padding: 0; margin-block: .25rem .75rem; }
.atlas-search-results li + li { border-top: 1px solid var(--edge); }
.atlas-search-results a { display: block; padding: .45rem .55rem; min-block-size: 2.75rem; }
.atlas-search-results small { display: block; color: var(--muted); }
.atlas-controls { min-inline-size: 0; border: 0; padding: 0; margin: 0 0 .7rem; }
.atlas-layer-options { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.atlas-controls legend { margin-block-end: .25rem; font: 600 .83rem / 1.4 var(--sans); letter-spacing: .035em; }
.atlas-controls label { display: inline-flex; min-height: 2.75rem; align-items: center; }
.atlas-controls input { accent-color: var(--green-dark); margin-inline: 0 .42rem; }
.atlas-current .atlas-search { margin-block-end: .55rem; }
.atlas-current .atlas-layer-options { flex-wrap: nowrap; gap: .35rem; overflow-x: auto; padding: .3rem .25rem .5rem; scrollbar-color: var(--control-edge) var(--paper); }
.atlas-current .atlas-layer-options label { flex: 0 0 auto; min-height: 2.75rem; padding-inline: .65rem; border: 1px solid var(--control-edge); border-radius: .1rem; background: var(--white); font-size: .88rem; }
.atlas-current .atlas-layer-options label:has(:checked) { border-color: var(--green-dark); color: var(--green-dark); background: var(--wash); font-weight: 700; box-shadow: inset 0 -2px var(--green-dark); }
.atlas-current .atlas-layer-options label:has(input:focus-visible) { outline: 2px solid var(--green-dark); outline-offset: 1px; }
@media (min-width: 75rem) {
  .atlas-current { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2.35fr); align-items: start; gap: .8rem 1.25rem; max-width: none; }
  .atlas-current .atlas-tools { min-width: 0; padding-inline-end: .35rem; }
  .atlas-current .atlas-directory { grid-column: 1 / -1; }
}
.atlas-filter { display: flex; align-items: center; gap: .55rem; margin-block: .55rem; }
.atlas-filter :is(select, input) { min-height: 2.75rem; min-width: 0; width: 100%; border: 1px solid var(--control-edge); background: var(--white); border-radius: .1rem; padding: .35rem .55rem; color: var(--ink); }
.atlas-zoom { min-height: 2.75rem; margin-block: .25rem .55rem; padding: .35rem .7rem; border: 1px solid var(--green-dark); border-radius: .1rem; background: var(--white); color: var(--green-dark); font-weight: 600; }
.atlas-zoom:is(:hover, [aria-pressed="true"]) { background: var(--green-dark); color: var(--white); }
.atlas-viewport[data-atlas-markers-hidden] :is([data-atlas-layer], [data-atlas-village-context], [data-atlas-water-context]) { visibility: hidden; }
.atlas-list-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin: .25rem .55rem .55rem 0; padding-block: .35rem; }
.atlas-status { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.atlas-share-status:empty { margin: 0; }
.atlas-iron-guide { margin: .35rem 0 .6rem; }
.atlas-figure { margin: 0; }
.atlas-figure figcaption, .article-figure figcaption { font-size: .83rem; line-height: 1.5; color: var(--muted); margin-block: .6rem 1rem; max-width: 76ch; }
.article-figure { margin: 0; }
.article-figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--edge); }
.section-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.prose .portrait-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, max(8rem, 28%)), 1fr));
  gap: .85rem;
  max-width: 55rem;
  padding: 0;
  list-style: none;
}
.portrait-list li {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--edge);
  background: transparent;
}
.portrait-list img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  height: auto;
  background: var(--paper);
}
.portrait-list a {
  display: block;
  padding: .45rem .65rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.atlas-viewport[data-zoomed] { aspect-ratio: 1; max-height: 75vh; overflow: auto; }
.atlas-viewport[data-zoomed] .atlas-plane { width: 200%; }
.atlas-plane { isolation: isolate; position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; border: 1px solid var(--edge); background: #e8e4cf; }
.atlas-plane[data-atlas-schematic] { background-image: linear-gradient(#746d541f 1px, transparent 1px), linear-gradient(90deg, #746d541f 1px, transparent 1px); background-size: 10% 10%; }
.atlas-water-spot { position: absolute; top: var(--y); left: var(--x); width: .6rem; height: .4rem; transform: translate(-50%, -50%); border: 1px solid #294e63; border-radius: 50%; background: #b9d8e2; pointer-events: none; }
.atlas-orientation { color: var(--green-dark); font-weight: 650; }
.atlas .atlas-image { position: absolute; inset: 50% auto auto 50%; width: var(--atlas-image-width); max-width: none; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.atlas-north { position: absolute; z-index: 1; inset: .5rem .5rem auto auto; padding: .25rem .4rem; background: var(--white); color: var(--ink); font-size: .85rem; font-weight: 700; }
.atlas-landmark { position: absolute; z-index: 1; top: var(--y); left: var(--x); width: .6rem; height: .6rem; transform: translate(-50%, -50%); pointer-events: none; }
.atlas-landmark::before { content: ''; display: block; width: 100%; height: 100%; transform: rotate(45deg); background: var(--white); border: 2px solid var(--green-dark); }
.atlas-landmark > span { position: absolute; inset: calc(100% + var(--label-gap, 4px)) auto auto 50%; transform: translateX(-50%); padding: .08rem .23rem; color: var(--ink); background: var(--white); box-shadow: 0 1px 3px #242b2244; font-size: .73rem; font-weight: 650; white-space: nowrap; }
.atlas-landmark[data-label-side='above'] > span { inset-block: auto calc(100% + var(--label-gap, 4px)); }
.atlas-landmark[data-label-side='right'] > span { inset: 50% auto auto calc(100% + var(--label-gap, 4px)); transform: translateY(-50%); }
.atlas-landmark[data-label-side='left'] > span { inset: 50% calc(100% + var(--label-gap, 4px)) auto auto; transform: translateY(-50%); }
.atlas-marker { position: absolute; z-index: 2; top: var(--y); left: var(--x); transform: translate(-50%, -50%); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 2px solid var(--white); border-radius: 50%; background: var(--green-dark); color: var(--white); box-shadow: 0 2px 5px #1a251f99; font-size: .8rem; font-weight: 700; line-height: 1; text-decoration: none; }
.atlas-marker:is(:hover, :focus-visible) { z-index: 3; background: var(--white); color: var(--green-dark); border-color: var(--green-dark); }
.atlas-marker:focus-visible { outline-color: var(--white); }
.atlas-directory details { padding: .6rem 0; margin-block: .45rem; border: 0; border-bottom: 1px solid var(--edge); background: transparent; }
.atlas-directory summary { min-height: 2.75rem; padding-block: .4rem; cursor: pointer; font-weight: 600; }
.atlas-directory details[open] summary { color: var(--green-dark); }
.atlas-directory ol { margin-block: .35rem .15rem; }
.atlas-directory small { display: block; color: var(--muted); }
.atlas-directory [data-atlas-wildlife] .portrait-list { grid-template-columns: minmax(0, 19rem); }
:is(.atlas-merchant-list, .atlas-character-list, .atlas-quest-item-list) { list-style: none; margin-block: .25rem .65rem; padding-inline-start: .35rem; }
:is(.atlas-merchant-list, .atlas-character-list, .atlas-quest-item-list) li { padding-block: .18rem; }
.atlas-entry-icon { width: 1.5rem; height: 1.5rem; vertical-align: middle; margin-inline-end: .5rem; padding: .1rem; }
.table-search { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: .6rem 0; }
.table-search label { font-weight: 700; }
.table-search input, .table-search select { min-height: 2.75rem; max-width: 100%; padding: .45rem .6rem; border: 1px solid var(--control-edge); border-radius: .1rem; background: var(--white); color: var(--ink); }
.table-search [data-table-threshold], .table-search [data-seed-reserve-count] { inline-size: 8rem; }
.table-filter-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: .6rem 1rem; flex-basis: 100%; min-inline-size: 0; margin: .5rem 0 0; padding: .75rem; border: 1px solid var(--edge); }
.table-filter-options legend { padding-inline: .25rem; font-weight: 700; }
.table-filter-options > div { display: grid; grid-template-rows: 1fr auto; gap: .2rem; min-inline-size: 0; }
.table-filter-options :is(input, select) { width: 100%; min-width: 0; }
.table-filter-options select { min-height: 2.75rem; padding: .45rem .6rem; border: 1px solid var(--control-edge); border-radius: .1rem; background: var(--white); color: var(--ink); }
.table-search [role='status'] { color: var(--muted); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; text-align: left; background: var(--white); font-size: .94rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
th, td { padding: .75rem .8rem; vertical-align: top; border-bottom: 1px solid var(--edge); }
caption { padding: .65rem 0; text-align: left; font-weight: 600; }
[data-seed-reserve-table] :is(th, td) { padding-inline: .45rem; }
@media (max-width: 40rem) {
  :is(#index-des-talents-par-rang, #talent-index-by-rank) ~ .table-wrap table { table-layout: fixed; }
  :is(#index-des-talents-par-rang, #talent-index-by-rank) ~ .table-wrap :is(th, td) { padding-inline: .35rem; overflow-wrap: anywhere; }
  :is(#index-des-talents-par-rang, #talent-index-by-rank) ~ .table-wrap thead th:first-child { width: 28%; }
  :is(#index-des-talents-par-rang, #talent-index-by-rank) ~ .table-wrap thead th:nth-child(2) { width: 24%; }
  :is(#bonus-de-recolte-manuelle, #manual-harvest-bonus) ~ .table-wrap :is(th, td) { padding-inline: .4rem; }
  :is(#gisements-et-coups-de-pioche-par-fabrication, #deposits-and-pickaxe-hits-per-craft) ~ .table-wrap :is(th, td) {
    padding-inline: .4rem;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 360px) {
  :is(#lots-apres-chaque-passage, #batches-after-each-pass) ~ .table-wrap :is(th, td) { padding-inline: .6rem; }
  :is(#objets-de-quete, #quest-items, #postes-de-la-table-du-mobilier, #workstations-in-the-furniture-table,
    #recettes-a-comparer, #recipes-to-compare, #atelier-par-niveau, #workshop-by-level) ~ .table-wrap :is(th, td) {
    padding-inline: .35rem;
    overflow-wrap: anywhere;
  }
  :is(#objets-de-quete, #quest-items) ~ .table-wrap .table-icon {
    width: 1.4rem;
    margin-inline-end: .3rem;
  }
  :is(#objets-de-quete, #quest-items) ~ .table-wrap thead th:last-child { white-space: nowrap; }
}
thead th { background: var(--wash); color: var(--ink); font-size: .85rem; font-weight: 600; }
tbody tr:last-child > * { border-bottom: none; }
tbody tr:nth-child(even) { background: #f6f0e4; }
tbody tr:hover { background: #eee4d2; }
tbody tr:is([id^="quest-"], [id^="stock-item-"]):target { background: #e5d4b1; outline: 2px solid var(--green); outline-offset: -2px; }
.search-panel, .calendar-filter, .calculator { display: grid; gap: .55rem 1rem; max-width: 46rem; padding: 1.25rem; background: var(--wash); border: 0; border-block: 1px solid var(--edge); margin: 1.5rem 0 2rem; }
.search-panel, .calendar-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.search-panel label, .calendar-filter label { grid-row: 1; }
.search-panel [role='status'], .calendar-filter [role='status'] { grid-column: 1 / -1; margin: .35rem 0 0; }
.calculator { grid-template-columns: auto minmax(0,1fr); align-items: baseline; }
.calculator button, .calculator output, .calculator [data-quantity-links] { grid-column: 1 / -1; }
.calculator output { display: block; padding: .85rem; background: var(--white); border-inline-start: 3px solid var(--green); }
.site-footer { background: var(--wash); border-top: 2px solid var(--green-dark); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem 3rem; max-width: var(--page-width); padding: 2rem var(--gutter) 2.5rem; margin: auto; font-size: .9rem; }
.footer-inner p { margin: .3rem 0 0; color: var(--muted); max-width: 64ch; }
.footer-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.audience-confirmation:not(:target) { display: none; }
.audience-preferences { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 1rem; }
.audience-preferences button { min-height: 2.75rem; padding: .45rem .9rem; border: 1px solid var(--green-dark); color: var(--ink); background: var(--paper); }

@media (max-width: 74rem) {
  .head-inner { grid-template-columns: auto 1fr auto; }
  .head-search { grid-column: 1 / -1; }
}
@media (max-width: 48rem) {
  .head-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1rem; padding-block: .85rem; }
  .wordmark { grid-column: 1; grid-row: 1; }
  .language-switch { grid-column: 2; grid-row: 1; margin-inline-start: auto; }
  .head-nav { grid-column: 1 / -1; }
  .head-search { grid-column: 1 / -1; }
  .head-inner:not(:has(.head-search)) { grid-template-columns: minmax(0, 1fr) auto; }
  .home-content, .shell { display: flex; flex-direction: column; }
  .hero { min-height: 28rem; }
  .hero-image { --hero-overlay: linear-gradient(90deg, #211a15ed 0%, #211a15d9 64%, #211a15b3 100%); background-position: 62% center; }
  .hero h1 { font-size: clamp(3.3rem, 10vw, 5.2rem); }
  .hero-inner { padding-block: 2.5rem 3rem; }
  .contents ul, .toc ul { columns: 1; }
  .home-aside { border-left: 0; border-top: 1px solid var(--edge); padding: 1.3rem 0 0; }
  .sidebar { display: none; }
  .shell { gap: 2.5rem; }
}
@media (max-width: 26rem) {
  .head-inner { gap: .4rem .7rem; }
  .head-nav { justify-content: flex-start; gap: .15rem .9rem; }
  .head-nav a { font-size: .83rem; }
  .wordmark { font-size: 1.08rem; gap: .55rem; }
  .wordmark-title { font-size: 1.15rem; }
  .wordmark-subtitle { font-size: .67rem; letter-spacing: .06em; }
  .crest { width: 1.85rem; font-size: .65rem; }
  .language-switch { gap: 0; }
  .group-grid { grid-template-columns: 1fr; }
  .group-grid a { min-height: unset; }
  .search-panel, .calendar-filter { grid-template-columns: minmax(0, 1fr); }
  .search-panel label, .calendar-filter label { grid-row: auto; }
  .calculator { grid-template-columns: 1fr; }
}

/* Shared French / English editorial home: image-led spreads and reading lists. */
.editorial-home { min-width: 0; }
.editorial-home .hero h1 { max-width: 11ch; }
.home-search.search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; max-width: 36rem; margin-block: 1.25rem .6rem; }
.home-search label { grid-column: 1 / -1; color: #fff8ea; font-size: .83rem; font-weight: 600; }
.home-search input { min-height: 3rem; border-color: #fff8ea; padding-inline: .85rem; background: var(--white); }
.home-search button { min-height: 3rem; color: var(--ink); background: var(--gold); border-color: var(--gold); padding-inline: 1rem; }
.home-search button:hover { color: var(--ink); background: #f4dfb3; border-color: #f4dfb3; }
.home-search input:focus-visible { outline-color: var(--gold); }
.home-edition { margin: 0; padding: .85rem max(var(--gutter), calc((100vw - var(--page-width)) / 2 + var(--gutter))); color: var(--muted); background: var(--wash); border-bottom: 1px solid var(--edge); font-size: .78rem; line-height: 1.6; }
.home-edition a { color: var(--green-dark); }
.editorial-home-content { max-width: var(--page-width); margin-inline: auto; padding: clamp(2.75rem, 6vw, 5.5rem) var(--gutter) 4.5rem; }
.editorial-home-content > :is(section, nav) + :is(section, nav) { margin-block-start: clamp(3.25rem, 7vw, 6rem); }
.home-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); align-items: end; gap: .5rem 2rem; margin-block-end: 1.7rem; border-top: 1px solid var(--edge); padding-block-start: 1.1rem; }
.home-section-heading h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 400; letter-spacing: -.035em; }
.home-section-heading p { max-width: 44ch; margin: 0; color: var(--muted); font-size: .95rem; }
.home-section-heading > .home-overline { grid-column: 1 / -1; margin-bottom: .25rem; font-size: .74rem; }
.home-overline { display: block; margin: 0 0 .55rem; color: var(--muted); font: 600 .74rem / 1.4 var(--sans); letter-spacing: .1em; }
.home-atlas-spread { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: start; }
.home-atlas { display: block; min-width: 0; color: var(--ink); text-decoration: none; }
.home-atlas-oxbow { margin-block-start: 3.4rem; }
.home-atlas > picture { display: block; }
.home-atlas img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--edge); }
.home-atlas-caption { display: block; padding-block: 1.15rem .4rem; }
.home-atlas-caption h3 { margin: 0 0 .5rem; font-size: clamp(1.9rem, 3.1vw, 2.8rem); font-weight: 400; letter-spacing: -.03em; }
.home-atlas-caption p { max-width: 42ch; margin: .5rem 0; color: var(--muted); font-size: .98rem; }
.home-atlas-action { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block-start: .3rem; color: var(--green); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: .25em; }
.home-atlas:hover .home-atlas-action { color: var(--ink); text-decoration-thickness: .12em; }
.home-atlas:focus-visible { outline-offset: 5px; }
.home-decision-list, .home-topic-index { list-style: none; margin: 0; padding: 0; }
.home-decision-list > li { border-bottom: 1px solid var(--edge); }
.home-decision-list > li:first-child { border-top: 1px solid var(--edge); }
.home-decision-list a { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 2rem; gap: 1.5rem; align-items: baseline; padding: 1.5rem .2rem; color: var(--ink); text-decoration: none; }
.home-decision-number { color: var(--green); font: 400 2.3rem / 1 var(--serif); font-variant-numeric: tabular-nums; }
.home-decision-copy h3 { margin: 0 0 .45rem; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; }
.home-decision-copy p { max-width: 64ch; margin: 0; color: var(--muted); font-size: .98rem; }
.home-link-arrow { color: var(--green); font-size: 1.45rem; line-height: 1; justify-self: end; }
.home-decision-list a:hover h3, .home-topic-index a:hover h3 { color: var(--green); text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
.home-tools { padding-block: 1.1rem; border-block: 1px solid var(--edge); }
.home-tools h2 { font-size: 1.4rem; font-weight: 600; }
.home-tools :is(ul, ol) { display: flex; flex-wrap: wrap; column-gap: 2rem; row-gap: .15rem; margin: .45rem 0 0; padding: 0; list-style: none; }
.home-tools a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-inline-end: 1.5rem; font-weight: 600; }
.home-tools p { max-width: 64ch; color: var(--muted); }
.home-topic-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 4rem); }
.home-topic-index > li { border-bottom: 1px solid var(--edge); min-width: 0; }
.home-topic-index a { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr) 1.2rem; align-items: baseline; gap: .85rem; padding: 1.25rem 0; color: var(--ink); text-decoration: none; }
.home-topic-number { color: var(--muted); font: 400 1rem / 1.2 var(--serif); font-variant-numeric: tabular-nums; }
.home-topic-copy h3 { margin: 0 0 .35rem; font-size: 1.5rem; font-weight: 600; }
.home-topic-copy p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.home-topic-index .home-link-arrow { font-size: 1.15rem; }

@media (max-width: 48rem) {
  .home-section-heading { display: block; }
  .home-section-heading p { margin-block-start: .75rem; }
  .home-atlas-spread { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .home-atlas-oxbow { margin-block-start: 0; }
  .home-atlas img { aspect-ratio: 16 / 10; }
  .home-atlas-caption { padding-block-start: .9rem; }
  .home-topic-index { grid-template-columns: minmax(0, 1fr); }
  .home-decision-list a { grid-template-columns: 2.2rem minmax(0, 1fr) 1.2rem; gap: .8rem; padding-block: 1.25rem; }
  .home-decision-number { font-size: 1.8rem; }
  .home-decision-copy h3 { font-size: 1.5rem; }
  .home-decision-copy p { font-size: .93rem; }
  .editorial-home-content { padding-block-end: 3.5rem; }
}
@media (max-width: 26rem) {
  .home-search.search-form { gap: .45rem; }
  .home-search button { padding-inline: .65rem; font-size: .9rem; }
  dl.facts { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .facts dd { margin-block-end: .6rem; }
}


/* Immediate routes and a compact decision spread, shared by both home editions. */
.home-field-index { display: grid; grid-template-columns: minmax(10rem, .62fr) minmax(0, 2.6fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; padding-block: .1rem 1.6rem; border-bottom: 1px solid var(--edge); }
.home-field-heading h2 { font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 400; letter-spacing: -.03em; }
.home-field-heading .home-overline { margin-block-end: .65rem; }
.home-field-index ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1rem, 1.8vw, 1.8rem); margin: 0; padding: 0; list-style: none; }
.home-field-index li { min-width: 0; border-top: 1px solid var(--edge); }
.home-field-index a { display: grid; grid-template-columns: minmax(0, 1fr) 1rem; gap: .6rem .35rem; min-height: 2.75rem; height: 100%; padding: .75rem .05rem 1rem; color: var(--ink); text-decoration: none; }
.home-field-number { grid-column: 1; grid-row: 1; color: var(--muted); font: 400 .8rem / 1 var(--serif); font-variant-numeric: tabular-nums; }
.home-field-copy { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.home-field-copy strong { display: block; font: 500 clamp(1.2rem, 1.6vw, 1.4rem) / 1.16 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.home-field-copy small { display: block; margin-block-start: .5rem; color: var(--muted); font-size: .83rem; line-height: 1.5; text-wrap: pretty; }
.home-field-index .home-link-arrow { grid-column: 2; grid-row: 1; font-size: 1.1rem; }
.home-field-index a:hover strong { color: var(--green); text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: 1px; }
.home-field-index a:focus-visible { outline-offset: 4px; }
.editorial-home-content { padding-block-start: clamp(2.2rem, 4vw, 3.4rem); }
.editorial-home-content > .home-field-index + .home-decisions { margin-block-start: clamp(2.5rem, 4.5vw, 4rem); }
.home-decisions { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.home-decisions .home-section-heading { display: block; margin: 0; padding-block-start: 0; border-top: 0; }
.home-decisions .home-section-heading h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); }
.home-decisions .home-section-heading > p:not(.home-overline) { margin-block-start: .9rem; }
.home-decision-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1rem, 2.5vw, 2.5rem); }
.home-decision-list > li { min-width: 0; border-top: 1px solid var(--edge); border-bottom: 0; }
.home-decision-list a { height: 100%; grid-template-columns: 2rem minmax(0, 1fr) 1rem; gap: .65rem; padding: 1.2rem .05rem; }
.home-decision-number { font-size: 1.7rem; }
.home-decision-copy h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.home-decision-copy p { font-size: .91rem; }
@media (max-width: 70rem) {
  .home-field-index { grid-template-columns: minmax(0, 1fr); gap: 1.15rem; }
  .home-field-heading { max-width: 44rem; }
}
@media (max-width: 60rem) {
  .home-decisions { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .home-decisions .home-section-heading { max-width: 42rem; }
}
@media (max-width: 42rem) {
  .home-field-index { padding-block-end: 1rem; }
  .home-field-index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1.25rem; }
  .home-field-index a { padding-block: .8rem 1rem; }
  .home-field-copy strong { font-size: 1.25rem; }
  .home-field-copy small { font-size: .82rem; }
  .home-decision-list { grid-template-columns: minmax(0, 1fr); }
  .home-decision-list a { grid-template-columns: 2rem minmax(0, 1fr) 1rem; gap: .8rem; padding-block: 1.1rem; }
}
@media (max-width: 23rem) {
  .home-field-index ul { column-gap: .9rem; }
  .home-field-copy strong { font-size: 1.15rem; }
}


/* Search keeps help, recovery actions and native routes visible in the same flow. */
.search-page-head { max-width: 54rem; margin-block-end: 1.6rem; }
.search-page-head .kicker { margin-block-end: .7rem; color: var(--green); font: 600 .76rem / 1.4 var(--sans); letter-spacing: .1em; }
.search-intro { max-width: 60ch; margin-block: 1.1rem 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.search-panel .search-help { grid-column: 1 / -1; max-width: 70ch; margin: .25rem 0 0; color: var(--muted); font-size: .88rem; }
.search-actions { display: flex; flex-wrap: wrap; align-items: center; grid-column: 1 / -1; gap: .15rem 1.25rem; margin-block-start: .35rem; padding-block-start: .65rem; border-top: 1px solid var(--edge); }
.search-actions :is(a, button) { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .35rem .05rem; border: 0; border-radius: 0; color: var(--green); background: transparent; font: 600 .9rem / 1.4 var(--sans); text-decoration: underline; text-underline-offset: .22em; }
.search-actions :is(a, button):hover { color: var(--ink); text-decoration-thickness: .12em; }
.search-actions a { margin-inline-start: auto; }
.search-suggestions { max-width: 60rem; margin-block: 2rem; padding-block: 1.25rem 1.5rem; border-block: 1px solid var(--edge); }
.search-suggestions h2, .search-empty h2, .search-fallback h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); }
.search-examples { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; margin: .85rem 0 0; padding: 0; list-style: none; }
.search-examples button { min-height: 2.75rem; padding: .35rem .05rem; border: 0; border-bottom: 1px solid var(--edge); border-radius: 0; color: var(--green); background: transparent; font: 600 .95rem / 1.4 var(--sans); text-align: start; }
.search-examples button:hover { color: var(--ink); border-color: currentColor; }
.search-empty { max-width: 46rem; margin-block: 1.25rem 2rem; padding: 1.4rem 1.25rem; border-block: 1px solid var(--edge); background: var(--wash); }
.search-empty p { max-width: 60ch; margin-block: .8rem 1rem; color: var(--muted); }
.search-empty button { min-height: 2.75rem; padding: .5rem .85rem; border: 1px solid var(--green-dark); border-radius: .1rem; color: var(--white); background: var(--green-dark); font-weight: 600; }
.search-empty button:hover { background: var(--green); }
.search-results-heading { margin-block: 2rem .6rem; font-size: clamp(1.6rem, 2.6vw, 2rem); }
.search-fallback { max-width: 60rem; margin-block: 1.5rem; }
.search-fallback h2 { margin-block: 1.6rem .75rem; }
@media (max-width: 42rem) {
  .search-panel { grid-template-columns: minmax(0, 1fr); padding: 1rem; }
  .search-panel label { grid-row: auto; }
  .search-actions a { margin-inline-start: 0; }
  .search-actions { column-gap: 1rem; }
  .search-empty { padding-inline: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-field-index a:hover .home-link-arrow { transform: translateX(3px); }
}


/* Content campaign: readable openings, useful facts and compact field indexes. */
.page-main > .crumbs ol { margin-block-end: 1.25rem; }
.page-main .article-head { margin-block-end: 1.25rem; padding-block-end: 1.1rem; }
.page-main .article-head h1 { max-width: 26ch; font-size: clamp(2.15rem, 3.9vw, 3.5rem); line-height: 1.08; letter-spacing: -.032em; }
.page-main .article-head h1 .article-title-disambiguator {
  display: block;
  margin-block-start: .375rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: clamp(1rem, .45em, 1.25rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: wrap;
}
.article-heading { align-items: center; gap: clamp(1rem, 2.1vw, 1.5rem); }
.article-heading .article-icon { width: clamp(4.5rem, 8vw, 6rem); margin-block-start: 0; padding: .5rem; }
.article-head .byline { margin-block-start: .45rem; font-size: .81rem; line-height: 1.5; }
.article-head .article-scope { font-weight: 600; }
.article-head .article-source-link { font-size: .81rem; }
.article > .prose > .answer {
  max-width: none;
  margin-block: 0 1.5rem;
  padding: 1.1rem clamp(1rem, 2.4vw, 1.6rem);
  border-block: 1px solid var(--edge);
  border-inline-start: 3px solid var(--green);
  background: var(--white);
  font-size: clamp(1.06rem, 1.35vw, 1.18rem);
  line-height: 1.65;
  font-weight: 400;
}
.answer-text { display: block; max-width: 65ch; }
.article > .prose > .answer:has(+ .article-facts) { margin-block-end: 0; border-block-end: 0; }
.article > .prose > .article-facts {
  margin-block: 0 1.5rem;
  padding: 1rem clamp(1rem, 2.4vw, 1.6rem) .65rem;
  border-block: 1px solid var(--edge);
  background: var(--wash);
}
.article-facts .article-facts-label { max-width: none; margin: 0 0 .65rem; color: var(--green-dark); font: 700 .76rem / 1.4 var(--sans); letter-spacing: .06em; }
.article-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .4rem 1.5rem; margin: 0; font-variant-numeric: tabular-nums; }
.article-fact { min-inline-size: 0; padding-block: .55rem .7rem; border-block-start: 1px solid var(--edge); }
.article-fact dt { margin: 0 0 .2rem; color: var(--muted); font: 600 .8rem / 1.4 var(--sans); }
.article-fact dd { margin: 0; color: var(--ink); font: 500 clamp(1.3rem, 2vw, 1.6rem) / 1.2 var(--serif); letter-spacing: -.015em; overflow-wrap: anywhere; }
.article-fact dd > a { display: inline-flex; align-items: center; min-height: 2.75rem; max-width: 100%; padding-block: .2rem; text-decoration-color: var(--control-edge); text-decoration-thickness: 1px; }
.article-fact dd > a:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.article-fact .article-fact-detail { display: block; margin-block-start: .25rem; color: var(--muted); font: 400 .8rem / 1.5 var(--sans); letter-spacing: 0; }

.article > .prose > section:not(.article-facts) { margin-block-start: 1.8rem; }
.article > .prose > section + section:not(.article-facts) { padding-block-start: 1.15rem; }
.article > .prose > section > h2 { max-width: 38ch; margin-block-end: .85rem; font-size: clamp(1.55rem, 2.1vw, 1.95rem); line-height: 1.2; }
.article > .prose > section h3 { margin-block: 1.5rem .65rem; font-size: 1.25rem; }
.article > .prose > section > p { max-width: 66ch; }
.article-tools { margin-block-start: 1.25rem; border-block-start: 2px solid var(--green-dark); }
.article > .prose > .contents { margin-block-end: 1.75rem; }
.article .compact-contents > summary { min-height: 3.1rem; padding-block: .8rem; font-size: .95rem; }
.article .compact-contents[open] > nav { padding: .75rem .75rem 1rem; background: var(--white); border-block-end: 1px solid var(--edge); }
.article [data-article-toc] ul { column-gap: 1.8rem; padding-inline-start: 1rem; }
.article [data-article-toc] li { margin-block: .15rem; }
.article [data-article-toc] a { padding-block: .4rem; font-size: .9rem; text-decoration-thickness: 1px; }

.prose .article-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; max-width: none; margin: .75rem 0 1.5rem; padding: 0; list-style: none; }
.prose .article-routes > li { min-inline-size: 0; margin: 0; padding: .25rem 0 .7rem; border-block-end: 1px solid var(--edge); }
.article-routes > li > a { display: flex; align-items: center; min-height: 2.75rem; padding-block: .35rem; font: 600 1.1rem / 1.35 var(--serif); overflow-wrap: anywhere; text-decoration-thickness: 1px; text-decoration-color: var(--control-edge); }
.article-routes > li > a:hover { text-decoration-color: currentColor; }
.article-route-detail { display: block; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.article-routes > li:has(> .table-icon) { display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .75rem; }
.article-routes > li > .table-icon { grid-column: 1; grid-row: 1 / 3; width: 2rem; height: auto; margin: .45rem 0 0; }
.article-routes > li:has(> .table-icon) > :is(a, .article-route-detail) { grid-column: 2; }
.article .table-wrap { margin-block: 1rem 1.5rem; border-block-start-color: var(--control-edge); }
.article .table-wrap table { font-size: .95rem; line-height: 1.5; }
.article .table-wrap :is(th, td) { padding-block: .65rem; }
.article .table-wrap thead th { padding-block: .75rem; color: var(--green-dark); font-size: .81rem; font-weight: 700; line-height: 1.4; border-block-end: 2px solid var(--control-edge); }
.article .table-wrap tbody th { font-weight: 600; }
.article .table-cell-detail { margin-block-start: .3rem; font-size: .88em; line-height: 1.5; }
.article .table-wrap:focus-visible { outline-offset: 4px; }
.article .table-wrap a:focus-visible { outline-offset: 1px; }

.page-main > .article-head:has(+ .directory-browser) { margin-block-end: 1rem; }
.page-main > .article-head .lead { margin-block: .65rem 0; max-width: 60ch; font-size: 1.12rem; line-height: 1.5; color: var(--muted); }
.directory-browser > p:has(> .directory-action) { margin-block-end: .45rem; }
.directory-browser > .directory-meta { margin-block: .15rem .8rem; }
.directory-tools { gap: .65rem 1rem; margin-block: 1rem 1.25rem; padding: 1rem 1.2rem; background: var(--wash); border-block-start: 2px solid var(--green-dark); }
.directory-tools label > span { margin-block-end: .4rem; color: var(--green-dark); font-size: .8rem; }
.directory-tools :is(input[type="search"], select) { min-height: 2.9rem; }
.directory-tools button { min-height: 2.9rem; background: var(--paper); }
.directory-status { font-size: .8rem; }
.directory-browser > .contents { margin-block: 1.1rem 1.7rem; }
.directory-browser [data-directory-section] > h2 { margin-block-start: 2rem; padding-block-end: .6rem; font-size: clamp(1.5rem, 2.1vw, 1.9rem); border-block-end-width: 1px; }
.directory-browser .entry-list { column-gap: 2rem; }
.directory-browser .entry-list > li { align-items: flex-start; gap: .75rem; padding-block: .75rem .9rem; }
.directory-browser .entry-list > li > div > a:first-child { font-size: 1.22rem; line-height: 1.3; }
.directory-browser .entry-list p { font-size: .88rem; line-height: 1.55; }
.directory-browser .entry-icon { width: 3.35rem; padding: .3rem; margin-block-start: .2rem; }
.directory-browser .entry-list > li:focus-within { background: var(--white); }
.directory-browser .entry-list > li:focus-within .entry-arrow { color: var(--ink); }
@media (hover: hover) {
  .directory-browser .entry-list > li:hover { background: var(--white); }
}
@media (min-width: 72rem) {
  .directory-browser:has(> p > .directory-action) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; }
  .directory-browser:has(> p > .directory-action) > * { grid-column: 1 / -1; }
  .directory-browser:has(> p > .directory-action) > p:has(> .directory-action) { grid-column: 2; grid-row: 1; margin: 0; align-self: center; }
  .directory-browser:has(> p > .directory-action) > .directory-meta { grid-column: 1; grid-row: 1; margin: 0; align-self: center; }
}
@media (max-width: 48rem) {
  .page-main .article-head { padding-block-end: 1rem; }
  .page-main .article-head h1 { max-width: 24ch; font-size: clamp(2.05rem, 7.6vw, 3rem); }
  .article-heading { gap: .8rem; align-items: flex-start; }
  .article-heading .article-icon { width: 4.5rem; padding: .4rem; }
  .article > .prose > .answer { padding: 1rem; font-size: 1.06rem; }
  .article > .prose > .article-facts { padding: .85rem 1rem .55rem; }
  .article-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.1rem; }
  .article-fact dd { font-size: 1.35rem; }
  .article .compact-contents > summary > span { margin-inline-start: .75rem; font-size: .75rem; }
  .article .compact-contents[open] > nav { padding-inline: .4rem; }
  .prose .article-routes { grid-template-columns: minmax(0, 1fr); }
  .article > .prose > section > h2 { max-width: none; font-size: 1.55rem; line-height: 1.22; }
  .directory-tools { padding: .9rem 1rem; }
  .directory-browser .entry-icon { width: 3rem; }
}
@media (max-width: 24rem) {
  .article-heading .article-icon { width: 3.8rem; }
  .article-head .byline { font-size: .78rem; }
  .article-facts-grid { column-gap: .85rem; }
}
@media (forced-colors: active) {
  .article > .prose > .answer, .article > .prose > .article-facts, .directory-tools { background: Canvas; border-color: CanvasText; }
  .article-facts :is(dt, dd, .article-facts-label, .article-fact-detail) { color: CanvasText; }
  .article-fact dd > a, .article-routes > li > a { color: LinkText; text-decoration-color: LinkText; }
  .article-fact, .article-routes > li { border-color: CanvasText; }
}

/* Native paths through item and recipe entries. Values remain in their source tables. */
.article > .prose > .article-facts { margin-block-end: .5rem; padding-block: .65rem .35rem; background: transparent; }
.article-facts .article-facts-label { margin-block-end: .25rem; color: var(--muted); letter-spacing: .035em; }
.article-fact { padding-block: .3rem .4rem; border-block-start: 0; }
.article-fact dd { font-size: clamp(1.25rem, 1.8vw, 1.45rem); }
.article-fact[data-fact-key="category"] dd { font: 500 1rem / 1.4 var(--sans); letter-spacing: 0; }
.article-fact .article-fact-detail { margin-block-start: 0; }
.article-journey { margin-block: .35rem 1.1rem; }
.prose .article-journey > ul { display: flex; flex-wrap: wrap; gap: .4rem .7rem; max-width: none; margin: 0; padding: 0; list-style: none; }
.prose .article-journey > ul > li { margin: 0; padding: 0; }
.article-journey a { display: inline-flex; align-items: center; gap: 1.3rem; min-height: 2.75rem; padding: .45rem .85rem; border: 1px solid var(--control-edge); background: var(--white); color: var(--green-dark); font: 600 .9rem / 1.4 var(--sans); text-decoration: none; }
.article-journey a > span { margin-inline-start: auto; color: var(--muted); }
.article-journey a:hover { background: var(--wash); border-color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.recipe-flow { display: grid; grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr); align-items: start; gap: .75rem; margin-block: 1.8rem 2rem; padding-block: 1rem; border-block: 1px solid var(--control-edge); }
.recipe-flow > section { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.recipe-flow > section > h2 { margin: 0 0 .85rem; font-size: clamp(1.5rem, 2vw, 1.85rem); line-height: 1.2; }
.recipe-flow > section > p { margin-block: .75rem; }
.recipe-flow-arrow { align-self: center; justify-self: center; color: var(--green); font: 400 1.65rem / 1 var(--serif); }
.article .recipe-flow .table-wrap { margin-block: .75rem 0; border-block-start: 0; }
.article .recipe-flow table { min-width: 0; width: 100%; }
.article .recipe-flow th, .article .recipe-flow td { padding: .65rem .5rem; }
.article .recipe-flow th:first-child { padding-inline-start: 0; }
.recipe-flow tbody th { vertical-align: middle; overflow-wrap: anywhere; }
.recipe-flow tbody th .table-icon { width: 2.5rem; height: 2.5rem; object-fit: contain; margin-inline-end: .5rem; vertical-align: middle; }
.recipe-flow tbody th a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.recipe-flow tbody td { font-variant-numeric: tabular-nums; }
.search-recovery { margin-block: 1.15rem; padding-block-start: 1rem; border-block-start: 1px solid var(--edge); }
.search-recovery > p { margin-block: 0 .5rem; font-weight: 600; }
.search-recovery-options { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.search-recovery-options li { margin: 0; }
.search-recovery-options button, [data-search-expand] { min-height: 2.75rem; padding: .55rem .8rem; border: 1px solid var(--control-edge); color: var(--green-dark); background: var(--white); font: 600 .9rem / 1.4 var(--sans); cursor: pointer; }
.search-recovery-options button:hover, [data-search-expand]:hover { background: var(--wash); border-color: var(--ink); }
@media (max-width: 48rem) {
  .article-journey a { gap: .75rem; padding-inline: .75rem; }
  .recipe-flow { grid-template-columns: minmax(0, 1fr); gap: .4rem; margin-block: 1.4rem 1.75rem; }
  .recipe-flow-arrow { transform: rotate(90deg); margin-block: .15rem .4rem; }
  .recipe-flow > section > h2 { font-size: 1.55rem; }
}
@media (forced-colors: active) {
  .article-journey a, .search-recovery-options button, [data-search-expand] { color: LinkText; background: Canvas; border-color: ButtonText; }
  .article-journey a > span, .recipe-flow-arrow { color: CanvasText; }
  .recipe-flow, .search-recovery { border-color: CanvasText; }
}

/* Motion is an enhancement: the same text and controls render without it. */
@media (prefers-reduced-motion: no-preference) {
  a, button, summary, .atlas-current .atlas-layer-options label { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
  .hero-inner > :is(.hero-kicker, h1, .hero-lead, .home-search, .hero-actions) { animation: field-guide-enter 600ms ease both; }
  .hero-inner > h1 { animation-delay: 50ms; }
  .hero-inner > .hero-lead { animation-delay: 100ms; }
  .hero-inner > .home-search { animation-delay: 150ms; }
  .hero-inner > .hero-actions { animation-delay: 200ms; }
  .home-link-arrow { transition: transform 180ms ease; }
  .home-decision-list a:hover .home-link-arrow, .home-topic-index a:hover .home-link-arrow { transform: translateX(3px); }
}
@keyframes field-guide-enter {
  from { opacity: .35; transform: translateY(.6rem); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --muted: #44392b; --edge: #89765f; --control-edge: #503421; }
  .hero-image { --hero-overlay: linear-gradient(90deg, #211a15 0%, #211a15e6 65%, #211a15b3 100%); }
  .contents a, .toc a { text-decoration-color: currentColor; }
}
@media (forced-colors: active) {
  .hero-image { background-image: none; }
  .hero, .hero-kicker, .hero-inner > p:not(.hero-kicker), .home-search label { color: CanvasText; background-color: Canvas; }
  .hero-actions a, .hero-primary, .hero-secondary { color: LinkText; border-color: LinkText; }
  .home-search button { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
  .atlas-current .atlas-layer-options label:has(:checked) { color: HighlightText; background: Highlight; border-color: Highlight; }
  .atlas-current .atlas-layer-options label:has(input:focus-visible), :focus-visible { outline-color: Highlight; }
  .crest, .article-icon, .entry-icon, .atlas-marker, .home-atlas img { border-color: CanvasText; }
}
/* Illustrated world: shared shell, home and article presentation.
   This layer preserves content, native links and existing interaction hooks. */
:root {
  --paper: #f3eee1; --white: #fffdf7; --ink: #263c32; --muted: #596458;
  --edge: #cfc8b5; --green: #315c45; --green-dark: #19392f; --gold: #dfbf83;
  --focus: #9b4e22; --control-edge: #7e8b75; --wash: #e9edde;
  --page-width: 92rem;
}
body {
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 15% 0, #dddcc96b, transparent 50rem);
}
.site-head { color: #f5efdf; background: #19392f; border-block: 0; box-shadow: 0 3px 18px #102c2526; }
.head-inner { min-height: 5.5rem; padding-block: .75rem; }
.wordmark, .wordmark:hover { color: #fff8e7; }
.wordmark-title { font-weight: 500; letter-spacing: -.035em; }
.wordmark-subtitle { color: #d3dccb; font-size: .68rem; letter-spacing: .14em; }
.crest {
  width: 2.7rem; aspect-ratio: .86; background: #274d3d; border: 1px solid #bda574;
  outline: 0; border-radius: 2px 2px 13px 13px; color: #e9cf98; font-size: 1.35rem;
  box-shadow: inset 0 0 0 4px #19392f;
}
.head-nav a, .language-switch a { color: #f5efdf; }
.head-nav a:hover, .language-switch a:hover { color: #efcf91; }
.language-switch [aria-current] { color: #19392f; background: #e7ce9c; border-radius: 4px; }
.site-head :focus-visible { outline-color: #f3d69f; }
.head-search input { color: #fff8e7; background: #254638; border-color: #69816c; border-radius: 4px; }
.head-search input::placeholder { color: #d7dfce; }
.head-search button { color: #19392f; background: #e7ce9c; border-color: #e7ce9c; border-radius: 4px; }
.head-search button:hover { background: #f5e2bd; }
.shell { grid-template-columns: minmax(10rem, 12rem) minmax(0, 1fr); gap: clamp(1.5rem, 2.6vw, 2.6rem); padding-block-start: 2rem; }
.sidebar {
  position: sticky; inset-block-start: 1.25rem; max-height: calc(100svh - 2.5rem);
  overflow: auto; scrollbar-width: thin; scrollbar-color: #6b8068 #203f32;
  padding: 1.2rem .8rem; border: 0; border-radius: .55rem; background: #203f32;
  box-shadow: 0 .65rem 1.8rem -1rem #233b2b66;
}
.sidebar-title { color: #d7ccac; padding-inline: .5rem; font-size: .68rem; letter-spacing: .11em; }
.sidebar a { color: #eceddf; border: 0; border-radius: 4px; font-size: .86rem; padding: .55rem .6rem; }
.sidebar small { color: #c3cfb9; }
.sidebar a:hover { background: #304f3d; color: #fff9e6; }
.sidebar a[aria-current] { border: 0; box-shadow: inset 3px 0 #e0bd7a; background: #365740; color: #fff9e6; }
.sidebar :focus-visible { outline-color: #e0c491; }
.crumbs ol { color: var(--muted); }
.crumbs a { text-decoration-color: #a7b29b; }
.article {
  padding: clamp(1.1rem, 2.8vw, 2.6rem); max-width: none;
  background: var(--white); border: 1px solid #ded8c8; border-radius: .65rem .65rem .25rem .25rem;
  box-shadow: 0 1.25rem 3.2rem -1.6rem #36452b38, 0 2px 4px #6c5e3b0a;
}
.page-main .article-head.article-frontispiece {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: 1rem clamp(1rem, 3vw, 2.5rem); max-width: none; margin: 0 0 1.45rem;
  padding: 0 0 1.6rem; border: 0; border-bottom: 1px solid #d9ddcb;
}
.article-frontispiece .article-title-block { min-width: 0; }
.article-frontispiece .article-overline { margin: 0 0 .6rem; color: var(--green); font: 600 .75rem / 1.5 var(--sans); letter-spacing: .07em; }
.page-main .article-frontispiece h1 { max-width: 23ch; font-size: clamp(2.2rem, 4vw, 3.85rem); letter-spacing: -.045em; }
.article-frontispiece .byline { margin-top: .75rem; }
.article-frontispiece .article-meta-text { display: inline; }
.article-specimen {
  position: relative; isolation: isolate; display: grid; place-items: center;
  width: clamp(8rem, 14vw, 11rem); aspect-ratio: 1; margin: 0; padding: 1.35rem;
  background: radial-gradient(ellipse at 50% 48%, #e9e7d4 0, #f4f0e2 53%, transparent 70%);
}
.article-specimen::before {
  content: ''; position: absolute; inset: 7%; z-index: -1; border: 1px solid #c9c7aa;
  border-radius: 50%; box-shadow: 0 0 0 .4rem #ebe8d726;
}
.article-specimen::after { content: ''; position: absolute; z-index: -1; width: 48%; height: 9%; bottom: 17%; background: #344c3129; filter: blur(7px); border-radius: 50%; }
.article-heading .article-specimen .article-icon {
  display: block; width: 100%; height: 100%; max-width: 8rem; margin: 0; padding: 0;
  object-fit: contain; background: transparent; border: 0; border-radius: 0;
  filter: drop-shadow(0 .6rem .3rem #35432b30);
}
.article > .prose > .answer {
  padding: 0; margin-block: 0 1.2rem; background: transparent; border: 0;
  font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.7;
}
.article > .prose > .answer:has(+ .article-facts) { margin-block-end: 1.1rem; }
.article > .prose > .article-facts { margin-block: .5rem .9rem; padding: 1rem 1.25rem; border: 0; border-radius: .4rem; background: #eef0e4; }
.article-facts .article-facts-label { font-size: .68rem; letter-spacing: .09em; margin-bottom: .4rem; color: var(--green); }
.article-facts-grid { gap: .5rem 1.3rem; }
.article-fact { padding-block: .25rem; }
.article-fact dd { font-size: clamp(1.4rem, 2.3vw, 1.9rem); }
.article-fact dt { font-weight: 400; }
.article-fact[data-fact-key="category"] dd { font-weight: 600; }
.article-journey { margin-block: .7rem 1.5rem; }
.article-journey a { padding: .65rem 1rem; border: 0; border-radius: .35rem; background: #e8ecdf; box-shadow: inset 0 -2px #b9c4ac; }
.article-journey a:hover { background: #dce4d1; }
.article-journey li:first-child a { color: #fff9e8; background: #315c45; box-shadow: inset 0 -2px #19392f; }
.article-journey li:first-child a:hover { background: #244b38; }
.article-journey a > span { color: inherit; }
.article-tools { background: #eaf0e2; border: 0; border-radius: .35rem; padding: .35rem; box-shadow: 0 3px 7px #31422c0d; }
.article-tools [data-article-current] { border-color: #bfcab4; }
.article .contents { border: 0; }
.article .compact-contents { background: #f4f3e9; border-radius: 0 0 .35rem .35rem; padding-inline: .65rem; }
.article .compact-contents[open] > nav { background: transparent; border: 0; }
.article > .prose > section + section:not(.article-facts) { border-block-start: 0; padding-block-start: 1.5rem; }
.article > .prose > section > h2 { color: #294b37; font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
.article > .prose > section > h2::before { content: ''; display: block; width: 1.6rem; height: 3px; background: #bda16c; margin-bottom: .75rem; }
.article .table-wrap { border: 1px solid #dce1d1; border-radius: .35rem; }
.article .table-wrap thead th { color: #31533c; background: #eef1e6; border-bottom: 1px solid #c5cdb8; letter-spacing: .025em; }
.article .table-wrap :is(th, td) { border-color: #e0e3d7; }
.article .table-wrap tbody tr:nth-child(even) { background: #f8f8f0; }
.article .table-wrap tbody tr:hover { background: #eef2e4; }
.article .article-routes { gap: .6rem 1.25rem; }
.article .article-routes > li { padding: .35rem .8rem .7rem; background: #f4f4e9; border: 0; border-radius: .25rem; }
.article .related { border-color: #d9ddcb; }
.article .related > h2 { color: #31543e; }
.article .article-figure img { border-radius: .35rem; border: 0; box-shadow: 0 .7rem 1.4rem -1rem #2d442e66; }

/* Images keep their meaning and native dimensions; CSS supplies the composition. */
.world-scene { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.world-scene[data-scene="winter-village"] { object-position: 50% 58%; }
.world-scene[data-scene="windmill-fields"] { object-position: 50% 55%; }
.world-scene[data-scene="fishing-workbench"] { object-position: 65% 50%; }
.world-scene[data-scene="woodworking"] { object-position: 52% 52%; }
.world-scene[data-scene="pear-orchard"] { object-position: 55% 50%; }
.topic-cover.article-head {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(14rem, 1fr);
  align-items: stretch; overflow: hidden; border: 0; border-radius: .65rem;
  margin-bottom: 1.5rem; padding: 0; max-width: none; background: #fffdf7;
  box-shadow: 0 1rem 2rem -1.5rem #334e3066;
}
.topic-cover-copy { align-self: center; padding: clamp(1.2rem, 3vw, 2.4rem); }
.topic-cover-copy .topic-overline { margin: 0 0 .7rem; color: #466343; font-size: .7rem; font-weight: 600; letter-spacing: .1em; }
.page-main .topic-cover h1 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.page-main .topic-cover .lead { color: var(--muted); font-size: 1rem; margin-top: .8rem; }
.topic-cover-media { position: relative; min-width: 0; min-height: 16rem; margin: 0; overflow: hidden; background: #233b2b; }
.topic-cover-media .world-scene { position: absolute; inset: 0; }
.topic-cover-media figcaption { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 2rem .9rem .7rem; color: #fff9e9; background: linear-gradient(transparent,#11281dd9); font-size: .7rem; line-height: 1.45; }
.topic-cover-media figcaption a { color: inherit; display: inline-flex; align-items: center; min-height: 2.75rem; }
.directory-tools { border: 0; border-radius: .4rem; background: #e5eadb; box-shadow: inset 0 1px #fbf9ef; }
.directory-tools input, .directory-tools select, .directory-tools button { border-radius: .3rem; }
.directory-browser > .contents { background: #eae6d7; border: 0; border-radius: .35rem; padding: 1rem 1.25rem; }
.directory-browser [data-directory-section] > h2 { border: 0; margin-block-start: 2.4rem; padding-block-end: 0; color: #294b37; }

/* An illustrated cover, with native search and routes inside the first screen. */
.editorial-home .hero-world { min-height: 37rem; overflow: hidden; background: #17392d; border: 0; isolation: isolate; }
.hero-world > .hero-scene { position: absolute; inset: 0; z-index: -2; object-position: 68% 52%; }
.hero-world::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#122e28f5 0%,#17392ddb 30%,#17392d65 60%,#17392d0a 100%),linear-gradient(0deg,#102a24ba,transparent 36%); }
.hero-world .hero-inner { padding-block: 3.3rem 5.2rem; }
.hero-world .hero-kicker { display: flex; align-items: center; gap: .75rem; font-size: .7rem; color: #e8d5a9; letter-spacing: .15em; margin-bottom: 1rem; }
.hero-world .hero-kicker::before { content: ''; width: 2rem; height: 1px; background: #d9be82; }
.editorial-home .hero-world h1 { font-size: clamp(3.6rem, 6.6vw, 6rem); line-height: .96; font-weight: 500; max-width: 12ch; }
.hero-world h1 > span { display: block; font-style: italic; color: #ead5a5; font-weight: 400; }
.hero-world .hero-lead { max-width: 39ch; font-size: 1.08rem; margin: 1.25rem 0; }
.hero-world .home-search {
  max-width: 36rem; padding: 1.1rem 1.2rem 1.2rem; background: #fff9ee;
  border-radius: .45rem; box-shadow: 0 .8rem 2.6rem #0b241b66; gap: .5rem;
}
.hero-world .home-search label { color: #263c32; font-size: .78rem; }
.hero-world .home-search input { border: 1px solid #bec8b0; border-radius: .25rem; min-height: 3rem; background: #fffef9; }
.hero-world .home-search button { color: #fff8e5; background: #315c45; border-color: #315c45; border-radius: .25rem; }
.hero-world .home-search button:hover { color: #fff8e5; background: #19392f; border-color: #19392f; }
.hero-world .home-search :focus-visible { outline-color: #9b4e22; }
.hero-world .hero-actions { gap: .4rem 1.5rem; margin-top: .5rem; }
.hero-world .hero-actions a { font-size: .85rem; border-bottom-color: #bca779; }
.hero-scene-caption { position: absolute; inset-inline-end: var(--gutter); inset-block-end: 4.1rem; max-width: 18rem; color: #fff8e8; text-align: right; font-size: .72rem; line-height: 1.45; }
.hero-scene-caption a { color: #fff8e8; display: inline-flex; align-items: center; min-height: 2.75rem; }
.editorial-home-content { position: relative; padding-block-start: 0; }
.home-field-index {
  position: relative; margin-top: -2.6rem; padding: 1.5rem 1.8rem; border: 0;
  border-radius: .55rem; background: #fffdf7; box-shadow: 0 1rem 2.5rem -1rem #273f2b4d;
  grid-template-columns: minmax(10rem,.65fr) minmax(0,2.8fr); gap: 1.3rem;
}
.home-field-heading h2 { font-size: 1.85rem; color: #244532; }
.home-field-heading .home-overline { color: #62745b; font-size: .65rem; }
.home-field-index ul { gap: 0 1.1rem; }
.home-field-index li { border-top: 0; border-left: 1px solid #d9ddcb; padding-left: 1.1rem; }
.home-field-index a { padding: .15rem 0; gap: .55rem .25rem; }
.home-field-number { color: #8c713f; font-size: .75rem; }
.home-field-copy strong { font-size: 1.28rem; color: #244532; }
.home-field-copy small { font-size: .79rem; color: #596458; }
.home-edition { border: 0; background: transparent; padding: 1.1rem .2rem 0; font-size: .7rem; color: #596458; }
.home-section-heading { border: 0; padding-top: 0; }
.home-section-heading h2 { font-size: clamp(2.05rem, 3.7vw, 3.35rem); }
.home-overline { color: #55704d; font-size: .68rem; letter-spacing: .12em; }
.home-world-spread { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 1.25rem; }
.home-world-link {
  position: relative; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr);
  align-items: stretch; min-width: 0; overflow: hidden; color: var(--ink); text-decoration: none;
  background: #fffdf7; border-radius: .5rem; box-shadow: 0 .8rem 2rem -1.4rem #34492b70;
}
.home-world-link:first-child { grid-row: span 2; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(15rem,1fr) auto; }
.home-world-photo { overflow: hidden; min-height: 11rem; background: #334b34; }
.home-world-copy { padding: clamp(1.05rem,2.5vw,2rem); align-self: center; }
.home-world-copy .home-overline { margin-bottom: .65rem; }
.home-world-copy h3 { font-size: clamp(1.5rem,2.6vw,2.2rem); font-weight: 500; }
.home-world-copy p { color: var(--muted); font-size: .92rem; margin: .65rem 0 0; line-height: 1.55; }
.home-world-copy .home-world-action { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .6rem; color: var(--green); font-size: .85rem; font-weight: 600; text-decoration: underline; }
.home-world-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.home-world-link:focus-visible { outline-offset: 5px; }
.home-decisions { padding: 1.7rem 0; border-block: 1px solid #ccd3bd; }
.home-decisions .home-section-heading h2 { font-size: clamp(1.8rem,2.7vw,2.5rem); }
.home-decision-list > li { border-color: #c8d1ba; }
.home-decision-copy h3 { color: #31543e; }
.home-decision-number { color: #8f7849; }
.home-atlas-spread { gap: clamp(1.3rem,3vw,3rem); }
.home-atlas { position: relative; padding: .65rem; border: 1px solid #c4c9ae; background: #fffdf7; border-radius: .4rem; box-shadow: 0 1.15rem 2.7rem -1.6rem #3b4b2c61; }
.home-atlas img { aspect-ratio: 16 / 10; border: 0; border-radius: .15rem; }
.home-atlas-caption { padding: 1.2rem 1.25rem .6rem; }
.home-atlas-caption h3 { color: #31543e; }
.home-atlas-oxbow { margin-block-start: 2rem; }
.home-tools { padding: 1.5rem 1.8rem; background: #e3e8d6; border: 0; border-radius: .4rem; box-shadow: inset 3px 0 #b69b61; }
.home-topic-index { gap: .85rem 1.25rem; }
.home-topic-index > li { border: 0; background: #fffdf78c; border-radius: .3rem; }
.home-topic-index a { align-items: center; padding: 1.05rem 1.2rem; gap: .9rem; }
.home-topic-number { color: #8c784d; }
.home-topic-copy h3 { font-size: 1.38rem; }
.home-topic-copy p { font-size: .86rem; }
.site-footer { color: #e8eddd; background: #19392f; border: 0; }
.site-footer a { color: #e5cf9e; }
.site-footer p { color: #c5d0bb; }
.site-footer :focus-visible { outline-color: #e5cf9e; }

@media (max-width: 74rem) {
  .hero-scene-caption { max-width: 12rem; }
  .home-field-index { grid-template-columns: minmax(0,1fr); }
  .home-field-heading { display: flex; align-items: baseline; gap: 1rem; }
  .home-field-heading h2 { font-size: 1.6rem; }
  .home-field-index li:first-child { border-left: 0; padding-left: 0; }
  .home-world-link { grid-template-columns: minmax(0,.75fr) minmax(0,1fr); }
  .topic-cover.article-head { grid-template-columns: minmax(0,1fr); }
  .topic-cover-media { min-height: 14rem; }
}
@media (max-width: 48rem) {
  .head-inner { padding-block: .8rem .55rem; }
  .head-nav { gap: .2rem 1.1rem; }
  .head-nav a { font-size: .86rem; }
  .crest { width: 2.15rem; font-size: 1.05rem; }
  .shell { padding-inline: 1rem; padding-block: 1.3rem 2.6rem; gap: 0; }
  .sidebar { display: none; }
  .article { padding: 1.15rem; border-radius: .45rem; }
  .page-main .article-head.article-frontispiece { gap: .65rem; padding-bottom: 1rem; margin-bottom: 1.1rem; }
  .page-main .article-frontispiece h1 { font-size: clamp(1.95rem,7.8vw,3rem); }
  .article-frontispiece .article-overline { font-size: .65rem; letter-spacing: .03em; }
  .article-specimen { width: 5.8rem; padding: .7rem; }
  .article-frontispiece .byline { font-size: .74rem; line-height: 1.5; }
  .article > .prose > .answer { font-size: 1.06rem; }
  .article > .prose > .article-facts { padding: .8rem .9rem; }
  .article-facts-grid { gap: .5rem 1rem; }
  .article-fact dd { font-size: 1.45rem; }
  .article-journey a { padding-inline: .8rem; }
  .topic-cover-copy { padding: 1.3rem; }
  .topic-cover-media { min-height: 12rem; }
  .topic-cover-media figcaption { padding-bottom: .45rem; }
  .editorial-home .hero-world { min-height: 0; }
  .hero-world .hero-inner { padding-block: 2.3rem 5rem; }
  .hero-world::before { background: linear-gradient(90deg,#122e28e8,#17392db0),linear-gradient(0deg,#102a24d9,transparent 50%); }
  .hero-world > .hero-scene { object-position: 65% 50%; }
  .editorial-home .hero-world h1 { font-size: clamp(3.1rem,11vw,5rem); }
  .hero-world .hero-lead { max-width: 37ch; font-size: 1rem; margin-block: 1.1rem; }
  .hero-world .home-search { padding: .9rem; margin-top: 1.1rem; }
  .hero-world .home-search button { padding-inline: .75rem; font-size: .9rem; }
  .hero-scene-caption { left: var(--gutter); right: var(--gutter); bottom: 2.5rem; max-width: none; text-align: left; font-size: .65rem; }
  .hero-scene-caption a { min-height: 2.75rem; }
  .editorial-home-content { padding-inline: 1rem; }
  .home-field-index { margin-top: -1.6rem; padding: 1.2rem; gap: 1rem; }
  .home-field-heading { display: block; }
  .home-field-heading .home-overline { margin-bottom: .35rem; }
  .home-field-index ul { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem .8rem; }
  .home-field-index li { padding-left: 0; border-left: 0; }
  .home-field-copy strong { font-size: 1.15rem; }
  .home-field-copy small { font-size: .77rem; }
  .home-edition { padding-inline: .2rem; font-size: .67rem; }
  .home-world-spread { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .home-world-link:first-child { grid-row: auto; grid-template-rows: 13rem auto; }
  .home-world-link { grid-template-columns: minmax(0,.7fr) minmax(0,1fr); }
  .home-world-photo { min-height: 10rem; }
  .home-world-copy { padding: 1.1rem; }
  .home-world-copy h3 { font-size: 1.55rem; }
  .home-world-copy p { font-size: .85rem; }
  .home-world-copy .home-overline { font-size: .62rem; }
  .home-atlas-oxbow { margin-top: 0; }
  .home-atlas-caption { padding: 1rem .75rem .4rem; }
  .home-topic-index { grid-template-columns: minmax(0,1fr); }
  .home-topic-index a { padding: 1rem; }
  .home-tools { padding: 1.2rem; }
}
@media (max-width: 23rem) {
  .article { padding: 1rem; }
  .article-specimen { width: 4.7rem; padding: .6rem; }
  .article-journey a { font-size: .82rem; padding-inline: .6rem; gap: .5rem; }
  .home-world-link:not(:first-child) { grid-template-columns: minmax(0,1fr); }
  .home-world-link:not(:first-child) .home-world-photo { height: 11rem; }
}
.directory-browser--vendors .visual-catalogue .catalogue-visual {
  background: radial-gradient(circle at 50% 50%, #315c45 0 3.7rem, transparent 3.75rem);
}

@media (prefers-reduced-motion: no-preference) {
  .home-world-link .world-scene { transition: transform 260ms ease; }
  .home-world-link:hover .world-scene { transform: scale(1.025); }
  .article-specimen .article-icon { transition: transform 200ms ease; }
  .article-specimen:hover .article-icon { transform: translateY(-3px); }
}
@media (prefers-contrast: more) {
  :root { --muted: #344731; --edge: #879477; --control-edge: #5d7153; }
  .hero-world::before { background: linear-gradient(90deg,#122e28fc,#17392ddd); }
}
@media (forced-colors: active) {
  body, .site-head, .sidebar, .article, .hero-world, .home-field-index, .home-tools, .home-topic-index > li,
  .home-world-link, .topic-cover.article-head, .site-footer { background: Canvas; color: CanvasText; box-shadow: none; }
  .hero-world::before, .article-specimen::before, .article-specimen::after { display: none; }
  .hero-world > .hero-scene { display: none; }
  .world-scene { forced-color-adjust: none; }
  .article, .home-world-link, .home-atlas, .home-field-index { border: 1px solid CanvasText; }
  .site-head a, .sidebar a, .site-footer a, .hero-world a { color: LinkText; }
  .wordmark-subtitle, .sidebar-title, .sidebar small, .hero-world h1 > span, .hero-world .hero-kicker,
  .hero-world .hero-lead, .home-world-copy p, .home-field-copy strong, .home-field-copy small { color: CanvasText; }
  .sidebar a[aria-current], .language-switch [aria-current] { background: Highlight; color: HighlightText; box-shadow: none; }
  .article-specimen, .article-tools, .article > .prose > .article-facts { background: Canvas; }
  .directory-browser--vendors .visual-catalogue .catalogue-visual { background: Canvas; }
  .article-heading .article-specimen .article-icon { filter: none; }
  .article-journey a, .article-journey li:first-child a { color: LinkText; background: Canvas; border: 1px solid LinkText; box-shadow: none; }
  .hero-world .home-search, .hero-world .home-search input { color: CanvasText; background: Canvas; border-color: CanvasText; box-shadow: none; }
  .hero-world .home-search label, .hero-scene-caption, .topic-cover-media figcaption { color: CanvasText; background: Canvas; }
  .hero-world .home-search button, .head-search button { color: ButtonText; background: ButtonFace; border-color: ButtonText; }
  .article > .prose > section > h2::before { background: CanvasText; }
  :focus-visible { outline-color: Highlight; }
}
/* A specimen catalogue for the existing topic-directory markup.
   Append after theme.css. All selectors stay within .visual-catalogue. */
.directory-browser .entry-list.visual-catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(16.5rem, calc((100% - 2rem) / 3))), 1fr));
  align-items: stretch;
  gap: 1rem;
  max-width: none;
  margin: 1.1rem 0 1.8rem;
  padding: 0;
  list-style: none;
}

.directory-browser .visual-catalogue > .catalogue-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: .6rem;
  min-width: 0;
  margin: 0;
  padding: 1.05rem 1.1rem 1.25rem;
  border: 0;
  border-radius: .45rem;
  background: var(--white);
  box-shadow: 0 .18rem .45rem rgb(61 44 26 / .045),
    0 1rem 1.8rem -1.2rem rgb(61 44 26 / .22),
    inset 0 1px 0 rgb(255 255 255 / .6);
  transition: box-shadow .18s ease, background-color .18s ease;
}

.visual-catalogue .catalogue-visual {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 7.35rem;
  margin: -.2rem 0 .1rem;
  background: radial-gradient(ellipse at 50% 75%,
    color-mix(in srgb, var(--edge) 28%, transparent), transparent 66%);
}

.directory-browser .visual-catalogue .catalogue-image {
  display: block;
  width: 6.5rem;
  height: 6.5rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 .3rem .25rem rgb(61 44 26 / .13));
}

.visual-catalogue .catalogue-copy {
  min-width: 0;
  align-self: start;
  padding-inline-end: .65rem;
}

.directory-browser .visual-catalogue .catalogue-copy > .catalogue-title {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  max-width: 100%;
  padding-block: .15rem;
  color: var(--green);
  font: 600 1.28rem / 1.25 var(--serif);
  letter-spacing: -.012em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--green) 40%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.visual-catalogue .catalogue-title::after {
  position: absolute;
  inset: 0;
  border-radius: .45rem;
  content: "";
}

.directory-browser .visual-catalogue .catalogue-summary {
  max-width: none;
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.directory-browser .visual-catalogue .entry-arrow {
  position: absolute;
  right: .7rem;
  bottom: .55rem;
  align-self: auto;
  margin: 0;
  padding: 0;
  color: var(--green);
  font-size: 1rem;
  line-height: 1;
  opacity: .7;
}

.directory-browser .visual-catalogue > .catalogue-card--text {
  align-content: center;
  background: linear-gradient(140deg, var(--white),
    color-mix(in srgb, var(--paper) 65%, var(--white)));
}

.visual-catalogue .catalogue-card--text::before {
  width: 2.2rem;
  height: 3px;
  margin-block-end: .35rem;
  background: var(--edge);
  content: "";
}

.directory-browser .visual-catalogue .catalogue-card--text .catalogue-title {
  font-size: 1.45rem;
}

.visual-catalogue .catalogue-card--scene .catalogue-visual {
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: -.4rem -.45rem .2rem;
  overflow: hidden;
  border-radius: .25rem;
  background: var(--paper);
}

.directory-browser .visual-catalogue .catalogue-card--scene .catalogue-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.directory-browser .visual-catalogue > .catalogue-card:focus-within {
  background: var(--white);
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.directory-browser .visual-catalogue .catalogue-title:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

@media (hover: hover) {
  .directory-browser .visual-catalogue > .catalogue-card:hover {
    background: var(--white);
    box-shadow: 0 .35rem .7rem rgb(61 44 26 / .07),
      0 1.15rem 2rem -1.2rem rgb(61 44 26 / .3);
  }
  .directory-browser .visual-catalogue .catalogue-title:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
  }
}

@media (max-width: 40rem) {
  .directory-browser .entry-list.visual-catalogue {
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
  }
  .directory-browser .visual-catalogue > .catalogue-card {
    padding: .9rem 1rem 1rem;
  }
  .directory-browser .visual-catalogue > .catalogue-card--icon {
    grid-template-columns: 5rem minmax(0, 1fr);
    column-gap: .9rem;
    row-gap: 0;
  }
  .visual-catalogue .catalogue-card--icon .catalogue-visual {
    min-height: 5rem;
    margin: .1rem 0 0;
  }
  .directory-browser .visual-catalogue .catalogue-card--icon .catalogue-image {
    width: 5rem;
    height: 5rem;
  }
  .directory-browser .visual-catalogue .catalogue-copy > .catalogue-title {
    font-size: 1.2rem;
  }
  .directory-browser .visual-catalogue .catalogue-card--text .catalogue-title {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directory-browser .visual-catalogue > .catalogue-card {
    transition: none;
  }
}

@media (forced-colors: active) {
  .directory-browser .visual-catalogue > .catalogue-card {
    border: 1px solid CanvasText;
    background: Canvas;
    box-shadow: none;
  }
  .visual-catalogue .catalogue-visual { background: Canvas; }
  .directory-browser .visual-catalogue .catalogue-image { filter: none; }
  .directory-browser .visual-catalogue .catalogue-title {
    color: LinkText;
    text-decoration-color: LinkText;
  }
  .directory-browser .visual-catalogue .catalogue-summary,
  .directory-browser .visual-catalogue .entry-arrow { color: CanvasText; }
  .visual-catalogue .catalogue-card--text::before { background: CanvasText; }
  .directory-browser .visual-catalogue > .catalogue-card:focus-within {
    outline-color: Highlight;
    background: Canvas;
  }
}

/* Filtering continues to use the existing hidden attribute. */
.directory-browser .visual-catalogue > .catalogue-card[hidden] { display: none; }
/* Illustrated recipe composition. Load after theme.css.
   Scope: existing .recipe-flow markup only. Tables, cells, IDs and links stay native. */
.article .recipe-flow {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 3rem minmax(0, 1fr);
  align-items: stretch;
  gap: .75rem;
  margin-block: 2rem 2.5rem;
  padding: 0;
  border: 0;
  isolation: isolate;
}

.article .recipe-flow > section {
  --recipe-icon-size: 3.5rem;
  min-inline-size: 0;
  margin: 0;
  padding: clamp(1rem, 1.6vw, 1.5rem);
  border: 1px solid var(--edge);
  border-radius: .45rem;
  background: var(--white);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .7), 0 12px 25px rgba(48, 40, 31, .07);
}

.article .recipe-flow > section:last-of-type {
  --recipe-icon-size: 4.5rem;
  color: var(--white);
  border-color: var(--green-dark);
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 65%), var(--green-dark);
  box-shadow: 0 2px 0 rgba(48, 40, 31, .12), 0 14px 28px rgba(48, 40, 31, .12);
}

.article .recipe-flow > section > h2 {
  max-inline-size: none;
  margin: 0 0 1rem;
  padding-block-end: .75rem;
  border-block-end: 1px solid var(--edge);
  color: var(--green-dark);
  font: 500 clamp(1.55rem, 2.15vw, 1.95rem) / 1.2 var(--serif);
  letter-spacing: -.015em;
}

.article .recipe-flow > section:last-of-type > h2 {
  color: var(--white);
  border-block-end-color: var(--gold);
}

.article .recipe-flow > section > p {
  max-inline-size: 54ch;
  margin-block: .75rem;
}

.article .recipe-flow .recipe-flow-arrow {
  display: grid;
  place-items: center;
  position: relative;
  align-self: center;
  justify-self: center;
  inline-size: 3rem;
  block-size: 3rem;
  margin: 0;
  border: 1px solid var(--green-dark);
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: 0 4px 10px rgba(48, 40, 31, .08);
  font: 400 1.9rem / 1 var(--serif);
}

.article .recipe-flow .table-wrap {
  max-inline-size: 100%;
  margin: .25rem 0 0;
  padding: .25rem;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.article .recipe-flow table {
  inline-size: 100%;
  min-width: 0;
  border-collapse: collapse;
  background: transparent;
  font: 400 1rem / 1.45 var(--sans);
}

.article .recipe-flow :is(th, td) {
  padding: .8rem .5rem;
  vertical-align: middle;
  border-block-end: 1px solid var(--edge);
  background: transparent;
}

.article .recipe-flow thead th {
  padding-block: .25rem .65rem;
  color: var(--muted);
  border-block-end-width: 1px;
  background: transparent;
  font: 600 .8125rem / 1.4 var(--sans);
  letter-spacing: .025em;
}

.article .recipe-flow thead th:first-child {
  padding-inline-start: 0;
}

.article .recipe-flow :is(thead th:last-child, tbody td:last-child) {
  text-align: end;
}

.article .recipe-flow tbody tr,
.article .recipe-flow tbody tr:nth-child(even) {
  background: transparent;
}

.article .recipe-flow tbody th {
  position: relative;
  padding-inline-start: .25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.article .recipe-flow tbody th:has(> .table-icon) {
  padding-inline-start: calc(var(--recipe-icon-size) + 1rem);
}

.article .recipe-flow tbody th > .table-icon {
  position: absolute;
  inset-inline-start: .15rem;
  inset-block-start: 50%;
  inline-size: var(--recipe-icon-size);
  block-size: var(--recipe-icon-size);
  width: var(--recipe-icon-size);
  height: var(--recipe-icon-size);
  max-inline-size: none;
  margin: 0;
  padding: .2rem;
  transform: translateY(-50%);
  object-fit: contain;
  border: 1px solid var(--edge);
  border-radius: .35rem;
  background: var(--paper);
  box-shadow: 0 3px 8px rgba(48, 40, 31, .07);
}

.article .recipe-flow tbody th > a {
  display: inline-flex;
  align-items: center;
  min-inline-size: 2.75rem;
  min-block-size: max(2.75rem, var(--recipe-icon-size));
  max-inline-size: 100%;
  padding-block: .15rem;
  color: var(--green-dark);
  line-height: 1.4;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  overflow-wrap: anywhere;
}

.article .recipe-flow tbody td:last-child {
  inline-size: 1%;
  padding-inline-start: .75rem;
  white-space: nowrap;
  color: var(--ink);
  font: 500 clamp(1.6rem, 2.1vw, 2rem) / 1.15 var(--serif);
  font-variant-numeric: tabular-nums;
}

.article .recipe-flow tbody tr:last-child > * {
  border-block-end: 0;
}

.article .recipe-flow > section:last-of-type :is(th, td) {
  color: var(--white);
  border-block-end-color: rgba(255, 255, 255, .25);
}

.article .recipe-flow > section:last-of-type tbody th > .table-icon {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.article .recipe-flow > section:last-of-type tbody th > a {
  color: var(--white);
  text-decoration-color: var(--gold);
}

.article .recipe-flow > section:last-of-type tbody td:last-child {
  color: var(--white);
  font-size: clamp(2rem, 2.8vw, 2.5rem);
}

.article .recipe-flow :is(a, .table-wrap):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.article .recipe-flow > section:last-of-type :is(a, .table-wrap):focus-visible {
  outline-color: var(--gold);
}

@media (hover: hover) {
  .article .recipe-flow tbody th > a:hover {
    text-decoration-thickness: 2px;
  }
}

@media (max-width: 48rem) {
  .article .recipe-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
    margin-block: 1.5rem 2rem;
  }
  .article .recipe-flow > section {
    padding: 1rem;
  }
  .article .recipe-flow > section:last-of-type {
    --recipe-icon-size: 4rem;
  }
  .article .recipe-flow > section > h2 {
    font-size: 1.55rem;
  }
  .article .recipe-flow .recipe-flow-arrow {
    inline-size: 2.75rem;
    block-size: 2.75rem;
    margin-block: -.05rem;
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .article .recipe-flow,
  .article .recipe-flow *,
  .article .recipe-flow *::before,
  .article .recipe-flow *::after {
    animation: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  .article .recipe-flow > section,
  .article .recipe-flow > section:last-of-type,
  .article .recipe-flow .recipe-flow-arrow,
  .article .recipe-flow tbody th > .table-icon,
  .article .recipe-flow > section:last-of-type tbody th > .table-icon {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
  .article .recipe-flow > section > h2,
  .article .recipe-flow > section:last-of-type > h2,
  .article .recipe-flow :is(th, td),
  .article .recipe-flow > section:last-of-type :is(th, td) {
    color: CanvasText;
    border-color: CanvasText;
  }
  .article .recipe-flow tbody th > a,
  .article .recipe-flow > section:last-of-type tbody th > a {
    color: LinkText;
    text-decoration-color: LinkText;
  }
  .article .recipe-flow :is(a, .table-wrap):focus-visible,
  .article .recipe-flow > section:last-of-type :is(a, .table-wrap):focus-visible {
    outline-color: Highlight;
  }
}
/* Exact crop windows, presented as an illustrated seasonal guide. */
.crop-cycle {
  margin-block: 1.25rem 1.8rem; padding: clamp(1rem, 2.3vw, 1.65rem);
  border: 1px solid #cbd5bd; border-radius: .7rem;
  background: linear-gradient(145deg, #edf1e3, #f8f6ec 72%);
  box-shadow: 0 .8rem 1.8rem -.8rem #30492c1c;
}
.prose .crop-cycle p { max-width: none; }
.crop-cycle .crop-cycle-kicker {
  margin: 0 0 1rem; color: #365338; font-size: .77rem; font-weight: 700;
  letter-spacing: .075em; text-transform: uppercase;
}
.crop-cycle-specimens {
  display: grid; grid-template-columns: minmax(0, 1fr) 2.2rem minmax(0, 1fr);
  align-items: center; gap: .6rem; margin-block-end: 1.35rem;
}
.crop-cycle-specimen {
  display: flex; align-items: center; gap: 1rem; min-width: 0; min-height: 7rem;
  padding: .65rem 1rem; background: #fffdf7; border: 1px solid #d1d4c2;
  border-radius: .5rem; color: #233e2d; text-decoration: none;
}
.crop-cycle-specimen:hover { border-color: #65805b; background: #fffefb; }
.crop-cycle-specimen:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.crop-cycle-specimen-image {
  display: grid; place-items: center; flex: 0 0 5rem; min-width: 0; height: 5rem;
  background: radial-gradient(ellipse, #e7e5cf, #f5f3e800 70%);
}
.crop-cycle-specimen-image img { width: 5rem; height: 5rem; object-fit: contain; filter: drop-shadow(0 6px 4px #443a272b); }
.crop-cycle-specimen-copy { min-width: 0; overflow-wrap: anywhere; }
.crop-cycle-specimen-copy small { display: block; color: #596348; line-height: 1.4; font-size: .73rem; }
.crop-cycle-specimen-copy strong { display: block; margin-top: .3rem; font: 600 1.16rem/1.2 var(--serif); }
.crop-cycle-arrow { text-align: center; color: #677c53; font-size: 1.9rem; }
.crop-cycle-window + .crop-cycle-window { margin-top: 1.3rem; }
.crop-cycle .crop-cycle-window-title { margin: 0 0 .6rem; color: #324c36; font-size: .87rem; font-weight: 650; }
.prose .crop-cycle-seasons {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  padding: 0; margin: 0; gap: .55rem; list-style: none;
}
.prose .crop-cycle-season {
  display: flex; flex-direction: column; justify-content: space-between; gap: .65rem;
  min-width: 0; min-height: 5.3rem; margin: 0; padding: .7rem .65rem;
  border: 1px solid #d6dacb; border-radius: .35rem; background: #ffffff65; color: #5b6652;
}
.crop-cycle-season-name { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 600; }
.crop-cycle-season-name svg { flex: 0 0 1.2rem; width: 1.2rem; height: 1.2rem; }
.crop-cycle-action { font-size: .86rem; line-height: 1.25; }
.crop-cycle-idle { opacity: .6; line-height: 1; }
.prose .crop-cycle-season.is-sow { background: #244b38; border-color: #244b38; color: #f4f6e9; box-shadow: 0 3px 8px #1c372415; }
.prose .crop-cycle-season.is-harvest { background: #ead3a2; border-color: #c8ac72; color: #473715; box-shadow: 0 3px 8px #6e552415; }
.crop-cycle .crop-cycle-maturity {
  padding: .8rem 1rem; margin: 1.2rem 0 0; color: #4e4224; background: #f3e7c9;
  border-inline-start: 3px solid #b18a3e; font-size: .87rem;
}
.crop-cycle-maturity a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #3e3c1d; }
.crop-cycle .crop-cycle-source { margin: 1rem 0 0; color: #5b6550; font-size: .76rem; line-height: 1.5; }
@media (max-width: 56rem) {
  .crop-cycle-specimen { flex-direction: column; text-align: center; gap: .4rem; padding: .6rem; }
  .crop-cycle-specimen-copy strong { font-size: 1.1rem; }
}
@media (max-width: 34rem) {
  .crop-cycle { padding: 1rem .8rem; }
  .crop-cycle-specimens { grid-template-columns: minmax(0, 1fr) 1.2rem minmax(0, 1fr); gap: .35rem; }
  .crop-cycle-specimen { min-height: 10rem; justify-content: center; }
  .crop-cycle-specimen-image, .crop-cycle-specimen-image img { width: 4.5rem; height: 4.5rem; }
  .crop-cycle-specimen-image { flex-basis: 4.5rem; }
  .crop-cycle-arrow { font-size: 1.4rem; }
  .prose .crop-cycle-seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crop-cycle-season-name { flex-wrap: nowrap; }
}
@media (forced-colors: active) {
  .crop-cycle, .crop-cycle-specimen, .prose .crop-cycle-season,
  .prose .crop-cycle-season.is-sow, .prose .crop-cycle-season.is-harvest, .crop-cycle .crop-cycle-maturity {
    background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none;
  }
  .crop-cycle-specimen, .crop-cycle-maturity a { color: LinkText; }
  .crop-cycle-specimen-image img { filter: none; }
}
@media print {
  .crop-cycle { box-shadow: none; break-inside: avoid; }
  .crop-cycle-specimen-image img { filter: none; }
}
/* Illustrated article composition.
   Load after theme.css, world-design.css and the existing visual modules.
   Preserves native images, figure anchors, table semantics and source links.

   Confirmed renderer contracts:
   - figure.article-figure > img + figcaption
   - div.section-figures > figure.article-figure
   - section.illustrated-evidence > h2 + introduction
     > div.illustrated-evidence-grid
       > figure.illustrated-evidence-card[data-evidence-role]
         > img + figcaption
   - captions contain .figure-observation then .figure-source.
   Legacy captions without those spans retain their readable block fallback.
   No styles for related cards, seasons, recipe flows, facts or infoboxes.
*/

/* Compact inventory silhouettes need a dark surface on ivory tables and routes.
   Recipe panels and portrait/crest treatments keep their existing surfaces.
   No padding or size change: retain the full small icon and adjacent link. */
.article :is(.table-wrap, .article-routes) img.table-icon:where(:not(.crest-icon, .quest-contact-portrait, .recipe-flow img)) {
  background: var(--green-dark);
  border-radius: .15rem;
}

.article :is(.article-figure, .illustrated-evidence-card) {
  min-inline-size: 0;
  max-inline-size: 100%;
  margin: clamp(1.25rem, 2.2vw, 2rem) 0;
}

.article :is(.article-figure, .illustrated-evidence-card) > img {
  display: block;
  inline-size: auto;
  max-inline-size: 100%;
  block-size: auto;
  max-block-size: none;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--edge);
  border-radius: .3rem;
  background: var(--paper);
  box-shadow: 0 .5rem 1rem -.75rem #263c3240;
}

.article :is(.article-figure, .illustrated-evidence-card) > figcaption {
  max-inline-size: none;
  margin: .85rem 0 0;
  padding: .85rem 1rem;
  border-inline-start: 3px solid var(--gold);
  background: var(--paper);
  color: var(--muted);
  font: 400 .8rem / 1.55 var(--sans);
  overflow-wrap: anywhere;
}

.article :is(.article-figure, .illustrated-evidence-card) > figcaption:has(> .figure-observation) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
}

.article .figure-observation {
  display: block;
  min-inline-size: 0;
  max-inline-size: 65ch;
  color: var(--ink);
  font: 400 1.02rem / 1.6 var(--sans);
}

.article .figure-source {
  display: block;
  min-inline-size: 0;
  padding-block-start: .6rem;
  border-block-start: 1px solid var(--edge);
  color: var(--muted);
  font: 400 .8rem / 1.55 var(--sans);
  overflow-wrap: anywhere;
}

.article :is(.article-figure, .illustrated-evidence-card) > figcaption a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  min-inline-size: 2.75rem;
  max-inline-size: 100%;
  padding-block: .2rem;
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}

.article :is(.article-figure, .illustrated-evidence-card) > figcaption a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.article :is(.article-figure, .illustrated-evidence-card):focus-visible,
.article :is(.article-figure, .illustrated-evidence-card) > figcaption a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

/* Keep screenshots large enough to inspect. The previous 16rem minimum could
   place three instructional images in one article row. This layer allows
   one column by default and two only on a sufficiently wide page. */
.article :is(.section-figures, .illustrated-evidence-grid) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.25rem, 2.2vw, 2rem);
  min-inline-size: 0;
  margin-block: clamp(1.25rem, 2.2vw, 2rem);
}

.article .section-figures > .article-figure,
.article .illustrated-evidence-grid > .illustrated-evidence-card {
  margin: 0;
}

.article .section-figures + :is(p, ul, ol, .table-wrap) {
  margin-block-start: 1.5rem;
}

/* A contained illustrated plate belongs to its article and retains a normal
   heading and textual introduction. The role attribute describes the image;
   it never changes the original crop or creates a gameplay assertion. */
/* Match the existing section rhythm selectors so this plate keeps its own
   spacing and complete frame, including when another section precedes it. */
.article > .prose > section.illustrated-evidence,
.article > .prose > section + section.illustrated-evidence {
  margin-block: clamp(2rem, 3vw, 3rem);
  padding: clamp(1rem, 2.2vw, 1.65rem);
  border: 1px solid var(--edge);
  border-radius: .4rem;
  background: var(--paper);
  box-shadow: inset 0 3px 0 var(--gold);
}

.article > .prose > .illustrated-evidence > h2 {
  margin-block-start: .2rem;
}

.article .illustrated-evidence > p {
  max-inline-size: 66ch;
}

.article .illustrated-evidence-grid {
  margin-block: 1.2rem 0;
}

.article .illustrated-evidence-card {
  padding: clamp(.65rem, 1.25vw, 1rem);
  border: 1px solid var(--edge);
  border-radius: .3rem;
  background: var(--white);
}

.article .illustrated-evidence-card > figcaption {
  margin-block-start: .75rem;
  padding: .8rem .15rem 0;
  border-inline-start: 0;
  background: transparent;
}

.article .illustrated-evidence-card[data-evidence-role="portrait"] > img {
  max-block-size: 32rem;
}

/* Wide standalone screenshots have a reading caption and a quieter source
   column. Captions inside a gallery remain in one column. */
@media (min-width: 72rem) {
  .article .article-figure > figcaption:has(> .figure-observation) {
    grid-template-columns: minmax(0, 1.65fr) minmax(12rem, 1fr);
    gap: 1.25rem;
  }

  .article .article-figure > figcaption:has(> .figure-observation) > .figure-source {
    padding-block-start: 0;
    padding-inline-start: 1.25rem;
    border-block-start: 0;
    border-inline-start: 1px solid var(--edge);
  }

  .article .section-figures > .article-figure > figcaption:has(> .figure-observation) {
    grid-template-columns: minmax(0, 1fr);
    gap: .7rem;
  }

  .article .section-figures > .article-figure > figcaption:has(> .figure-observation) > .figure-source {
    padding-block-start: .6rem;
    padding-inline-start: 0;
    border-block-start: 1px solid var(--edge);
    border-inline-start: 0;
  }
}

@media (min-width: 84rem) {
  .article :is(.section-figures, .illustrated-evidence-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Selection may retain one image after excluding figures already present. */
  .article .illustrated-evidence-grid:has(> .illustrated-evidence-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 48rem) {
  .article :is(.article-figure, .illustrated-evidence-card) > figcaption {
    padding-inline: .75rem;
  }

  .article .figure-observation {
    font-size: .98rem;
    line-height: 1.6;
  }

  .article .illustrated-evidence-card > figcaption {
    padding-inline: .05rem;
  }

  .article > .prose > section.illustrated-evidence,
  .article > .prose > section + section.illustrated-evidence {
    padding: .9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article :is(.article-figure, .illustrated-evidence-card),
  .article :is(.article-figure, .illustrated-evidence-card) > img,
  .article :is(.article-figure, .illustrated-evidence-card) > figcaption a {
    animation: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  /* Raster pixels do not follow system text colors. Keep only their plate
     dark; surrounding text, links and focus still use the system palette. */
  .article :is(.table-wrap, .article-routes) img.table-icon:where(:not(.crest-icon, .quest-contact-portrait, .recipe-flow img)) {
    forced-color-adjust: none;
    background: var(--green-dark);
    outline: 1px solid CanvasText;
    outline-offset: 1px;
  }

  .article > .prose > section.illustrated-evidence,
  .article > .prose > section + section.illustrated-evidence,
  .article :is(.article-figure, .illustrated-evidence-card),
  .article :is(.article-figure, .illustrated-evidence-card) > img,
  .article :is(.article-figure, .illustrated-evidence-card) > figcaption {
    border-color: CanvasText;
    background: Canvas;
    box-shadow: none;
  }

  .article :is(.figure-observation, .figure-source) {
    color: CanvasText;
    border-color: CanvasText;
  }

  .article :is(.article-figure, .illustrated-evidence-card) > figcaption a {
    color: LinkText;
    text-decoration-color: LinkText;
  }

  .article :is(.article-figure, .illustrated-evidence-card):focus-visible,
  .article :is(.article-figure, .illustrated-evidence-card) > figcaption a:focus-visible {
    outline-color: Highlight;
  }
}
