/* ============================================================
   Dressmaker Wiki — ATELIER THEME
   ------------------------------------------------------------
   Layout, components and class names originate from our most evolved guide layout so a
   new site starts from the most evolved guide layout we run:
     header / footer · homepage composition · article page (no sidebar)
     in-article On-this-page TOC · Where-to-go-next · Helpful vote · page-nav
     ads: two sticky side rails + in-flow native (PC), mobile leader

   THEME: the :root block below is townfallguide.com's palette and is only a
   DEFAULT. For a new site either retune the variables or replace the block —
   nothing outside :root hard-codes a colour. See README "建站步骤" step 3.
   ============================================================ */

:root {
  /* ---- Surfaces: walnut desk + cream paper ---- */
  --bg: #465448;            /* muted sage shop wall */
  --bg-2: #3d4a3f;
  --bg-panel: #E9DFC7;      /* main paper sheet */
  --bg-panel-deep: #352720; /* walnut-dark */
  --bg-raised: #F1E8D4;
  --surface: #E7DDC3;       /* --paper */
  --panel: #F7F0DF;         /* --paper-highlight, innermost cards */

  --walnut-dark: #352720;
  --walnut: #4A352A;
  --wood-medium: #604A39;
  --sage-dark: #465949;
  --sage: #667763;
  --sage-muted: #87917A;
  --paper: #E7DDC3;
  --paper-light: #F1E8D4;
  --paper-highlight: #F7F0DF;

  /* ---- Text: ink on paper ---- */
  --text: #322A25;          /* headings — --ink */
  --body: #42362E;          /* body copy */
  --text-2: #6A5A4E;        /* --ink-muted */
  --text-dim: #8A7866;      /* micro metadata */

  /* ---- Accent: coral dialogue buttons + brass hardware ---- */
  --coral: #D98367;
  --coral-light: #E9A17F;
  --rust: #9F473D;          /* --brick-red — thread + separators */
  --rust-hi: #B4553F;
  --rust-dark: #7A342C;
  --rust-deep: #5E2A24;
  --rust-ink: #9F473D;      /* text-safe red on paper */

  --brass: #B4863F;
  --brass-light: #CBA65B;
  --brass-muted: #8B6C36;

  /* ---- Supporting tones ---- */
  --cold: #6B7C82;
  --stitch: #A85A4C;        /* dashed pattern outline */

  /* ---- Borders: brown rules, never grey ---- */
  --line: rgba(53, 39, 32, 0.28);
  --line-soft: rgba(53, 39, 32, 0.16);
  --line-rust: rgba(159, 71, 61, 0.65);
  --line-rust-soft: rgba(159, 71, 61, 0.40);
  --line-rust-hot: rgba(159, 71, 61, 0.95);

  /* ---- Type: editorial serif + rounded game-UI labels ---- */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Source Serif 4', 'Libre Baskerville', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --header-h: 78px;        /* sticky header height — used to anchor overlays below it */
  --max: 1340px;
  --pad: 48px;

  /* Physical paper shadows — soft, warm, never SaaS-glow */
  --shadow-paper:
    0 2px 2px rgba(48, 34, 25, 0.18),
    0 8px 18px rgba(48, 34, 25, 0.14);
  --shadow-paper-lift:
    0 3px 3px rgba(48, 34, 25, 0.20),
    0 12px 26px rgba(48, 34, 25, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* `overflow-x: clip` contains horizontal overflow WITHOUT making <body> a
     scroll container. `overflow-x: hidden` did, which broke the sticky header
     and the nav dropdown hover chain (regression fixed 2026-09-22). */
  overflow-x: clip;
}

/* ---------- Layered background: sage wallpaper + paper grain + vignette ----------
   The site should read as a physical room, not a page: muted floral wallpaper
   behind, warm paper grain over it, soft vignette at the edges. All static —
   no animation on a full-screen layer (readability + perf). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    /* soft vignette so the paper sheet feels lit from the centre */
    radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgba(24, 18, 14, 0.30) 100%),
    /* wallpaper floral suggested with low-opacity radial blooms, not a tiled SVG */
    radial-gradient(circle at 12% 18%, rgba(135, 145, 122, 0.16) 0 7px, transparent 8px),
    radial-gradient(circle at 37% 62%, rgba(135, 145, 122, 0.13) 0 9px, transparent 10px),
    radial-gradient(circle at 68% 28%, rgba(135, 145, 122, 0.15) 0 6px, transparent 7px),
    radial-gradient(circle at 88% 74%, rgba(135, 145, 122, 0.12) 0 8px, transparent 9px),
    radial-gradient(circle at 52% 8%, rgba(135, 145, 122, 0.10) 0 5px, transparent 6px),
    linear-gradient(180deg, #4A584C 0%, #3F4C42 55%, #36423A 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  /* fine paper/twill grain — sensed, not seen (spec: 2–6%) */
  background-image:
    repeating-linear-gradient(0deg, rgba(48, 34, 25, 0.55) 0px, rgba(48, 34, 25, 0.55) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(48, 34, 25, 0.30) 0px, rgba(48, 34, 25, 0.30) 1px, transparent 1px, transparent 4px);
}

/* Fine grain layer on the content wrapper so text stays crisp */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header, main, .site-footer { position: relative; z-index: 2; }

/* ---------- Links ---------- */
a { color: var(--text); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--rust-hi); }

/* ---------- Headings: editorial serif ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--text); line-height: 1.2; font-weight: 600; }

h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); letter-spacing: -0.01em; margin-bottom: 0.9rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.6rem 0 1rem; position: relative; padding-bottom: 0.55rem; }
h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 58px; height: 1px;
  background: linear-gradient(90deg, var(--rust) 0%, rgba(166, 40, 46, 0) 100%);
}
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin: 1.9rem 0 0.7rem; }
h4 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; color: var(--text-2); }
p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.15rem 1.3rem; }
li { margin-bottom: 0.5rem; }
strong { color: var(--text); font-weight: 600; }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 2px;
  padding: 0.08em 0.34em;
  color: var(--text);
}

/* ---------- Micro label (broadcast metadata) ---------- */
.label, .micro {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.label--brass { color: var(--brass); }
.label--rust { color: var(--rust-hi); }

/* ---------- Chromatic aberration: hero title + selected accents only ---------- */
.chroma {
  text-shadow:
    -1px 0 rgba(0, 220, 255, 0.5),
     1px 0 rgba(255, 30, 30, 0.5);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ---- Logo block ---- */
.brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.brand-mark { color: var(--rust); display: grid; place-items: center; }
.brand-mark svg { display: block; }
.brand-stack { display: flex; flex-direction: column; line-height: 1.05; }
.brand-top {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #fff;
}
.brand-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--rust);
  letter-spacing: 0.01em;
}
.brand-tag {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-left: 0.5rem;
  align-self: flex-end;
  padding-bottom: 2px;
}

/* ---- Nav: hard-edged text links, no pills ---- */
.header-nav { display: flex; align-items: center; gap: 1.55rem; margin-left: auto; }
.header-nav > a, .nav-group-btn {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-2);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.header-nav > a:hover, .nav-group-btn:hover,
.header-nav > a.active, .nav-group-btn.active { color: var(--rust-hi); border-bottom-color: var(--rust); }

.nav-group { position: relative; }
.nav-drop {
  position: absolute;
  top: 100%;
  left: -14px;
  padding-top: 10px;          /* visual gap, but part of the hover target */
  min-width: 250px;
  display: none;
  flex-direction: column;
  z-index: 90;
}
/* The inner box carries the surface so the padded wrapper above stays transparent
   but still hoverable — this is what stops the menu closing while the pointer
   travels from the button down into the list (Ada, 2026-09-22). */
.nav-drop > * { position: relative; }
.nav-drop::after {
  content: "";
  position: absolute;
  top: 10px; left: 0; right: 0; bottom: 0;
  background: var(--panel);
  border: 1px solid var(--line-rust-soft);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  z-index: -1;
}
/* Dropdown affordance marker so users can tell a menu opens vs. a plain link. */
.drop-caret {
  display: inline-block;
  margin-left: 0.34rem;
  font-size: 8px;
  line-height: 1;
  vertical-align: middle;
  opacity: 0.75;
  transition: transform 180ms ease;
}
.nav-group:hover .drop-caret,
.nav-group.open .drop-caret { transform: rotate(180deg); opacity: 1; }
.nav-drop a {
  padding: 0.5rem 1.05rem;
  font-size: 0.82rem;
  color: var(--text-2);
  border-left: 2px solid transparent;
  position: relative;
  z-index: 1;
}
.nav-drop a:first-child { padding-top: 0.65rem; }
.nav-drop a:last-child { padding-bottom: 0.65rem; }
.nav-drop a:hover { color: var(--text); background: rgba(166, 40, 46, 0.12); border-left-color: var(--rust); }
.nav-drop a.active { color: var(--rust-hi); border-left-color: var(--rust); }
/* Shown by hover (desktop convenience) or by the click "pinned" state.
   Click is authoritative on every device — hover no longer gates the menu. */
.nav-group.open .nav-drop { display: flex; }

.search-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 1rem;
  width: 34px; height: 34px;
  cursor: pointer;
  transition: all 160ms ease;
  flex-shrink: 0;
}
.search-toggle:hover { border-color: var(--rust-hi); color: var(--rust-hi); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.1rem;
  width: 38px; height: 34px;
  cursor: pointer;
  margin-left: auto;
}

/* ---- Reading progress + On this page jump ---- */
.read-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.read-bar-track { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.10); }
.read-bar-fill { display: block; height: 1px; width: 0; background: var(--rust); }
.read-jump {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.read-jump .read-caret { transition: transform 180ms ease; font-size: 8px; }
.read-jump[aria-expanded="true"] .read-caret { transform: rotate(180deg); }
.read-jump:hover { color: var(--rust-hi); }
/* Hidden by default; only rendered visible when the toggle opens it.
   Anchored to the far right of the viewport gutter (not the article column) so it
   can never cover the body text it links to (Ada, 2026-09-22). */
.read-menu {
  display: none;
  position: fixed;
  right: 24px;
  top: 96px;
  background: var(--panel);
  border: 1px solid var(--line-rust-soft);
  padding: 0.4rem 0;
  min-width: 240px;
  max-width: 320px;
  max-height: 62vh;
  overflow-y: auto;
  flex-direction: column;
  z-index: 90;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.7);
}
.read-menu[data-open="true"] { display: flex; }
.read-menu a {
  padding: 0.34rem 0.95rem;
  font-size: 0.78rem;
  color: var(--text-2);
  border-left: 2px solid transparent;
}
.read-menu a:hover { color: var(--text); background: rgba(166, 40, 46, 0.10); }
.read-menu a[aria-current="true"] { color: var(--text); border-left-color: var(--rust); }

/* ============================================================
   SEARCH OVERLAY — broadcast terminal
   ============================================================ */
.search-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 7, 9, 0.96);
  padding: 14vh 1.5rem 2rem;
  overflow-y: auto;
}
.search-panel.open { display: block; }
.search-panel label { display: block; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.7rem; }
#searchInput {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-rust-soft);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  padding: 0.4rem 0 0.6rem;
  outline: none;
}
#searchInput::placeholder { color: var(--text-dim); }
.search-result {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--text);
}
.search-result:hover { color: var(--rust-hi); }
.sr-cat {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.15rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 3.4rem var(--pad) 4.5rem; }

.breadcrumb {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.7rem;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--rust-hi); }
.crumb-sep { color: var(--rust); }

/* Article page — NO sidebar (Ada, 2026-09-26).
   The sidebar "On this page" list moved into the article body (`.toc`,
   on-this-page.njk); the header read-bar already carries the second copy.
   PC: the two sticky ad rails flank the article. Both rails are display:none
   below 1340px, so the single-column default is what tablets/phones get. */
.content-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  justify-content: center;
}
.main-content { min-width: 0; width: 100%; max-width: 820px; }
/* Documentation pages (about / privacy / tos / changelog): no rails, centred. */
.content-wrapper--doc { max-width: 820px; margin: 0 auto; }

/* ---------- Article meta line ---------- */
.last-updated {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}
.page-intro { font-size: 1.06rem; color: var(--text-2); margin-bottom: 1.6rem; }

/* ---------- Quick answer ---------- */
.quick-answer {
  background: var(--surface);
  border: 1px solid var(--line-rust);
  border-left-width: 3px;
  border-left-color: var(--rust);
  padding: 1.3rem 1.5rem;
  margin: 0 0 2rem;
  border-radius: 2px;
}
/* The heading strong is a block label; inline emphasis inside the body must stay
   inline or every <strong> breaks onto its own line (reported 2026-09-22). */
.quick-answer strong { display: inline; font-family: inherit; font-size: inherit; letter-spacing: normal; text-transform: none; color: var(--text); margin: 0; }
.quick-answer > strong:first-child {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust-hi);
  margin-bottom: 0.55rem;
}
.quick-answer p:last-child { margin-bottom: 0; }

/* ---------- Callouts: dark archival panels ---------- */
.tip-box, .important-box, .warning-box, .spoiler-box {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--text-dim);
  padding: 1.15rem 1.4rem;
  margin: 1.6rem 0;
  border-radius: 2px;
}
.tip-box strong, .important-box strong, .warning-box strong, .spoiler-box strong {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-2);
}
.tip-box strong { color: var(--text-2); }
.important-box { border-left-color: var(--rust); }
.important-box strong { color: var(--rust-hi); }
.warning-box { border-left-color: var(--rust); background: rgba(101, 32, 35, 0.16); }
.warning-box strong { color: var(--rust-hi); }
.spoiler-box { background: #0c0d0f; border-left-color: var(--cold); }
.spoiler-box strong { color: var(--cold); filter: brightness(1.5); }
.spoiler-box[open] strong { margin-bottom: 0.7rem; }
.spoiler-box summary { cursor: pointer; list-style: none; }
.spoiler-box summary::-webkit-details-marker { display: none; }
.spoiler-box p:last-child { margin-bottom: 0; }

/* ---------- Images as collected evidence ---------- */
.main-content img, .shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  margin: 1.7rem 0 0.5rem;
  background: var(--bg-2);
}
.img-caption {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1.9rem;
}

/* ---------- Tables: promotional edition-chart language ---------- */
.table-scroll { overflow-x: auto; margin: 1.6rem 0 2rem; border: 1px solid var(--line-rust-soft); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 460px; }
thead th {
  background: linear-gradient(180deg, #1b1c1f 0%, #151618 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line-rust-soft);
  white-space: nowrap;
}
tbody td { padding: 0.7rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); vertical-align: top; color: var(--body); }
tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.018); }
tbody tr:last-child td { border-bottom: 0; }
tbody td strong { color: var(--text); }


/* ============================================================
   BUTTONS — rectangular, no rounded modern pills
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.82rem 1.5rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 170ms ease;
}
.btn-primary { background: var(--rust-deep); border: 1px solid #B32C32; color: #fff; }
.btn-primary:hover { background: var(--rust-hi); border-color: var(--rust-hi); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--rust-hi); color: var(--text); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-soft);
}
.section-head h2 { margin: 0; padding: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.section-head h2::after { display: none; }
.section-head .micro { flex-shrink: 1; min-width: 0; text-align: right; }

/* ============================================================
   GUIDE CARDS (4-col)
   ============================================================ */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-rust-soft);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 180ms ease;
}
.guide-card:hover { border-color: var(--rust-hi); }
.guide-card-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.guide-card-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) contrast(1.05) brightness(0.78); transition: transform 200ms ease, filter 200ms ease; }
.guide-card:hover .guide-card-thumb img { transform: scale(1.025); filter: saturate(0.85) contrast(1.12) brightness(0.86); }
.guide-card-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 35%, rgba(8, 9, 10, 0.9) 100%);
}
.guide-card-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.guide-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}
.guide-card-body h3 a { color: var(--text); }
.guide-card-body h3 a:hover { color: var(--rust-hi); }
.guide-card-body p { font-size: 0.84rem; color: var(--text-2); margin: 0 0 0.9rem; line-height: 1.6; }
.guide-card-more {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  transition: transform 180ms ease;
}
.guide-card:hover .guide-card-more { transform: translateX(4px); color: var(--rust-hi); }

/* ============================================================
   ARTICLE ROWS (Latest guides — publication index, not blog grid)
   ============================================================ */
.article-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.article-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.4rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.article-row img {
  width: 150px; height: 90px; object-fit: cover;
  border: 1px solid var(--line-soft);
  filter: saturate(0.7) contrast(1.05) brightness(0.8);
  transition: filter 180ms ease;
}
.article-row:hover img { filter: saturate(0.85) contrast(1.12) brightness(0.88); }
.article-row h3 { font-size: 1.12rem; margin: 0 0 0.35rem; }
.article-row h3 a { color: var(--text); }
.article-row h3 a:hover { color: var(--rust-hi); }
.article-row p { font-size: 0.86rem; color: var(--text-2); margin: 0 0 0.5rem; line-height: 1.6; }

/* ============================================================
   GAME INFO PANEL — case file / dossier
   ============================================================ */
.game-info { background: var(--panel); border: 1px solid var(--line); border-radius: 2px; }
.game-info h3 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line-rust-soft);
}
.game-info-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(0.72) contrast(1.05) brightness(0.8); border-bottom: 1px solid var(--line-soft); }
.game-info-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.68rem 1.15rem; border-bottom: 1px solid var(--line-soft); }
.game-info-row:last-child { border-bottom: 0; }
.game-info-row dt { font-family: var(--font-body); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); padding-top: 4px; flex-shrink: 0; }
.game-info-row dd { font-family: var(--font-serif); font-size: 0.95rem; color: var(--text); text-align: right; margin: 0; }

/* ============================================================
   TRANSMISSION LOG — signature component
   ============================================================ */
.transmission {
  background: var(--bg-2);
  border-top: 1px solid var(--line-rust-soft);
  border-bottom: 1px solid var(--line-rust-soft);
  padding: 3.2rem 0;
  margin: 3.6rem 0;
}
.transmission-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 2.4rem;
  align-items: center;
}
.crt-frame { position: relative; border: 1px solid var(--line); background: #000; overflow: hidden; }
.crt-frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1) contrast(1.4) brightness(0.72); }
.crt-frame::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,0.42) 0px, rgba(0,0,0,0.42) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}
.transmission-quote { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.5vw, 1.85rem); line-height: 1.35; color: var(--text); margin-bottom: 1.3rem; }
.waveform { display: block; width: 100%; max-width: 260px; height: 26px; margin-bottom: 1.2rem; }
.waveform path { stroke: var(--rust); stroke-width: 1.4; fill: none; }
.transmission-log .label { display: block; margin-bottom: 0.6rem; color: var(--rust); }
.transmission-log p { font-size: 0.9rem; color: var(--text-2); margin: 0; }
.channels { display: flex; flex-direction: column; gap: 0.15rem; }
.channel {
  display: flex;
  gap: 0.85rem;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all 170ms ease;
}
.channel:hover { color: var(--text); background: rgba(166, 40, 46, 0.08); }
.channel.active { color: var(--text); border-color: var(--rust); background: rgba(166, 40, 46, 0.10); }

/* ============================================================
   EDITION COMPARISON
   ============================================================ */
.editions { width: 100%; border-collapse: collapse; border: 1px solid var(--line-rust-soft); margin: 1.6rem 0; min-width: 420px; }
.editions th, .editions td { border: 1px solid rgba(166, 40, 46, 0.28); padding: 0.72rem 1rem; text-align: center; }
.editions th:first-child, .editions td:first-child { text-align: left; }
.editions thead th { background: #131416; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.editions td { font-family: var(--font-serif); font-size: 0.95rem; color: var(--body); }
.editions tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.016); }
.editions .yes { color: var(--brass); font-weight: 600; }
.editions .no { color: var(--text-dim); }

/* ============================================================
   RELATED GRID + PAGE NAV + HELPFUL
   ============================================================ */
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.2rem 0 2rem; }
.related-grid .card {
  background: var(--surface);
  border: 1px solid var(--line-rust-soft);
  border-radius: 2px;
  padding: 1.15rem 1.25rem;
  transition: border-color 180ms ease;
}
.related-grid .card:hover { border-color: var(--rust-hi); }
.related-grid .card h3 { font-size: 1.06rem; margin: 0 0 0.45rem; }
.related-grid .card h3 a { color: var(--text); }
.related-grid .card h3 a:hover { color: var(--rust-hi); }
.related-grid .card p { font-size: 0.84rem; color: var(--text-2); margin: 0 0 0.75rem; line-height: 1.6; }
.card-link { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rust); }
.card-link:hover { color: var(--rust-hi); }

.page-nav { display: flex; gap: 1rem; margin: 2.4rem 0 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.page-nav a { flex: 1; border: 1px solid var(--line-soft); border-radius: 2px; padding: 0.9rem 1.1rem; transition: border-color 170ms ease; }
.page-nav a:hover { border-color: var(--rust-hi); }
.page-nav .label { display: block; margin-bottom: 0.3rem; }
.page-nav .pn-title { font-family: var(--font-serif); font-size: 1rem; color: var(--text); }

.helpful { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line-soft); margin-top: 1.6rem; }
.helpful .label { flex-shrink: 0; }
.helpful button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 160ms ease;
}
.helpful button:hover { border-color: var(--rust-hi); color: var(--text); }

/* Next-steps module (mid-article) */
.next-steps { background: var(--bg-2); border: 1px solid var(--line-rust-soft); border-left: 3px solid var(--rust); padding: 1.3rem 1.5rem; margin: 2.2rem 0; border-radius: 2px; }
.next-steps > .label { display: block; margin-bottom: 0.9rem; color: var(--rust); }
.next-steps-item { display: block; padding: 0.6rem 0; border-top: 1px solid var(--line-soft); }
.next-steps-item:first-of-type { border-top: 0; }
.next-steps-item strong { display: block; font-family: var(--font-serif); font-size: 1.02rem; color: var(--text); font-weight: 600; margin-bottom: 0.15rem; }
.next-steps-item span { font-size: 0.83rem; color: var(--text-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { border-top: 1px solid var(--line-rust-soft); margin-top: 4rem; background: var(--bg-2); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--pad) 2rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2.2rem;
}
.footer-brand .brand-stack { margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-dim); margin: 0; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.42rem; }
.footer-col strong {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.35rem;
}
.footer-col a { font-size: 0.85rem; color: var(--text-2); }
.footer-col a:hover { color: var(--rust-hi); }
.footer-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem var(--pad) 2.4rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.75;
}
.footer-copy a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy .micro-tag { display: block; font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(179, 154, 84, 0.6); margin-bottom: 0.6rem; }

/* ============================================================
   AD LAYOUT — Adsterra
   ============================================================ */
.ad-slot {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}
.ad-label {
  display: block;
  margin: 0 0 6px;
  color: var(--text-dim);
  font: 500 9px/1 var(--font-body);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ad-slot img, .ad-slot iframe {
  max-width: 100%;
  margin: 0;
  border: 0;
  filter: none;
}
.ad-sticky { position: sticky; z-index: 10; }
.ad-sticky.hidden { display: none; }
.ad-close {
  position: absolute;
  top: -22px;
  right: -4px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-rust);
  border-radius: 50%;
  background: var(--bg-panel);
  color: var(--text-2);
  font: 600 18px/1 var(--font-body);
  cursor: pointer;
}
.ad-close:hover { border-color: var(--rust-hi); color: var(--text); }
.ad-leader {
  clear: both;
  top: 108px;
  width: max-content;
  max-width: 100%;
  margin: 2rem auto 2.4rem;
  padding: 6px 22px 6px 6px;
  border: 1px solid var(--line-rust-soft);
  border-radius: 2px;
  background: var(--bg-panel);
}
.ad-leader .ad-slot { margin: 0; }
.ad-leader-desktop { width: 728px; max-width: 100%; min-height: 90px; }
.ad-leader-mobile { display: none; width: 468px; max-width: 100%; min-height: 60px; }
.ad-native { max-width: 800px; min-height: 60px; margin: 2rem auto 2.6rem; }
.ad-rail {
  display: none;
  top: 108px;
  align-self: start;
  width: 160px;
  padding: 6px;
  border: 1px solid var(--line-rust-soft);
  border-radius: 2px;
  background: var(--bg-panel);
}
.ad-rail .ad-slot { width: 160px; margin: 0; }
/* Reserve the creative's footprint so the slot does not collapse to an empty
   label strip when nothing is served (and no layout shift when it is). */
.ad-rail-unit { min-height: 600px; }
.ad-rail-small .ad-rail-unit { min-height: 300px; }
/* Right rail — editorial pages only, same 160px track (Ada 2026-09-26: with the
   sidebar gone, PC carries two sticky rails instead of one + a mid-article
   sticky leaderboard). */
.ad-rail-small { display: none; }
.ad-home-unit { width: 160px; min-height: 300px; }
/* Mobile-only leaderboard (468×60). Editorial pages no longer render the
   desktop 728 unit at all, so mobile is the only place a leader runs there. */
.ad-mobile-only { display: none; }
@media (max-width: 1145px) { .ad-mobile-only { display: block; } }
.ad-section {
  max-width: var(--max);
  margin: 2.5rem auto;
  padding: 0 var(--pad);
}

/* ============================================================
   IN-ARTICLE "ON THIS PAGE" TOC (Ada 2026-09-26)
   Replaces the article sidebar. Sits at the top of the article body.
   Desktop: always open. ≤900px: accordion — collapsed by default, click to
   expand (the header read-bar already carries the second copy on mobile).
   ============================================================ */
.toc {
  background: var(--bg-panel);
  border: 1px solid var(--line-rust-soft);
  border-left: 3px solid var(--rust);
  border-radius: 2px;
  padding: 1.1rem 1.4rem 1.2rem;
  margin: 0 0 2.2rem;
}
.toc-head,
.toc-toggle {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.75rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; counter-increment: toc; }
.toc li a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-2);
  border-left: 1px solid var(--line-soft);
}
.toc li a::before {
  content: counter(toc) '. ';
  font-size: 0.85em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.toc li a:hover { color: var(--text); border-left-color: var(--rust); }
.toc-toggle { display: none; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }

@media (max-width: 900px) {
  .toc { padding: 0; }
  .toc > .toc-head { display: none; }
  .toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: 1rem 1.4rem;
  }
  .toc-toggle::after { content: '\2304'; font-size: 1rem; color: var(--rust-hi); }
  .toc.open .toc-toggle::after { content: '\2303'; }
  .toc-body { display: none; padding: 0 1.4rem 1.1rem; }
  .toc.open .toc-body { display: block; }
}

