@import url('icons.css');
:root {
  color-scheme: light;
  --paper: #fafbf9;
  --surface: #fff;
  --ink: #23312e;
  --muted: #54645e;
  --green: #165c4c;
  --line: #d3dbd5;
  --tint: #edf3ef;
  --sans: 'Source Sans 3', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: 'STIX Two Text', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --mono: 'IBM Plex Mono', Consolas, 'Microsoft YaHei', monospace;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
h1 { font: 650 clamp(1.95rem, 3.3vw, 2.65rem)/1.3 var(--serif); }
h2 { font-size: 1.32rem; font-weight: 650; }
h3 { font-size: 1.05rem; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:where(a,button,summary,input):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: #d4e8de; color: #18352e; }
.shell { width: min(1180px, calc(100% - clamp(32px, 7vw, 96px))); margin-inline: auto; }
.wiki { display: flex; min-height: 100vh; flex-direction: column; }
.wiki > main { flex: 1; padding-bottom: clamp(36px, 6vw, 76px); }
main:focus:not(:focus-visible) { outline: none; }
.icon { --sz: 18px; width: var(--sz); height: var(--sz); flex: none; display: inline-block; vertical-align: middle; background: url('icons.png') no-repeat; background-size: auto var(--sz); background-position: calc(var(--slot, 0) * var(--sz) * -1) 0; }
.skip, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 3; width: auto; height: auto; clip-path: none; top: 8px; left: 12px; padding: 10px 16px; background: var(--surface); }
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 62px; display: flex; align-items: center; column-gap: clamp(24px, 5vw, 68px); }
.site-name { color: var(--ink); white-space: nowrap; font: 620 1.24rem/1.4 var(--sans); }
.primary { align-self: stretch; display: flex; gap: clamp(15px, 2.5vw, 36px); }
.primary a { display: grid; place-items: center; border-block: 2px solid transparent; padding: 0 2px; white-space: nowrap; color: var(--muted); font-size: .91rem; }
.primary a[aria-current] { color: var(--green); border-bottom-color: var(--green); font-weight: 650; }
.search-link { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; padding: 6px 10px; min-height: 36px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.search-link:hover { border-color: var(--green); text-decoration: none; }
.search-link .icon { --sz: 16px; }
.search-link kbd { min-width: 19px; margin-left: 9px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font: .76rem/1.4 var(--mono); text-align: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; min-height: 54px; color: var(--muted); font-size: .8rem; }
.crumbs .icon { --sz: 11px; }
.crumbs a { color: inherit; }
.catalog { max-width: 970px; margin-inline: auto; }
.home-catalog { padding-top: clamp(28px, 5vw, 62px); }
.catalog-head, .article-head, .index-head { padding-bottom: clamp(16px, 2.4vw, 26px); border-bottom: 1px solid #9eafa5; }
.catalog-head p, .article-head p, .index-head p { margin-top: 8px; color: var(--muted); line-height: 1.8; }
.catalog-columns { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(195px, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 28px; }
.directory-list, .guide-list, .topic-links { list-style: none; margin: 0; padding: 0; }
.directory-list, .guide-list { margin-top: 12px; border-top: 1px solid var(--line); }
.directory-list li, .guide-list li { position: relative; border-bottom: 1px solid var(--line); padding: 14px 2px; }
.directory-list li { display: grid; grid-template-columns: 6.2em 1fr; align-items: baseline; gap: 12px; }
.directory-list a, .guide-list a { width: fit-content; font-weight: 630; }
.directory-list a::after, .guide-list a::after { position: absolute; inset: 0; content: ''; }
.directory-list p, .guide-list p, .server-notes dd { font-size: .92rem; color: var(--muted); line-height: 1.7; }
.guide-list p { margin-top: 3px; }
.index-sidebar { border-left: 1px solid var(--line); padding-left: clamp(17px, 2vw, 29px); }
.index-sidebar h2 { font-size: 1.02rem; }
.topic-links { margin-top: 9px; }
.topic-links a, .all-entries { display: inline-flex; align-items: center; min-height: 35px; font-size: .91rem; }
.all-entries { gap: 7px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.all-entries .icon, .text-link .icon { --sz: 15px; }
.server-section { margin-top: 28px; }
.server-notes { margin-top: 12px; }
.server-notes > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 10px 0; }
.server-notes dt { font-weight: 620; }
.foot { border-top: 1px solid var(--line); }
.foot-inner, .guide-return { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.foot-inner { justify-content: flex-end; min-height: 55px; font-size: .82rem; }
.foot a, .text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.foot a { color: var(--muted); }
.foot .icon { --sz: 13px; }
.reader { display: grid; grid-template-columns: 175px minmax(0, 1fr) 150px; align-items: start; gap: clamp(24px, 3.6vw, 48px); }
.sticky { position: sticky; top: 18px; }
.side-nav, .toc { align-self: stretch; }
.side-nav nav, .toc nav, .mobile-toc nav { display: flex; flex-direction: column; }
.side-title, .toc strong { display: block; margin-bottom: 9px; font-size: .94rem; font-weight: 650; color: var(--ink); }
.side-nav nav a { border-left: 2px solid transparent; padding: 8px 10px; color: var(--muted); font-size: .9rem; }
.side-nav nav a[aria-current] { color: var(--green); border-left-color: var(--green); background: var(--tint); font-weight: 620; }
.toc { border-left: 1px solid var(--line); padding-left: 15px; }
.toc a, .mobile-toc nav a { display: block; padding: 6px 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.mobile-toc { display: none; }
.prose { font-size: 1rem; line-height: 1.88; overflow-wrap: anywhere; }
.prose h2 { scroll-margin-top: 16px; margin: 30px 0 10px; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.prose p + p { margin-top: 12px; }
.prose a { text-decoration: underline; text-underline-offset: .17em; }
.prose code:not(.command > code) { padding: .09em .25em; border-radius: 2px; background: var(--tint); color: var(--green); font: .91em/1.55 var(--mono); }
.command { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 100%; padding: 1px 5px; border: 1px solid #bfd0c5; border-radius: 3px; background: var(--tint); color: var(--green); font: 550 .88em/1.55 var(--mono); text-align: left; }
.command code { font: inherit; }
.command .icon { --sz: 12px; }
.command:hover { border-color: var(--green); }
.prose table { width: 100%; margin: 13px 0 18px; border-spacing: 0; background: var(--surface); font-size: .91rem; line-height: 1.65; }
.prose th, .prose td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--tint); font-weight: 650; }
.game-figure { width: fit-content; max-width: 100%; margin: 16px 0 20px; }
.game-figure img { height: auto; border: 1px solid var(--line); }
.game-figure:has(+ p > .media-link:only-child) { margin-bottom: 3px; }
.prose .media-link { font-size: .87rem; }
.game-figure figcaption { margin-top: 5px; color: var(--muted); font-size: .83rem; line-height: 1.65; }
.collection { margin-top: 20px; }
.recipe-group + .recipe-group { margin-top: 22px; }
.recipe-group-head { display: flex; gap: 3px 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 7px; }
.recipe-group-head small, .materials small { color: var(--muted); font-size: .78rem; }
.recipe, .mobile-toc { border: 1px solid var(--line); background: var(--surface); }
.recipe + .recipe { border-top: none; }
.recipe { scroll-margin-top: 12px; }
.recipe summary, .mobile-toc summary { min-height: 43px; display: flex; align-items: center; gap: 11px; padding: 8px 13px; list-style: none; color: var(--ink); font-size: .94rem; font-weight: 580; }
summary::-webkit-details-marker { display: none; }
.recipe summary:hover, .mobile-toc summary:hover { background: var(--tint); }
.expand-mark { flex: none; width: 8px; height: 8px; margin-left: auto; margin-right: 3px; border: solid var(--green); border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
[open] > summary .expand-mark { transform: translateY(2px) rotate(225deg); }
.item-texture { flex: none; image-rendering: pixelated; }
.recipe-layout { display: flex; align-items: center; gap: clamp(12px, 3vw, 26px); padding: 3px 13px 15px; }
.prose table.bench { flex: none; width: min(215px, 53%); table-layout: fixed; border: 2px solid #8b9c90; border-spacing: 2px; background: #93a398; margin: 0; }
.prose .bench td { height: 40px; border: none; padding: 3px; text-align: center; vertical-align: middle; background: #e4ebdf; color: #24352a; font-size: .78rem; line-height: 1.35; }
.prose .bench .empty { color: #536159; background: #d2dcd3; }
.materials { font-size: .88rem; line-height: 1.7; }
.materials ul { margin: 3px 0 8px; padding: 0; list-style: none; }
.materials li b { white-space: nowrap; font: 600 .87em var(--mono); }
.guide-return { margin-top: 12px; font-size: .87rem; }
.index-page { max-width: 820px; margin-inline: auto; }
.index-head { margin-bottom: 19px; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 47px; padding: 0 12px; border: 1px solid #8da195; border-radius: 4px; background: var(--surface); }
.search-box:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.search-box input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box button { min-height: 40px; border: 0; background: transparent; color: var(--green); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.filters button, .button { min-height: 37px; padding: 6px 13px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--muted); }
.filters button[aria-pressed="true"], .solid-button { border-color: var(--green); background: var(--green); color: white; }
.result-count, .result-meta { color: var(--muted); font-size: .81rem; }
.results { margin-top: 10px; border-top: 1px solid var(--line); }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 10px 2px; gap: 3px 12px; border-bottom: 1px solid var(--line); }
.result strong { grid-column: 1; font-weight: 620; }
.result .icon { grid-row: 1 / 3; grid-column: 2; align-self: center; --sz: 16px; }
.result:hover { text-decoration: none; }
.result:hover strong { text-decoration: underline; }
.no-results { padding: 26px 0; }
.no-results p { margin: 8px 0 14px; color: var(--muted); }
.notice:not(:empty) { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2; width: max-content; max-width: 90vw; padding: 9px 16px; background: var(--ink); color: white; border-radius: 3px; font-size: .88rem; }
.fallback { padding-block: 32px; line-height: 1.8; }
.fallback p { margin-block: 1em; }
.fallback a { text-decoration: underline; }
@media (max-width: 1050px) {
  .reader { grid-template-columns: 155px minmax(0, 1fr); }
  .toc { display: none; }
  .mobile-toc { display: block; margin-top: 16px; }
  .mobile-toc nav { padding: 0 14px 9px; }
}
@media (max-width: 760px) {
  .masthead-inner { display: grid; grid-template-columns: 1fr auto; min-height: auto; gap: 0 10px; }
  .site-name { display: inline-flex; width: fit-content; align-items: center; min-height: 49px; }
  .primary { grid-row: 2; grid-column: 1/-1; gap: 0; }
  .primary a { min-height: 42px; flex: 1; }
  .search-link { grid-row: 1; grid-column: 2; min-height: 33px; }
  .search-link kbd { display: none; }
  .reader { display: block; }
  .side-nav { display: none; }
  .guide-body { max-width: 690px; margin-inline: auto; }
  .catalog-columns { gap: 24px; grid-template-columns: minmax(0, 1.8fr) minmax(155px, 1fr); }
  .directory-list li { display: block; }
  .directory-list p { margin-top: 3px; }
}
@media (max-width: 580px) {
  .catalog-columns { display: block; margin-top: 21px; }
  .index-sidebar { border: none; padding: 0; margin-top: 25px; }
  .index-sidebar h2 { font-size: 1.2rem; }
  .topic-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .topic-links a { min-height: 40px; }
  .crumbs { min-height: 43px; }
  .server-notes > div { display: block; }
  .server-notes dd { margin-top: 3px; }
  .prose th, .prose td { padding: 7px 5px; }
  .prose table { font-size: .87rem; }
  .recipe-layout { padding-inline: 9px; gap: 10px; }
  .filters button { padding-inline: 10px; }
}
