/* Story Codex — a manuscript-grounded wiki, in Eldarûn's established palette. */
.story-wiki-page{max-width:1500px;padding-left:48px;padding-right:48px}
.story-wiki-layout{display:grid;grid-template-columns:185px minmax(0,1fr) 294px;grid-template-areas:"contents heading reference" "contents article reference";column-gap:34px;align-items:start;padding:10px 0 45px}
.story-wiki-header{grid-area:heading;min-width:0}
.story-wiki-header>.eyebrow{font-size:13px;letter-spacing:1.5px;color:#755e34}
.story-wiki-header h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(39px,4.4vw,62px);line-height:1.08;font-weight:400;letter-spacing:-1.8px;color:#2b442f;margin:15px 0 13px;overflow-wrap:break-word;scroll-margin-top:25px}
.story-subtitle{font-family:Georgia,'Times New Roman',serif;font-size:18px;font-style:italic;line-height:1.65;color:#5e6451;margin:0}
.story-article-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;border-top:1px solid #d6cebc;border-bottom:1px solid #d6cebc;margin:23px 0 0;padding:12px 0;color:#626151;font-size:13px;line-height:1.6}
.story-article-bar>span:first-child{letter-spacing:1.4px;font-size:13px;color:#6d5d3a}
.story-article-bar>span:nth-child(2){margin-right:auto}
.story-article-bar .article-tool{display:inline-flex;gap:6px;align-items:center;color:#715f3c;font-size:13px;background:none;border:0;padding:3px 0;margin:0;min-height:29px}
.story-article-bar svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.4}
.story-parent{display:flex;align-items:center;gap:7px;font-size:13px;color:#5e614b;margin:17px 0 0}
.story-parent svg{width:14px;height:14px}
.story-wiki-body{grid-area:article;min-width:0;font-family:Georgia,'Times New Roman',serif;font-size:16px;line-height:1.87;color:#3e4a38;padding-top:23px}
.story-wiki-body p{margin:0 0 18px}
.story-wiki-body a.lore-link{color:#755e34;text-decoration:underline;text-decoration-color:#c8b98f;text-underline-offset:3px}
.story-wiki-body a.lore-link:hover{color:#2d4f30;text-decoration-color:currentColor}
.story-wiki-body h2{font-family:Georgia,'Times New Roman',serif;font-size:29px;line-height:1.3;font-weight:400;letter-spacing:-.4px;color:#3b5136;margin:37px 0 20px;padding-bottom:11px;border-bottom:1px solid #d9cfbc;scroll-margin-top:25px}
.story-wiki-body h3{font-family:Georgia,'Times New Roman',serif;font-size:22px;line-height:1.4;font-weight:400;color:#536147;margin:29px 0 14px;scroll-margin-top:25px}
.story-section,.story-history,#story-overview,.story-sources{scroll-margin-top:25px}
.story-intro{font-size:19px;line-height:1.8;color:#43523a}
.story-reading-note{font-family:var(--body);margin:0 0 25px;border-left:2px solid #a99a6d;padding:2px 0 2px 14px;color:#606051;font-size:13px;line-height:1.75}
.story-reading-note>span{display:flex;align-items:center;gap:7px;font-size:13px;letter-spacing:1.2px;color:#6d5e3d}
.story-reading-note svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.2}
.story-reading-note p{margin:6px 0 0}
.story-ref{font-family:var(--body);font-size:13px;font-weight:400;vertical-align:super;line-height:0;letter-spacing:0;margin-left:4px;white-space:nowrap}
.story-ref>a{color:#715d37;text-decoration:none}
.story-ref>a:hover{text-decoration:underline;text-underline-offset:2px}
.story-contents{grid-area:contents;position:sticky;top:24px;max-height:calc(100dvh - 48px);min-width:0;overflow:auto;padding-right:8px;font-family:var(--body);scrollbar-width:thin;scrollbar-color:#c4baa0 transparent}
.story-toc>summary{font-size:13px;line-height:1.5;color:#5b624f;font-weight:600;cursor:pointer;list-style:none;padding:4px 0 15px;border-bottom:1px solid #d4cbb8}
.story-toc>summary::-webkit-details-marker{display:none}
.story-toc>summary:after{content:'⌄';float:right;color:#646152}
.story-toc>summary span{font-size:13px;font-weight:400;color:#616353;letter-spacing:0;margin-left:7px}
.story-toc-search{display:flex;align-items:center;gap:6px;margin:13px 0 10px;border:1px solid #d8cfba;padding:9px 8px;background:#f4f0e6}
.story-toc-search svg{width:12px;height:12px;stroke:#8a8e77;stroke-width:1.5;fill:none;flex-shrink:0}
.story-toc-search input{background:none;border:0;outline:0;width:100%;min-width:0;font-size:13px;font-family:var(--body);color:#526249}
.story-toc-search input::placeholder{color:#616255}
.story-toc-search:focus-within{border-color:#8d986d;box-shadow:0 0 0 2px #8d986d22}
.story-toc-depth{display:flex;align-items:center;gap:7px;font-size:13px;color:#5e6154;margin:12px 0 8px;cursor:pointer}
.story-toc-depth input{accent-color:#687a51;width:12px;height:12px;margin:0}
.story-toc ol{list-style:none;margin:0;padding:4px 0;max-height:calc(100dvh - 265px);overflow:auto;scrollbar-width:thin}
.story-toc li{margin:0;padding:0}
.story-toc a{display:block;color:#5c6452;font-size:13px;line-height:1.55;padding:8px 4px 8px 0;text-decoration:none;overflow-wrap:break-word}
.story-toc a:hover{color:#334d31;text-decoration:underline;text-underline-offset:3px}
.story-toc a>small{display:block;font-size:13px;letter-spacing:.8px;color:#705e40;margin-top:3px}
.story-toc .story-toc-subsection{padding-left:11px;border-left:1px solid #ddd4be;margin-left:3px}
.story-toc .story-toc-subsection a{font-size:13px;color:#5e6153;padding:5px 2px 5px 0}
.story-toc ol:not(.story-show-subsections) .story-toc-subsection{display:none}
.story-toc-empty{font-size:13px;color:#616251;line-height:1.7;margin:14px 0}
.story-contents-actions{border-top:1px solid #d7ceba;display:flex;flex-direction:column;gap:12px;padding:16px 0 5px;margin-top:14px;font-size:13px;line-height:1.6;color:#6d5d3d}
.story-contents-actions a:hover{color:#3c5637;text-decoration:underline;text-underline-offset:3px}
.story-reference{grid-area:reference;min-width:0;font-family:var(--body)}
.story-infobox{border:1px solid #cfc4ab;background:#eee8da;box-shadow:0 4px 18px #302b1810}
.story-infobox>header{background:#e6dfcd;padding:18px 14px;text-align:center;border-bottom:1px solid #cfc4ab}
.story-infobox>header .eyebrow{font-size:13px;letter-spacing:1.7px;color:#735f38}
.story-infobox>header h2{font-family:Georgia,'Times New Roman',serif;font-size:26px;font-weight:400;line-height:1.25;letter-spacing:-.5px;color:#3c5035;margin:8px 0;overflow-wrap:break-word}
.story-infobox>header p{font-size:13px;color:#5f614f;line-height:1.7;margin:0}
.story-art-placeholder{position:relative;min-height:235px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:30px 24px;margin:12px;background:radial-gradient(ellipse at center,#faf6e670,transparent 70%),linear-gradient(135deg,#ece6d8,#e1d8c5);border:1px solid #d1c4a7;text-align:center;color:#6b6046}
.story-art-placeholder:before{content:'';position:absolute;inset:11px;border:1px solid #c7b89580;pointer-events:none}
.story-art-placeholder>svg{width:44px;height:44px;fill:none;stroke:#a18d59;stroke-width:.85;margin:2px 0 13px}
.story-art-placeholder>span{font-family:Georgia,'Times New Roman',serif;font-size:23px;line-height:1.35;color:#695e3f;overflow-wrap:break-word}
.story-art-placeholder>small{font-size:13px;line-height:1.7}
.story-fact-group{margin:17px 15px 0}
.story-fact-group>h3{font-family:var(--body);font-size:13px;letter-spacing:1.3px;line-height:1.5;text-transform:uppercase;color:#705c36;font-weight:500;padding-bottom:10px;border-bottom:1px solid #c9bfa8;margin:0}
.story-fact-group dl{margin:0;padding:0}
.story-fact-group dl>div{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;padding:11px 0;border-bottom:1px solid #d7ceba;font-size:13px;line-height:1.7}
.story-fact-group dt{color:#5e6150;font-weight:500;overflow-wrap:break-word}
.story-fact-group dd{margin:0;color:#4d5941;overflow-wrap:break-word}
.story-fact-group a.lore-link{color:#775e2b;text-decoration:underline;text-decoration-color:#c2b386;text-underline-offset:3px}
.story-fact-group .story-ref{font-size:13px;margin-left:2px}
.story-infobox-source{padding:17px 15px;font-size:13px;line-height:1.8;color:#616151}
.story-infobox-source>a{display:flex;align-items:center;justify-content:space-between;margin-top:13px;padding-top:12px;border-top:1px solid #cbbc9b;color:#725e34;font-size:13px}
.story-directory{border:1px solid #cbd1bd;background:#eef0e6;padding:19px 20px;margin:27px 0;scroll-margin-top:25px}
.story-directory h2{font-size:24px;line-height:1.4;border:0;padding:0;margin:0 0 15px}
.story-directory ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 18px}
.story-directory li{margin:0}
.story-directory a{position:relative;display:block;padding:10px 15px 10px 0;border-top:1px solid #d0d7c3}
.story-directory strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:20px;line-height:1.3;font-weight:400;color:#4d6641}
.story-directory small{display:block;font-family:var(--body);font-size:13px;line-height:1.7;margin-top:6px;color:#5b624f}
.story-directory a>span{position:absolute;right:0;top:10px;font-size:14px;color:#5e6448}
.story-directory a:hover strong{text-decoration:underline;text-underline-offset:3px}
.story-wiki-spoilers{margin:32px 0;border:1px solid #cbbf9f;background:#eee8d9;scroll-margin-top:25px}
.story-wiki-spoilers>summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:19px 21px;cursor:pointer;list-style:none;font-family:var(--body);color:#6b5e3e}
.story-wiki-spoilers>summary::-webkit-details-marker{display:none}
.story-wiki-spoilers>summary strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:24px;font-weight:400;line-height:1.35;color:#6d603e}
.story-wiki-spoilers>summary small{display:block;font-size:13px;line-height:1.7;color:#675e49;margin-top:6px}
.story-wiki-spoilers .spoiler-toggle{font-size:25px;font-weight:300;color:#6a5e3f}
.story-wiki-spoilers[open] .spoiler-toggle{transform:rotate(45deg)}
.story-wiki-spoilers .story-spoiler-body{padding:0 22px 11px;border-top:1px solid #d7ccb4}
.story-wiki-spoilers h2{font-size:26px;margin-top:29px}
.story-print-omission{display:none}
.story-world-link{border:1px solid #d1c6ad;background:#eee9dc;padding:22px;margin:33px 0;font-family:var(--body);color:#5f614e}
.story-world-link .eyebrow{font-size:13px;color:#715e36;letter-spacing:1.3px}
.story-world-link h2{border:0;font-size:25px;margin:9px 0 11px;padding:0}
.story-world-link p{font-size:13px;line-height:1.8;margin-bottom:14px}
.story-world-link>a{display:inline-flex;gap:14px;align-items:center;font-size:13px;color:#715e38}
.story-world-link>a svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.2}
.story-sources{border-top:1px solid #d3c8af;margin-top:35px;padding-top:25px;font-family:var(--body);font-size:13px;line-height:1.8;color:#5e614f}
.story-sources>.eyebrow{font-size:13px;color:#715d35;letter-spacing:1.4px}
.story-sources h2{font-size:26px;border:0;margin:7px 0 16px;padding:0}
.story-sources>p>a{color:#735d30;text-decoration:underline;text-underline-offset:3px}
.story-sources>p>span{font-size:13px;color:#606154}
.story-appearance-range{border-top:1px solid #d9d1be;padding-top:14px}
.story-appearance-range>strong{display:block;font-size:13px;color:#5d634f;font-weight:500;margin-bottom:5px}
.story-sources ol{list-style:none;padding:0;margin:17px 0 0}
.story-sources li{display:flex;align-items:baseline;gap:10px;border-top:1px solid #ddd4c1;padding:10px 0;font-size:13px;scroll-margin-top:25px}
.story-source-number{flex-shrink:0;color:#705f3a;font-size:13px;min-width:22px}
.story-related{border-top:1px solid #d0c6b0;padding:30px 0 50px;font-family:var(--body)}
.story-related-heading{position:relative;margin-bottom:22px}
.story-related-heading .eyebrow{font-size:13px;color:#735c32;letter-spacing:1.5px}
.story-related-heading h2{font-family:Georgia,'Times New Roman',serif;font-size:36px;line-height:1.3;font-weight:400;color:#385332;margin:8px 0 0}
.story-related-heading>a{position:absolute;bottom:5px;right:0;font-size:13px;color:#715d36}
.story-related ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 25px}
.story-related li{min-width:0}
.story-related li>a{position:relative;display:block;border-top:1px solid #dbd0ba;padding:17px 25px 17px 0}
.story-related li>a>span{display:block;font-size:13px;letter-spacing:1px;text-transform:uppercase;color:#6a5e40;margin-bottom:7px}
.story-related strong{font-family:Georgia,'Times New Roman',serif;font-size:21px;line-height:1.4;font-weight:400;color:#506641;overflow-wrap:break-word}
.story-related svg{position:absolute;right:0;top:33px;width:16px;height:16px;stroke:#b2a072;stroke-width:1.2;fill:none}
.story-related li>a:hover strong{text-decoration:underline;text-underline-offset:3px}
.story-art{border:1px solid #d1c5ac;background:#f1ecdf;margin:24px 0;overflow:hidden;font-family:var(--body)}
.story-art-portrait{margin:12px}
.story-art-open{display:block;position:relative;width:100%;border:0;padding:0;background:#e7dfcf;color:#6f5e3a}
.story-art-open img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;margin:0;aspect-ratio:auto}
.story-art-portrait img{max-height:400px}
.story-art-open>span{position:absolute;right:10px;bottom:10px;background:#fffdf2e8;padding:2px 8px;font-size:18px}
.story-art figcaption{font-size:13px;line-height:1.7;color:#5f6452;padding:12px 14px}
.story-art figcaption>strong,.story-art figcaption>span,.story-art figcaption>small{display:block}
.story-art figcaption strong{font-weight:600;color:#536247;margin-bottom:4px}
.story-art figcaption .story-art-identification{color:#715e3c;margin-bottom:5px}
.story-art figcaption small{font-size:13px;margin-top:5px;color:#626052}
.story-gallery{padding-top:26px;margin-top:35px;border-top:1px solid #d3c9b5;scroll-margin-top:25px}
.story-gallery>.eyebrow{font-family:var(--body);font-size:13px;color:#745e35;letter-spacing:1.6px}
.story-gallery h2{border:0;padding:0;margin:8px 0 13px;font-size:34px}
.story-gallery-description{font-family:var(--body);font-size:13px;color:#5f6152}
.story-art-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.story-art-grid .story-art{margin:0}
.story-art-grid .story-art-open{aspect-ratio:4/3}
.story-art-grid img{width:100%;height:100%;max-height:none;object-fit:contain}
.story-wiki-page [hidden]{display:none!important}
.story-art-dialog{border:1px solid #c7b590;background:#f6f2e7;color:#43563a;width:min(900px,calc(100vw - 30px));max-height:92dvh;margin:auto;padding:0;box-shadow:0 20px 100px #0007;font-family:var(--body)}
.story-art-dialog::backdrop{background:#0c160cda;backdrop-filter:blur(4px)}
.story-art-dialog>header{display:flex;align-items:start;justify-content:space-between;gap:25px;padding:22px 25px 17px;border-bottom:1px solid #d6cab0}
.story-art-dialog .eyebrow{font-size:13px;color:#755e32;letter-spacing:1.4px}
.story-art-dialog h2{font-family:Georgia,'Times New Roman',serif;font-size:28px;font-weight:400;line-height:1.25;letter-spacing:-.5px;margin-top:7px}
.story-art-dialog>header>button{width:37px;height:37px;border:1px solid #c4b68e;background:transparent;font-size:24px;line-height:1;color:#6e5e3a;flex-shrink:0}
.story-image-stage{height:min(58dvh,590px);min-height:230px;display:flex;align-items:center;justify-content:center;padding:15px;background:#e7dfce}
.story-image-stage img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.story-image-caption{padding:16px 25px;font-size:13px;line-height:1.7;color:#5b6450;margin:0}
.story-art-dialog>nav{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 25px 22px;font-size:13px;color:#64614c}
.story-art-dialog>nav button{border:1px solid #c5b691;background:transparent;font-size:13px;color:#626142;padding:9px 15px;min-height:39px}
.story-art-dialog>nav button:disabled{opacity:.45}
.story-art-viewing{overflow:hidden}

@media(min-width:1550px){.story-wiki-layout{grid-template-columns:200px minmax(0,1fr) 310px;column-gap:42px}.story-wiki-body{font-size:17px}.story-fact-group dl>div{grid-template-columns:88px minmax(0,1fr)}}
@media(max-width:1180px){.story-wiki-page{padding-left:28px;padding-right:28px}.story-wiki-layout{grid-template-columns:150px minmax(0,1fr) 265px;column-gap:24px}.story-wiki-header h1{font-size:48px}.story-subtitle{font-size:17px}.story-fact-group dl>div{grid-template-columns:74px minmax(0,1fr);gap:8px;font-size:13px}.story-toc a{font-size:13px}.story-toc .story-toc-subsection a{font-size:13px}.story-art-placeholder{min-height:210px;padding:26px 21px}.story-art-placeholder>span{font-size:21px}.story-related ul{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.story-wiki-layout{grid-template-columns:minmax(0,1fr) 270px;grid-template-areas:"contents contents" "heading reference" "article reference";column-gap:27px}.story-contents{position:static;max-height:none;padding:0;margin-bottom:27px;border:1px solid #d1c7b0;background:#eee8db}.story-toc{padding:0 17px}.story-toc>summary{border:0;padding:14px 0}.story-toc[open]>summary{border-bottom:1px solid #d2c6ae}.story-toc ol{columns:2;column-gap:25px;max-height:350px;margin-bottom:14px}.story-toc li{break-inside:avoid}.story-toc a{font-size:13px}.story-toc .story-toc-subsection a{font-size:13px}.story-contents-actions{display:none}.story-toc-search input{font-size:13px}.story-wiki-header h1{font-size:46px}.story-wiki-body h2{font-size:27px}.story-wiki-body h3{font-size:22px}.story-intro{font-size:18px}}
@media(max-width:700px){.story-wiki-page{padding:0 21px}.story-wiki-layout{display:flex;flex-direction:column;gap:0;padding-top:0;padding-bottom:30px}.story-wiki-header{order:1;width:100%}.story-wiki-header h1{font-size:42px;line-height:1.13;letter-spacing:-1px;margin-top:14px}.story-subtitle{font-size:16px;line-height:1.7}.story-wiki-header>.eyebrow{font-size:13px;letter-spacing:1.1px}.story-article-bar{margin-top:20px;gap:9px 11px;font-size:13px}.story-article-bar .article-tool{min-height:32px;font-size:13px}.story-contents{order:0;width:100%;margin-bottom:25px}.story-toc ol{columns:1;max-height:45dvh}.story-toc-search input{font-size:16px}.story-reference{order:2;width:100%;margin:25px 0 4px}.story-infobox{max-width:430px;margin:0 auto}.story-infobox>header{padding:15px}.story-infobox>header h2{font-size:27px}.story-fact-group dl>div{font-size:13px;grid-template-columns:99px minmax(0,1fr);gap:15px;padding:11px 0}.story-art-placeholder{min-height:225px;max-height:290px;padding:30px}.story-art-placeholder>span{font-size:23px}.story-wiki-body{order:3;width:100%;padding-top:25px;font-size:16px;line-height:1.87}.story-wiki-body h2{font-size:27px}.story-wiki-body h3{font-size:22px}.story-intro{font-size:18px}.story-wiki-spoilers>summary{padding:17px}.story-wiki-spoilers>summary strong{font-size:22px}.story-wiki-spoilers .story-spoiler-body{padding:0 17px 7px}.story-wiki-spoilers h2{font-size:24px}.story-directory{padding:18px}.story-directory ul{gap:8px 12px}.story-directory strong{font-size:19px}.story-related-heading>a{position:static;display:inline-block;margin-top:12px}.story-related-heading h2{font-size:33px}.story-related ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.story-related strong{font-size:20px}.story-related li>a{padding:15px 20px 15px 0}.story-gallery{margin-top:30px}.story-art-grid{gap:13px}.story-art-grid .story-art-open{aspect-ratio:1/1}.story-art figcaption{padding:10px 12px}.story-art-dialog>header{padding:18px 20px}.story-art-dialog h2{font-size:23px}.story-image-stage{height:47dvh;min-height:220px}.story-image-caption{padding:15px 20px;font-size:13px}.story-art-dialog>nav{padding:0 20px 20px}}
@media print{
  @page{margin:17mm 16mm 18mm;size:auto}
  .story-wiki-page{padding:0!important;max-width:none!important}
  .story-wiki-layout{display:block!important;padding:0!important}
  .story-contents,.story-reading-note,.story-article-bar button,.story-related,.story-parent,.story-world-link,.story-art-placeholder,.story-art-open>span,.story-art-dialog,.story-infobox-source>a{display:none!important}
  .story-wiki-header{display:block;margin:0 0 7mm;break-after:avoid}
  .story-wiki-header>.eyebrow{font-size:8pt;color:#555}
  .story-wiki-header h1{font-family:Georgia,'Times New Roman',serif;font-size:29pt;line-height:1.15;color:#000;margin:3mm 0;letter-spacing:-.4pt}
  .story-subtitle{font-size:11pt;line-height:1.5;color:#555}
  .story-article-bar{margin-top:4mm;padding:2mm 0;font-size:8pt;color:#555;border-color:#bbb;gap:4mm}
  .story-reference{display:block;float:right;width:64mm;margin:0 0 5mm 6mm;break-inside:avoid;position:static}
  .story-infobox{border:1px solid #aaa;box-shadow:none;background:none}
  .story-infobox>header{padding:3mm;background:#eee;border-color:#bbb}
  .story-infobox>header .eyebrow{font-size:7.5pt;color:#555}
  .story-infobox>header h2{font-size:17pt;color:#222}
  .story-infobox>header p{font-size:7.5pt;color:#555}
  .story-fact-group{margin:3mm 3mm 0}
  .story-fact-group>h3{font-size:7.5pt;line-height:1.4;color:#555;letter-spacing:.7pt;padding-bottom:2mm;border-color:#bbb}
  .story-fact-group dl>div{grid-template-columns:20mm minmax(0,1fr);gap:2mm;padding:2mm 0;font-size:8pt;line-height:1.4;border-color:#ccc;break-inside:avoid}
  .story-fact-group dt,.story-fact-group dd{color:#222}
  .story-fact-group a.lore-link{color:#222;text-decoration:none}
  .story-infobox-source{font-size:7.5pt;line-height:1.5;color:#666;padding:3mm}
  .story-wiki-body{display:block;min-width:0;padding:0;font-size:10.5pt;line-height:1.5;color:#000}
  .story-wiki-body p{margin:0 0 3mm;orphans:3;widows:3}
  .story-wiki-body .story-intro{font-size:11pt;line-height:1.55;color:#000}
  .story-wiki-body h2{font-family:Georgia,'Times New Roman',serif;font-size:17pt;line-height:1.3;color:#000;margin:6mm 0 3mm;padding-bottom:2mm;border-color:#aaa;break-after:avoid}
  .story-wiki-body h3{font-family:Georgia,'Times New Roman',serif;font-size:13pt;line-height:1.3;color:#000;margin:5mm 0 2mm;break-after:avoid}
  .story-wiki-body a.lore-link{color:#222;text-decoration:none}
  .story-ref,.story-fact-group .story-ref{font-size:7.5pt}
  .story-ref>a{color:#555}
  .story-directory{clear:both;background:none;border-color:#bbb;padding:3mm;break-inside:avoid}
  .story-directory strong{font-size:11pt;color:#333}
  .story-directory small{font-size:8pt;color:#666}
  .story-directory a>span{display:none}
  .story-wiki-spoilers{display:block!important;break-inside:auto;clear:both;border:0;border-top:1px solid #aaa;background:none;padding:0;margin:6mm 0}
  .story-wiki-spoilers>summary{padding:3mm 0;break-after:avoid;display:block}
  .story-wiki-spoilers>summary strong{font-size:16pt;color:#333}
  .story-wiki-spoilers>summary small{font-size:8pt;color:#555}
  .story-wiki-spoilers .spoiler-toggle{display:none}
  .story-wiki-spoilers .story-spoiler-body{padding:0;border:0}
  .story-wiki-spoilers:not([open]) .story-spoiler-body{display:none!important}
  .story-wiki-spoilers:not([open])+.story-print-omission{display:block;font-size:8pt;color:#555}
  .story-sources{clear:both;padding-top:4mm;margin-top:7mm;font-size:8pt;color:#555;border-color:#aaa}
  .story-sources>.eyebrow{font-size:7.5pt;color:#666}
  .story-sources li{font-size:8pt;color:#555;padding:2mm 0;break-inside:avoid}
  .story-source-number{font-size:7.5pt;color:#666}
  .story-art{break-inside:avoid;border-color:#bbb;background:none;margin:4mm 0}
  .story-art-portrait{margin:3mm}
  .story-art-open{display:block;background:none}
  .story-art-open img{max-height:100mm;object-fit:contain}
  .story-art-portrait img{max-height:55mm}
  .story-art figcaption{font-size:8pt;line-height:1.4;color:#444;padding:2mm}
  .story-art figcaption strong{color:#222}
  .story-art figcaption small{font-size:7.5pt;color:#666}
  .story-gallery{clear:both;margin-top:7mm;padding-top:4mm;border-color:#aaa}
  .story-gallery>.eyebrow{font-size:7.5pt;color:#666}
  .story-gallery h2{font-size:20pt;color:#000;break-after:avoid;margin:2mm 0 4mm}
  .story-gallery-description{display:none}
  .story-art-grid{display:block;column-count:2;column-gap:5mm}
  .story-art-grid .story-art{break-inside:avoid;margin-bottom:4mm}
  .story-art-grid .story-art-open{aspect-ratio:auto}
  .story-art-grid img{height:auto;max-height:80mm;object-fit:contain}
}

/* Readability and responsive reference panels. */
.story-reference-details>summary{display:none}
@media screen{
  .story-wiki-page{--reader-muted:#536047;--reader-accent:#6f5122}
  .story-wiki-layout{grid-template-columns:195px minmax(0,1fr) 300px;column-gap:30px}
  .story-wiki-header>.eyebrow,.story-infobox>header .eyebrow,.story-fact-group>h3,.story-reading-note>span,.story-sources>.eyebrow,.story-related-heading .eyebrow,.story-gallery>.eyebrow,.story-world-link .eyebrow{font-size:11px;letter-spacing:1.2px}
  .story-article-bar>span:first-child{font-size:11px}
  .story-subtitle,.story-reading-note,.story-toc a,.story-toc .story-toc-subsection a,.story-toc-depth,.story-toc-empty,.story-toc>summary span,.story-infobox>header p,.story-infobox-source,.story-fact-group dt,.story-directory small,.story-wiki-spoilers>summary small,.story-world-link,.story-sources,.story-sources>p>span,.story-appearance-range>strong,.story-art figcaption,.story-art figcaption small,.story-gallery-description{color:var(--reader-muted)}
  .story-wiki-body a.lore-link,.story-parent,.story-ref>a,.story-contents-actions,.story-infobox-source>a,.story-world-link>a,.story-sources>p>a,.story-source-number,.story-related-heading>a,.story-art figcaption .story-art-identification{color:var(--reader-accent)}
  .story-article-bar .article-tool{font-size:13px;min-height:44px;padding:7px 4px}
  .story-toc>summary{min-height:44px;padding-top:10px;padding-bottom:12px;font-size:14px}
  .story-toc>summary span{font-size:12px}
  .story-toc a,.story-toc .story-toc-subsection a{font-size:13px;min-height:40px;padding:10px 4px 10px 0}
  .story-toc-search{min-height:46px;padding:10px}
  .story-toc-search input{font-size:14px;color:#344b2e}
  .story-toc-search input::placeholder{color:#5b6149;opacity:1}
  .story-toc-depth{min-height:40px;font-size:13px}
  .story-toc-depth input{width:17px;height:17px;flex-shrink:0}
  .story-toc a>small,.story-related li>a>span{font-size:11px;color:#6f5122}
  .story-contents-actions{gap:2px;font-size:13px}
  .story-contents-actions a{display:flex;align-items:center;min-height:42px}
  .story-fact-group dl>div{font-size:13px;line-height:1.7}
  .story-fact-group .story-ref{font-size:10px}
  .story-ref{font-size:11px}
  .story-sources li,.story-source-number{font-size:13px}
  .story-sources li>span:last-child{min-width:0;overflow-wrap:anywhere}
  .story-art-dialog>header>button,.story-art-dialog>nav button{min-height:44px;min-width:44px}
  .story-art-dialog>header>button{width:44px;height:44px}
  .story-art-dialog>nav button,.story-art-dialog>nav,.story-image-caption{font-size:14px;color:#4c5a40}
  .story-wiki-page :is(a,button,summary,input):focus-visible,.story-art-dialog :is(a,button):focus-visible{outline:3px solid #536e3d;outline-offset:4px}
}
@media screen and (max-width:1180px){.story-wiki-layout{grid-template-columns:165px minmax(0,1fr) 275px;column-gap:22px}}
@media screen and (max-width:1000px){.story-wiki-layout{grid-template-columns:minmax(0,1fr) 270px}.story-toc a{min-height:44px}}
@media screen and (max-width:700px){
  .story-contents{margin-bottom:20px}
  .story-wiki-header>.eyebrow{font-size:11px}
  .story-reference{margin:18px 0 0}
  .story-reference-details{border:1px solid #c5baa0;background:#eee8da}
  .story-reference-details>summary{display:flex;align-items:center;gap:10px;min-height:54px;padding:12px 16px;list-style:none;cursor:pointer;color:#344c2d;font-size:15px;font-weight:600}
  .story-reference-details>summary::-webkit-details-marker{display:none}
  .story-reference-details>summary small{margin-left:auto;font-size:12px;font-weight:400;color:#536047}
  .story-reference-details>summary:after{content:'+';font-size:22px;font-weight:400;color:#6f5122}
  .story-reference-details[open]>summary:after{content:'−'}
  .story-reference-details[open]>summary{border-bottom:1px solid #c5baa0}
  .story-reference-details .story-infobox{max-width:none;border:0;box-shadow:none}
  .story-reference-details .story-infobox>header{display:none}
  .story-fact-group dl>div{font-size:13px;grid-template-columns:minmax(85px,1fr) minmax(0,1.6fr);gap:13px}
  .story-wiki-body{padding-top:20px}
  .story-reading-note{margin-bottom:17px;font-size:13px;line-height:1.7}
  .story-toc-search input{font-size:16px}
  .story-toc-depth{min-height:44px}
  .story-toc .story-toc-subsection a{font-size:13px;min-height:44px}
  .story-related li>a{min-height:70px}
  .story-related-heading>a,.story-world-link>a{min-height:44px;align-items:center}
}
@media print{.story-reference-details{display:block!important;border:0;background:none}.story-reference-details>summary{display:none!important}}