@media (min-width: 1340px) {
  .content-wrapper:has(.ad-rail),
  .content-wrapper:has(.ad-rail-small) { max-width: 1400px; margin: 0 auto; gap: 2rem; }
  /* Both rails open — 160 | article | 160 */
  .content-wrapper:has(.ad-rail):has(.ad-rail-small) {
    grid-template-columns: 160px minmax(0, 1fr) 160px;
  }
  .content-wrapper:has(.ad-rail):not(:has(.ad-rail-small)),
  .content-wrapper:has(.ad-rail):has(.ad-rail-small.hidden) {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .content-wrapper:has(.ad-rail.hidden):has(.ad-rail-small),
  .content-wrapper:not(:has(.ad-rail)):has(.ad-rail-small) {
    grid-template-columns: minmax(0, 1fr) 160px;
  }
  /* Both rails closed by the reader — collapse back to one column, or the
     article lands in a 160px track. */
  .content-wrapper:has(.ad-rail.hidden):has(.ad-rail-small.hidden) {
    grid-template-columns: minmax(0, 1fr);
  }
  .ad-rail { display: block; }
}
@media (max-width: 1154px) {
  .ad-leader-desktop { display: none; }
  .ad-leader-mobile { display: block; }
}
@media (max-width: 900px) {
  .ad-leader { top: 108px; margin: 1.5rem auto 2rem; padding: 6px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  :root { --pad: 32px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transmission-inner { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .channels { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .channel { flex: 1 1 45%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .content-wrapper { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line-rust-soft);
    padding: 0.8rem var(--pad) 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 78vh;
    overflow-y: auto;
  }
  .header-nav.open { display: flex; }
  .header-nav > a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-group { width: 100%; }
  .nav-group-btn { width: 100%; text-align: left; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav-drop { position: static; display: none; min-width: 0; padding: 0 0 0.5rem 0.9rem; }
  .nav-drop::after { display: none; }
  .nav-drop a { border-left: 0; padding: 0.5rem 0; }
  .nav-drop a:first-child, .nav-drop a:last-child { padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .nav-group.open .nav-drop { display: flex; }
  .menu-toggle { display: block; }
  .search-toggle { margin-left: 0.5rem; }
  .header-inner { position: relative; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  /* Section heads stack on small screens: a long micro label in a flex row with
     flex-shrink:0 forced a horizontal scrollbar (Ada, 2026-09-22). */
  .section-head { flex-wrap: wrap; align-items: flex-start; gap: .45rem; }
  .section-head .micro { flex-shrink: 1; min-width: 0; text-align: left; width: 100%; }
  .label, .micro, .micro-tag { overflow-wrap: anywhere; }
  .hero-meta .hm-item { min-width: 0; overflow-wrap: anywhere; }
  h1 { font-size: clamp(1.75rem, 7vw, 2.3rem); }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .article-row { grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; }
  .article-row img { width: 96px; height: 60px; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
  .transmission-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .header-nav { padding-left: var(--pad); padding-right: var(--pad); }
  .read-menu { right: 12px !important; left: 12px !important; max-width: none; }
  .table-scroll { margin-left: -20px; margin-right: -20px; }
}

/* ============================================================
   TOWNFALL VISUAL REVISION — Analog print / damaged broadcast
   Per "UI Spec Update" (2026-09-22). Visual only: no IA or copy change here.
   P0 = global texture, hero composition, image treatment, panel borders,
        stronger red framing, section framing, typographic registration error.
   ============================================================ */

/* ---------- §2 Global multi-layer texture ----------
   Static (non-animated) overlays so readability survives. Kept at 3–6%.
   Page-edge distress is a separate fixed layer at 5–14%. */
.global-grain,
.global-edges {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.global-grain {
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.global-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, .35) 3px,
    rgba(0, 0, 0, 0) 4px
  );
}
/* Irregular distressed viewport edge: dirty rust / burnt black, not a gradient. */
.global-edges {
  box-shadow:
    inset 0 0 90px 26px rgba(84, 27, 30, .30),
    inset 0 0 190px 70px rgba(9, 10, 11, .85),
    inset 0 0 40px 8px rgba(0, 0, 0, .6);
}
.global-edges::before,
.global-edges::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
  opacity: .12;
}
.global-edges::before {
  top: 0; left: 0; right: 0; height: 62px;
  background-image:
    linear-gradient(90deg, rgba(84,27,30,.9) 0 8%, rgba(0,0,0,0) 8% 19%, rgba(84,27,30,.7) 19% 23%, rgba(0,0,0,0) 23% 61%, rgba(84,27,30,.55) 61% 66%, rgba(0,0,0,0) 66%);
}
.global-edges::after {
  bottom: 0; left: 0; right: 0; height: 74px;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0) 0 4%, rgba(84,27,30,.75) 4% 11%, rgba(0,0,0,0) 11% 38%, rgba(84,27,30,.5) 38% 44%, rgba(0,0,0,0) 44% 78%, rgba(84,27,30,.65) 78% 84%, rgba(0,0,0,0) 84%);
}
@media (max-width: 900px) {
  .global-edges { box-shadow: inset 0 0 60px 14px rgba(84,27,30,.22), inset 0 0 90px 30px rgba(9,10,11,.8); }
  .global-edges::before, .global-edges::after { opacity: .07; }
}

/* Keep real content above the texture layer.
   NOTE: .site-header must stay sticky — only raise its stacking order, never
   set `position` here or the sticky header breaks (regression 2026-09-22). */
main, .site-footer, .search-panel { position: relative; z-index: 2; }
.site-header { z-index: 60; }

/* ---------- §16 Signal / registration primitives ---------- */
.reg-mark {
  display: inline-block;
  width: 7px; height: 7px;
  border: 1px solid var(--rust);
  position: relative;
  flex-shrink: 0;
}
.reg-mark::before, .reg-mark::after {
  content: "";
  position: absolute;
  background: var(--rust);
}
.reg-mark::before { left: 50%; top: -3px; width: 1px; height: 13px; transform: translateX(-50%); }
.reg-mark::after { top: 50%; left: -3px; height: 1px; width: 13px; transform: translateY(-50%); }

/* Damaged divider: long gray line + short red section + micro marker. */
.tf-divider {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 2.4rem 0 1.9rem;
}
.tf-divider .d-red { width: 8%; min-width: 34px; height: 1px; background: var(--rust); flex-shrink: 0; }
.tf-divider .d-gray { flex: 1; height: 1px; background: rgba(255, 255, 255, .10); }
.tf-divider .d-break { width: 14px; height: 1px; background: rgba(255, 255, 255, .10); flex-shrink: 0; }
.tf-divider .d-tick { width: 3px; height: 3px; background: var(--rust); flex-shrink: 0; }

/* Waveform separator (SVG-free, pure CSS). */
.signal-line {
  height: 9px;
  margin: 1.8rem 0;
  background-image:
    linear-gradient(90deg, transparent 0 2%, rgba(133,38,42,.85) 2% 2.4%, transparent 2.4% 6%,
      rgba(133,38,42,.6) 6% 6.5%, transparent 6.5% 12%, rgba(133,38,42,.9) 12% 12.6%,
      transparent 12.6% 100%);
  background-size: 220px 100%;
  background-repeat: repeat-x;
  opacity: .55;
}

/* ---------- §3/§12 Section plates + dirty-red framing ---------- */
.plate {
  position: relative;
  background: rgba(10, 10, 11, .85);
  border: 1px solid var(--line-rust-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
  padding: 1.9rem 1.7rem;
  margin: 0 0 2.1rem;
}
/* Corner brackets + registration marks, as on the edition graphics. */
.plate::before, .plate::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--line-rust);
  pointer-events: none;
}
.plate::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.plate::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Section heading graphic treatment (§19): red tick + title + rule + meta. */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 2.6rem 0 1.1rem;
  border-bottom: 0;
}
.sec-head .h-tick { width: 9px; height: 9px; background: var(--rust); flex-shrink: 0; align-self: center; }
.sec-head .h-title {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-2);
  flex-shrink: 0;
}
.sec-head .h-rule { flex: 1; height: 1px; background: rgba(255,255,255,.10); align-self: center; }
.sec-head .h-meta {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* Micro broadcast metadata scattered as decoration (§6). */
.micro-tag {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- §6 Large-heading registration error (analog, ~1px) ---------- */
.reg-text,
.hero-title,
.main-content h1 {
  text-shadow:
    -1px 0 rgba(20, 180, 190, .40),
     1px 0 rgba(180, 25, 30, .45);
}
/* Never apply to long-form body copy — readability. */
.main-content p, .main-content li, td { text-shadow: none; }

/* ---------- §9/§14 Site-wide image treatment ----------
   No bright untouched screenshot may appear on a black field. */
.tf-img {
  position: relative;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-rust-soft);
}
.tf-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.65) contrast(1.12) brightness(.72);
  transition: transform 220ms ease, filter 220ms ease;
}
.tf-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9,10,11,.30) 0%, rgba(9,10,11,.06) 40%, rgba(9,10,11,.72) 100%),
    repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 3px, rgba(0,0,0,0) 4px),
    radial-gradient(120% 110% at 50% 40%, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%);
  mix-blend-mode: multiply;
}
.tf-img:hover img { transform: scale(1.015); filter: saturate(.70) contrast(1.17) brightness(.74); }

/* CRT panel treatment (§15) — selective, no screen curvature. */
.crt-panel {
  position: relative;
  border: 1px solid var(--line-rust-soft);
  background: #000;
  overflow: hidden;
  box-shadow: inset 0 0 60px 10px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.03);
}
.crt-panel img { display: block; width: 100%; filter: saturate(.55) contrast(1.15) brightness(.70); }
.crt-panel::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 1px, rgba(0,0,0,.30) 2px, rgba(0,0,0,0) 3px);
  opacity: .55;
}
.crt-panel::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    radial-gradient(130% 120% at 50% 50%, rgba(0,0,0,0) 42%, rgba(0,0,0,.78) 100%),
    linear-gradient(90deg, rgba(20,180,190,.05) 0 49.7%, rgba(180,25,30,.05) 50.3% 100%);
}

/* ---------- §22 Occasional dark red surface (<=5% of page) ---------- */
.plate--red { background: var(--rust-deep); border-color: var(--line-rust); }

/* ---------- §11/§13 Guide cards as promotional panels ---------- */
.card-grid { display: grid; gap: 1.5rem; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(10,10,11,.88);
  border: 1px solid var(--line-rust);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  border-radius: 0;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: var(--line-rust-hot); }
.card .tf-img { border: 0; border-bottom: 1px solid var(--line-rust-soft); aspect-ratio: 16 / 10; }
.card-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { font-family: var(--font-serif); font-size: 1.32rem; line-height: 1.18; margin: 0; }
.card h3 a { color: var(--text); }
.card p { font-size: .88rem; color: var(--text-2); margin: 0; flex: 1; }
.card-link {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust-hi);
  align-self: flex-start;
  margin-top: .35rem;
}

/* Card variants (§13) — controlled composition variation, not random styling. */
.card--img-dominant .tf-img { aspect-ratio: 4 / 5; }
.card--text-dominant { background: var(--bg-panel-deep); }
.card--text-dominant .tf-img { aspect-ratio: 16 / 6; }
.card--dark .tf-img img { filter: saturate(.35) contrast(1.22) brightness(.55); }
.card--crt .tf-img img { filter: grayscale(1) contrast(1.35) brightness(.62); }
.card--red { background: var(--rust-deep); }
.card--red .card p { color: #c9b3b3; }

/* ---------- §10 Controlled asymmetry ---------- */
.off-l { transform: translateX(-8px); }
.off-r { transform: translateX(8px); }
.off-up { transform: translateY(-12px); }
@media (max-width: 900px) {
  /* Mobile: simplify asymmetry, keep identity (§29). */
  .off-l, .off-r, .off-up { transform: none; }
}

/* ============================================================
   HERO v2 — promotional spread (§8/§9)
   One dominant framed composition across nearly the full content width.
   Image bleeds behind the type; the boundary between image and page is ambiguous.
   Replaces the old clean two-column hero.
   ============================================================ */
.hero { position: relative; border-bottom: 0; overflow: visible; padding: 1.9rem 0 0; }

.hero-frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero-plate {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--line-rust);
  background: var(--bg-panel-deep);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), inset 0 0 120px 20px rgba(0,0,0,.85);
}
/* Hero image TILES the full plate (Ada, 2026-09-22): the photo spans the entire hero
   area edge to edge — no crop offset to one side, no scale-up, no side column.
   The <img> is absolutely positioned itself so `object-fit: cover` has a definite
   box in every layout; relying on `height:100%` inside the absolutely-positioned
   wrapper stretched the photo on narrow screens (caught by ops/responsive-check.py). */
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.66) contrast(1.12) brightness(.70);
}
.hero-art::after {
  content: "";
  position: absolute; inset: 0;
  /* lighter scrim than before so the tiled photo reads across the whole plate,
     while keeping the left-side copy legible */
  background:
    linear-gradient(100deg, rgba(8,9,10,.94) 0%, rgba(8,9,10,.80) 30%, rgba(8,9,10,.42) 58%, rgba(8,9,10,.30) 80%, rgba(8,9,10,.55) 100%),
    linear-gradient(180deg, rgba(8,9,10,.42) 0%, rgba(8,9,10,0) 34%, rgba(8,9,10,.74) 100%);
}
/* scanlines + faint red contamination over the hero image */
.hero-art::before {
  content: "";
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.20) 3px, rgba(0,0,0,0) 4px),
    linear-gradient(90deg, rgba(155,41,46,.10) 0 42%, rgba(20,180,190,.035) 42% 100%);
  opacity: .8;
}

/* asymmetric copy block: left-weighted, with controlled offset (§10) */
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 660px;
  padding: 3.4rem 2.2rem 2.1rem 3.1rem;
  align-self: center;
}
.hero-kicker {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--rust-hi); margin: 0 0 1.05rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.9rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.012em;
  color: var(--text);
  margin: 0 0 .85rem;
  font-weight: 600;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 1.15rem;
}
.hero-lede {
  font-size: 1.02rem; line-height: 1.65;
  color: var(--body); margin: 0 0 1.7rem; max-width: 46ch;
}
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; }

/* metadata strip along the bottom of the plate — broadcast log language */
.hero-meta {
  position: relative; z-index: 3;
  display: flex; flex-wrap: wrap; gap: .55rem 1.5rem;
  padding: .85rem 3.1rem;
  border-top: 1px solid var(--line-rust-soft);
  background: linear-gradient(90deg, rgba(53,23,25,.55) 0%, rgba(8,9,10,.75) 60%, rgba(8,9,10,.85) 100%);
}
.hero-meta .hm-item {
  font-family: var(--font-body);
  font-size: 9px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-2);
}
.hero-meta .hm-dim { color: var(--text-dim); margin-left: auto; }

@media (max-width: 1080px) {
  .hero-plate { min-height: 540px; }
  .hero-copy { padding: 2.8rem 1.8rem 1.8rem 2.2rem; }
}
@media (max-width: 900px) {
  .hero { padding-top: 1.2rem; }
  /* `min-height: 0` let the plate collapse to its content height while the tiled
     image kept `height:100%`, stretching the photo to a 2.4:1 portrait sliver
     (caught by ops/responsive-check.py). Keep a real height on the plate. */
  .hero-plate { min-height: 460px; }
  .hero-copy { max-width: none; padding: 2.4rem 1.5rem 1.7rem; }
  .hero-art::after {
    background:
      linear-gradient(180deg, rgba(8,9,10,.88) 0%, rgba(8,9,10,.80) 42%, rgba(8,9,10,.94) 100%),
      radial-gradient(120% 90% at 50% 30%, rgba(0,0,0,.2) 0%, rgba(0,0,0,.8) 100%);
  }
  .hero-meta { padding: .75rem 1.5rem; }
  .hero-meta .hm-dim { margin-left: 0; }
  .hero-title { font-size: clamp(2.3rem, 9vw, 3.1rem); }
}
@media (max-width: 480px) {
  .hero-plate { min-height: 400px; }
}

/* ============================================================
   HOMEPAGE PROPORTION FIX (reported 2026-09-22)
   Game Info cover and the "Same town" CRT still were rendering at their native
   1920x1080, making both boxes far too tall and throwing the page rhythm off.
   Constrain both to a fixed, cropped aspect ratio.
   ============================================================ */
.game-info-cover {
  aspect-ratio: 16 / 9;
  max-height: 168px;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(.62) contrast(1.14) brightness(.70);
}
/* the CRT still in the Transmission panel — was the worst offender vertically */
.transmission .crt-frame { max-height: 300px; }
.transmission .crt-frame img {
  max-height: 300px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 40%;
}
@media (max-width: 1080px) {
  .transmission .crt-frame, .transmission .crt-frame img { max-height: 260px; }
}
@media (max-width: 900px) {
  .game-info-cover { max-height: 190px; }
  .transmission .crt-frame, .transmission .crt-frame img { max-height: 210px; }
}

/* ---------- FAQ accordion (homepage) ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-rust-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); border-left: 2px solid transparent; transition: border-left-color 160ms ease; }
.faq-item[open] { border-left-color: var(--rust); background: rgba(53,23,25,.22); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 2.2rem 1.05rem 1.15rem;
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--rust-hi);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { color: var(--rust-hi); }
.faq-a { padding: 0 1.6rem 1.25rem 1.15rem; color: var(--body); font-size: .95rem; line-height: 1.72; }
.faq-a p { margin: 0 0 .85rem; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a code { font-size: .86em; }

/* ---------- "On this page" dropdown placement ----------
   Wide screens: pinned to the far-right gutter (the article column ends around
   x=1169 at 1280px, so anything aligned to the toggle covers body copy).
   Mobile: a full-width sheet BELOW the header — `top: auto` used to drop it on
   top of the header, hiding the nav entirely (Ada, 2026-09-22). */
@media (min-width: 1400px) {
  .read-menu { min-width: 260px; max-width: 300px; }
}
@media (max-width: 1399px) {
  .read-menu {
    right: 12px;
    max-width: 320px;
    border-color: var(--line-rust);
    box-shadow: 0 14px 40px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.6);
  }
}
@media (max-width: 900px) {
  /* Full-bleed sheet anchored just under the (sticky) header. */
  .read-menu {
    left: 0;
    right: 0;
    max-width: none;
    max-height: 56vh;
    border-left: 0;
    border-right: 0;
    top: var(--header-h, 78px);
  }
}

/* Transmission CRT still: constrain by WIDTH not height, so the 16:9 frame holds
   its proportions in the constrained column instead of squashing to a 1:1 box. */
.transmission .crt-frame {
  max-height: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.transmission .crt-frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 40%;
}

/* ---------- How-to-use steps (homepage) ---------- */
.hiw-steps { list-style: none; counter-reset: hiw; padding: 0; margin: 1.1rem 0 1.7rem; display: flex; flex-direction: column; gap: .85rem; }
.hiw-steps li {
  counter-increment: hiw;
  position: relative;
  padding: .85rem 1.05rem .85rem 3.1rem;
  background: rgba(10,10,11,.72);
  border: 1px solid var(--line-rust-soft);
  border-left-width: 2px;
  border-left-color: var(--rust);
  font-size: .95rem;
  line-height: 1.68;
  color: var(--body);
}
.hiw-steps li::before {
  content: counter(hiw, decimal-leading-zero);
  position: absolute;
  left: 1.05rem; top: .9rem;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--rust-hi);
}
.hiw-steps li strong { color: var(--text); }

/* ============================================================
   ARTICLE LINK COLOUR (Ada, 2026-09-22)
   In-body links must be visibly red at rest, not only on hover — users were
   missing them entirely. Applies site-wide to article prose only; nav, footer,
   cards and buttons keep their own treatments.
   ============================================================ */
.main-content a:not(.btn):not(.card-link):not(.anchor-link),
.faq-a a,
.quick-answer a,
.hiw-steps a,
.ci-lede a {
  color: var(--rust-hi);
  text-decoration: underline;
  text-decoration-color: rgba(189, 48, 53, .45);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}
.main-content a:not(.btn):not(.card-link):not(.anchor-link):hover,
.faq-a a:hover,
.quick-answer a:hover,
.hiw-steps a:hover,
.ci-lede a:hover {
  color: #e2494f;
  text-decoration-color: currentColor;
}
/* Keep paragraph/table links readable against the red accent panels. */
.tip-box a, .important-box a, .warning-box a, .plate--red a { color: #ff8a8e; }

/* ============================================================
   HOMEPAGE CHAPTER INDEX (replaces the old "Same town" quote block)
   ============================================================ */
.chapter-index { margin: 2.4rem 0 1.8rem; }
.ci-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.2rem;
  align-items: center;
  border-top: 1px solid var(--line-rust-soft);
  padding-top: 2.2rem;
}
.ci-crt { aspect-ratio: 16 / 10; }
.ci-crt img { width: 100%; height: 100%; object-fit: cover; }
.ci-strap {
  margin: .9rem 0 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--body);
}
.ci-list h2 { margin: 0 0 .5rem; }
.ci-lede { color: var(--text-2); font-size: .95rem; margin: 0 0 1.25rem; max-width: 56ch; }
.ci-chapters { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-direction: column; }
.ci-chapters li { border-bottom: 1px solid var(--line-soft); }
.ci-chapters li:first-child { border-top: 1px solid var(--line-soft); }
.ci-chapters a {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: baseline;
  gap: .9rem;
  padding: .72rem .3rem;
  border-left: 2px solid transparent;
  transition: background 160ms ease, border-left-color 160ms ease;
}
.ci-chapters a:hover { background: rgba(155,41,46,.13); border-left-color: var(--rust); }
.ci-num {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--rust-hi);
}
.ci-name { font-family: var(--font-serif); font-size: 1.08rem; color: var(--text); }
.ci-meta {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ci-hub {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust-hi);
}
@media (max-width: 900px) {
  .ci-inner { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
}

/* ============================================================
   END-OF-PAGE CTA (homepage) — a proper closing block instead of two
   loose buttons dropped under the FAQ.
   ============================================================ */
.end-cta {
  margin: 2.6rem 0 0;
  border: 1px solid var(--line-rust);
  background: linear-gradient(100deg, rgba(53,23,25,.55) 0%, rgba(10,10,11,.9) 62%);
  padding: 1.9rem 1.7rem;
  position: relative;
}
.end-cta::before, .end-cta::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 1px solid var(--line-rust); pointer-events: none;
}
.end-cta::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.end-cta::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.end-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.8rem;
  align-items: center;
}
.end-cta-copy h2 { margin: .35rem 0 .55rem; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.end-cta-copy p { color: var(--text-2); font-size: .95rem; margin: 0; max-width: 62ch; }
.end-cta-actions { display: flex; flex-direction: column; gap: .65rem; }
@media (max-width: 900px) {
  .end-cta-inner { grid-template-columns: minmax(0, 1fr); }
  .end-cta-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================================
   DRESSMAKER ATELIER LAYER
   ------------------------------------------------------------
   Everything below turns the ported guide layout into the physical
   world of the game: a walnut sewing desk, cream paper sheets, pinned
   pattern cards, red thread, stitched rules, brass labels and fabric
   swatches. It re-skins the palette usage only — layout mechanics
   (grid, ad rails, TOC, read-bar) stay intact.
   ============================================================ */

/* ---------- 1. Walnut sewing desk header ---------- */
.site-header {
  background:
    repeating-linear-gradient(92deg, rgba(255, 236, 205, 0.035) 0px, rgba(255, 236, 205, 0.035) 1px, transparent 1px, transparent 7px),
    repeating-linear-gradient(88deg, rgba(0, 0, 0, 0.10) 0px, rgba(0, 0, 0, 0.10) 2px, transparent 2px, transparent 13px),
    linear-gradient(180deg, #4A352A 0%, #3E2C23 100%);
  border-bottom: 1px solid var(--brass);
  box-shadow: 0 2px 0 rgba(180, 134, 63, 0.35), 0 8px 18px rgba(24, 18, 14, 0.30);
}
.header-inner { border-bottom: 1px solid rgba(135, 145, 122, 0.28); }

.brand-mark { color: var(--brass-light); }
.brand-top {
  font-family: var(--font-display);
  color: var(--paper-highlight);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--font-ui);
  color: var(--brass-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 10px;
}
.brand-tag {
  font-family: var(--font-ui);
  font-weight: 700;
  background: var(--sage);
  color: var(--paper-highlight);
  border: 1px solid var(--sage-dark);
  border-radius: 2px;
}
.header-nav > a, .nav-group-btn {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--paper-light);
}
.header-nav > a:hover, .nav-group-btn:hover,
.header-nav > a.active, .nav-group-btn.active { color: var(--brass-light); border-bottom-color: var(--brass); }

.nav-drop {
  background: var(--paper-light);
  border: 1px solid var(--wood-medium);
  border-radius: 2px;
  box-shadow: var(--shadow-paper-lift);
}
.nav-drop a { font-family: var(--font-ui); color: var(--text); }
.nav-drop a:hover { color: var(--rust-ink); background: rgba(217, 131, 103, 0.16); border-left-color: var(--rust); }
.nav-drop a.active { color: var(--rust-ink); border-left-color: var(--rust); }

.search-toggle, .menu-toggle {
  background: rgba(231, 221, 195, 0.10);
  border: 1px solid rgba(203, 166, 91, 0.55);
  border-radius: 2px;
  color: var(--paper-light);
}
.search-toggle:hover, .menu-toggle:hover { border-color: var(--brass-light); color: var(--brass-light); }

.read-bar { background: rgba(24, 18, 14, 0.42); border-bottom: 1px solid rgba(180, 134, 63, 0.35); }
.read-bar-track { background: rgba(203, 166, 91, 0.25); }
.read-bar-fill { background: var(--coral); }
.read-jump { font-family: var(--font-ui); color: var(--paper-light); }
.read-jump:hover { color: var(--brass-light); }
.read-menu {
  background: var(--paper-light);
  border: 1px solid var(--wood-medium);
  border-radius: 2px;
  box-shadow: var(--shadow-paper-lift);
}
.read-menu a { font-family: var(--font-ui); color: var(--text); }
.read-menu a:hover { color: var(--rust-ink); background: rgba(217, 131, 103, 0.14); }
.read-menu a[aria-current="true"] { color: var(--rust-ink); border-left-color: var(--rust); }

.search-panel { background: var(--sage-dark); border-bottom: 1px solid var(--brass); }
.search-panel label { font-family: var(--font-ui); color: var(--brass-light); }
.search-result {
  background: var(--paper-light);
  border: 1px solid var(--wood-medium);
  border-radius: 2px;
  color: var(--text);
}
.search-result:hover { color: var(--rust-ink); border-color: var(--rust); }
.sr-cat { font-family: var(--font-ui); color: var(--sage-dark); }

/* ---------- 2. Article page: paper sheet, red thread ribbon ---------- */
.content-wrapper { position: relative; }

.main-content {
  background: var(--paper);
  border: 1px solid #8F7E6A;
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
  padding: 2.6rem 2.8rem 3rem;
  position: relative;
}
/* red thread down the left edge of the sheet — the pattern-book ribbon */
.main-content::before {
  content: "";
  position: absolute;
  top: 1.6rem;
  bottom: 1.6rem;
  left: 1.05rem;
  width: 2px;
  background: linear-gradient(180deg, var(--rust) 0%, var(--rust) 62%, rgba(159, 71, 61, 0) 100%);
  border-radius: 1px;
  pointer-events: none;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); letter-spacing: -0.005em; }
h1 { font-weight: 700; line-height: 1.12; }
h2, h3 { font-weight: 600; }
/* stitched rule under H2 — the pattern-sheet divider, used sparingly */
.main-content h2 {
  position: relative;
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
}
.main-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 0;
  border-top: 1px dashed var(--stitch);
}

.label, .micro {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--text-2);
}
.label--brass { color: var(--brass-muted); }
.label--rust { color: var(--rust-ink); }

a { color: var(--rust-ink); }
a:hover { color: var(--rust-hi); }

/* ---------- 4. Buttons: the game's coral dialogue choice ---------- */
.btn, .hero-btn, .card-link, button.btn-primary { font-family: var(--font-ui); font-weight: 700; }
.btn-primary, .hero-btn {
  background: var(--coral);
  color: #32251E;
  border: 2px solid #3A2A22;
  border-radius: 3px;
  box-shadow: 0 2px 0 #8F5B45;
  padding: 0.6rem 1.15rem;
  display: inline-block;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn-primary:hover, .hero-btn:hover {
  background: var(--coral-light);
  color: #32251E;
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #8F5B45;
}
.btn-primary:active, .hero-btn:active { transform: translateY(1px); box-shadow: 0 1px 0 #8F5B45; }
.btn-ghost, .btn--secondary {
  background: #EDE2CB;
  border: 1.5px solid #594438;
  color: #423329;
  border-radius: 3px;
  padding: 0.55rem 1.05rem;
  display: inline-block;
  text-decoration: none;
  transition: transform 160ms ease;
}
.btn-ghost:hover, .btn--secondary:hover { background: var(--paper-highlight); color: #423329; transform: translateY(-1px); }

/* ---------- 5. Cards: pinned pattern envelopes & clipped notes ---------- */
.card, .guide-card, .article-row, .faq-item, .entry-card {
  background: var(--paper-light);
  border: 1px solid #95836D;
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover, .guide-card:hover, .entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-paper-lift);
}
/* sewing-pattern variant: dashed coral outline, like the pattern editor */
.card--pattern, .guide-card--pattern { border: 1px dashed var(--stitch); }
/* important card: double rule — solid brown outside, dotted coral inside */
.card--important {
  border: 1px solid var(--wood-medium);
  box-shadow: inset 0 0 0 3px var(--paper-light), inset 0 0 0 4px rgba(168, 90, 76, 0.55), var(--shadow-paper);
}
.guide-card-body, .card h3 a { color: var(--text); }
.guide-card-more, .card-link {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--rust-ink);
}
.guide-card-more:hover, .card-link:hover { color: var(--rust-hi); }
/* catalogue metadata: GUIDE No. 03 / PATTERN No. 12 */
.card-no, .guide-card-no {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-muted);
}

/* ---------- 6. Category labels: small sewn fabric tags ---------- */
.tag, .chip, .micro-tag {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #71806A;
  color: #F4ECD9;
  border: 1px solid #4D5B4B;
  border-radius: 2px;
  padding: 4px 9px;
  display: inline-block;
}
.tag--rose { background: #A9705F; border-color: #7E4E41; }
.tag--mustard { background: #A08748; border-color: #75602F; }
.tag--brown { background: #6B5344; border-color: #4A382D; }
.tag--sage { background: #71806A; border-color: #4D5B4B; }
.tag--brass { background: #B4863F; border-color: #86622A; color: #2B2116; }

/* ---------- 7. Tables: dressmaking measurement charts ---------- */
table { width: 100%; border-collapse: collapse; background: var(--paper-light); }
thead th {
  background: #5F7161;
  color: #F4ECD9;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #465949;
}
tbody td {
  padding: 0.58rem 0.75rem;
  border-bottom: 1px solid rgba(53, 39, 32, 0.20);
  font-size: 0.95rem;
  vertical-align: top;
}
tbody tr:nth-child(odd) { background: var(--paper); }
tbody tr:nth-child(even) { background: var(--paper-highlight); }
tbody tr:hover { background: rgba(217, 131, 103, 0.10); }
.table-scroll { overflow-x: auto; border: 1px solid #8F7E6A; border-radius: 2px; background: var(--paper-light); }

/* ---------- 8. Callouts: taped notes / stitched pattern paper ---------- */
.tip-box, .info-box, .quick-answer, .warning-box, .note-box {
  background: var(--paper-highlight);
  border: 1px solid #8F7E6A;
  border-left: 4px solid var(--sage);
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
}
.warning-box { border-left-color: var(--stitch); border-style: dashed; border-left-style: solid; }
.quick-answer { border: 1px dashed var(--stitch); border-left: 4px solid var(--brass); }
.tip-box strong, .info-box strong, .quick-answer strong, .warning-box strong {
  font-family: var(--font-ui);
  color: var(--rust-ink);
  letter-spacing: 0.02em;
}

/* ---------- 9. Images: photographs clipped into the journal ---------- */
.main-content picture img, .main-content figure img, .main-content img {
  border-radius: 2px;
  background: #E8DEC6;
  border: 1px solid #8D7E6D;
  padding: 7px;
  box-shadow: var(--shadow-paper);
  display: block;
  max-width: 100%;
  height: auto;
}
.img-caption, figcaption {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-2);
  margin-top: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(159, 71, 61, 0.35);
  display: inline-block;
}

/* ---------- 10. Separators: stitched, never a grey rule ---------- */
hr { border: 0; border-top: 1px dashed rgba(53, 39, 32, 0.30); margin: 2rem 0; }
.section-divider, .divider, .game-divider {
  border: 0;
  height: 0;
  border-top: 1px dashed rgba(53, 39, 32, 0.30);
  margin: 2.2rem 0;
  color: var(--brass-muted);
}

/* ---------- 11. TOC: pinned pattern paper ---------- */
.toc {
  background: var(--paper-highlight);
  border: 1px dashed var(--stitch);
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
}
.toc-head, .toc-toggle {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--rust-ink);
}
.toc-body a { color: var(--text-2); }
.toc-body a:hover { color: var(--rust-ink); }
.toc-toggle { background: transparent; border: 0; cursor: pointer; }

/* ---------- 12. In-site link layer ---------- */
.next-steps, .helpful, .page-nav {
  background: var(--paper-light);
  border: 1px solid #95836D;
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
}
.next-steps .label, .helpful .label, .page-nav .label {
  font-family: var(--font-ui);
  color: var(--brass-muted);
  letter-spacing: 0.12em;
}
.next-steps-item strong, .pn-title { color: var(--text); font-family: var(--font-display); }
.next-steps-item span { color: var(--text-2); }
.helpful button {
  font-family: var(--font-ui);
  font-weight: 700;
  background: #EDE2CB;
  border: 1.5px solid #594438;
  border-radius: 3px;
  color: #423329;
  cursor: pointer;
}
.helpful button:hover { background: var(--coral); border-color: #3A2A22; }
.helpful button.picked { background: var(--sage); color: #F4ECD9; border-color: var(--sage-dark); }

.related-grid .card { background: var(--paper-highlight); }
.related-grid .card h3 a { color: var(--text); }

/* ---------- 13. Ads: paper slots, labelled, no glow ---------- */
.ad-label { font-family: var(--font-ui); letter-spacing: 0.18em; color: var(--text-dim); }
.ad-close { background: transparent; border: 0; color: var(--text-dim); cursor: pointer; }

/* ---------- 14. Footer: the lower desk ---------- */
.site-footer {
  background:
    repeating-linear-gradient(92deg, rgba(255, 236, 205, 0.030) 0px, rgba(255, 236, 205, 0.030) 1px, transparent 1px, transparent 8px),
    linear-gradient(180deg, #3E2C23 0%, #2E211A 100%);
  border-top: 1px solid var(--brass);
  color: var(--paper-light);
}
.site-footer .brand-top { color: var(--paper-highlight); }
.site-footer .brand-sub { color: var(--brass-light); }
.footer-col strong {
  font-family: var(--font-ui);
  color: var(--brass-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}
.footer-col a { color: var(--paper-light); }
.footer-col a:hover { color: var(--brass-light); }
.footer-brand p, .footer-copy { color: rgba(244, 236, 217, 0.72); }
.footer-copy a { color: var(--brass-light); }

/* ---------- 15. Database toolbars & filters ---------- */
.db-toolbar {
  background: var(--paper-highlight);
  border: 1px solid #8F7E6A;
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
}
.db-search, .db-select {
  font-family: var(--font-ui);
  font-size: 14px;
  background: var(--paper-light);
  color: var(--text);
  border: 1.5px solid #594438;
  border-radius: 3px;
  padding: 0.45rem 0.7rem;
}
.db-search:focus, .db-select:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.db-count { font-family: var(--font-ui); color: var(--text-2); font-size: 13px; }
.db-chip {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--paper-light);
  color: var(--text-2);
  border: 1px solid #95836D;
  border-radius: 2px;
  padding: 4px 9px;
  cursor: pointer;
}
.db-chip:hover { border-color: var(--rust); color: var(--rust-ink); }
.db-chip[aria-pressed="true"] { background: #71806A; color: #F4ECD9; border-color: #4D5B4B; }
.db-check { cursor: pointer; }
.db-check input { cursor: pointer; }
tr.row-done { opacity: 0.45; }
tr.row-done td { text-decoration: line-through; }

/* swatch tiles for fabrics/accessories */
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 2px;
  border: 1px solid rgba(53, 39, 32, 0.35);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.swatch-row { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }

/* ---------- 16. Homepage pieces ---------- */
.hero-frame, .hero-plate {
  background: var(--paper);
  border: 1px solid #8F7E6A;
  border-radius: 2px;
  box-shadow: var(--shadow-paper-lift);
}
.hero-kicker { font-family: var(--font-ui); color: var(--brass-muted); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.hero-sub { font-family: var(--font-ui); color: var(--text-2); }
.hero-lede { color: var(--body); }
.reg-mark { background: var(--rust); }
.hero-meta .hm-item { font-family: var(--font-ui); color: var(--text-2); }
.hero-meta .hm-dim { color: var(--text-dim); }
.section-head h2 { color: var(--text); }
.section-head .micro { font-family: var(--font-ui); color: var(--brass-muted); }
.game-info-row dt { font-family: var(--font-ui); color: var(--text-2); letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; }
.game-info-row dd { color: var(--text); }
.end-cta {
  background: var(--paper-highlight);
  border: 1px solid #95836D;
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
}
.faq-item summary { font-family: var(--font-display); color: var(--text); }
.faq-item[open] summary { color: var(--rust-ink); }
.article-row .micro { font-family: var(--font-ui); }

/* ---------- 17. 404 ---------- */
.notfound { text-align: center; }
.notfound .big { color: var(--brass-muted); }

/* ---------- 18. Mobile: keep the world, drop only ornament ---------- */
@media (max-width: 900px) {
  .main-content { padding: 1.6rem 1.2rem 2rem; }
  /* the thread ribbon needs room; on narrow paper it crowds the text */
  .main-content::before { display: none; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .main-content { padding: 1.25rem 0.95rem 1.75rem; }
  thead th { font-size: 11px; padding: 0.5rem 0.55rem; }
  tbody td { padding: 0.5rem 0.55rem; font-size: 0.9rem; }
}

/* ---------- 20. Homepage split: two columns on desktop, one on mobile ----------
   The inline grid used to live on the element itself, which meant no breakpoint
   could collapse it and the game-info column pushed the page 108px wide at a
   375px viewport (caught by the viewport gate). The layout is now a class so it
   can be responsive, and it falls back to a single column before the copy gets
   cramped. */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 3rem;
  margin-top: 4.2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .home-split { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
}

/* Game-info definition rows must wrap rather than force the column wider. */
.game-info-row { display: flex; gap: 0.6rem; align-items: baseline; }
.game-info-row dt { flex: 0 0 auto; min-width: 96px; }
.game-info-row dd { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* Tables inside a scroll wrapper never widen their parent. */
.table-scroll { max-width: 100%; }
.table-scroll > table { min-width: 100%; }

/* ---------- 20. Homepage split + game info: responsive, never overflow ----------
   The two-column grid used to be declared inline on the element, so no breakpoint
   could collapse it and the game-info column pushed the document 108px wider than
   a 375px viewport (caught by the viewport gate). It is now a class with a
   single-column fallback. */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 3rem;
  margin-top: 4.2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .home-split { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
}

.game-info {
  background: var(--paper-light);
  border: 1px solid #95836D;
  border-radius: 3px;
  box-shadow: var(--shadow-paper);
  padding: 1.1rem 1.2rem;
}
.game-info-row { display: flex; gap: 0.6rem; align-items: baseline; }
.game-info-row dt { flex: 0 0 auto; min-width: 92px; }
.game-info-row dd { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* A scroll wrapper must actually clip: the table inside is allowed to be wider,
   the wrapper is not. */
.table-scroll { max-width: 100%; overflow-x: auto; }

/* Repair 2026-09-28: image-backed hero must not carry dark text on a dark scrim.
   An opaque cream copy panel ensures contrast regardless of image or crop. */
.hero-copy {
  margin: clamp(1rem, 3vw, 2.6rem);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  max-width: 630px;
  background: #F7F0DF;
  border: 1px solid #8F7E6A;
  border-left: 5px solid #9F473D;
  box-shadow: 0 14px 38px rgba(25, 18, 13, .4);
}
.hero-copy .hero-title { color: #322A25; }
.hero-copy .hero-lede, .hero-copy .last-updated { color: #42362E; }
.hero-copy .hero-sub, .hero-copy .hero-kicker { color: #604A39; }
.hero-meta { background: #F1E8D4; border-top: 1px solid #8F7E6A; }
.hero-meta .hm-item, .hero-meta .hm-dim { color: #42362E; font-size: 11px; letter-spacing: .07em; }
/* Equal tactile spacing in the homepage cards, directory rows and related links. */
.guide-card-body { padding: 1.35rem 1.4rem 1.5rem; }
.article-row { padding: 1rem 1.15rem; }
.related-grid .card { padding: 1.15rem 1.3rem; }
@media(max-width:640px) {
  .hero-copy { margin: 1rem; padding: 1.35rem 1.15rem; }
  .hero-plate { min-height: 0; }
  .hero-meta { padding: .75rem 1rem; }
  .guide-card-body { padding: 1.15rem 1.1rem 1.3rem; }
}

/* Homepage long-form copy and FAQ need a real paper ground, not dark-on-pine. */
.home-reading {
  background:#F4ECD9;
  color:#342B25;
  border:1px solid #8F7E6A;
  border-left:5px solid #9F473D;
  padding:clamp(1.4rem,4vw,3.5rem);
  margin:3.2rem 0 2rem;
  box-shadow:var(--shadow-paper);
}
.home-reading p,.home-reading .faq-item p,.home-reading td { color:#42362E; }
.home-reading h2,.home-reading h3,.home-reading .section-head h2 { color:#332A24; }
.home-reading .section-head .micro { color:#604A39; }
.home-reading .faq-item { background:#FBF6EA; border:1px solid #8F7E6A; }
.home-reading .faq-item summary { color:#332A24; }
.home-reading .end-cta { background:#ECE0C8; color:#332A24; }
@media(max-width:640px){.home-reading{padding:1.3rem 1rem;margin:2rem 0;}}

/* Tail actions belong above related cards and need tappable interior space. */
.helpful { padding:1.15rem 1.4rem; margin:2rem 0 .85rem; flex-wrap:wrap; }
.page-nav { margin:.85rem 0 2rem; padding:1rem; }
@media(max-width:640px){.helpful { padding:1rem; gap:.7rem; }.page-nav { padding:.8rem; }}

.home-reading > .section-head:first-child { margin-top:0 !important; }
.home-reading .faq-item[open] p { padding:0 1.2rem 1.15rem; margin:0; }

/* All homepage body content sits on one continuous paper sheet. */
.home-paper { background:#F4ECD9; color:#342B25; border:1px solid #8F7E6A; border-left:5px solid #9F473D; padding:clamp(1.4rem,4vw,3.5rem); margin:2rem 0 3rem; box-shadow:var(--shadow-paper); }
.home-paper h2,.home-paper h3,.home-paper .section-head h2,.home-paper p { color:#342B25; }
.home-paper .section-head .micro { color:#604A39; }
.home-paper .home-reading { background:transparent; border:0; box-shadow:none; padding:0; margin:3.2rem 0 0; }
@media(max-width:640px){.home-paper{padding:1.25rem 1rem;margin:1.25rem 0 2rem;}}

/* Dressmaker Wiki v2 — paper reference binder, shared across every route. */
:root{--ink:#352820;--ink-soft:#6f5d50;--paper:#f2e8d4;--paper-light:#f8f0df;--paper-dark:#e6d8be;--sage:#68765f;--sage-dark:#4d5948;--coral:#d47e65;--coral-dark:#9e5042;--walnut:#3a2921;--brass:#b4894a;--border:#aa967c;--blue-gray:#71808a;--text:#352820;--body:#40352e;--text-2:#6f5d50;--text-dim:#6f5d50;--bg-panel:#f2e8d4;--bg-raised:#f8f0df;--surface:#f5ecd9;--panel:#f8f0df;--line:rgba(75,55,40,.36);--line-soft:rgba(75,55,40,.20);--header-h:54px;--shadow-paper:0 1px 2px rgba(55,40,28,.07)}
body.wiki-shell{background:#55614f;color:var(--body);font:17px/1.68 'Source Serif 4',Georgia,serif;overflow-x:clip}
body.wiki-shell::before{background:#55614f url('/assets/wiki-floral.svg') repeat;background-size:190px;opacity:1}
body.wiki-shell::after{opacity:.018}
body.wiki-shell .global-grain,body.wiki-shell .global-edges{display:none}
.wiki-frame{position:relative;z-index:2;display:grid;grid-template-columns:275px minmax(0,1fr);max-width:1440px;min-height:100vh;margin:auto;border-left:1px solid #8f7b66;border-right:1px solid #8f7b66;background:var(--paper)}
.wiki-main-area{min-width:0;background:linear-gradient(90deg,rgba(124,89,58,.045),transparent 26px),var(--paper);display:flex;flex-direction:column}
.wiki-sidebar{min-width:0;height:100vh;position:sticky;top:0;overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(90deg,rgba(255,255,255,.2),transparent),#eee4d0;border-right:1px solid #8f7b66;padding:9px 12px 22px;z-index:65;scrollbar-color:#bea98f transparent;scrollbar-width:thin}
.wiki-logo{display:flex;align-items:center;gap:12px;height:91px;padding:5px 10px 8px;border:1px dashed #c7a58d;border-bottom:1px solid #aa967c;color:#352820!important;text-decoration:none!important;font:600 29px/1 'Fraunces',Georgia,serif;white-space:nowrap}
.wiki-logo small{display:block;font:800 11px/1.5 'Nunito Sans',sans-serif;letter-spacing:.25em;text-align:right}
.wiki-spool{display:inline-grid;place-items:center;flex:none;width:44px;height:55px;border-radius:5px;color:#78452c;font:40px/1 Georgia,serif;transform:rotate(-13deg)}
.wiki-side-nav{padding:8px 0}.wiki-side-nav a{display:flex;align-items:center;gap:8px;min-height:28px;padding:3px 9px 3px 29px;color:#41352d!important;text-decoration:none!important;font:600 13px/1.3 'Nunito Sans',sans-serif;border-left:3px solid transparent}.wiki-side-nav a:hover,.wiki-side-nav a:focus-visible{background:rgba(187,139,102,.16);text-decoration:underline!important}.wiki-side-nav a[aria-current='page']:not(.wiki-home){background:#f3dacb;border-left-color:#b85043;font-weight:800}.wiki-side-nav .wiki-home{padding-left:12px;margin:0 0 10px;min-height:31px}.wiki-side-nav .wiki-home span{font-size:20px}.wiki-side-nav .wiki-home.is-current{background:#f1c1ae;border-left:3px solid #b85043;border-top:1px dashed #d98672;border-bottom:1px dashed #d98672;font-weight:800}
.wiki-nav-group{padding:7px 0 8px;border-top:1px solid rgba(120,95,72,.14)}.wiki-nav-label{display:block;margin:0 5px 4px 11px;color:#675546;font:800 10px/1.3 'Nunito Sans',sans-serif;letter-spacing:.09em;text-transform:uppercase}.wiki-side-note{margin:15px 9px 0;padding-top:12px;border-top:1px dashed #b9a38d;font:11px/1.5 'Nunito Sans',sans-serif;color:#6b584a}
.wiki-drawer-backdrop{display:none}
body.wiki-shell .site-header.wiki-topbar{height:54px;min-height:54px;position:sticky;top:0;z-index:60;background:repeating-linear-gradient(93deg,transparent 0 8px,rgba(255,255,255,.018) 9px 10px),#3a2921;border-bottom:2px solid #9d7541;backdrop-filter:none;box-shadow:0 2px 3px rgba(58,41,33,.14)}
body.wiki-shell .wiki-topbar .header-inner{max-width:none;height:52px;min-height:52px;padding:0 24px;display:flex;align-items:center;justify-content:flex-end;gap:12px}
body.wiki-shell .wiki-topbar .menu-toggle{display:none}
.wiki-mobile-brand{display:none}
body.wiki-shell .wiki-topbar .wiki-search-toggle{position:static;display:flex!important;align-items:center;gap:10px;width:min(390px,50vw);height:36px;padding:0 10px;border:1px solid #8a745d;border-radius:4px;background:#f6ecd7;color:#47372c;font:14px 'Source Serif 4',Georgia,serif;text-align:left;box-shadow:inset 0 1px 2px rgba(50,35,24,.09);cursor:pointer}
.wiki-search-toggle .wiki-search-icon{font:25px/1 Georgia,serif}.wiki-search-toggle .wiki-search-text{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wiki-search-toggle kbd{border:1px solid #b3a28d;background:#eee4d3;padding:0 4px;border-radius:2px;color:#5f5349;font:11px 'Nunito Sans',sans-serif}
.wiki-lang{display:inline-flex;align-items:center;gap:7px;min-width:83px;height:36px;justify-content:center;border:1px solid #79604b;border-radius:3px;color:#f3e9d7;font:700 12px 'Nunito Sans',sans-serif}
body.wiki-shell .search-panel{position:fixed;z-index:110;top:54px;left:50%;transform:translateX(-50%);width:min(610px,calc(100vw - 30px));max-height:min(70vh,650px);overflow:auto;background:#f8f0df;border:1px solid #8f7b66;box-shadow:0 8px 24px rgba(30,20,14,.25);padding:20px 22px}
body.wiki-shell .search-panel:not(.open){display:none}
body.wiki-shell .search-panel label{color:#352820}body.wiki-shell .search-panel input{background:#fffaf0;color:#352820;border:1px solid #8f7b66}
body.wiki-shell .wiki-content.container{max-width:none;width:100%;margin:0;padding:15px clamp(20px,3vw,38px) 65px;background:transparent;flex:1;min-height:calc(100vh - 54px);color:#40352e}
body.wiki-shell .breadcrumb{font:13px/1.5 'Source Serif 4',Georgia,serif;letter-spacing:0;text-transform:none;color:#6d5d50;margin:0 0 14px;min-height:24px;background:none;border:0;padding:0}body.wiki-shell .breadcrumb a{color:#465e78;text-decoration:underline}
body.wiki-shell h1,body.wiki-shell h2,body.wiki-shell h3{font-family:'Fraunces',Georgia,serif;color:#352820}
body.wiki-shell h1{font-size:clamp(34px,3vw,50px);font-weight:650;line-height:1.13;letter-spacing:-.025em}
body.wiki-shell .main-content h1{font-size:clamp(32px,2.8vw,42px);margin:0 0 10px;border-bottom:1px solid #bda78b;padding-bottom:10px}
body.wiki-shell .main-content h2{font-size:clamp(24px,2.1vw,29px);line-height:1.2;margin:2rem 0 1rem;padding:0 0 8px;border-bottom:1px dashed #cb846f}
body.wiki-shell .main-content h3{font-size:22px}
body.wiki-shell .main-content{max-width:760px;color:#40352e;font-size:17px;line-height:1.72}
body.wiki-shell .content-wrapper{display:block;max-width:none;width:100%;margin:0}
body.wiki-shell .content-wrapper.database-layout .main-content.database-content{max-width:none;width:100%;font-size:16px}
body.wiki-shell .main-content p,body.wiki-shell .main-content li{color:#40352e}
body.wiki-shell .main-content a:not(.btn),body.wiki-shell .wiki-content a:not(.btn):not(.card):not(.wiki-card):not(.wiki-start-card){color:#465e78;text-decoration:underline;text-underline-offset:2px}
body.wiki-shell .main-content a:hover,body.wiki-shell .wiki-content a:hover{color:#a75144}
body.wiki-shell .last-updated,body.wiki-shell .micro{color:#6f5d50}
body.wiki-shell .toc,body.wiki-shell .tip-box,body.wiki-shell .callout,body.wiki-shell .end-cta{background:#eee1c3;border:1px solid #bda78e;border-left:4px solid #aa8449;color:#352820;border-radius:2px;box-shadow:none;padding:16px 19px}
body.wiki-shell .toc{background:#efe3cc;border-left-color:#68765f}
body.wiki-shell .table-scroll,body.wiki-shell .db-table-scroll{border:1px solid #aa967c;background:#f4ead7;box-shadow:none}
body.wiki-shell table{border-collapse:collapse;width:100%;color:#352820}body.wiki-shell th{background:#68765f;color:#f8efdf;padding:8px 10px;border:1px solid #53654e;font:800 12px 'Nunito Sans',sans-serif;text-align:left}body.wiki-shell td{padding:8px 10px;border:1px solid #b4a087;background:#f4ead7;color:#352820}body.wiki-shell tbody tr:nth-child(even) td{background:#e9ddc7}
body.wiki-shell .db-toolbar,body.wiki-shell .db-controls{background:#eee3cf;border:1px solid #aa967c;border-radius:3px;box-shadow:none;padding:12px}
body.wiki-shell .db-controls input,body.wiki-shell .db-controls select,body.wiki-shell .db-controls button{min-height:36px;background:#f7eedc;border:1px solid #a18c73;border-radius:3px;color:#352820;font:14px 'Nunito Sans',sans-serif}
body.wiki-shell .db-controls button{background:#e5d3b9;cursor:pointer}
body.wiki-shell .db-count{color:#594a3d}
body.wiki-shell .card,body.wiki-shell .related-grid .card,body.wiki-shell .helpful,body.wiki-shell .page-nav{background:#f8f0df;border:1px solid #aa967c;border-radius:3px;box-shadow:0 1px 2px rgba(55,40,28,.07)}
body.wiki-shell .helpful{padding:16px 22px;margin:24px 0 10px}body.wiki-shell .page-nav{padding:13px;margin:10px 0 25px}body.wiki-shell .faq-item{background:#f8f0df;border:1px solid #aa967c}body.wiki-shell .faq-item p{color:#40352e;padding:0 18px 16px}
body.wiki-shell .site-footer{position:relative;background:#e6d8be;border-top:1px solid #aa967c;color:#463b31;padding:28px clamp(20px,3vw,38px) 16px;box-shadow:none}
body.wiki-shell .footer-inner{max-width:1120px;margin:0 auto;gap:25px}body.wiki-shell .site-footer a{color:#40536a;text-decoration:underline}body.wiki-shell .site-footer p,body.wiki-shell .site-footer strong{color:#463b31}body.wiki-shell .footer-copy{border-top:1px dashed #aa967c}
/* Wiki homepage: compact reference index, not a marketing landing page. */
.wiki-home-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,35%);gap:14px;align-items:center;min-height:176px;margin-bottom:14px}
.wiki-home-header h1{display:inline-block;border-bottom:2px solid #a75144;padding-bottom:4px;margin:0 0 11px}.wiki-home-header .wiki-intro{max-width:700px;font:16px/1.55 'Source Serif 4',Georgia,serif;color:#352820}.wiki-home-art{width:100%;max-width:390px;max-height:208px;object-fit:contain;justify-self:end;opacity:.9}.wiki-stats{display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px;margin:12px 0 0;font:700 13px 'Nunito Sans',sans-serif;color:#463329}.wiki-stats span{white-space:nowrap}.wiki-stats b{font-size:17px;color:#8b5940;padding-right:4px}
.wiki-section{margin:20px 0 0}.wiki-section-head{display:flex;align-items:baseline;gap:12px;margin-bottom:10px;border:0!important;padding:0!important}.wiki-section-head:after{content:'';flex:1;height:1px;background:repeating-linear-gradient(90deg,#be786a 0 5px,transparent 5px 9px);align-self:center}.wiki-section-head h2{order:0;white-space:nowrap;font:650 23px/1.2 'Fraunces',Georgia,serif!important;color:#352820!important;margin:0!important;padding:0!important;border:0!important}.wiki-section-head .wiki-section-hint{order:2;color:#6f5d50;font:italic 12px 'Source Serif 4',Georgia,serif}.wiki-section-head .wiki-section-icon{color:#8d4d3f;font-size:20px}
.wiki-start-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.wiki-start-card{display:flex;gap:9px;position:relative;min-height:97px;padding:13px 18px 11px 12px;background:#f7eedf;border:1px solid #b5a087;border-left:4px solid #d37d66;border-radius:3px;color:#352820!important;text-decoration:none!important;box-shadow:0 1px 2px rgba(55,40,28,.07)}.wiki-start-card:nth-child(2){border-left-color:#b4894a}.wiki-start-card:nth-child(3){border-left-color:#68765f}.wiki-start-card:nth-child(4){border-left-color:#71808a}.wiki-start-card:hover{background:#fff7e8;border-color:#9e5042}.wiki-start-icon{flex:none;width:32px;font:27px/1 Georgia,serif;color:#81503c;text-align:center}.wiki-start-card strong{display:block;font:650 15px 'Fraunces',Georgia,serif;color:#352820}.wiki-start-card small{display:block;font:12px/1.32 'Source Serif 4',Georgia,serif;color:#4b3d32}.wiki-start-card:after{content:'›';position:absolute;right:7px;bottom:3px;font-size:23px}
.wiki-explain{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:7px 0 13px}.wiki-explain p{font:15px/1.5 'Source Serif 4',Georgia,serif;margin:0;color:#40352e}.wiki-explain p+p{border-left:1px solid #c4ad93;padding-left:25px}
.wiki-workflow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;list-style:none;padding:0;margin:10px 0 3px}.wiki-workflow li{min-width:0;position:relative;min-height:73px;padding:10px;background:rgba(248,240,223,.7);border:1px dashed #c79b81;border-radius:3px;font:13px/1.3 'Source Serif 4',Georgia,serif}.wiki-workflow li:not(:last-child):after{content:'→';position:absolute;right:-16px;top:28px;color:#80513c;font-size:19px}.wiki-workflow strong{display:block;font:650 15px 'Fraunces',Georgia,serif;color:#352820}.wiki-workflow small{display:block;color:#514235;font-size:12px}
.wiki-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}.wiki-category-card{overflow:hidden;border:1px solid #aa967c;border-radius:3px;background:#f5ecd9;min-height:160px;box-shadow:0 1px 2px rgba(55,40,28,.07)}.wiki-category-card h3{margin:0!important;padding:6px 12px;color:#fff5e6!important;font:600 17px 'Fraunces',Georgia,serif!important;background:#b96e62}.wiki-category-card:nth-child(2) h3{background:#68765f}.wiki-category-card:nth-child(3) h3{background:#b28a50}.wiki-category-card:nth-child(4) h3{background:#61727a}.wiki-category-card:nth-child(5) h3{background:#887286}.wiki-category-card:nth-child(6) h3{background:#758267}.wiki-category-body{position:relative;padding:8px 13px 10px;min-height:123px}.wiki-category-body:after{content:attr(data-icon);position:absolute;right:15px;bottom:9px;font:55px/1 Georgia,serif;color:rgba(82,62,45,.12);pointer-events:none}.wiki-category-body ul{position:relative;z-index:1;list-style:disc;margin:0 0 0 16px;padding:0}.wiki-category-body li{font:13px/1.45 'Source Serif 4',Georgia,serif;padding:0}.wiki-category-body a,.wiki-recent a{color:#40536a!important;text-decoration:underline!important;text-underline-offset:2px}.wiki-category-body a:hover,.wiki-recent a:hover{color:#a75144!important}.wiki-category-body .wiki-view-all{display:block;position:relative;z-index:1;text-align:right;font-size:12px;margin-top:5px}
.wiki-recent{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 28px;margin:0;padding:0;list-style:none}.wiki-recent li{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #cbb79b;padding:4px 0;font:13px/1.4 'Source Serif 4',Georgia,serif}.wiki-recent li:before{content:'▤';color:#a75144}.wiki-recent a{flex:1}.wiki-recent small{font:11px 'Nunito Sans',sans-serif;color:#6f5d50}
.wiki-home-detail{margin-top:28px;padding-top:15px;border-top:1px solid #baa78e}.wiki-home-detail h2{font-size:25px;margin:20px 0 10px}.wiki-home-detail p{max-width:780px;margin:0 0 14px;color:#40352e}.wiki-home-detail .faq-list{max-width:800px}.wiki-home-detail .faq-item{background:#f8f0df}.wiki-home-detail .faq-item summary{color:#352820}
@media(max-width:1240px){.wiki-frame{grid-template-columns:240px minmax(0,1fr)}.wiki-sidebar{padding:8px}.wiki-logo{font-size:25px}.wiki-category-grid{gap:9px}.wiki-start-grid{gap:7px}}
@media(max-width:1000px){.wiki-frame{grid-template-columns:210px minmax(0,1fr)}.wiki-side-nav a{font-size:12px}.wiki-logo{font-size:22px}.wiki-logo .wiki-spool{width:31px}.wiki-start-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wiki-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wiki-workflow{grid-template-columns:repeat(3,minmax(0,1fr))}.wiki-workflow li:after{display:none}.wiki-section-head .wiki-section-hint{display:none}}
@media(max-width:760px){.wiki-frame{display:block;border:0}.wiki-sidebar{position:fixed;left:0;top:0;width:min(82vw,320px);height:100dvh;transform:translateX(-103%);transition:transform .22s ease;box-shadow:4px 0 20px rgba(26,18,13,.25);z-index:120;padding:9px 12px}.wiki-sidebar.is-open{transform:translateX(0)}.wiki-drawer-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:rgba(24,20,18,.55);z-index:115}body.wiki-drawer-open{overflow:hidden}body.wiki-shell .wiki-topbar .header-inner{padding:0 13px;justify-content:space-between;gap:8px}body.wiki-shell .wiki-topbar .wiki-menu-toggle{display:grid;place-items:center;flex:none;width:38px;height:36px;border:1px solid #79604b;background:transparent;color:#f3e9d7;border-radius:2px;font-size:22px}.wiki-mobile-brand{display:block;flex:1;color:#f7eedf!important;text-decoration:none!important;font:600 19px 'Fraunces',Georgia,serif;white-space:nowrap}.wiki-mobile-brand span{font:800 10px 'Nunito Sans',sans-serif;text-transform:uppercase;letter-spacing:.08em}.wiki-lang,.wiki-search-text,.wiki-search-toggle kbd{display:none!important}body.wiki-shell .wiki-topbar .wiki-search-toggle{display:grid!important;place-items:center;width:38px;height:36px;background:transparent;color:#f7eedf;border-color:#79604b;padding:0}.wiki-search-toggle .wiki-search-icon{font-size:27px}body.wiki-shell .wiki-content.container{padding:17px 18px 45px}.wiki-home-header{grid-template-columns:1fr;gap:2px}.wiki-home-art{justify-self:center;max-height:135px;max-width:300px}.wiki-home-header h1{font-size:37px}.wiki-stats{gap:5px 14px}.wiki-start-grid,.wiki-category-grid,.wiki-explain,.wiki-recent{grid-template-columns:1fr}.wiki-explain p+p{padding:0;border:0}.wiki-workflow{grid-template-columns:repeat(2,minmax(0,1fr))}.wiki-section-head h2{font-size:21px!important}.wiki-category-card{min-height:0}.wiki-category-body{min-height:0}.wiki-start-card{min-height:84px}body.wiki-shell .main-content{font-size:16px}body.wiki-shell .main-content h1{font-size:32px}body.wiki-shell .site-footer{padding:22px 18px}}
@media(max-width:400px){.wiki-workflow{grid-template-columns:1fr}.wiki-mobile-brand{font-size:17px}}
@media(prefers-reduced-motion:reduce){.wiki-sidebar{transition:none}}

/* Release-candidate corrections after rendered DOM inspection. */
body.wiki-shell .wiki-content .content-wrapper .main-content{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;margin:0}
body.wiki-shell .wiki-content .database-layout .db-table-scroll thead th{background:#68765f!important;color:#f8efdf!important}
body.wiki-shell .wiki-content .database-layout .db-controls input,body.wiki-shell .wiki-content .database-layout .db-controls select,body.wiki-shell .wiki-content .database-layout .db-controls button{min-height:36px;border-color:#a18c73;background:#f7eedc;color:#352820}
body.wiki-shell .wiki-content .database-layout .db-controls button{background:#e5d3b9}
body.wiki-shell .wiki-content .database-layout .db-table-scroll td .tag{font-size:11px;padding:2px 4px;line-height:1.2}

/* Adapt the approved source sections to the shared wiki components. */
body.wiki-shell .wiki-home{width:100%;max-width:none;background:transparent;color:#40352e}
.wiki-home .wiki-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,35%);column-gap:14px;align-items:center;min-height:176px;padding:0;margin:0 0 11px;background:transparent;border:0;box-shadow:none}
.wiki-home .wiki-intro>h1,.wiki-home .wiki-intro>p,.wiki-home .wiki-intro>.wiki-stats{grid-column:1}
.wiki-home .wiki-intro>h1{margin:0 0 6px;justify-self:start;font-size:50px;border-bottom:2px solid #a75144;padding-bottom:4px}
.wiki-home .wiki-intro>p:not(.last-updated){margin:0;max-width:690px;color:#40352e;font:16px/1.5 'Source Serif 4',Georgia,serif}
.wiki-home .wiki-intro>.last-updated{font:11px 'Nunito Sans',sans-serif;color:#6f5d50;margin:3px 0}
.wiki-home .wiki-intro>.wiki-stats{list-style:none;display:flex;flex-wrap:wrap;gap:6px 20px;padding:0;margin:5px 0 0}
.wiki-home .wiki-stats li{font:700 13px 'Nunito Sans',sans-serif;color:#3f3129;white-space:nowrap}.wiki-home .wiki-stats li:before{content:'✦';color:#9e5042;padding-right:6px}.wiki-home .wiki-stats strong{color:#352820}
.wiki-home .wiki-intro>.wiki-home-art{grid-column:2;grid-row:1/5;max-width:100%;max-height:205px}
.wiki-home .wiki-section-head>.wiki-note{order:2;color:#6f5d50;font:italic 12px 'Source Serif 4',Georgia,serif;white-space:nowrap}
.wiki-home .wiki-section-head:after{order:1}
.wiki-home .wiki-start-card{display:block;min-width:0}.wiki-home .wiki-start-card h3{margin:4px 0;font:650 15px 'Fraunces',Georgia,serif}.wiki-home .wiki-start-card h3 a{color:#352820!important;text-decoration:underline!important}.wiki-home .wiki-start-card p{margin:0;font:12px/1.35 'Source Serif 4',Georgia,serif;color:#4b3d32}.wiki-home .wiki-card-number{font:700 10px 'Nunito Sans',sans-serif;text-transform:uppercase;letter-spacing:.06em;color:#805543}
.wiki-home .wiki-game-loop>p{font:15px/1.5 'Source Serif 4',Georgia,serif;margin:6px 0 12px;color:#40352e}
.wiki-home .wiki-loop-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;margin:0;list-style:none;padding:0}.wiki-home .wiki-loop-steps li{position:relative;min-width:0;min-height:82px;padding:8px 10px;background:rgba(248,240,223,.7);border:1px dashed #c79b81;border-radius:3px}.wiki-home .wiki-loop-steps li:not(:last-child):after{content:'→';position:absolute;top:25px;right:-16px;color:#80513c;font:18px Georgia,serif}.wiki-home .wiki-loop-steps strong{display:block;font:650 14px 'Fraunces',Georgia,serif;color:#352820}.wiki-home .wiki-loop-steps span{display:block;color:#514235;font:12px/1.27 'Source Serif 4',Georgia,serif}
.wiki-home .wiki-category-card{padding:0}.wiki-home .wiki-category-card ul{list-style:disc;margin:8px 12px 0 30px;padding:0}.wiki-home .wiki-category-card li{padding:0;font:13px/1.4 'Source Serif 4',Georgia,serif;color:#40352e}.wiki-home .wiki-category-card a{color:#40536a!important;text-decoration:underline!important}.wiki-home .wiki-category-card .wiki-category-more{display:block;margin:5px 12px 9px;text-align:right;font:12px 'Source Serif 4',Georgia,serif}
.wiki-home .wiki-guide-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px 25px;list-style:none;padding:0;margin:0}.wiki-home .wiki-guide-list li{display:flex;align-items:baseline;gap:7px;min-width:0;border-bottom:1px solid #cbb79b;padding:3px 0;font:13px/1.4 'Source Serif 4',Georgia,serif}.wiki-home .wiki-guide-list li:before{content:'▤';color:#9e5042}.wiki-home .wiki-guide-list a{flex:1;color:#40536a!important;text-decoration:underline!important}.wiki-home .wiki-guide-list span{font:11px 'Nunito Sans',sans-serif;color:#6f5d50;white-space:nowrap}
.wiki-home .wiki-info{float:right;width:280px;margin:24px 0 20px 24px;background:#efe3cc;border:1px solid #846f5a;color:#40352e}.wiki-home .wiki-info h2{padding:7px 12px;margin:0;background:#68765f;color:#f7efdd;font:650 18px 'Fraunces',Georgia,serif}.wiki-home .wiki-info dl{padding:4px 12px}.wiki-home .wiki-info dl>div{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px dashed #b6a189;font:12px 'Nunito Sans',sans-serif}.wiki-home .wiki-info dd{margin:0;text-align:right}
.wiki-home .wiki-reading{margin-top:25px;border-top:1px solid #bba58c;padding-top:13px;color:#40352e}.wiki-home .wiki-reading:after{content:'';display:block;clear:both}.wiki-home .wiki-reading>div:not(.wiki-section-head):not(.wiki-table-scroll):not(.wiki-end-cta){max-width:760px}.wiki-home .wiki-reading p{margin:7px 0 13px;font:16px/1.65 'Source Serif 4',Georgia,serif;color:#40352e}.wiki-home .wiki-reading h3{font:650 22px 'Fraunces',Georgia,serif;margin:17px 0 6px}.wiki-home .wiki-illustration{max-width:760px;margin:17px 0}.wiki-home .wiki-illustration img{display:block;max-width:100%;width:100%;height:auto;max-height:340px;object-fit:cover;border:1px solid #aa967c}.wiki-home .wiki-table-scroll{max-width:760px;overflow-x:auto;border:1px solid #aa967c;margin:14px 0}.wiki-home .wiki-faq{max-width:800px}.wiki-home .wiki-faq-item{border:1px solid #aa967c;background:#f8f0df;margin:5px 0}.wiki-home .wiki-faq-item summary{cursor:pointer;padding:11px 15px;color:#352820;font:650 15px 'Fraunces',Georgia,serif}.wiki-home .wiki-faq-item p{padding:4px 16px 16px;margin:0;color:#40352e}.wiki-home .wiki-end-cta{max-width:760px;background:#eee1c3;border-left:4px solid #aa8449;padding:14px 17px;margin:18px 0}.wiki-home .wiki-end-cta h2{font-size:20px;margin:0}.wiki-home .wiki-end-cta p{margin:4px 0 12px}
@media(max-width:1000px){.wiki-home .wiki-loop-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.wiki-home .wiki-loop-steps li:after{display:none}.wiki-home .wiki-section-head>.wiki-note{display:none}}
@media(max-width:760px){.wiki-home .wiki-intro{grid-template-columns:1fr;min-height:0}.wiki-home .wiki-intro>h1{font-size:37px}.wiki-home .wiki-intro>.wiki-home-art{grid-column:1;grid-row:auto;justify-self:center;max-height:142px;margin-top:6px}.wiki-home .wiki-start-grid,.wiki-home .wiki-category-grid,.wiki-home .wiki-guide-list{grid-template-columns:1fr}.wiki-home .wiki-loop-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.wiki-home .wiki-info{float:none;width:100%;margin:20px 0}.wiki-home .wiki-start-card{min-height:75px}.wiki-home .wiki-section{margin-top:17px}.wiki-home .wiki-illustration img{max-height:210px}}
@media(max-width:400px){.wiki-home .wiki-loop-steps{grid-template-columns:1fr}}

.wiki-logo .wiki-spool{background:url('/assets/wiki-spool.svg') center/contain no-repeat;transform:none}
@media(max-width:760px){.wiki-home .wiki-section-head h2{white-space:normal;min-width:0}.wiki-home .wiki-section-head .wiki-note{display:none}}

/* No notebook margin stripe: the article is the continuous paper canvas. */
body.wiki-shell .wiki-content .main-content::before{content:none!important;display:none!important}

/* P0: a continuous, illustrated reference binder. Loaded after all page CSS. */
:root{--sidebar-width:275px;--topbar-height:54px;--content-max-width:1120px}
body.wiki-shell{background:#46503d url('/assets/ui/wallpaper.webp') repeat;font-family:'Source Serif 4',Georgia,serif}
body.wiki-shell::before,body.wiki-shell::after{display:none}
body.wiki-shell .wiki-frame{grid-template-columns:275px minmax(0,1fr);max-width:1440px;border:4px double #806749;box-shadow:0 0 0 3px #392b20,0 3px 18px #20170e66;background:#f2e8d4;margin:5px auto 0}
body.wiki-shell .wiki-main-area{background:#f2e8d4;box-shadow:inset 5px 0 8px #775b3426,inset -4px 0 6px #775b3420;position:relative}
body.wiki-shell .wiki-main-area:after{content:'';position:absolute;inset:59px 5px 5px;border:1px solid #b59a75;pointer-events:none;z-index:1}
body.wiki-shell .wiki-sidebar{background:#eee4d0;border-right:4px double #8f7658;padding:8px 12px 22px;box-shadow:inset 0 0 0 3px #c2a884,inset 0 0 0 5px #eee1c9}
body.wiki-shell .wiki-logo{height:88px;padding:5px 4px;gap:8px;font:500 29px/1 Georgia,serif;border:0;border-bottom:1px solid #baa17d}
body.wiki-shell .wiki-logo small{font:13px/1.7 Georgia,serif;letter-spacing:.22em;text-align:center}
body.wiki-shell .wiki-logo .wiki-spool{background:url('/assets/ui/spool.webp') center/contain no-repeat;width:48px;height:63px}
body.wiki-shell .wiki-side-nav a{font:15px/1.3 'Source Serif 4',Georgia,serif;min-height:28px;padding:3px 12px 3px 36px;position:relative}
body.wiki-shell .wiki-side-nav>.wiki-primary{min-height:32px;padding-top:5px;padding-bottom:5px}
body.wiki-shell .wiki-side-nav>.wiki-primary:after{display:none}
body.wiki-shell .wiki-side-nav .wiki-tool-search{display:block;width:100%;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;color:#352820;cursor:pointer;min-height:28px;padding:3px 12px 3px 36px;font:15px/1.3 'Source Serif 4',Georgia,serif;position:relative}
body.wiki-shell .wiki-side-nav .wiki-tool-search:before{content:'⌕';position:absolute;left:9px;top:1px;font:22px Georgia,serif}
body.wiki-shell .wiki-side-nav .wiki-tool-search:hover{background:#e8d8be}
body.wiki-shell .wiki-sidebar .wiki-side-note{margin-top:20px}
body.wiki-shell .wiki-side-nav a:not(.wiki-home):after{content:'›';position:absolute;right:7px;top:3px;font:19px Georgia,serif}
body.wiki-shell .wiki-nav-label{font:12px/1.3 Georgia,serif;letter-spacing:.04em;color:#352820;margin:0 8px 4px}
body.wiki-shell .wiki-nav-group{padding:9px 0;border-color:#bba58370}
body.wiki-shell .wiki-side-nav .wiki-home{padding-left:12px}
body.wiki-shell .wiki-side-note{font:12px/1.5 Georgia,serif}
body.wiki-shell .site-header.wiki-topbar{height:54px;min-height:54px;background:#3a2921 url('/assets/ui/wood.webp') repeat-x center/auto 54px;border-bottom:3px double #b18a50}
body.wiki-shell .wiki-topbar .header-inner{height:51px;min-height:51px;padding:0 22px;gap:12px}
body.wiki-shell .wiki-report{display:flex;align-items:center;gap:9px;justify-content:center;height:36px;padding:0 14px;border:1px solid #9c805c;border-radius:3px;color:#fff2dc!important;text-decoration:none!important;font:14px Georgia,serif;white-space:nowrap;box-shadow:inset 0 0 0 2px #533a2870}
body.wiki-shell .wiki-report span{font-size:20px}
body.wiki-shell .wiki-content.container{width:100%;max-width:1120px;padding:12px 22px 60px;margin:0 auto;position:relative;z-index:2}
body.wiki-shell .breadcrumb{margin-bottom:5px;min-height:20px;font-size:13px}
body.wiki-shell h1,body.wiki-shell h2,body.wiki-shell h3{font-family:Georgia,'Source Serif 4',serif;letter-spacing:-.025em}
body.wiki-shell .wiki-home .wiki-intro{display:block;position:relative;min-height:174px;padding:0 0 0;margin:0 0 10px;isolation:isolate}
body.wiki-shell .wiki-home .wiki-intro:after{content:'';position:absolute;right:0;top:-19px;width:36%;height:198px;background:url('/assets/ui/header-atelier.webp') right center/contain no-repeat;z-index:-1;pointer-events:none}
body.wiki-shell .wiki-home .wiki-intro>h1{font:700 46px/1.1 Georgia,serif;margin:0 0 6px;padding:0;border:0;max-width:65%}
body.wiki-shell .wiki-home .wiki-intro>p:not(.last-updated){font:15px/1.42 'Source Serif 4',Georgia,serif;max-width:65%;margin:0}
body.wiki-shell .wiki-home .wiki-intro>.last-updated{font:11px/1.4 Georgia,serif;margin:5px 0;color:#665444}
body.wiki-shell .wiki-home .wiki-intro>.wiki-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;width:66%;padding:0;margin:7px 0 0;list-style:none}
body.wiki-shell .wiki-home .wiki-stats li{position:relative;min-height:52px;padding:6px 3px 5px 38px;border:1px solid #bba181;border-radius:3px;background:#f8efdc;white-space:normal;font:12px/1.2 Georgia,serif;box-shadow:inset 0 0 0 2px #eee0c8}
body.wiki-shell .wiki-home .wiki-stats li:before{content:'';position:absolute;left:5px;top:7px;width:29px;height:35px;background:var(--art) center/contain no-repeat;padding:0}
body.wiki-shell .wiki-home .wiki-stats strong{display:block;font:700 21px/1 Georgia,serif;margin-bottom:3px}
body.wiki-shell .wiki-home .wiki-section{margin:8px 0 0}
body.wiki-shell .wiki-home .wiki-section-head{gap:10px;margin-bottom:8px}
body.wiki-shell .wiki-home .wiki-section-head h2{font:700 23px/1.2 Georgia,serif!important}
body.wiki-shell .wiki-home .wiki-section-head h2:before{content:'';display:inline-block;width:25px;height:25px;vertical-align:-5px;margin-right:7px;background:url('/assets/ui/scissors.webp') center/contain no-repeat}
body.wiki-shell .wiki-home #wiki-reference-title:before,body.wiki-shell .wiki-home #wiki-guides-title:before{background-image:url('/assets/ui/book.webp')}
body.wiki-shell .wiki-home .wiki-section-head>.wiki-note{font:italic 12px/1.3 Georgia,serif}
@media(max-width:1100px){body.wiki-shell .wiki-home .wiki-section-head>.wiki-note{display:none}}
body.wiki-shell .wiki-home .wiki-start-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.wiki-shell .wiki-home .wiki-start-card{display:block;position:relative;min-height:96px;padding:10px 12px 10px 61px;border-left:3px solid #bb6654;background:#f8efde;box-shadow:inset 0 0 0 2px #eee0c980}
body.wiki-shell .wiki-home .wiki-start-card:before{content:'';position:absolute;left:9px;top:15px;width:43px;height:54px;background:var(--art) center/contain no-repeat}
body.wiki-shell .wiki-home .wiki-start-card h3{font:700 15px/1.15 Georgia,serif;margin:0 0 4px;letter-spacing:0}
body.wiki-shell .wiki-home .wiki-start-card h3 a{color:#352820!important;text-decoration:none!important}
body.wiki-shell .wiki-home .wiki-start-card h3 a:after{content:'';position:absolute;inset:0}
body.wiki-shell .wiki-home .wiki-start-card p{font:13px/1.25 'Source Serif 4',Georgia,serif;margin:0}
body.wiki-shell .wiki-home .wiki-explain{gap:24px;margin:0 0 9px}
body.wiki-shell .wiki-home .wiki-explain p{font:14px/1.35 'Source Serif 4',Georgia,serif;margin:0}
body.wiki-shell .wiki-home .wiki-loop-steps{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:0}
body.wiki-shell .wiki-home .wiki-loop-steps li{min-height:85px;padding:9px 6px 8px 53px;background:#f8efde;border:1px dashed #b89575}
body.wiki-shell .wiki-home .wiki-loop-steps li:before{content:'';position:absolute;left:6px;top:18px;width:41px;height:45px;background:var(--step-art) center/contain no-repeat}
body.wiki-shell .wiki-home .wiki-loop-steps li:nth-child(1){--step-art:url('/assets/ui/book.webp')}
body.wiki-shell .wiki-home .wiki-loop-steps li:nth-child(2){--step-art:url('/assets/ui/pattern-paper.webp')}
body.wiki-shell .wiki-home .wiki-loop-steps li:nth-child(3){--step-art:url('/assets/ui/fabric-rolls.webp')}
body.wiki-shell .wiki-home .wiki-loop-steps li:nth-child(4){--step-art:url('/assets/ui/sewing-machine.webp')}
body.wiki-shell .wiki-home .wiki-loop-steps li:nth-child(5){--step-art:url('/assets/ui/parcel.webp')}
body.wiki-shell .wiki-home .wiki-loop-steps strong{font:700 14px/1.2 Georgia,serif;margin-bottom:3px}
body.wiki-shell .wiki-home .wiki-loop-steps span{font:12px/1.3 'Source Serif 4',Georgia,serif}
body.wiki-shell .wiki-home .wiki-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 12px}
body.wiki-shell .wiki-home .wiki-category-card{position:relative;min-height:127px;padding:0;background:#f8efdd;isolation:isolate;--category:#a15849}
body.wiki-shell .wiki-home .wiki-category-card:nth-child(2){--category:#647252}
body.wiki-shell .wiki-home .wiki-category-card:nth-child(3){--category:#896537}
body.wiki-shell .wiki-home .wiki-category-card:nth-child(4){--category:#61727c}
body.wiki-shell .wiki-home .wiki-category-card:nth-child(5){--category:#826072}
body.wiki-shell .wiki-home .wiki-category-card:nth-child(6){--category:#65704e}
body.wiki-shell .wiki-home .wiki-category-card:after{content:'';position:absolute;right:9px;bottom:21px;width:91px;height:72px;background:var(--art) center/contain no-repeat;opacity:.28;z-index:-1;pointer-events:none}
body.wiki-shell .wiki-home .wiki-category-card h3{display:flex;align-items:center;gap:9px;background:var(--category);padding:4px 12px;font:700 17px/1.2 Georgia,serif!important;border-bottom:1px solid #8f7459;color:#fff5e6!important;min-height:31px}
body.wiki-shell .wiki-home .wiki-category-card h3:before{content:'';width:23px;height:25px;background:var(--art) center/contain no-repeat;flex:none}
body.wiki-shell .wiki-home .wiki-category-card ul{margin:6px 8px 0 29px;position:relative}
body.wiki-shell .wiki-home .wiki-category-card li{font:13px/1.3 'Source Serif 4',Georgia,serif}
body.wiki-shell .wiki-home .wiki-category-card .wiki-category-more{margin:3px 9px 5px;font:12px/1.2 Georgia,serif}
body.wiki-shell .wiki-home .wiki-home-updates{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:22px}
body.wiki-shell .wiki-home .wiki-home-updates .wiki-note{display:none}
body.wiki-shell .wiki-home .wiki-home-updates .wiki-section-head h2{font-size:21px!important}
body.wiki-shell .wiki-home .wiki-guide-list{gap:2px 18px}
body.wiki-shell .wiki-home .wiki-guide-list li{font:13px/1.35 'Source Serif 4',Georgia,serif;padding:3px 0}
body.wiki-shell .wiki-home .wiki-guide-list span{display:none}
body.wiki-shell .wiki-home .wiki-problems{border-left:1px solid #c6ad8c;padding-left:15px}
body.wiki-shell .wiki-home .wiki-problems ul{list-style:none;padding:0;margin:0}
body.wiki-shell .wiki-home .wiki-problems li{font:13px/1.4 'Source Serif 4',Georgia,serif;padding:2px 0}
body.wiki-shell .wiki-home .wiki-problems a:after{content:'›';float:right;color:#533f2c}
body.wiki-shell .wiki-home .wiki-reading{padding:16px 0 0;margin-top:24px}
body.wiki-shell .wiki-home .wiki-reading p,body.wiki-shell .main-content p{color:#40352e}
body.wiki-shell .wiki-content .content-wrapper{width:100%;margin:0;max-width:none}
body.wiki-shell .wiki-content .content-wrapper .main-content{max-width:790px;margin:0 auto;padding:0;background:transparent}
body.wiki-shell .wiki-content .content-wrapper .main-content h1{font:700 42px/1.1 Georgia,serif;min-height:105px;padding:12px 190px 17px 0;margin:0 0 8px;background:url('/assets/ui/header-atelier.webp') right center/180px auto no-repeat;border-bottom:1px solid #c59875}
body.wiki-shell .wiki-content .content-wrapper .main-content h2{font:700 27px/1.2 Georgia,serif;border-bottom:1px dashed #c58b73;scroll-margin-top:90px}
body.wiki-shell .wiki-content .content-wrapper .main-content .quick-answer{padding:15px 20px;background:#e7eadb;border:1px solid #9ba285;border-left:4px solid #748268;border-radius:3px;color:#352820}
body.wiki-shell .wiki-content .toc{background:#f8efdc;border:1px solid #ba8567;box-shadow:inset 0 0 0 3px #eee1c9;padding:15px 20px}
@media(min-width:1200px){
 body.wiki-shell .wiki-content .content-wrapper:not(.database-layout) .toc{float:left;width:205px;margin:0 22px 16px 0;padding:13px 15px;font-size:14px;line-height:1.4}
 body.wiki-shell .wiki-content .content-wrapper:not(.database-layout) .toc li{margin:0 0 6px;padding:0}
 body.wiki-shell .wiki-content .content-wrapper:not(.database-layout) .quick-answer{margin:0 0 20px 227px}
 body.wiki-shell .wiki-content .content-wrapper:not(.database-layout) .main-content:after{content:'';display:block;clear:both}
}
body.wiki-shell .wiki-content .main-content .last-updated{letter-spacing:0;text-transform:none;font:12px/1.5 Georgia,serif}
body.wiki-shell .wiki-content .database-layout .main-content.database-content{max-width:none;margin:0}
body.wiki-shell .wiki-content .database-layout .db-controls{margin:15px 0 8px;padding:12px;background:#f1e4cd;border:1px solid #a88f70}
body.wiki-shell .wiki-content .database-layout .db-table-scroll thead th{background:#59674f!important;color:#fff5e6!important}
body.wiki-shell .wiki-content .database-layout .db-controls input,body.wiki-shell .wiki-content .database-layout .db-controls select,body.wiki-shell .wiki-content .database-layout .db-controls button{min-height:36px;background:#fff6e6;color:#352820;border:1px solid #a18c73}
body.wiki-shell .wiki-content .helpful{padding:17px 22px;background:#f8efdc;color:#352820}
body.wiki-shell .wiki-content .helpful button{color:#352820;border:1px solid #ad9274;background:#eee2ca;padding:8px 15px}
body.wiki-shell .wiki-content .wiki-faq-item{background:#f8f0df;color:#352820}
body.wiki-shell .wiki-content .wiki-faq-item p{padding:8px 18px 18px;background:#f8f0df;color:#40352e}
body.wiki-shell .wiki-content .related-grid .card:before{display:none}
/* Reset inherited editorial list rhythm inside compact navigation modules. */
body.wiki-shell .wiki-home .wiki-stats li,body.wiki-shell .wiki-home .wiki-loop-steps li,body.wiki-shell .wiki-home .wiki-category-card li,body.wiki-shell .wiki-home .wiki-guide-list li{margin:0}
body.wiki-shell .wiki-home .wiki-section-head{min-height:28px;line-height:1.2}
body.wiki-shell .wiki-home .wiki-section-head h2{line-height:1.2!important}
body.wiki-shell .wiki-home .wiki-intro>.last-updated{letter-spacing:0;text-transform:none}
body.wiki-shell .wiki-side-nav a[href='/commissions/']:before,body.wiki-shell .wiki-side-nav a[href='/clients/']:before,body.wiki-shell .wiki-side-nav a[href='/patterns/']:before,body.wiki-shell .wiki-side-nav a[href='/fabrics/']:before,body.wiki-shell .wiki-side-nav a[href='/accessories/']:before,body.wiki-shell .wiki-side-nav a[href='/beginner-guide/']:before,body.wiki-shell .wiki-side-nav a[href='/changelog/']:before{content:'';position:absolute;left:7px;top:3px;width:22px;height:24px;background:var(--nav-art) center/contain no-repeat}
body.wiki-shell .wiki-side-nav a[href='/commissions/']{--nav-art:url('/assets/ui/spool.webp')}
body.wiki-shell .wiki-side-nav a[href='/clients/'],body.wiki-shell .wiki-side-nav a[href='/beginner-guide/']{--nav-art:url('/assets/ui/book.webp')}
body.wiki-shell .wiki-side-nav a[href='/patterns/'],body.wiki-shell .wiki-side-nav a[href='/changelog/']{--nav-art:url('/assets/ui/pattern-paper.webp')}
body.wiki-shell .wiki-side-nav a[href='/fabrics/']{--nav-art:url('/assets/ui/fabric-rolls.webp')}
body.wiki-shell .wiki-side-nav a[href='/accessories/']{--nav-art:url('/assets/ui/lace.webp')}
@media(min-width:1101px){
 body.wiki-shell .wiki-home .wiki-intro{min-height:161px}
 body.wiki-shell .wiki-home .wiki-intro>.last-updated{position:absolute;right:0;bottom:0;font-size:10px;background:#f2e8d4;padding:2px 4px;margin:0}
 body.wiki-shell .wiki-home .wiki-start-card{min-height:90px;padding-top:8px;padding-bottom:8px;padding-left:55px}
 body.wiki-shell .wiki-home .wiki-start-card:before{width:38px;left:7px}
 body.wiki-shell .wiki-home .wiki-start-card p{font-size:12px;line-height:1.28}
 body.wiki-shell .wiki-home .wiki-section{margin-top:4px}
 body.wiki-shell .wiki-home .wiki-section-head{margin-bottom:5px}
 body.wiki-shell .wiki-home .wiki-category-card{min-height:114px}
 body.wiki-shell .wiki-home .wiki-category-card h3{min-height:29px;padding-top:2px;padding-bottom:2px}
 body.wiki-shell .wiki-home .wiki-category-card li{font-size:13px;line-height:1.23}
 body.wiki-shell .wiki-home .wiki-loop-steps li{min-height:75px;padding-left:48px;padding-top:7px;padding-bottom:7px}
 body.wiki-shell .wiki-home .wiki-loop-steps li:before{width:36px;left:5px}
 body.wiki-shell .wiki-home .wiki-loop-steps span{font-size:12px;line-height:1.23}
 body.wiki-shell .wiki-home .wiki-problems li{margin:0}
}
body.wiki-shell :focus-visible{outline:2px solid #9e5042;outline-offset:3px}
@media(max-width:1100px) and (min-width:761px){body.wiki-shell .wiki-frame{grid-template-columns:240px minmax(0,1fr)}body.wiki-shell .wiki-home .wiki-intro>h1{font-size:39px}body.wiki-shell .wiki-home .wiki-intro>.wiki-stats{width:100%;position:relative}body.wiki-shell .wiki-home .wiki-intro:after{height:143px}body.wiki-shell .wiki-home .wiki-start-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-home .wiki-loop-steps{grid-template-columns:repeat(3,minmax(0,1fr))}body.wiki-shell .wiki-home .wiki-home-updates{grid-template-columns:1fr}body.wiki-shell .wiki-home .wiki-problems{border:0;padding:0}}
@media(max-width:900px) and (min-width:761px){body.wiki-shell .wiki-frame{grid-template-columns:210px minmax(0,1fr)}body.wiki-shell .wiki-logo{font-size:24px}body.wiki-shell .wiki-home .wiki-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.wiki-shell .wiki-frame{display:block;margin:0;border:0;box-shadow:none}body.wiki-shell .wiki-sidebar{width:min(82vw,320px);border-right:4px double #8f7658}body.wiki-shell .wiki-content.container{padding:14px 18px 45px}body.wiki-shell .wiki-main-area:after{inset:59px 5px 5px}body.wiki-shell .wiki-topbar .header-inner{padding:0 12px}body.wiki-shell .wiki-report{display:none}body.wiki-shell .wiki-home .wiki-intro{min-height:0;padding-bottom:110px}body.wiki-shell .wiki-home .wiki-intro:after{top:auto;bottom:0;right:0;width:100%;height:103px;background-position:center}body.wiki-shell .wiki-home .wiki-intro>h1{max-width:none;font-size:36px}body.wiki-shell .wiki-home .wiki-intro>p:not(.last-updated){max-width:none;font-size:16px;line-height:1.5}body.wiki-shell .wiki-home .wiki-intro>.wiki-stats{width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}body.wiki-shell .wiki-home .wiki-stats li{padding-left:34px}body.wiki-shell .wiki-home .wiki-stats li:before{width:25px}body.wiki-shell .wiki-home .wiki-start-grid,body.wiki-shell .wiki-home .wiki-category-grid,body.wiki-shell .wiki-home .wiki-explain,body.wiki-shell .wiki-home .wiki-home-updates,body.wiki-shell .wiki-home .wiki-guide-list{grid-template-columns:1fr}body.wiki-shell .wiki-home .wiki-start-card{min-height:83px;padding-top:12px;padding-bottom:12px}body.wiki-shell .wiki-home .wiki-start-card p{font-size:14px;line-height:1.4}body.wiki-shell .wiki-home .wiki-loop-steps{grid-template-columns:1fr;gap:7px}body.wiki-shell .wiki-home .wiki-loop-steps li{min-height:66px;padding:11px 10px 11px 61px}body.wiki-shell .wiki-home .wiki-loop-steps li:before{top:10px}body.wiki-shell .wiki-home .wiki-loop-steps strong{font-size:15px}body.wiki-shell .wiki-home .wiki-loop-steps span{font-size:14px}body.wiki-shell .wiki-home .wiki-explain p{font-size:15px;line-height:1.5}body.wiki-shell .wiki-home .wiki-explain p+p{border:0;padding:0}body.wiki-shell .wiki-home .wiki-category-card{min-height:140px}body.wiki-shell .wiki-home .wiki-category-card li{font-size:15px;line-height:1.5}body.wiki-shell .wiki-home .wiki-category-card .wiki-category-more{font-size:14px}body.wiki-shell .wiki-home .wiki-guide-list li,body.wiki-shell .wiki-home .wiki-problems li{font-size:15px;padding:5px 0}body.wiki-shell .wiki-home .wiki-problems{border:0;padding:0}body.wiki-shell .wiki-content .content-wrapper .main-content h1{font-size:33px;padding:8px 0 14px;min-height:0;background:none}body.wiki-shell .wiki-content .content-wrapper .main-content h2{font-size:25px}body.wiki-shell .wiki-content .database-layout .db-table-scroll td{background:transparent;border:0;padding:3px 0}body.wiki-shell .wiki-content .database-layout .db-controls input,body.wiki-shell .wiki-content .database-layout .db-controls select{min-width:0;width:100%}}

/* Database-first wiki UI. Reading-guide rules stay in wiki-guides.css. */
body.wiki-shell .wiki-content .wiki-catalog,body.wiki-shell .wiki-content .wiki-entity{width:100%;min-width:0;color:#40352e;font:16px/1.5 'Source Serif 4',Georgia,serif}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) h1{font:700 40px/1.12 'Fraunces',Georgia,serif;margin:3px 0 12px;color:#352820}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) h2{font:700 25px/1.2 'Fraunces',Georgia,serif;margin:22px 0 12px;padding-bottom:9px;border-bottom:1px dotted #bd826d;color:#352820;scroll-margin-top:78px}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) h3{font:700 19px/1.25 'Source Serif 4',Georgia,serif;margin:8px 0;color:#352820}
body.wiki-shell .wiki-content .catalog-header,body.wiki-shell .wiki-content .entity-header{padding-bottom:16px;margin-bottom:20px;border-bottom:1px dotted #bd826d}
body.wiki-shell .wiki-content .catalog-header{padding-right:165px;background:url('/assets/ui/header-atelier.webp') right top/155px auto no-repeat;min-height:110px}
body.wiki-shell .wiki-content .catalog-header p{max-width:800px;margin:6px 0}
body.wiki-shell .wiki-content :is(.catalog-stats,.entity-stats){display:flex;gap:9px;flex-wrap:wrap;margin:12px 0;padding:0;list-style:none}
body.wiki-shell .wiki-content :is(.catalog-stats,.entity-stats)>*{padding:6px 11px;margin:0;border:1px solid #bfa57e;background:#f8efdc}
body.wiki-shell .wiki-content .catalog-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:22px;align-items:start}
body.wiki-shell .wiki-content .catalog-filters{padding:16px;background:#eee2cb;border:1px solid #bda37d;min-width:0;position:sticky;top:74px}
body.wiki-shell .wiki-content .catalog-filters h2{font-size:21px;margin:0 0 14px}
body.wiki-shell .wiki-content .catalog-filters label{display:block;margin-bottom:14px;font-size:15px}
body.wiki-shell .wiki-content .catalog-filters :is(input,select){display:block;width:100%;margin-top:5px}
body.wiki-shell .wiki-content :is(.catalog-workspace,.catalog-aside){min-width:0}
body.wiki-shell .wiki-content .catalog-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:14px;background:#eee2cb;border:1px solid #bda37d}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) :is(input[type=search],select,button){font:15px/1.35 'Source Serif 4',Georgia,serif;color:#40352e;background:#fbf3e2;border:1px solid #bda37d;border-radius:3px;min-height:36px;padding:6px 10px;max-width:100%}
body.wiki-shell .wiki-content .catalog-toolbar input[type=search]{flex:1 1 240px;min-width:0}
body.wiki-shell .wiki-content .catalog-toolbar label{display:flex;align-items:center;gap:6px;font-size:14px}
body.wiki-shell .wiki-content .catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
body.wiki-shell .wiki-content .catalog-card{position:relative;min-width:0;padding:10px 12px 12px;margin:0;background:#f8efdc;border:1px solid #bca27d;box-shadow:inset 0 0 0 3px #eee1c9;border-radius:3px}
body.wiki-shell .wiki-content .catalog-card h3{font-size:17px;line-height:1.3;margin:8px 0}
body.wiki-shell .wiki-content .catalog-card p{margin:5px 0;font-size:14px;line-height:1.4}
body.wiki-shell .wiki-content .catalog-card :is(ul,ol){margin:8px 0;padding-left:18px;font-size:14px}
body.wiki-shell .wiki-content .catalog-card li{margin:3px 0;padding:0}
body.wiki-shell .wiki-content .catalog-card dl{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:8px 0;font-size:14px}
body.wiki-shell .wiki-content .catalog-card dd{margin:0;text-align:right}
body.wiki-shell .wiki-content .entity-media{display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden;aspect-ratio:1/1;margin:0;background:#eee2cb;border:1px solid #cfba98}
body.wiki-shell .wiki-content .entity-media img{display:block;width:100%;height:100%;object-fit:contain;padding:6px;margin:0}
body.wiki-shell .wiki-content .entity-image-placeholder{display:flex;width:100%;height:100%;min-height:130px;flex-direction:column;align-items:center;justify-content:center;gap:13px;color:#685846;font:13px/1.3 Georgia,serif;background:#eee2cb}
body.wiki-shell .wiki-content .placeholder-frame{display:block;width:44px;height:35px;border:1px dashed #a78f70;position:relative}
body.wiki-shell .wiki-content .placeholder-frame:after{content:'';position:absolute;width:17px;height:17px;border:1px solid #a78f70;left:12px;top:8px}
body.wiki-shell .wiki-content .catalog-group{margin-bottom:22px;min-width:0}
body.wiki-shell .wiki-content .catalog-group>h2{margin-top:10px}
body.wiki-shell .wiki-content [data-catalog-grouped] .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.wiki-shell .wiki-content [data-catalog-grouped] .catalog-card .entity-media{width:75px;float:right;margin:0 0 6px 10px}
body.wiki-shell .wiki-content [data-catalog-grouped] .entity-image-placeholder{min-height:75px;font-size:10px;gap:5px}
body.wiki-shell .wiki-content .catalog-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin:20px 0}
body.wiki-shell .wiki-content .catalog-pagination button:disabled{opacity:.5;cursor:default}
body.wiki-shell .wiki-content .catalog-chip{margin:0 6px 8px 0}
body.wiki-shell .wiki-content .catalog-empty{padding:24px;background:#eee2cb;border:1px dashed #bda37d}
body.wiki-shell .wiki-content [data-catalog-view=unused]{display:none}
body.wiki-shell .wiki-content [data-view=list] .catalog-grid{grid-template-columns:1fr}
body.wiki-shell .wiki-content [data-view=list] .catalog-card{display:grid;grid-template-columns:85px minmax(0,1fr);column-gap:16px}
body.wiki-shell .wiki-content [data-view=list] .catalog-card>.entity-media{grid-column:1;grid-row:1/span 6;width:85px;float:none}
body.wiki-shell .wiki-content [data-view=list] .catalog-card>:not(.entity-media){grid-column:2}
body.wiki-shell .wiki-content [data-view=list] .entity-image-placeholder{min-height:85px;font-size:11px}
body.wiki-shell .wiki-content .entity-hero{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start;margin:16px 0 24px}
body.wiki-shell .wiki-content .entity-summary p{margin:9px 0}
body.wiki-shell .wiki-content .entity-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:start}
body.wiki-shell .wiki-content .entity-toc{position:sticky;top:74px;background:#f8efdc;border:1px solid #bda37d;padding:13px 16px;min-width:0}
body.wiki-shell .wiki-content .entity-toc :is(ul,ol){padding-left:17px;margin:7px 0}
body.wiki-shell .wiki-content .entity-toc li{margin:6px 0;padding:0;font-size:14px}
body.wiki-shell .wiki-content .entity-body{min-width:0}
body.wiki-shell .wiki-content .entity-facts{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:0;margin:12px 0;border:1px solid #bda37d}
body.wiki-shell .wiki-content .entity-facts :is(dt,dd){margin:0;padding:9px 12px;border-bottom:1px solid #cfba98;background:#f8efdc}
body.wiki-shell .wiki-content .entity-facts :is(dt,dd){min-width:0;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .entity-facts dt{font-weight:600;background:#eee2cb}
body.wiki-shell .wiki-content :is(.entity-body,.entity-summary) table{width:100%;border-collapse:collapse;font-size:15px;background:#f8efdc}
body.wiki-shell .wiki-content :is(.entity-body,.entity-summary) th{background:#59674f!important;color:#fff5e6!important}
body.wiki-shell .wiki-content :is(.entity-body,.entity-summary) :is(th,td){padding:8px 12px;border:1px solid #bda37d;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .entity-related{display:flex;flex-wrap:wrap;gap:9px;margin:13px 0}
body.wiki-shell .wiki-content .entity-related a{padding:6px 10px;background:#eee2cb;border:1px solid #bda37d}
body.wiki-shell .wiki-content .wiki-entity .entity-body table{min-width:0!important;max-width:100%;table-layout:fixed}
body.wiki-shell .wiki-content .wiki-entity .entity-body :is(th,td){white-space:normal!important;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .wiki-entity .entity-body tbody th{background:#eee2cb!important;color:#40352e!important}
body.wiki-shell .wiki-content .entity-neighbours{display:flex;justify-content:space-between;gap:16px;margin-top:22px;padding-top:15px;border-top:1px dotted #bd826d}
body.wiki-shell .wiki-content .catalog-card{color:#40352e!important;text-decoration:none!important}
body.wiki-shell .wiki-content .catalog-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
body.wiki-shell .wiki-content .catalog-chips a{display:block;padding:5px 10px;background:#f8efdc;border:1px solid #bda37d;text-decoration:none}
body.wiki-shell .wiki-content .catalog-chips a[aria-current=page]{background:#59674f;color:#fff5e6!important}
body.wiki-shell .wiki-content .catalog-card a{color:#40352e!important;text-decoration:none!important}
body.wiki-shell .wiki-content .client-entity #commissions ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;list-style:none;padding:0}
body.wiki-shell .wiki-content .client-entity #commissions li{padding:11px 13px;background:#f8efdc;border:1px solid #bda37d;margin:0}
body.wiki-shell .wiki-content .client-entity #commissions li a{display:block;margin-bottom:7px;background:none;border:0;padding:0;font-weight:600}
body.wiki-shell .wiki-content .client-entity #unlocks>section{padding:12px 15px;margin:12px 0;background:#f8efdc;border:1px solid #bda37d}
@media(max-width:760px){body.wiki-shell .wiki-content .client-entity #commissions ul{grid-template-columns:1fr}}

body.wiki-shell .wiki-content .catalog-card :is(h2,h3){font-size:18px;line-height:1.3;margin:8px 0;padding:0;border:0;text-decoration:underline;text-underline-offset:3px}
body.wiki-shell .wiki-content .catalog-card:hover{border-color:#946750;background:#fbf3e2}
body.wiki-shell .wiki-content .catalog-card-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
body.wiki-shell .wiki-content .catalog-card-tags .tag{margin:0;background:#59674f!important;color:#fff5e6!important}
body.wiki-shell .wiki-content .catalog-card .entity-media{aspect-ratio:4/3}
body.wiki-shell .wiki-content .catalog-card-media{display:block}
body.wiki-shell .wiki-content [data-view=list] .catalog-card>.catalog-card-media{grid-column:1;grid-row:1/span 8;width:85px}
body.wiki-shell .wiki-content [data-view=list] .catalog-card .entity-media{aspect-ratio:1}
body.wiki-shell .wiki-content .patterns-catalog .catalog-layout{grid-template-columns:minmax(0,1fr)205px}
body.wiki-shell .wiki-content .patterns-catalog .catalog-filters{position:static;display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;padding:12px}
body.wiki-shell .wiki-content .patterns-catalog .catalog-filters label{flex:1 1 150px;min-width:0;margin:0}
body.wiki-shell .wiki-content .patterns-catalog .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.wiki-shell .wiki-content .catalog-aside>section{padding:12px 15px;margin-bottom:14px;border:1px solid #bda37d;background:#eee2cb;font-size:15px}
body.wiki-shell .wiki-content .catalog-aside h2{font-size:20px;margin-top:0}
body.wiki-shell .wiki-content .entity-summary dl.entity-stats{display:grid;grid-template-columns:minmax(105px,1fr) 2fr;gap:0;max-width:470px}
body.wiki-shell .wiki-content .entity-summary dl.entity-stats :is(dt,dd){margin:0;padding:8px 12px;border:1px solid #bda37d}
body.wiki-shell .wiki-content :is(.client-entity,.commission-entity) .entity-hero{grid-template-columns:180px minmax(0,1fr)230px}
body.wiki-shell .wiki-content :is(.client-entity,.commission-entity) aside.entity-facts{display:block;padding:12px;margin:0}
body.wiki-shell .wiki-content aside.entity-facts h2{font-size:21px;margin-top:0}
body.wiki-shell .wiki-content aside.entity-facts dl{display:grid;grid-template-columns:1fr 1.3fr;font-size:14px;margin:0}
body.wiki-shell .wiki-content .entity-toc>a{display:block;margin:8px 0}
body.wiki-shell .wiki-content section.entity-related{display:block}
body.wiki-shell .wiki-content section.entity-facts{display:block;padding:12px;margin:10px 0}
body.wiki-shell .wiki-content section.entity-facts dl{display:grid;grid-template-columns:130px 1fr;margin:0}
body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) [hidden]{display:none!important}
@media(max-width:1100px){body.wiki-shell .wiki-content .patterns-catalog .catalog-layout{grid-template-columns:minmax(0,1fr)}body.wiki-shell .wiki-content .patterns-catalog .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.wiki-shell .wiki-content :is(.client-entity,.commission-entity) .entity-hero{grid-template-columns:170px minmax(0,1fr)}body.wiki-shell .wiki-content aside.entity-facts{grid-column:1/-1}}
@media(max-width:760px){body.wiki-shell .wiki-content .patterns-catalog .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content :is(.client-entity,.commission-entity) .entity-hero{grid-template-columns:110px minmax(0,1fr)}body.wiki-shell .wiki-content section.entity-facts dl{grid-template-columns:100px minmax(0,1fr)}body.wiki-shell .wiki-content .entity-summary dl.entity-stats{grid-template-columns:90px minmax(0,1fr);font-size:14px}body.wiki-shell .wiki-content .entity-summary dl.entity-stats :is(dt,dd){padding:7px}}

@media(max-width:1199px){body.wiki-shell .wiki-content .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){body.wiki-shell .wiki-content .catalog-layout{grid-template-columns:175px minmax(0,1fr);gap:15px}body.wiki-shell .wiki-content .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .entity-layout{grid-template-columns:155px minmax(0,1fr);gap:16px}}
@media(max-width:760px){body.wiki-shell .wiki-content :is(.wiki-catalog,.wiki-entity) h1{font-size:32px}body.wiki-shell .wiki-content .catalog-header{padding-right:0;background:none;min-height:0}body.wiki-shell .wiki-content .catalog-layout,body.wiki-shell .wiki-content .entity-layout{display:block}body.wiki-shell .wiki-content .catalog-filters{position:static;display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin-bottom:16px;padding:12px}body.wiki-shell .wiki-content .catalog-filters h2{grid-column:1/-1}body.wiki-shell .wiki-content .catalog-filters label{font-size:14px;margin-bottom:11px}body.wiki-shell .wiki-content .catalog-toolbar{padding:9px;gap:8px}body.wiki-shell .wiki-content .catalog-toolbar select{max-width:145px}body.wiki-shell .wiki-content .catalog-grid{gap:10px}body.wiki-shell .wiki-content .catalog-card{padding:8px;font-size:14px}body.wiki-shell .wiki-content .catalog-card h3{font-size:16px}body.wiki-shell .wiki-content .entity-image-placeholder{min-height:115px;font-size:11px}body.wiki-shell .wiki-content [data-catalog-grouped] .catalog-grid{grid-template-columns:1fr}body.wiki-shell .wiki-content .entity-hero{grid-template-columns:110px minmax(0,1fr);gap:14px}body.wiki-shell .wiki-content .entity-hero .entity-image-placeholder{min-height:110px}body.wiki-shell .wiki-content .entity-toc{position:static;margin-bottom:18px}body.wiki-shell .wiki-content .entity-toc ul{display:flex;flex-wrap:wrap;gap:4px 18px;list-style:none;padding:0}body.wiki-shell .wiki-content .entity-facts{grid-template-columns:minmax(88px,1fr) 2fr;font-size:14px}body.wiki-shell .wiki-content .entity-facts :is(dt,dd){padding:8px}body.wiki-shell .wiki-content .entity-body table{font-size:14px}body.wiki-shell .wiki-content .entity-body :is(th,td){padding:7px}body.wiki-shell .wiki-content .catalog-pagination{gap:10px;font-size:14px}}

/* Owner's second-round wiki design: stitched reference binder, not a raw-data app. */
@media(max-width:760px){body.wiki-shell .wiki-content article.commissions-catalog a.commission-card{display:block}body.wiki-shell .wiki-content article.commissions-catalog a.commission-card>.entity-media{width:100%;height:65px;min-height:0;aspect-ratio:auto}body.wiki-shell .wiki-content article.commissions-catalog a.commission-card .entity-image-placeholder{flex-direction:row;min-height:0;height:65px;gap:7px}body.wiki-shell .wiki-content article.commissions-catalog a.commission-card .entity-image-placeholder .placeholder-art{width:36px;height:48px}body.wiki-shell .wiki-content article.commissions-catalog a.commission-card .entity-image-placeholder span{max-width:66px}}

body.wiki-shell .wiki-main-area{background:#f2e8d1 url('/assets/ui/clean-paper.svg') repeat}
body.wiki-shell .wiki-content .wiki-home .wiki-section{margin-top:30px}
body.wiki-shell .wiki-content .wiki-home .wiki-section-head{margin-bottom:12px}
body.wiki-shell .wiki-content .wiki-home .wiki-intro{margin-bottom:28px}
body.wiki-shell .wiki-content .wiki-home .wiki-home-updates{margin-top:8px}
body.wiki-shell .wiki-content .wiki-home .wiki-stats li{padding:0;transition:background .15s}
body.wiki-shell .wiki-content .wiki-home .wiki-stats li:hover{background:#ead7b9}
body.wiki-shell .wiki-content .wiki-home .wiki-stats li:before{pointer-events:none}
body.wiki-shell .wiki-content .wiki-home .wiki-stats a{display:block;padding:7px 3px 7px 38px;min-height:54px;color:#352820!important;text-decoration:none!important}
body.wiki-shell .wiki-content .wiki-home .wiki-category-card h3 a{color:#fff5e6!important;text-decoration:none!important}
body.wiki-shell .wiki-content .wiki-home .wiki-category-card h3 a:hover{text-decoration:underline!important}
body.wiki-shell .wiki-content .wiki-home .wiki-category-card ul{margin-top:9px;margin-bottom:8px}
body.wiki-shell .wiki-content .wiki-home .wiki-category-card li{line-height:1.45;margin:3px 0}
body.wiki-shell .wiki-content .wiki-catalog,body.wiki-shell .wiki-content .wiki-entity{font-family:'Source Serif 4',Georgia,serif;color:#3f3027}
body.wiki-shell .wiki-content .catalog-header{position:relative;isolation:isolate;min-height:160px;padding:6px 31% 18px 0;margin-bottom:18px;border-bottom:1px dashed #b88468}
body.wiki-shell .wiki-content .catalog-header:after{content:'';position:absolute;z-index:-1;right:0;bottom:0;width:30%;height:160px;background:url('/assets/ui/header-atelier.webp') center right/contain no-repeat;pointer-events:none}
body.wiki-shell .wiki-content .catalog-header h1{font:700 45px/1.1 Georgia,serif;margin:4px 0 14px;border:0}
body.wiki-shell .wiki-content .catalog-header p{font-size:16px;line-height:1.5;max-width:690px;margin:0}
body.wiki-shell .wiki-content .materials-catalog .catalog-header:after{background-image:url('/assets/ui/fabric-rolls.webp');background-size:auto 125px;opacity:.9}
body.wiki-shell .wiki-content .patterns-catalog .catalog-header{padding-right:25%}
body.wiki-shell .wiki-content .patterns-catalog .catalog-header:after{background-image:url('/assets/ui/pattern-paper.webp');width:23%;height:135px}
body.wiki-shell .wiki-content .catalog-stats{gap:0;margin:15px 0 22px;border:1px solid #bea280;border-radius:4px;background:#f8efdd;box-shadow:inset 0 0 0 3px #eee2cc}
body.wiki-shell .wiki-content .catalog-stats>span,body.wiki-shell .wiki-content .catalog-stats>div{flex:1;min-width:90px;border:0;border-right:1px solid #c9af8c;background:transparent;padding:10px 16px;box-shadow:none}
body.wiki-shell .wiki-content .catalog-stats>span:last-child,body.wiki-shell .wiki-content .catalog-stats>div:last-child{border-right:0}
body.wiki-shell .wiki-content .catalog-stats strong{font:700 27px/1.1 Georgia,serif;color:#3d2921}
body.wiki-shell .wiki-content .catalog-toolbar{background:#f5e9d3;border:1px solid #c3a586;border-radius:4px;padding:13px 16px;gap:10px;margin-bottom:16px}
body.wiki-shell .wiki-content .catalog-filters{background:#f8efdc;box-shadow:inset 0 0 0 3px #eee1c9;border:1px solid #b78f6b;border-radius:4px;padding:17px}
body.wiki-shell .wiki-content .catalog-filters h2{margin:-17px -17px 17px;padding:9px 16px;background:#a55848;color:#fff5e7!important;border-bottom:2px solid #8e493e;border-radius:3px 3px 0 0;font:700 21px Georgia,serif}
body.wiki-shell .wiki-content .catalog-filters label{font:600 14px/1.3 'Source Serif 4',Georgia,serif;margin-top:15px}
body.wiki-shell .wiki-content .catalog-filters input,body.wiki-shell .wiki-content .catalog-filters select,body.wiki-shell .wiki-content .catalog-toolbar input,body.wiki-shell .wiki-content .catalog-toolbar select{border:1px solid #b59674;border-radius:3px;background:#fff6e5;color:#3b2e24;min-height:37px;padding:7px 9px;font:14px 'Source Serif 4',Georgia,serif}
body.wiki-shell .wiki-content .catalog-grid{gap:14px}
body.wiki-shell .wiki-content .catalog-card{background:#f9f0df;border:1px solid #c1a382;border-radius:4px;box-shadow:inset 0 0 0 3px #efe2cc,0 2px 3px #6d513414;padding:13px;color:#3e2c23;transition:background .15s,box-shadow .15s,transform .15s;position:relative}
body.wiki-shell .wiki-content .catalog-card:hover{background:#fff5e4;border-color:#a9795b;box-shadow:inset 0 0 0 3px #eee0c7,0 3px 7px #60402726;transform:translateY(-2px)}
body.wiki-shell .wiki-content .catalog-card h3{font:700 18px/1.2 Georgia,serif;margin:9px 0 6px;letter-spacing:0}
body.wiki-shell .wiki-content .catalog-card h2{font:700 24px/1.2 Georgia,serif}
body.wiki-shell .wiki-content .catalog-card p{font:13px/1.4 'Source Serif 4',Georgia,serif;margin:5px 0}
body.wiki-shell .wiki-content .catalog-card .catalog-card-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:9px}
body.wiki-shell .wiki-content .catalog-card .tag{font:12px/1.25 'Source Serif 4',Georgia,serif;background:#e3e8d5;color:#3d4931;border:1px solid #aab091;padding:3px 5px;border-radius:3px;text-transform:none;letter-spacing:0}
body.wiki-shell .wiki-content .wiki-catalog a.catalog-card,body.wiki-shell .wiki-content .wiki-catalog .catalog-card a{color:#3e2c23!important;text-decoration:none!important}
body.wiki-shell .wiki-content .catalog-card .tag.tag--sage{background:#e3e8d5;color:#3d4931}
body.wiki-shell .wiki-content .catalog-group>header h2{border:0;padding:0}
body.wiki-shell .wiki-content .entity-toc ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}
body.wiki-shell .wiki-content .entity-toc li{margin:0;padding:0}
body.wiki-shell .wiki-content dl.entity-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 15px;padding:13px 0;margin:0}
body.wiki-shell .wiki-content dl.entity-stats dt{grid-row:1;font-size:12px;color:#6b5640}
body.wiki-shell .wiki-content dl.entity-stats dd{grid-row:2;margin:0;font:600 20px/1.25 Georgia,serif}
body.wiki-shell .wiki-content .material-detail dl.entity-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
body.wiki-shell .wiki-content .material-detail .entity-hero,body.wiki-shell .wiki-content .pattern-entity .entity-hero{grid-template-columns:210px minmax(0,1fr)}
body.wiki-shell .wiki-content .entity-hero .entity-facts dt,body.wiki-shell .wiki-content .entity-hero .entity-facts dd{background:transparent;font-size:13px}
body.wiki-shell .wiki-content .entity-hero .entity-facts dl{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
body.wiki-shell .wiki-content .entity-header>h1{font:700 40px/1.12 Georgia,serif;margin:10px 0}
body.wiki-shell .wiki-content .entity-requirements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.wiki-shell .wiki-content .requirement-card p{font-size:14px;line-height:1.5;margin:0}
body.wiki-shell .wiki-content .client-commission-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.wiki-shell .wiki-content .client-commission-card{display:block;padding:15px;border:1px solid #c3a37c;background:#f8edda;border-radius:4px;color:#3d2b22!important;text-decoration:none!important;box-shadow:inset 0 0 0 3px #eee0c8}
body.wiki-shell .wiki-content .client-commission-card>strong{font:700 18px/1.3 Georgia,serif;display:block}
body.wiki-shell .wiki-content .client-commission-card dl{display:grid;grid-template-columns:1fr auto;gap:3px;margin:12px 0;font-size:13px}
body.wiki-shell .wiki-content .client-commission-card dl dt,body.wiki-shell .wiki-content .client-commission-card dl dd{margin:0}
body.wiki-shell .wiki-content .client-commission-card>span{font-size:12px;color:#715742}
body.wiki-shell .wiki-content .client-star-unlocks,body.wiki-shell .wiki-content .entity-unlock-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
body.wiki-shell .wiki-content .entity-unlock-card{padding:17px;border:1px solid #c5a57f;background:#f8efdc;border-radius:4px}
body.wiki-shell .wiki-content .client-star-unlocks h3,body.wiki-shell .wiki-content .entity-unlock-stars{color:#765336}
body.wiki-shell .wiki-content .entity-style-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));list-style:none;padding:0;margin:0;gap:9px 18px}
body.wiki-shell .wiki-content .entity-style-row{display:grid;grid-template-columns:105px minmax(0,1fr) 35px;align-items:center;gap:10px;padding:8px 12px;border-radius:3px;background:#e5e7d6;font-size:14px;margin:0}
body.wiki-shell .wiki-content .entity-style-negative .entity-style-row{background:#efded3}
body.wiki-shell .wiki-content .entity-style-zero .entity-style-row{grid-template-columns:1fr auto;background:#eee7d9}
body.wiki-shell .wiki-content meter.entity-style-bar{width:100%;height:14px;accent-color:#7c8b60}
body.wiki-shell .wiki-content .entity-style-negative meter.entity-style-bar{accent-color:#b5755d}
body.wiki-shell .wiki-content .style-bar-label{min-width:85px}
body.wiki-shell .wiki-content .style-bar-track{height:7px;background:#cdd2bb;flex:1;min-width:20px;border-radius:6px;overflow:hidden}
body.wiki-shell .wiki-content .style-bar-fill{display:block;height:100%;background:#7f8b5f}
body.wiki-shell .wiki-content .is-negative .style-bar-track{background:#dbc4b7}
body.wiki-shell .wiki-content .is-negative .style-bar-fill{background:#b8755a}
body.wiki-shell .wiki-content .style-bar-value{min-width:36px;text-align:right}
body.wiki-shell .wiki-content .entity-making-card{display:grid;grid-template-columns:170px minmax(0,1fr);gap:0;background:#f8efdc;border:1px solid #c4a17c;padding:12px 17px}
body.wiki-shell .wiki-content .entity-making-card dt,body.wiki-shell .wiki-content .entity-making-card dd{margin:0;padding:9px 0;border-bottom:1px solid #d9c3a3}
body.wiki-shell .wiki-content .entity-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.wiki-shell .wiki-content .entity-related-card{padding:14px;border:1px solid #c4a783;background:#f8efdc;border-radius:4px}
body.wiki-shell .wiki-content .entity-related-card h3{font-size:18px}
body.wiki-shell .wiki-content .entity-related-card p{font-size:13px}
@media(max-width:1200px){body.wiki-shell .wiki-content .material-detail .entity-hero,body.wiki-shell .wiki-content .pattern-entity .entity-hero{grid-template-columns:160px minmax(0,1fr)}body.wiki-shell .wiki-content .client-commission-cards,body.wiki-shell .wiki-content .entity-requirements{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .client-star-unlocks,body.wiki-shell .wiki-content .entity-unlock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.wiki-shell .wiki-content .material-detail .entity-hero,body.wiki-shell .wiki-content .pattern-entity .entity-hero{grid-template-columns:100px minmax(0,1fr)}body.wiki-shell .wiki-content .entity-hero .entity-facts dl{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}body.wiki-shell .wiki-content .client-commission-cards,body.wiki-shell .wiki-content .entity-requirements,body.wiki-shell .wiki-content .entity-style-list,body.wiki-shell .wiki-content .entity-related-grid{grid-template-columns:1fr}body.wiki-shell .wiki-content dl.entity-stats{grid-template-columns:1fr;gap:3px}body.wiki-shell .wiki-content dl.entity-stats dt,body.wiki-shell .wiki-content dl.entity-stats dd{grid-row:auto}body.wiki-shell .wiki-content .material-detail dl.entity-stats{grid-template-columns:1fr}body.wiki-shell .wiki-content dl.entity-stats dd{font-size:18px;margin-bottom:7px}body.wiki-shell .wiki-content .entity-making-card{grid-template-columns:120px minmax(0,1fr);font-size:13px}body.wiki-shell .wiki-content .entity-making-card dt,body.wiki-shell .wiki-content .entity-making-card dd{padding:8px 0}}

body.wiki-shell .wiki-content .catalog-card-unlock{color:#665344}
body.wiki-shell .wiki-content .entity-media{border:0!important;border-radius:2px;margin:0;background:transparent!important;aspect-ratio:8/5;overflow:hidden}
body.wiki-shell .wiki-content .entity-media.is-placeholder{border:0!important;outline:0;background:transparent!important;box-shadow:none}
body.wiki-shell .wiki-content .entity-image-placeholder{position:relative;width:100%;height:100%;min-height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#74604d;background:radial-gradient(ellipse at center,#eee3cd 0%,#f8efde00 73%);border:0!important}
body.wiki-shell .wiki-content .entity-image-placeholder .placeholder-art{width:84px;height:84px;object-fit:contain;padding:0!important;opacity:.85;filter:sepia(.1);border:0;aspect-ratio:auto}
body.wiki-shell .wiki-content .entity-image-placeholder span{font:italic 11px/1.3 'Source Serif 4',Georgia,serif;letter-spacing:0;text-align:center;padding:0 3px}
body.wiki-shell .wiki-content .catalog-group{margin:26px 0}
body.wiki-shell .wiki-content .catalog-group>header{display:flex;align-items:center;gap:15px;padding:10px 13px;border:1px solid #c5a581;border-left:4px solid #b86652;background:#eadeca;border-radius:3px;margin-bottom:10px}
body.wiki-shell .wiki-content .catalog-group>header h2{font:700 25px/1.2 Georgia,serif;margin:0;display:flex;align-items:center;gap:8px}
body.wiki-shell .wiki-content .catalog-group>header h2:before{content:'';width:30px;height:35px;background:url('/assets/ui/book.webp') center/contain no-repeat;flex:none}
body.wiki-shell .wiki-content .catalog-group>header a{margin-left:auto;font-size:13px}
body.wiki-shell .wiki-content .commissions-catalog .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.wiki-shell .wiki-content .commissions-catalog .commission-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:9px;padding:10px;align-items:start}
body.wiki-shell .wiki-content .commissions-catalog .commission-card>.entity-media{grid-row:1;grid-column:1;width:54px;margin:0;align-self:center}
body.wiki-shell .wiki-content .commissions-catalog .commission-card>div{grid-row:1;grid-column:2;min-width:0}
body.wiki-shell .wiki-content .commissions-catalog .commission-card .entity-image-placeholder .placeholder-art{width:48px;height:65px}
body.wiki-shell .wiki-content .commissions-catalog .commission-card .entity-image-placeholder span{max-width:49px;padding:0;font-size:9px}

body.wiki-shell .wiki-content .commissions-catalog .commission-card .entity-media{aspect-ratio:1/2;min-height:90px}
body.wiki-shell .wiki-content .commissions-catalog .commission-card .entity-image-placeholder{min-height:80px;background:none}
body.wiki-shell .wiki-content .commissions-catalog .commission-card .placeholder-art{width:48px;height:65px}
body.wiki-shell .wiki-content .commissions-catalog .commission-card .entity-image-placeholder span{font-size:9px}
body.wiki-shell .wiki-content .commissions-catalog .commission-card h3{font-size:15px;margin:0 0 5px;min-height:36px}
body.wiki-shell .wiki-content .commissions-catalog .commission-card p{font-size:11px}
body.wiki-shell .wiki-content .commissions-catalog .commission-card dl{display:grid;grid-template-columns:1fr auto;gap:3px;margin:8px 0;font-size:11px}
body.wiki-shell .wiki-content .commissions-catalog .commission-card dl dt,body.wiki-shell .wiki-content .commissions-catalog .commission-card dl dd{margin:0}
body.wiki-shell .wiki-content .clients-catalog .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.wiki-shell .wiki-content .client-card{display:grid;grid-template-columns:100px minmax(0,1fr);gap:17px;align-items:center;padding:16px}
body.wiki-shell .wiki-content .client-card .entity-media{aspect-ratio:4/5}
body.wiki-shell .wiki-content .client-card h2{margin:0 0 7px}
body.wiki-shell .wiki-content .client-card dl{font-size:13px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin:12px 0}
body.wiki-shell .wiki-content .client-card dl dt{grid-row:1;font-size:11px;color:#695641}
body.wiki-shell .wiki-content .client-card dl dd{grid-row:2;margin:0;font-weight:600}
body.wiki-shell .wiki-content .catalog-reveal{background:#e8d7ba;border:1px solid #aa8763;color:#402e23;padding:10px 24px;border-radius:3px;font:15px Georgia,serif;cursor:pointer}
body.wiki-shell .wiki-content .catalog-scroll-marker{text-align:center;padding:24px 0}
body.wiki-shell .wiki-content .catalog-scroll-marker[hidden]{display:none!important}
body.wiki-shell .wiki-content .catalog-aside{font-size:14px;background:#f6ead2;border:1px solid #c4aa85;padding:17px;border-radius:4px}
body.wiki-shell .wiki-content .catalog-aside h2{font:700 20px/1.2 Georgia,serif}
body.wiki-shell .wiki-content .entity-hero{padding:20px 0 25px;margin-bottom:16px;border-bottom:1px dashed #bd8869;grid-template-columns:210px minmax(0,1fr) 230px;gap:24px}
body.wiki-shell .wiki-content .entity-hero>.entity-media{aspect-ratio:4/5;background:#e9ddc5!important;box-shadow:0 3px 7px #65462920;transform:rotate(-1deg);border:4px solid #f7efde!important;outline:1px solid #c5ad8c}
body.wiki-shell .wiki-content .entity-hero .entity-image-placeholder{min-height:220px}
body.wiki-shell .wiki-content .entity-hero .placeholder-art{width:135px;height:145px}
body.wiki-shell .wiki-content .entity-hero .entity-image-placeholder span{font-size:12px}
body.wiki-shell .wiki-content .entity-summary h1{font:700 39px/1.1 Georgia,serif;letter-spacing:-.025em;margin:3px 0 13px}
body.wiki-shell .wiki-content .entity-summary p{font:16px/1.55 'Source Serif 4',Georgia,serif;margin:12px 0}
body.wiki-shell .wiki-content .entity-kind{display:inline-block;background:#a25a55;color:#fff5e7;border:1px solid #87483e;border-radius:3px;padding:4px 9px;font:13px Georgia,serif}
body.wiki-shell .wiki-content .entity-hero>.entity-facts{background:#f8efdd;border:1px solid #b79872;box-shadow:inset 0 0 0 3px #eee0c8;padding:15px;border-radius:4px;align-self:start;grid-column:3}
body.wiki-shell .wiki-content .entity-facts h2{font:700 21px/1.2 Georgia,serif;margin:0 0 14px;border-bottom:1px dashed #c09671;padding-bottom:8px}
body.wiki-shell .wiki-content .entity-hero .entity-facts dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin:0}
body.wiki-shell .wiki-content .entity-facts dt,body.wiki-shell .wiki-content .entity-facts dd{background:transparent;border:0;border-bottom:1px solid #dac8ac;padding:8px 3px;margin:0;font-size:13px;overflow-wrap:anywhere;min-width:0}
body.wiki-shell .wiki-content .entity-layout{display:block;margin-top:20px;border:0;padding:0}
body.wiki-shell .wiki-content .entity-toc{display:flex;flex-wrap:wrap;align-items:center;gap:7px 16px;position:static;background:transparent;border:0;border-bottom:1px dashed #bf9777;padding:0 0 14px;margin-bottom:25px}
body.wiki-shell .wiki-content .entity-toc h2{font:700 17px Georgia,serif;margin:0;color:#6c4736}
body.wiki-shell .wiki-content .entity-toc a{display:inline-block;padding:5px 9px;border:1px solid #c6ab8c;background:#f8efdf;border-radius:3px;text-decoration:none!important;font:14px 'Source Serif 4',Georgia,serif}
body.wiki-shell .wiki-content .entity-body{font:16px/1.65 'Source Serif 4',Georgia,serif;min-width:0}
body.wiki-shell .wiki-content .entity-body>section{margin:0 0 32px}
body.wiki-shell .wiki-content .entity-body h2{font:700 26px/1.2 Georgia,serif;padding:0 0 10px;border-bottom:1px dashed #bd8064;margin:0 0 17px;color:#463025}
body.wiki-shell .wiki-content .entity-body h3{font:700 20px/1.25 Georgia,serif;margin:13px 0}
body.wiki-shell .wiki-content .entity-body table{width:100%;font-size:14px;table-layout:fixed;background:#fbf2e2;border:1px solid #c3a486}
body.wiki-shell .wiki-content .entity-body table th{background:#d9c9ab;color:#3e2c21!important;font-weight:600}
body.wiki-shell .wiki-content .entity-body td,body.wiki-shell .wiki-content .entity-body th{padding:11px 14px;border-color:#d9c5a7;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .entity-body [data-value^='-']{background:#f5e7dc}
body.wiki-shell .wiki-content .entity-body [data-value='0']{color:#6c6257}
body.wiki-shell .wiki-content .entity-related{margin-top:30px;gap:13px}
body.wiki-shell .wiki-content .entity-related>a{display:block;border:1px solid #c4a37f;border-radius:4px;background:#f8eedb;padding:14px;box-shadow:inset 0 0 0 3px #eee0c7}
body.wiki-shell .wiki-content .wiki-source-credit{font:12px/1.5 'Source Serif 4',Georgia,serif;border-top:1px dashed #c2a283;padding-top:13px;margin:26px 0 0;color:#695a4a}
body.wiki-shell .wiki-content .requirements-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.wiki-shell .wiki-content .requirement-card,body.wiki-shell .wiki-content .profile-panel,body.wiki-shell .wiki-content .unlock-card{border:1px solid #c5a783;border-radius:4px;background:#f8efdc;padding:16px}
body.wiki-shell .wiki-content .requirement-card h3{font-size:18px;margin:0 0 8px}
body.wiki-shell .wiki-content .style-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px}
body.wiki-shell .wiki-content .style-bars [data-style]{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 12px;background:#e8eadb;border-bottom:1px solid #bbc1a3;font-size:14px;border-radius:3px}
body.wiki-shell .wiki-content .style-bars [data-value^='-']{background:#f0dfd4;border-color:#caac9d}
body.wiki-shell .wiki-content .style-bars [data-value='0']{background:#eee7d9;border-color:#c9bda5}
@media(max-width:1200px){body.wiki-shell .wiki-content .commissions-catalog .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.wiki-shell .wiki-content .entity-hero{grid-template-columns:160px minmax(0,1fr);gap:20px}body.wiki-shell .wiki-content .entity-hero>.entity-facts{grid-column:1/-1}body.wiki-shell .wiki-content .entity-hero .entity-facts dl{grid-template-columns:repeat(4,minmax(0,1fr))}body.wiki-shell .wiki-content .catalog-header h1{font-size:40px}}
@media(max-width:1000px) and (min-width:761px){body.wiki-shell .wiki-content .commissions-catalog .catalog-grid,body.wiki-shell .wiki-content .clients-catalog .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .client-card{grid-template-columns:70px minmax(0,1fr);gap:10px;padding:12px}body.wiki-shell .wiki-content .catalog-header{padding-right:0;min-height:0}body.wiki-shell .wiki-content .catalog-header:after{display:none}body.wiki-shell .wiki-content .entity-summary h1{font-size:32px}body.wiki-shell .wiki-content .requirements-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){body.wiki-shell .wiki-content .wiki-home .wiki-section{margin-top:32px}body.wiki-shell .wiki-content .wiki-home .wiki-intro{margin-bottom:24px}body.wiki-shell .wiki-content .wiki-home .wiki-stats a{padding-left:34px}body.wiki-shell .wiki-content .catalog-header{padding-right:0;min-height:0;padding-bottom:18px}body.wiki-shell .wiki-content .catalog-header:after{display:none}body.wiki-shell .wiki-content .catalog-header h1{font-size:36px}body.wiki-shell .wiki-content .catalog-header p{font-size:15px}body.wiki-shell .wiki-content .catalog-stats>span,body.wiki-shell .wiki-content .catalog-stats>div{padding:9px 11px;font-size:12px}body.wiki-shell .wiki-content .catalog-stats strong{font-size:23px}body.wiki-shell .wiki-content .catalog-filters{padding:14px}body.wiki-shell .wiki-content .catalog-filters h2{margin:-14px -14px 14px}body.wiki-shell .wiki-content .catalog-grid{gap:10px}body.wiki-shell .wiki-content .catalog-card{padding:10px}body.wiki-shell .wiki-content .catalog-card h3{font-size:16px}body.wiki-shell .wiki-content .entity-image-placeholder .placeholder-art{width:68px;height:70px}body.wiki-shell .wiki-content .entity-image-placeholder{min-height:90px}body.wiki-shell .wiki-content .catalog-card .tag{font-size:11px}body.wiki-shell .wiki-content .commissions-catalog .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .commissions-catalog .commission-card{display:block}body.wiki-shell .wiki-content .commissions-catalog .commission-card .entity-media{height:65px;min-height:0;aspect-ratio:auto}body.wiki-shell .wiki-content .commissions-catalog .commission-card .entity-image-placeholder{flex-direction:row;min-height:0;gap:6px}body.wiki-shell .wiki-content .commissions-catalog .commission-card .placeholder-art{width:40px;height:55px}body.wiki-shell .wiki-content .catalog-group>header{gap:9px;flex-wrap:wrap}body.wiki-shell .wiki-content .catalog-group>header h2{font-size:22px}body.wiki-shell .wiki-content .clients-catalog .catalog-grid{grid-template-columns:1fr}body.wiki-shell .wiki-content .client-card{grid-template-columns:90px minmax(0,1fr)}body.wiki-shell .wiki-content .entity-hero{grid-template-columns:100px minmax(0,1fr);gap:16px;padding-top:10px}body.wiki-shell .wiki-content .entity-hero .entity-image-placeholder{min-height:110px}body.wiki-shell .wiki-content .entity-hero .placeholder-art{width:65px;height:80px}body.wiki-shell .wiki-content .entity-hero .entity-image-placeholder span{font-size:10px}body.wiki-shell .wiki-content .entity-summary h1{font-size:29px}body.wiki-shell .wiki-content .entity-summary p{font-size:14px;line-height:1.5}body.wiki-shell .wiki-content .entity-hero .entity-facts dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}body.wiki-shell .wiki-content .entity-toc{gap:8px;padding-bottom:17px}body.wiki-shell .wiki-content .entity-toc h2{width:100%}body.wiki-shell .wiki-content .entity-toc a{font-size:12px}body.wiki-shell .wiki-content .entity-body{font-size:15px}body.wiki-shell .wiki-content .entity-body h2{font-size:24px}body.wiki-shell .wiki-content .entity-body td,body.wiki-shell .wiki-content .entity-body th{padding:8px;font-size:12px}body.wiki-shell .wiki-content .requirements-grid,body.wiki-shell .wiki-content .style-bars{grid-template-columns:1fr}}

/* Reference-driven shared notebook shell. Owner-approved wiki release, not article gates. */
body.wiki-shell{--sidebar-width:240px;--paper:#f1e5cc;--paper-panel:#f7ecd7;--ink:#322419;--accent:#b75d4e;background-color:#444936}
body.wiki-shell .wiki-frame{max-width:1360px;border:5px double #98764b;border-radius:8px 7px 3px 3px;margin:12px auto 0;box-shadow:0 0 0 2px #32261c,0 6px 24px #271c13a3;background:#f2e6d0}
body.wiki-shell .wiki-frame .wiki-sidebar{padding:8px 12px 24px;background:#eee2c9 url('/assets/ui/paper-clean-reference.webp') repeat;border-right:5px double #987953;border-radius:4px 0 0 3px;box-shadow:inset 0 0 0 2px #c5aa81,inset 0 0 0 5px #ede0c5}
/* Overlay the full content tracks, not the fixed-height scrolling viewport. */
body.wiki-shell .wiki-frame .wiki-sidebar{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:max-content max-content;align-content:start}
body.wiki-shell .wiki-frame .wiki-sidebar:before{content:'';position:relative;inset:auto;grid-column:1;grid-row:1/3;margin:2px -4px -14px;min-height:0;border:1px dashed #bda486;border-radius:4px;pointer-events:none}
body.wiki-shell .wiki-frame .wiki-sidebar>.wiki-logo{grid-column:1;grid-row:1}
body.wiki-shell .wiki-frame .wiki-sidebar>.wiki-side-nav{grid-column:1;grid-row:2}
body.wiki-shell .wiki-frame .wiki-logo{position:relative;height:91px;margin:0 1px 9px;padding:6px 0;font-size:30px;border-bottom:2px solid #bb9a76;border-radius:2px;background:#f3e7ce}
body.wiki-shell .wiki-frame .wiki-logo small:after{content:' ↔';letter-spacing:0;font-size:16px}
body.wiki-shell .wiki-frame .wiki-side-nav{position:relative}
body.wiki-shell .wiki-frame .wiki-side-nav a{min-height:30px;padding:4px 18px 4px 35px;font-size:14px;line-height:1.35;border-radius:3px}
body.wiki-shell .wiki-frame .wiki-side-nav a[aria-current=page]{background:#e7b2a077;border:1px solid #cd8d79;box-shadow:inset 0 0 0 2px #f7dfc4;outline:1px dashed #fff2d8;outline-offset:-4px;color:#382519}
body.wiki-shell .wiki-frame .wiki-side-nav>.wiki-primary:after{display:block;content:'›';right:8px}
body.wiki-shell .wiki-frame .wiki-side-nav .wiki-primary:before{background-size:22px 25px}
body.wiki-shell .wiki-frame .wiki-nav-group{padding-top:13px;margin-top:8px}
body.wiki-shell .wiki-frame .wiki-nav-label{font-size:12px;color:#493323}
body.wiki-shell .wiki-frame .wiki-main-area{background:#f2e6ce url('/assets/ui/paper-clean-reference.webp') repeat;box-shadow:inset 5px 0 8px #775b3426,inset -4px 0 6px #775b3420}
body.wiki-shell .wiki-frame .wiki-content.container{width:100%;max-width:none;padding:10px 19px 40px}
body.wiki-shell .wiki-frame .wiki-topbar{height:48px;min-height:48px;background-size:auto 48px;border-bottom:4px double #b99759}
body.wiki-shell .wiki-frame .wiki-topbar .header-inner{height:44px;min-height:44px;padding:0 15px;gap:9px}
body.wiki-shell .wiki-frame .wiki-report{height:31px;padding:0 12px;font-size:13px}
body.wiki-shell .wiki-frame .wiki-search-toggle{height:30px;min-height:30px;font-size:13px;max-width:355px}
body.wiki-shell .wiki-frame .wiki-main-area:after{inset:51px 5px 5px}
body.wiki-shell .wiki-frame .wiki-builder-link span{font-size:inherit}
body.wiki-shell .wiki-frame .wiki-builder-link .builder-label-mobile{display:none}
@media(max-width:760px){
 body.wiki-shell .wiki-frame .wiki-builder-link{display:flex;height:30px;padding:0 4px;gap:4px;font-size:12px;flex-shrink:0}
 body.wiki-shell .wiki-frame .wiki-builder-link .builder-label-desktop{display:none}
 body.wiki-shell .wiki-frame .wiki-builder-link .builder-label-mobile{display:inline}
}
body.wiki-shell .wiki-source-credit{font-size:11px;line-height:1.45;color:#6b5745;margin-top:24px;padding-top:10px;border-top:1px dashed #be9c7a}
@media(min-width:1101px){body.wiki-shell .wiki-frame{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:1100px){body.wiki-shell .wiki-frame{grid-template-columns:minmax(0,1fr);margin:4px auto 0;max-width:100%}body.wiki-shell .wiki-frame .wiki-sidebar{width:240px}body.wiki-shell .wiki-frame .wiki-content.container{padding:12px 18px 35px}}
@media(max-width:760px){body.wiki-shell .wiki-frame{border-width:2px;margin:0;border-radius:0}body.wiki-shell .wiki-frame .wiki-content.container{padding:10px 12px 30px}body.wiki-shell .wiki-frame .wiki-topbar,body.wiki-shell .wiki-frame .wiki-topbar .header-inner{height:49px;min-height:49px}body.wiki-shell .wiki-frame .wiki-topbar .header-inner{padding:0 10px;gap:8px}body.wiki-shell .wiki-frame .wiki-mobile-brand{font-size:18px;white-space:nowrap}body.wiki-shell .wiki-frame .wiki-search-toggle{width:35px;height:35px;max-width:35px;margin-left:auto}body.wiki-shell .wiki-frame .wiki-main-area:after{display:none}}

/* Reference composition override. Load AFTER wiki-catalog and wiki-polish. */
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog{--catalog-paper:#f8efdc;--catalog-edge:#c5a985;font:15px/1.4 'Source Serif 4',Georgia,serif;color:#392a20}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header{min-height:145px;margin:0 0 14px;padding:0 36% 12px 0;background:none;border:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header:after{width:34%;height:155px;bottom:0;background-size:contain}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header h1{font:700 48px/1.05 Georgia,serif;margin:4px 0 15px;letter-spacing:-.035em}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header h1:after{content:'';display:block;margin-top:9px;width:190px;border-bottom:1px solid #ba7158}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header p{font:15px/1.45 Georgia,serif}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-stats{margin:10px 0 16px;flex-wrap:nowrap;box-shadow:inset 0 0 0 3px #efe2cd}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-stats>div,body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-stats>span{padding:10px 12px;min-width:0;font:13px/1.3 Georgia,serif}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-stats strong{display:block;font:700 26px/1.1 Georgia,serif}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-stats{gap:8px;background:none;border:0;box-shadow:none}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-stats>div{display:flex;align-items:center;gap:10px;border:1px solid var(--catalog-edge);border-left:3px solid #9caa80;background:var(--catalog-paper);border-radius:4px;box-shadow:inset 0 0 0 3px #efe3cd}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-stats>div:first-child{border-left-color:#b76554}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-stats img{width:45px;height:55px;object-fit:contain;margin:0;padding:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-stats small{display:block;font-size:11px;margin-top:3px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-type-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid #cbb593;border-bottom:1px solid #cbb593;margin-bottom:9px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-tabs{display:flex;gap:8px;flex:1}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-tabs button{flex:1;font-size:13px;min-height:36px;padding:5px 9px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog :is(.catalog-tabs button,.catalog-view-buttons button)[aria-pressed=true]{color:#fff7e9!important;background:#a95344;border-color:#914a3b;box-shadow:inset 0 0 0 2px #c98471}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .spoiler-switch{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog input[type=checkbox]{accent-color:#9c5142;width:13px;height:13px;padding:0;margin:0;min-height:0;flex:none}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-toolbar{padding:7px 9px;gap:8px;margin-bottom:10px;background:#f4e8d2;min-width:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-toolbar p{font-size:12px;margin:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog :is(select,input[type=search],button){min-height:32px;font-size:13px;padding:5px 8px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-search label:first-child{flex:1}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-search input{width:100%;min-width:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-note{font:12px/1.4 Georgia,serif;margin:6px 0 12px;color:#695440}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group{margin:12px 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header{padding:0 10px 0 0;min-height:54px;gap:13px;margin:0 0 5px;border-left:4px solid #ba6754;background:#eee0c9;flex-wrap:nowrap}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header>.entity-media{width:61px;height:54px;aspect-ratio:auto;flex:none;float:none;margin:0;min-height:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header .entity-media img{padding:0;object-fit:contain;object-position:center top}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header h2{font:700 25px/1.15 Georgia,serif;margin:0;padding:0;border:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header h2:before{content:none}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header p{font-size:12px;flex:1;margin:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header span{font-size:12px;white-space:nowrap}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header a{font-size:12px;white-space:nowrap;margin-left:auto}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card{padding:9px;background:#f8efdc;border:1px solid #c5a985;box-shadow:inset 0 0 0 3px #efe3cd;border-radius:4px;display:block}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card:before,body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card:after{content:none}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card:hover{transform:none;background:#fff5e4}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card :is(h2,h3){font:700 15px/1.2 Georgia,serif;margin:5px 0;text-decoration:none;min-height:0;padding:0;border:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card p{font:12px/1.3 Georgia,serif;margin:4px 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card{display:block;padding:10px;min-height:105px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card>.entity-media{grid-column:1;grid-row:1;width:52px;height:91px;min-height:0;aspect-ratio:auto;float:none;margin:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card>div{grid-column:2;grid-row:1}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card h3{font-size:13px;line-height:1.2;margin:0 0 4px;min-height:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card p{font-size:10px;margin:3px 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card dl{grid-template-columns:1fr auto;font-size:10px;gap:1px;margin:4px 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card .entity-image-placeholder{flex-direction:column!important;height:100%!important;min-height:0!important;gap:3px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card .entity-image-placeholder .placeholder-art{width:36px!important;height:57px!important;max-width:100%;flex:none}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card .entity-image-placeholder span{max-width:100%;font-size:9px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .entity-image-placeholder{min-height:0;height:100%;gap:3px;background:none}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .entity-image-placeholder .placeholder-art{width:65%;height:65%;max-height:100px;object-fit:contain;padding:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .entity-image-placeholder span{font-size:9px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card .entity-media{aspect-ratio:8/5;height:auto;margin:0 0 5px;float:none;width:100%;min-height:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .entity-media img{padding:3px;width:100%;height:100%;object-fit:contain}
/* Gradient source art is a narrow vertical colour strip, not a portrait. */
/* Gradient swatches share the ordinary fabric frame dimensions. */
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.fabrics-catalog .material-card--gradient .entity-media img{object-fit:fill;padding:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-view-buttons{align-self:end;flex:none}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card-tags{gap:3px;margin:5px 0 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card-tags .tag{font:10px/1.2 Georgia,serif;border:1px solid #b4ba97;border-radius:3px;padding:1px 4px;background:#e0e5cd!important;color:#35402b!important}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card-tags .tag--negative{background:#efd8ce!important;color:#793e31!important;border-color:#c79887}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog .catalog-layout{grid-template-columns:248px minmax(0,1fr);gap:12px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog .catalog-filters{padding:11px;position:static;display:block}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;background:#a95344;margin:-8px -8px 12px;padding:7px 9px;color:#fff7e9;border-radius:3px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-heading h2{font:700 20px Georgia,serif;background:none;color:#fff7e9!important;border:0;padding:0;margin:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-heading button{font-size:10px;min-height:25px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-filters label{font:12px/1.25 Georgia,serif;margin:5px 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-group{padding:9px 0;border-bottom:1px dotted #c2a782}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-group summary{font:700 14px Georgia,serif;cursor:pointer;margin-bottom:7px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-options label{display:flex;align-items:start;gap:5px;margin:0;padding:2px 0;font-size:11px;font-weight:400}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-options input{display:inline-block;width:12px;height:12px;margin:1px 0 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-options small{font-size:10px;color:#745b44}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-stats{flex-wrap:wrap}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-stats>span{flex:1 0 65px;padding:8px 10px;font-size:11px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-stats strong{font-size:20px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-stats>.material-total{display:flex;gap:10px;align-items:center;flex:1.5 0 135px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-total img{width:45px;height:45px;object-fit:contain;margin:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-total strong{font-size:29px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog .catalog-toolbar{flex-wrap:wrap}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog [data-catalog-chips]{display:flex;gap:5px;flex-wrap:wrap;flex:1 1 100%}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog [data-catalog-chips]:empty{display:none}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-chip{font-size:11px;min-height:25px;margin:0;padding:3px 6px;background:#e4e7dd}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-view-buttons{display:flex;gap:3px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-view-buttons button{font-size:20px;min-width:32px;line-height:1}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog .catalog-toolbar>p{margin-right:auto}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-card h3{font-size:14px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-price strong{font-size:17px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-facts{display:grid;grid-template-columns:42px minmax(0,1fr);gap:2px;font:11px/1.2 Georgia,serif;margin:6px 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-facts dd{text-align:left;margin:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-layout{grid-template-columns:minmax(0,1fr) 245px;gap:14px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-header{min-height:165px;padding-right:35%}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-header .catalog-stats{background:none;box-shadow:none;border:0;margin-bottom:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-stats>span{padding:5px 12px 5px 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-chips{gap:6px;margin:9px 0 13px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-chips a{padding:6px 10px;font:12px/1.2 Georgia,serif;border-radius:3px;box-shadow:inset 0 0 0 2px #efe2cd}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-chips a[aria-current=page]{background:#a95344;color:#fff7e9!important}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-filters{display:flex;gap:6px;padding:7px;position:static;margin:0 0 6px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-filters label{flex:1 1 100px;min-width:0;font-size:11px;margin:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-filters :is(input,select){font-size:12px;padding:5px;min-height:32px;margin-top:3px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .pattern-results-status{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;margin:4px 0 8px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .pattern-results-status p{font:11px/1.3 Georgia,serif;margin:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-card>p:last-child{font-size:10px;color:#6e5946;padding-top:5px;border-top:1px dotted #c7ab87}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-workspace>h2{font:700 18px Georgia,serif;margin:8px 0;padding:0;border:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-aside{background:none;border:0;padding:0;min-width:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-aside>section{padding:13px;background:#f8efdc;border:1px solid #c5a985;border-radius:4px;box-shadow:inset 0 0 0 3px #efe3cd;margin:0 0 10px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-aside h2{font:700 18px/1.2 Georgia,serif;margin:0 0 9px;padding:0 0 7px;border-bottom:1px dotted #c4a382}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-aside p{font:13px/1.4 Georgia,serif;margin:7px 0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-aside ul{margin:0;padding-left:17px;font-size:13px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-aside li{margin:7px 0;padding:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.clients-catalog .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.client-card{display:grid;grid-template-columns:75px minmax(0,1fr);gap:12px;align-items:center;padding:10px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.client-card .entity-media{height:90px;aspect-ratio:auto;margin:0}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.client-card h2{font-size:23px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.client-card span{font-size:12px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog[data-view=list] .catalog-grid{grid-template-columns:1fr}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog[data-view=list] .catalog-card{display:grid;grid-template-columns:85px minmax(0,1fr);gap:0 12px}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog[data-view=list] .catalog-card>:not(.entity-media):not(.catalog-card-media){grid-column:2}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog[data-view=list] .catalog-card>:is(.entity-media,.catalog-card-media){grid-column:1;grid-row:1/span 8;width:85px;align-self:center}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog [hidden]{display:none!important}
@media(max-width:1100px){body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog .catalog-layout{grid-template-columns:205px minmax(0,1fr)}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-layout{grid-template-columns:minmax(0,1fr) 200px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header p{display:none}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-tabs button{font-size:11px}}
@media(max-width:850px){body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-layout{grid-template-columns:minmax(0,1fr)}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.clients-catalog .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header{padding-right:27%;min-height:120px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header h1{font-size:38px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-type-bar{flex-wrap:wrap}}
@media(max-width:600px){body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header,body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-header{padding-right:0;min-height:0}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header:after{display:none}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header h1{font-size:36px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-stats img{width:30px;height:40px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-stats>div{padding:7px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-stats small{font-size:10px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-tabs{flex-basis:100%;gap:4px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-tabs button{padding:5px;font-size:11px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-search{flex-wrap:wrap}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .commission-search label:first-child{flex-basis:100%}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header{gap:6px;flex-wrap:wrap;padding-right:6px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header h2{font-size:21px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header a{font-size:10px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-group>header span{display:none}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card{grid-template-columns:40px minmax(0,1fr);gap:4px;padding:6px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card>.entity-media{width:40px;height:85px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog a.commission-card h3{font-size:12px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog .catalog-layout{display:block}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog .catalog-filters{margin-bottom:12px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-group:not(:first-of-type){max-height:200px;overflow:auto}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .filter-options{grid-template-columns:repeat(3,minmax(0,1fr))}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .material-stats>span{flex-basis:60px}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-filters{flex-wrap:wrap}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.clients-catalog .catalog-grid{grid-template-columns:1fr}body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card-tags .tag{font-size:10px}}

/* Entity reference sheets. Load after legacy and catalogue styles. */
/* Reference panels have their own inset; do not inherit legacy mobile full-bleed tables. */
body.wiki-shell .wiki-content .wiki-detail.reference-detail .table-scroll{margin-inline:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .pattern-plan{display:grid;gap:14px;min-width:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail.pattern-entity #related{grid-column:1/-1}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reward-table thead th{color:#fff5e6!important;background:#59674f!important}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-style-negative meter::-webkit-meter-optimum-value{background:#a35e4e}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-style-positive meter::-webkit-meter-optimum-value{background:#677855}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .style-bars{display:block}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .style-bar{grid-template-columns:105px minmax(0,1fr) 35px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .style-bar-label{overflow-wrap:anywhere}

body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-hero{padding:0;border:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-layout{margin-top:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-body>section{margin:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-requirements{display:block}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .requirement-card{background:none;box-shadow:none;border:0;border-radius:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .client-commission-card{box-shadow:none;border-radius:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-style-list{display:block}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .style-bars .style-bar{background:none;border:0;border-bottom:1px solid #dcc7a8;border-radius:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-unlock-grid{display:block}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-unlock-card{background:none;border:0;box-shadow:none}

body.wiki-shell .wiki-content article.wiki-detail.reference-detail{font:15px/1.4 'Source Serif 4',Georgia,serif;color:#40352e}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-header{border:0;margin:0;padding:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-hero{display:grid;grid-template-columns:200px minmax(0,1fr) 220px;grid-template-rows:1fr auto;gap:16px 22px;align-items:start;margin:10px 0 18px;min-height:280px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-hero>.entity-media{grid-row:1/3;width:200px;height:280px;aspect-ratio:auto;padding:5px;background:#e7d7bd;border:1px solid #ab8c67;box-shadow:inset 0 0 0 3px #f8eedc,2px 3px 0 #bfa17d55;transform:rotate(-1deg)}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-hero>.entity-media img{object-fit:contain;padding:0;width:100%;height:100%}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-summary{min-width:0;padding-top:4px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-summary h1{font:700 39px/1.1 Georgia,serif;margin:3px 0 10px;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-summary p{margin:9px 0;line-height:1.45}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-eyebrow{font:13px/1.3 Georgia,serif;color:#794737;letter-spacing:.04em;margin:0 0 4px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail aside.entity-facts{grid-column:3;display:block;padding:10px 12px;margin:0;background:#f8efdc;border:1px solid #bda37d;border-radius:3px;box-shadow:inset 0 0 0 3px #eee1c9}
body.wiki-shell .wiki-content .wiki-detail.reference-detail aside.entity-facts h2{font:700 19px/1.2 Georgia,serif;border-bottom:1px dotted #bd826d;padding:0 0 6px;margin:0 0 5px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail aside.entity-facts dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:0;font-size:13px;line-height:1.35;margin:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail aside.entity-facts :is(dt,dd){background:none;border:0;border-bottom:1px solid #d6c3a5;padding:5px 0;margin:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail aside.entity-facts dd{padding-left:7px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip{grid-column:2/4;display:flex;align-self:end;min-height:61px;background:#f8efdc;border:1px solid #bda37d;border-radius:3px;padding:7px 0;box-shadow:inset 0 0 0 3px #eee1c9}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip>div{flex:1;min-width:0;padding:0 12px;border-right:1px solid #b97e68}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip>div:last-child{border:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip strong{display:block;font:700 24px/1.1 Georgia,serif}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip span{display:block;font-size:12px;margin-top:4px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-layout{display:block}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-toc{position:static;display:flex;flex-wrap:wrap;align-items:end;gap:4px;padding:0;margin:0 0 13px;background:none;border:0;border-bottom:1px solid #bda37d}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-toc h2{display:none}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-toc ul{display:flex;flex-wrap:wrap;gap:4px;padding:0;margin:0;list-style:none}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-toc li{padding:0;margin:0;list-style:none}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-toc a{display:block;font-size:13px;line-height:1.3;margin:0;padding:8px 12px;border:1px solid #c3a883;border-bottom:0;border-radius:4px 4px 0 0;background:#eee2cb;color:#40352e;text-decoration:none}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-toc a:hover{background:#fbf3e2;color:#8b4437}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-panel{display:block;min-width:0;margin:0;padding:0 12px 12px;background:#f8efdc;border:1px solid #c3a883;border-radius:3px;box-shadow:inset 0 0 0 3px #eee1c966;scroll-margin-top:76px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-panel>h2{display:flex;align-items:center;justify-content:space-between;gap:10px;font:700 20px/1.2 Georgia,serif;margin:0 -12px 10px;padding:7px 12px;border:0;border-bottom:1px solid #b39570;background:#e6d6bc;color:#352820;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .wiki-detail.reference-detail h2 small{font:12px/1.2 Georgia,serif;white-space:nowrap}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-panel p{margin:8px 0;font-size:14px;line-height:1.4}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-record{display:flex;align-items:center;gap:10px;min-width:0;padding:7px 0;margin:0;border:0;border-bottom:1px solid #d2bda0;background:none;text-decoration:none;color:#40352e;line-height:1.3}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-record>div{flex:1;min-width:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-record strong{display:block;font-size:14px;overflow-wrap:anywhere}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-record .entity-media{flex:none;width:58px;height:58px;aspect-ratio:1;background:#e9dbc3;border:1px solid #c3a883}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-record .entity-media img{padding:2px;object-fit:contain}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-record:hover strong{text-decoration:underline;color:#8b4437}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .record-meta{display:block;font-size:12px;margin:3px 0 0;color:#655543}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .client-commission-panels{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start;scroll-margin-top:76px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .client-commission-cards{display:block}
body.wiki-shell .wiki-content .wiki-detail.reference-detail #story>h2{background:#965247;color:#fff6e5}
body.wiki-shell .wiki-content .wiki-detail.reference-detail #pigeon>h2{background:#526565;color:#fff6e5}
body.wiki-shell .wiki-content .wiki-detail.reference-detail #final>h2{background:#715847;color:#fff6e5}
body.wiki-shell .wiki-content .wiki-detail.reference-detail.client-entity #unlocks{grid-column:1/-1}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .client-star-unlocks{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:9px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .profile-panel{min-width:0;background:#efe2cd;border:1px solid #cbb28e;padding:7px 9px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .profile-panel h3{font:700 16px/1.3 Georgia,serif;margin:0 0 5px;padding-bottom:5px;border-bottom:1px dotted #bd826d}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .profile-panel h3 small{display:block;font:12px/1.3 Georgia,serif;color:#655543}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .star-patterns .reference-record{gap:6px;padding:6px 0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .star-patterns .entity-media{width:44px;height:54px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .star-patterns strong{font-size:12px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-image-placeholder{min-height:0;height:100%;gap:3px;font-size:9px;text-align:center;padding:3px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-image-placeholder .placeholder-art{width:55%;height:65%;padding:0;object-fit:contain}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-hero .entity-image-placeholder{font-size:13px;gap:12px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-neighbours{grid-column:1/-1;margin-top:15px;padding-top:9px;font-size:13px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-neighbours .reference-record{border:1px solid #c3a883;background:#f8efdc;padding:7px 10px;flex:1;max-width:48%}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-neighbours .entity-media{width:42px;height:52px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .requirement-card{padding:10px 0;border-bottom:1px dotted #c1a582}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .requirement-card h3{font:700 15px/1.4 Georgia,serif;margin:0 0 5px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-facts.entity-making-card{grid-template-columns:1fr 1.2fr;margin:10px 0;font-size:14px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-style-list{padding:0;margin:7px 0;list-style:none}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-style-row{display:grid;grid-template-columns:105px minmax(0,1fr) 36px;gap:9px;align-items:center;margin:0;padding:4px 0;border-bottom:1px solid #e0cdb1;font-size:13px;list-style:none}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-style-row meter{width:100%;height:12px;accent-color:#677855}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-style-negative meter{accent-color:#a35e4e}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-style-value{text-align:right}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-style-zero .entity-style-value{grid-column:3}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-unlock-card{border-bottom:1px dotted #bda37d;padding:7px 0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail #related ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;padding:0;margin:0;list-style:none}
body.wiki-shell .wiki-content .wiki-detail.reference-detail #related li{padding:0;margin:0;list-style:none}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .style-bars{margin-top:12px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .style-bar{display:grid;grid-template-columns:105px minmax(0,1fr) 35px;gap:9px;align-items:center;padding:5px 0;border-bottom:1px solid #dcc7a8;font-size:13px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .style-bar-track{display:block;height:9px;background:#e5d5b9;border-radius:2px;overflow:hidden}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .style-bar-fill{display:block;height:100%;background:#657753}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .is-negative .style-bar-fill{background:#a85c4b}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .style-bar-value{text-align:right}
body.wiki-shell .wiki-content .wiki-detail.reference-detail #same-type{grid-column:1/-1}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-related-card{min-width:0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-related-card>.entity-media{height:90px;aspect-ratio:auto}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-related-card h3{font-size:15px;margin:7px 0}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-related-card a{padding:0;border:0;background:none}
body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-related-card p{font-size:12px}
@media(max-width:1199px) and (min-width:761px){body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-hero{grid-template-columns:170px minmax(0,1fr);gap:14px}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-hero>.entity-media{width:170px;height:250px;grid-row:1/3}body.wiki-shell .wiki-content .wiki-detail.reference-detail aside.entity-facts{grid-column:2}body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip{grid-column:1/-1}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-summary h1{font-size:32px}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-hero{grid-template-columns:110px minmax(0,1fr);gap:12px;margin-top:5px}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-hero>.entity-media{grid-row:1;width:110px;height:160px}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-summary h1{font-size:29px}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-summary p{font-size:14px}body.wiki-shell .wiki-content .wiki-detail.reference-detail aside.entity-facts{grid-column:1/-1}body.wiki-shell .wiki-content .wiki-detail.reference-detail aside.entity-facts dl{grid-template-columns:115px minmax(0,1fr)}body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip{grid-column:1/-1;flex-wrap:wrap;row-gap:9px}body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip>div{padding:0 9px;flex:1 1 28%}body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip strong{font-size:21px}body.wiki-shell .wiki-content .wiki-detail.reference-detail .reference-stat-strip span{font-size:11px}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-body,body.wiki-shell .wiki-content .wiki-detail.reference-detail .client-commission-panels{grid-template-columns:1fr}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-toc a{font-size:12px;padding:7px 9px}body.wiki-shell .wiki-content .wiki-detail.reference-detail .client-star-unlocks{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-neighbours{flex-wrap:wrap}body.wiki-shell .wiki-content .wiki-detail.reference-detail .entity-neighbours .reference-record{max-width:none}body.wiki-shell .wiki-content .wiki-detail.reference-detail #related ul{grid-template-columns:1fr}}

/* R4 scoped detail components: coloured paper tabs and compact comparison rows. */
body.wiki-shell .wiki-content article.wiki-detail.reference-detail{--detail-red:#934a3d;--detail-green:#536044;--detail-gold:#80571f;--detail-blue:#4a626c;--detail-purple:#715164}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc a{--tab-colour:var(--detail-red);display:flex;align-items:center;gap:7px;background:var(--tab-colour)!important;color:#fff9ed!important;border:1px solid #fff9ed;border-radius:4px 4px 0 0;box-shadow:0 0 0 1px #bda37d,inset 0 0 0 2px #ffffff20;font-weight:700;min-height:36px}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc a::before,body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-panel>h2::before{content:'';display:block;flex:0 0 22px;width:22px;height:24px;background:url('/assets/ui/spool.webp') center/contain no-repeat;filter:sepia(.25) brightness(1.12);border-radius:2px;background-color:#fff9ed;box-shadow:0 0 0 1px #fff9ed66}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc a:is([href='#story'],[href='#requirements'],[href='#facts']){--tab-colour:var(--detail-red)}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc a:is([href='#unlocks'],[href='#client']){--tab-colour:var(--detail-green)}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc a:is([href='#tags'],[href='#style-weights']){--tab-colour:var(--detail-gold)}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc a:is([href='#pigeon'],[href='#outcomes']){--tab-colour:var(--detail-blue)}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc a:is([href='#related'],[href='#same-type']){--tab-colour:var(--detail-purple)}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc a:hover{filter:brightness(1.12)}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc a:focus-visible{outline:3px solid #352820;outline-offset:3px}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-panel>h2{justify-content:flex-start;background:var(--detail-red)!important;color:#fff9ed!important;border:1px solid #fff9ed;box-shadow:inset 0 0 0 2px #ffffff20;border-radius:3px 3px 0 0}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-panel>h2 small{margin-left:auto;color:inherit}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail :is(#unlocks,#client)>h2{background:var(--detail-green)!important}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail :is(#tags,#style-weights)>h2{background:var(--detail-gold)!important}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail :is(#pigeon,#outcomes)>h2{background:var(--detail-blue)!important}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail :is(#related,#same-type,#final)>h2{background:var(--detail-purple)!important}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail :is(.entity-toc a[href='#unlocks'],.entity-toc a[href='#tags'],.entity-toc a[href='#style-weights'],#unlocks>h2,#tags>h2,#style-weights>h2)::before{background-image:url('/assets/ui/stat-star.webp')}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail :is(.entity-toc a[href='#pigeon'],#pigeon>h2)::before{background-image:url('/assets/ui/stat-pigeon.webp')}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail :is(.entity-toc a[href='#related'],.entity-toc a[href='#same-type'],#related>h2,#same-type>h2)::before{background-image:url('/assets/ui/pattern-paper.webp')}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip{gap:0;padding:0;flex-wrap:wrap;overflow:hidden}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip>div{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:9px;align-content:center;flex:1 1 140px;padding:10px 12px;min-height:78px;border:0;border-right:1px solid #c9af8c;border-left:3px solid #9caa80;box-shadow:inset 0 0 0 2px #fff9ed66}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip>div:first-child{border-left-color:#b76554}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip>div:last-child{border-left:3px solid #ac8b50;border-right:0}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip>div::before{content:'';grid-column:1;grid-row:1/3;width:40px;height:52px;align-self:center;background:url('/assets/ui/spool.webp') center/contain no-repeat}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip>div:nth-child(2)::before{background-image:url('/assets/ui/stat-star.webp')}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip>div:nth-child(3)::before{background-image:url('/assets/ui/pattern-paper.webp')}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail.client-entity .reference-stat-strip>div:nth-child(2)::before{background-image:url('/assets/ui/stat-pigeon.webp')}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail.pattern-entity .reference-stat-strip>div:nth-child(2)::before{background-image:url('/assets/ui/fabric-rolls.webp')}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail.pattern-entity .reference-stat-strip>div:nth-child(3)::before{background-image:url('/assets/ui/scissors.webp')}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip :is(strong,span){grid-column:2;min-width:0;overflow-wrap:anywhere;color:#40352e}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip strong{font:700 26px/1.1 Georgia,serif}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-related-card{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #d2bda0;min-width:0}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-related-card>.entity-media{flex:0 0 58px;width:58px;height:58px;aspect-ratio:1;margin:0}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .related-record-copy{flex:1;min-width:0;overflow-wrap:anywhere}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-related-card h3{font:700 14px/1.3 Georgia,serif;margin:0 0 3px}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-related-card p{font-size:12px;line-height:1.3;margin:3px 0}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-record{flex-direction:row;overflow-wrap:anywhere}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-image-placeholder{flex-direction:column;min-height:0}
body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-related :is(.entity-media,.reference-record){margin-top:0}
@media(max-width:760px){body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-related-grid{grid-template-columns:1fr}body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-stat-strip>div{flex:1 1 145px;padding:8px 9px}body.wiki-shell .wiki-content article.wiki-detail.reference-detail .reference-panel>h2{font-size:18px}body.wiki-shell .wiki-content article.wiki-detail.reference-detail .entity-toc{gap:6px}}
/* A final order without verified artwork must not leave a phantom image column. */
body.wiki-shell .wiki-content article.commission-entity.reference-detail .entity-hero--no-art{grid-template-columns:minmax(0,1fr) 220px;min-height:0}
body.wiki-shell .wiki-content article.commission-entity.reference-detail .entity-hero--no-art>.entity-summary{grid-column:1}
body.wiki-shell .wiki-content article.commission-entity.reference-detail .entity-hero--no-art>aside.entity-facts{grid-column:2}
body.wiki-shell .wiki-content article.commission-entity.reference-detail .entity-hero--no-art>.reference-stat-strip{grid-column:1/-1}
@media(max-width:760px){body.wiki-shell .wiki-content article.commission-entity.reference-detail .entity-hero--no-art{grid-template-columns:1fr}body.wiki-shell .wiki-content article.commission-entity.reference-detail .entity-hero--no-art>aside.entity-facts{grid-column:1}}

/* Reference artwork and truthful contextual image roles. */
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.materials-catalog .catalog-header:after{background-image:url('/assets/ui/header-materials.webp');background-size:contain;width:38%;height:160px;opacity:1}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.patterns-catalog .catalog-header:after{background-image:url('/assets/ui/header-patterns.webp');background-size:contain;width:38%;height:165px;opacity:1}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog.commissions-catalog .catalog-header:after{background-image:url('/assets/ui/header-commissions.webp');background-size:contain;width:37%;height:165px;opacity:1}
body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-card{background-image:url('/assets/ui/paper-clean-reference.webp')}
body.wiki-shell .wiki-content .entity-media:has(.contextual-portrait-caption){position:relative;padding-bottom:23px}
body.wiki-shell .wiki-content .entity-media .contextual-portrait-caption{position:absolute;left:2px;right:2px;bottom:2px;padding:2px 1px;text-align:center;font:9px/1.1 Georgia,serif;color:#5a4030;background:#f4e9d7cc;border-top:1px solid #c9b397;max-height:22px;overflow:hidden}
body.wiki-shell .wiki-content .wiki-detail .entity-hero>.entity-media:has(.contextual-portrait-caption){padding-bottom:25px}
body.wiki-shell .wiki-content .wiki-detail .entity-hero>.entity-media .contextual-portrait-caption{font-size:12px;max-height:22px}
@media(max-width:600px){body.wiki-shell .wiki-content .wiki-catalog.reference-catalog .catalog-header:after{display:none}}

/* Local owner-requested UI polish. Shared shell components, not guide gates. */
body.wiki-shell{background-attachment:fixed!important;background-position:center top;--wiki-stat-paper:#f8efdc;--wiki-stat-edge:#c5a985;--wiki-stitch:#efe3cd}
body.wiki-shell::before,body.wiki-shell::after,body.wiki-shell .global-grain,body.wiki-shell .global-edges{position:fixed!important;animation:none!important;transform:none!important}
body.wiki-shell .wiki-frame .wiki-logo{height:auto;min-height:128px;padding:5px 0 9px;background:none;justify-content:center;overflow:visible}
body.wiki-shell .wiki-frame .wiki-logo img{display:block;width:100%;max-width:212px;height:auto;margin:0;object-fit:contain}
body.wiki-shell .wiki-content .wiki-fan-disclaimer{display:block;position:relative;padding:15px 3px 2px;margin-top:32px;border-top:1px dashed #b89774;background:none;box-shadow:none;color:#64503e;font:12px/1.6 'Source Serif 4',Georgia,serif}
body.wiki-shell .wiki-content .wiki-fan-disclaimer p{margin:0;max-width:780px;color:inherit;font:inherit}
body.wiki-shell .wiki-content .wiki-fan-disclaimer strong{font-weight:700;color:#483325}
/* One reusable icon + value + label paper-card surface for every statistic strip. */
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container :is(.commission-stats,.reference-stat-strip,.catalog-stats.wiki-stat-cards){gap:8px;background:none;border:0;padding:0;box-shadow:none;align-items:stretch}
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container :is(.commission-stats,.reference-stat-strip,.catalog-stats.wiki-stat-cards)>div{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:10px 12px;border:1px solid var(--wiki-stat-edge);border-left:3px solid #9caa80;border-radius:4px;background:var(--wiki-stat-paper);box-shadow:inset 0 0 0 3px var(--wiki-stitch)}
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container :is(.commission-stats,.reference-stat-strip,.catalog-stats.wiki-stat-cards)>div:first-child{border-left-color:#b76554}
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container :is(.commission-stats,.reference-stat-strip,.catalog-stats.wiki-stat-cards)>div>img{display:block;width:45px;height:55px;object-fit:contain;flex:none;margin:0;padding:0}
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container :is(.commission-stats,.reference-stat-strip,.catalog-stats.wiki-stat-cards) strong{display:block;font:700 26px/1.1 Georgia,serif;color:#392a20}
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container :is(.commission-stats,.reference-stat-strip,.catalog-stats.wiki-stat-cards) :is(span,small){font:12px/1.35 'Source Serif 4',Georgia,serif;color:#483527}
/* Detail values use the same icon/value/label silhouette as catalogue cards. */
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container .reference-stat-strip.reference-stat-strip>div{display:grid;grid-template-columns:45px minmax(0,1fr);gap:0 10px;align-content:center;min-height:77px}
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container .reference-stat-strip.reference-stat-strip>div::before{grid-column:1;grid-row:1/3;width:45px;height:55px;align-self:center}
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container .reference-stat-strip.reference-stat-strip>div:last-child{border-right:1px solid var(--wiki-stat-edge);border-left-color:#9caa80}
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content .content-wrapper .wiki-guide :is(.guide-header h1,.guide-reading h2,.guide-reading h3,.guide-utility h2,.toc-head){font-family:Georgia,serif}
/* Narrow native gradient strips fill square swatches, including details and comparisons; ordinary artwork remains contained. */
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content .entity-media.is-gradient-swatch[data-entity-media^="fabrics:"]>img[data-game-image]{display:block;width:auto;max-width:100%;height:100%;aspect-ratio:1;object-fit:fill;flex:none}
body.wiki-shell .wiki-frame .wiki-main-area .wiki-content .wiki-detail .entity-media.is-gradient-swatch[data-entity-media^="fabrics:"]>img[data-game-image]{width:100%;height:auto;max-height:100%}
/* Every guide has one illustrated entrance; supporting links stay plain. */
body.wiki-shell .wiki-frame .wiki-side-nav a[href='/quality/']{--nav-art:url('/assets/ui/guide-quality.svg')}
body.wiki-shell .wiki-frame .wiki-side-nav a[href='/lace-trim/']{--nav-art:url('/assets/ui/pattern-paper.webp')}
body.wiki-shell .wiki-frame .wiki-side-nav a[href='/achievements/']{--nav-art:url('/assets/ui/guide-achievements.svg')}
body.wiki-shell .wiki-frame .wiki-side-nav a:is([href='/quality/'],[href='/lace-trim/'],[href='/achievements/']):before{content:'';position:absolute;left:7px;top:3px;width:22px;height:24px;background:var(--nav-art) center/contain no-repeat}
body.wiki-shell .wiki-frame .wiki-side-nav a:is([href='/about/'],[href='/privacy/'],[href='/tos/'],[href='/changelog/']):before{content:none;background:none}
body.wiki-shell .wiki-frame .wiki-side-nav a:is([href='/about/'],[href='/privacy/'],[href='/tos/'],[href='/changelog/']){padding-left:12px}
/* Search: bounded, well-padded result rows with a clear keyboard focus state. */
body.wiki-shell #searchPanel.search-panel{position:fixed;top:64px;width:min(610px,calc(100vw - 28px));max-height:calc(100dvh - 88px);padding:22px;border:3px double #ac9271;border-radius:5px;background:#f8f0df;box-shadow:0 10px 32px #291c1340;overflow-y:auto;z-index:120}
body.wiki-shell #searchPanel .wiki-search-inner{max-width:none;margin:0}
body.wiki-shell #searchPanel label{display:block;font:700 11px/1.5 'Nunito Sans',sans-serif;letter-spacing:.15em;margin:0 0 10px;color:#654938}
body.wiki-shell #searchPanel #searchInput{width:100%;height:48px;min-height:48px;padding:10px 13px;margin:0;border:1px solid #b99874;border-radius:3px;background:#fff9ec;color:#392a20;font:24px/1.15 Georgia,serif;letter-spacing:0;box-shadow:none}
body.wiki-shell #searchPanel #searchResults{display:grid;gap:8px;margin-top:16px}
body.wiki-shell #searchPanel .search-result{display:grid;grid-template-columns:minmax(0,1fr) 18px;gap:4px 12px;padding:13px 16px;margin:0;min-height:72px;border:1px solid #d0b99a;border-radius:4px;background:#fff8e9;color:#392a20;font:18px/1.3 'Source Serif 4',Georgia,serif;box-shadow:inset 0 0 0 2px #f2e7d3;transition:background .15s,border-color .15s}
body.wiki-shell #searchPanel .search-result:hover,body.wiki-shell #searchPanel .search-result:focus-visible{background:#eee1c8;border-color:#9c6a4b;outline:2px solid #9c6a4b;outline-offset:1px;color:#392a20}
body.wiki-shell #searchPanel .sr-cat{grid-column:1;display:block;margin:0;font:700 10px/1.4 'Nunito Sans',sans-serif;letter-spacing:.12em;color:#5e6749;text-transform:uppercase}
body.wiki-shell #searchPanel .sr-title{grid-column:1;overflow-wrap:anywhere}
body.wiki-shell #searchPanel .sr-arrow{grid-column:2;grid-row:1/3;align-self:center;font:26px/1 Georgia,serif;color:#986c46}
@media(min-width:761px) and (max-width:1100px){body.wiki-shell .wiki-frame{grid-template-columns:220px minmax(0,1fr)}body.wiki-shell .wiki-frame .wiki-sidebar{width:220px}}
@media(max-width:760px){body.wiki-shell #searchPanel.search-panel{top:57px;padding:16px;max-height:calc(100dvh - 72px)}body.wiki-shell #searchPanel .search-result{padding:12px 14px;font-size:17px;min-height:68px}body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container :is(.commission-stats,.reference-stat-strip,.catalog-stats.wiki-stat-cards)>div{padding:8px;gap:7px}body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container :is(.commission-stats,.reference-stat-strip,.catalog-stats.wiki-stat-cards)>div>img{width:30px;height:40px}body.wiki-shell .wiki-frame .wiki-main-area .wiki-content.container :is(.commission-stats,.reference-stat-strip,.catalog-stats.wiki-stat-cards) strong{font-size:22px}}

/* Scoped guide corrections; load after all shared and legacy stylesheets. */
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide {
  background:transparent; box-shadow:none; border:0;
  display:grid; grid-template-columns:minmax(0,1fr) 225px; gap:0 24px;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-header {
  grid-column:1; grid-row:1; margin-bottom:18px; background:none;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-header h1 {
  font-family:'Fraunces',Georgia,serif; font-size:32px; line-height:1.2;
  min-height:0; margin:0 0 10px; padding:0 0 12px; background:none;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-layout {
  display:block; grid-column:1; grid-row:2; min-width:0;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility {
  grid-column:2; grid-row:1 / span 2; display:block; position:sticky; top:74px; margin:0;
  max-height:calc(100dvh - 90px); overflow-y:auto; overscroll-behavior:contain;
  min-width:0; align-self:start;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility .toc {
  width:auto; float:none; margin:0 0 17px; padding:14px; position:static;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility .toc-head {
  font:700 19px/1.25 'Fraunces',Georgia,serif; margin:0 0 11px; padding:0 0 9px;
  text-transform:none; letter-spacing:normal;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility h2 {
  font-family:'Fraunces',Georgia,serif;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility .toc ol {
  display:block; margin:0; padding-left:19px;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility .toc-body {
  display:block;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility .toc-toggle {
  display:none;
}
body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-reading h3 {
  font-family:'Fraunces',Georgia,serif;
}
@media(max-width:760px) {
  body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide {
    display:flex; flex-direction:column; gap:0;
  }
  body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-header h1 {
    font-size:28px;
  }
  body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility {
    display:contents; position:static; max-height:none; overflow:visible;
  }
  body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-header { order:0; }
  body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility .toc {
    order:1; width:100%; box-sizing:border-box;
  }
  body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-layout { order:2; width:100%; }
  body.wiki-shell .wiki-content .content-wrapper article.main-content.wiki-guide .guide-utility-panel {
    order:3; width:100%; box-sizing:border-box; margin:17px 0 0;
  }
}

/* Existing shell banners and one non-sticky in-content responsive experiment. */
.wiki-ad-sidebar{width:160px;margin:12px auto;text-align:center}
.wiki-ad-label{display:block;font:10px/12px 'Nunito Sans',sans-serif;letter-spacing:.04em;color:#594b3b;text-align:center}
.wiki-ad-sidebar [data-ad-unit]{width:160px;height:300px}
/* Network creatives may be direct anchors/images rather than iframe content. */
body.wiki-shell .wiki-frame .wiki-side-nav .wiki-ad-sidebar a,
body.wiki-shell .wiki-frame .wiki-side-nav .wiki-ad-sidebar a:hover,
body.wiki-shell .wiki-frame .wiki-side-nav .wiki-ad-sidebar a:focus-visible{
 display:block;padding:0!important;margin:0!important;min-height:0;min-width:0;
 max-width:100%;border:0!important;border-radius:0;background:none!important;
 box-shadow:none;outline:0;line-height:0;text-decoration:none!important;
}
body.wiki-shell .wiki-frame .wiki-side-nav .wiki-ad-sidebar a::before,
body.wiki-shell .wiki-frame .wiki-side-nav .wiki-ad-sidebar a::after{content:none!important;display:none!important}
body.wiki-shell .wiki-frame .wiki-side-nav .wiki-ad-sidebar a img{display:block;max-width:100%;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;filter:none}
.wiki-ad-banner{width:468px;max-width:calc(100% - 24px);margin:8px auto;flex:0 0 auto;--banner-scale:1;--banner-height:60px}
.wiki-ad-banner-viewport{width:100%;height:auto;aspect-ratio:468/60;position:relative;overflow:hidden}
.wiki-ad-banner [data-ad-unit]{width:468px;height:60px;transform:scale(var(--banner-scale));transform-origin:top left}
.wiki-ad-sidebar iframe,.wiki-ad-banner iframe{display:block;border:0;margin:0;padding:0}
.wiki-ad-content-position{container-type:inline-size;width:100%;min-width:0}
.wiki-ad-content{display:none;width:100%;min-width:0;margin:20px auto;clear:both;text-align:center}
.wiki-ad-content-catalog{margin:36px auto 28px}
.wiki-ad-content-wide{display:none;width:728px;margin:0 auto}
.wiki-ad-content-wide [data-ad-unit]{width:728px;height:90px}
.wiki-ad-content iframe{display:block;border:0;margin:0;padding:0}
body.wiki-shell .wiki-content .wiki-ad-content img{display:block;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;filter:none}
@container(min-width:728px){.wiki-ad-content{display:block}.wiki-ad-content-wide{display:block}}
body.wiki-has-ads .wiki-content :is(h2,h3,[id]){scroll-margin-top:96px}
@media(min-width:1101px){
 body.wiki-shell.wiki-has-ads .wiki-frame .wiki-topbar{height:84px;min-height:84px;background-size:auto 84px}
 body.wiki-shell.wiki-has-ads .wiki-frame .wiki-topbar .header-inner{height:80px;min-height:80px}
 body.wiki-has-ads .wiki-main-area{display:grid;grid-template-columns:minmax(0,1fr);align-content:start}
 body.wiki-has-ads .wiki-topbar{grid-area:1/1}
 body.wiki-has-ads .wiki-main-area>.wiki-ad-banner{grid-area:1/1;align-self:start;justify-self:start;max-width:none;margin:4px 15px 0;width:468px;position:sticky;top:4px;z-index:61}
 body.wiki-has-ads .wiki-main-area>.wiki-content{grid-area:2/1}
 body.wiki-shell.wiki-has-ads .wiki-frame .wiki-topbar .header-inner{padding-left:492px}
 body.wiki-has-ads .wiki-main-area>.wiki-ad-banner .wiki-ad-label{color:#f5e7cf}
 body.wiki-shell.wiki-has-ads .wiki-frame .wiki-search-toggle{flex:1 1 240px;min-width:160px;width:auto}
 body.wiki-has-ads .wiki-search-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.wiki-has-ads .wiki-search-toggle kbd,body.wiki-has-ads .wiki-report{flex-shrink:0}
 body.wiki-shell.wiki-has-ads .search-panel{top:88px}
 body.wiki-shell.wiki-has-ads .wiki-content article.main-content.wiki-guide .guide-utility,body.wiki-shell.wiki-has-ads .wiki-content .catalog-filters{top:96px}
}

