/* Shared navigation and reading conventions for every Northern Wilds page. */
header{min-height:58px;padding:12px 5%;justify-content:center}
.hero>.hero-page-links{scroll-padding:12px;padding:8px 8px 12px}
.hero>.hero-page-links a[aria-current]{color:#fff0c9;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px;filter:brightness(1.2)}
.hero>.hero-page-links a[href^="https:"] span{display:inline;font-family:Georgia,serif;font-size:12px}
.breadcrumbs{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;font:15px/1.65 Georgia,serif;color:#afa68d;margin:28px 20px 16px}
.breadcrumbs a,.breadcrumbs a:last-child{display:inline;border:0;padding:0;text-decoration:underline;text-underline-offset:4px}
.breadcrumbs [aria-current]{color:#d2ccba}
.lore-content>.breadcrumbs{margin:0 0 20px}
.related-pages{max-width:820px;margin:38px auto;padding:24px 0;border-top:1px solid #8b76554d}
.related-pages h2{font-size:30px;margin:0 0 18px}
.related-pages nav,.directory-groups nav{display:flex;flex-wrap:wrap;gap:12px 26px;font:16px/1.7 Georgia,serif}
.related-pages a,.related-pages a:last-child,.directory-groups a,.directory-groups a:last-child{display:inline-block;border:0;padding:6px 0;color:#d1b78c;text-decoration:underline;text-underline-offset:4px}
.directory-note{text-align:center;color:#aaa993;font:16px/1.8 Georgia,serif}
.directory-groups{display:grid;grid-template-columns:1fr 1fr;gap:16px 32px;align-items:start}
.directory-groups .full-directory{margin:0;padding:20px 14px}
.directory-groups nav{flex-direction:column;gap:4px;margin-top:20px}
summary:focus-visible{outline:2px solid var(--gold);outline-offset:6px}
footer{gap:20px;flex-wrap:wrap}footer a{padding:8px 0}
.lore-prose h3{font-size:30px;line-height:1.25;overflow-wrap:anywhere}
.lore-content h1{overflow-wrap:anywhere}
.imported-section{margin:0;padding:0}.lore-prose img{display:block;max-width:100%;height:auto;margin:28px auto}.reference-image{display:block}.reference-image:focus-visible{outline-offset:4px}.unfinished-note{padding:20px 0;border-top:1px solid #8b76554d;color:#afa68d}.lore-prose table{display:block;overflow-x:auto;max-width:100%}.lore-links a{overflow-wrap:anywhere}
@media(max-width:700px){.directory-groups{grid-template-columns:1fr}.breadcrumbs{font-size:14px}.related-pages nav{gap:8px 20px}.hero>.hero-page-links{width:calc(100% - 28px)}.related-pages a{min-height:44px}.remaining-lore{flex-wrap:wrap}}
/* Navigation refresh: carved primary links, quieter reading navigation. */
:root{--nw-sticky-height:86px}html{scroll-padding-top:110px}body [id]{scroll-margin-top:110px}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid #e4c58b;outline-offset:4px}
body[data-nw-page="inner"] .veil-stage{max-width:960px;width:calc(100% - 48px);margin:16px auto 20px}
body[data-nw-page="inner"] .hero{padding-top:0;padding-bottom:0;min-height:0}
body[data-nw-page="inner"] .veil-header{max-height:220px;overflow:hidden}
body[data-nw-page="inner"] .veil-header img{width:100%;max-height:220px;object-fit:cover}
body[data-nw-page="inner"] .veil-stage .wordmark{max-width:440px}
.nw-navigation{position:sticky;top:0;z-index:100;background:#0b1412f5;border-block:1px solid #9a805140;box-shadow:0 8px 20px #0005;backdrop-filter:blur(12px);padding:10px 24px}
.nw-nav-inner{display:flex;align-items:center;gap:18px;max-width:1250px;margin:auto}.nw-primary{display:flex;flex:1;gap:10px;margin:0}
.nw-primary a,.nw-primary a:last-child{display:flex;flex:1;align-items:center;justify-content:center;min-height:60px;padding:16px 18px;border:0;background:url('/assets/chronicle/button-centered.png') center/100% 100% no-repeat;font:700 21px/1.2 'Norse',Georgia,serif;text-transform:uppercase;letter-spacing:.04em;color:#d7cdb7;text-align:center;white-space:nowrap;text-decoration:none}
.nw-primary a[aria-current]{color:#fff0c5;filter:brightness(1.3);background-color:#94703b25;box-shadow:inset 0 -3px #d7b879}.nw-primary a:hover{filter:brightness(1.35)}
.nw-menu-toggle,.nw-search-toggle,.nw-search-close{font:16px/1.3 Georgia,serif;color:#e1d1ae;border:1px solid #826d48;background:#19221b;padding:12px 16px;min-height:44px;cursor:pointer;border-radius:3px}.nw-menu-toggle{display:none}.nw-search-toggle:hover,.nw-search-close:hover{background:#293026}.nw-search-extra{display:none}
.lore-links,.rules-buttons,.glossary-jumps{gap:0 24px!important;margin:24px auto!important}
.lore-links a,.lore-links a:last-child,.rules-buttons a,.rules-buttons a:last-child,.glossary-jumps a,.glossary-jumps a:last-child{background:none!important;border:0;border-bottom:1px solid #8b765550;min-height:54px;padding:14px 8px!important;font:17px/1.5 Georgia,serif!important;text-transform:none;letter-spacing:0;text-align:left;justify-content:flex-start;width:auto;color:#dcc79f}.lore-links a:hover,.rules-buttons a:hover,.glossary-jumps a:hover{background:#bda06c10!important;text-decoration:underline;transform:none}
.nw-reading-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:32px;max-width:1390px;margin:0 auto;padding:26px 28px 0;align-items:start}.nw-reading-layout>main{width:100%;min-width:0;padding:0 0 60px}.nw-sidebar{position:sticky;top:110px;max-height:calc(100dvh - 130px);overflow:auto;scrollbar-width:thin;scrollbar-color:#75684e transparent;border-right:1px solid #8b765550;padding:0 20px 20px 0}.nw-site-tree>summary{font:26px/1.4 'Norse',serif;color:#d9c69f;padding:10px 0;cursor:pointer}.nw-site-tree nav{padding-top:10px}.nw-site-tree details{padding-left:12px;border-left:1px solid #806e4b40;margin:8px 0}.nw-site-tree nav summary{font:15px/1.5 Georgia,serif;color:#d9c69f;padding:10px 6px;cursor:pointer}.nw-site-tree nav a,.nw-site-tree nav a:last-child{display:block;padding:10px 12px;border:0;font:14px/1.5 Georgia,serif;color:#bcbca9;text-decoration:none}.nw-site-tree nav a:hover{color:#f2ddad;background:#a38b5a12}.nw-site-tree a[aria-current]{color:#f1d49d!important;background:#bca06a18;border-left:2px solid #c3a66d!important}.nw-reading-layout .breadcrumbs{justify-content:flex-start;margin:8px 0 18px}.nw-reading-layout .section-heading h1{margin-top:8px}.nw-reading-layout .section-heading{margin-bottom:20px}.nw-reading-layout .margin-doodle{display:none}
.lore-toc{margin:24px auto;padding:16px 22px}.lore-toc summary{font:19px/1.5 Georgia,serif}.lore-toc nav a{display:block;min-height:44px;padding:9px 0!important}.breadcrumbs a{min-height:32px}
.nw-search-dialog{width:min(720px,calc(100% - 32px));max-height:85dvh;padding:28px;border:1px solid #ac8f59;background:#101b17;color:#d9d2bd;box-shadow:0 20px 100px #000b}.nw-search-dialog::backdrop{background:#030806d9}.nw-search-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.nw-search-heading h2{font:34px/1.2 'Norse',serif;margin:0 0 20px}.nw-search-dialog label{display:block;font:16px/1.5 Georgia,serif;margin:10px 0}.nw-search-dialog input{display:block;width:100%;padding:15px;background:#070f0d;border:1px solid #9a805d;color:#f1e9d2;font:17px/1.4 Georgia,serif;box-sizing:border-box}.nw-search-status{font:14px/1.5 Georgia,serif;color:#b9b8a3}.nw-search-results{padding:0;margin:0;list-style:none}.nw-search-results li{border-bottom:1px solid #9a805140}.nw-search-results a{display:block!important;padding:18px 6px!important;border:0!important;text-decoration:none}.nw-search-results a:hover{background:#d0b5820c}.nw-search-results span{display:block;font:12px/1.5 Georgia,serif;color:#bca06c;margin-bottom:5px}.nw-search-results strong{font:20px/1.5 Georgia,serif;color:#ead8b0}.nw-search-results p{font:15px/1.6 Georgia,serif;margin:6px 0 0;color:#bfbfaf}
@media(max-width:1100px){.nw-primary a,.nw-primary a:last-child{font-size:18px;padding:16px 12px}.nw-nav-inner{gap:10px}.nw-reading-layout{grid-template-columns:220px minmax(0,1fr);gap:24px}}
@media(max-width:900px){:root{--nw-sticky-height:68px}.nw-navigation{padding:10px 18px}.nw-nav-inner{flex-wrap:wrap;justify-content:space-between}.nw-menu-toggle{display:flex;gap:10px;align-items:center}.nw-primary{display:none;width:100%;flex:auto;order:3;flex-direction:column;gap:5px;max-height:65dvh;overflow-y:auto;padding:8px 0}.nw-primary.is-open{display:flex}.nw-primary a,.nw-primary a:last-child{flex:none;min-height:54px;font-size:22px;background-size:100% 100%;padding:16px 28px}.nw-search-extra{display:inline}.nw-reading-layout{display:block;padding:18px 20px 0}.nw-sidebar{position:static;max-height:none;padding:0;border:1px solid #8b765550;margin-bottom:24px;background:#101a16}.nw-site-tree>summary{font:18px/1.5 Georgia,serif;padding:14px 16px}.nw-site-tree>nav{max-height:55dvh;overflow:auto;padding:8px 14px}.nw-site-tree nav a,.nw-site-tree nav a:last-child{font-size:16px;min-height:44px;box-sizing:border-box}.nw-site-tree nav summary{font-size:16px;min-height:44px;box-sizing:border-box}.nw-reading-layout>main{padding-top:0}.nw-reading-layout .breadcrumbs{font-size:13px}.nw-search-dialog{padding:20px}.nw-search-heading h2{font-size:28px}.nw-search-close{font-size:14px;white-space:nowrap}}
@media(max-width:600px){body[data-nw-page="inner"] .veil-stage{width:calc(100% - 32px);margin:8px auto 14px}body[data-nw-page="inner"] .veil-stage .wordmark{max-width:70%}.lore-links,.rules-buttons,.glossary-jumps{grid-template-columns:1fr;max-width:none!important}.lore-links a,.rules-buttons a,.glossary-jumps a{min-height:52px}.lore-toc nav{grid-template-columns:1fr}.nw-search-dialog{max-height:90dvh}.nw-search-heading{align-items:flex-start}.nw-reading-layout .section-heading h1{font-size:42px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.nw-site-tree nav{display:block}.nw-search-results li{display:block;padding:0}.nw-search-results a{width:100%}.skip:focus{z-index:200}
body[data-nw-page="inner"] .hero{height:auto;max-height:none;margin-top:0;margin-bottom:0}body[data-nw-page="inner"] .veil-stage{border-width:24px;border-image-width:24px}body[data-nw-page="inner"] .veil-stage .veil-header img{height:180px;aspect-ratio:auto;object-fit:cover}
@media(max-width:600px){body[data-nw-page="inner"] .veil-stage{border-width:14px;border-image-width:14px}body[data-nw-page="inner"] .veil-stage .veil-header img{height:auto;aspect-ratio:714/228;object-fit:contain}}
/* Keep search in the top masthead; the carved row is only for destinations. */
header{justify-content:space-between;gap:16px}header .nw-search-toggle{flex:none}header .nw-search-extra{display:inline}.nw-nav-inner{justify-content:center}.nw-primary{max-width:1200px}.nw-menu-toggle{width:100%;justify-content:center}
@media(max-width:600px){header{padding:12px 18px}header .brand{font-size:16px;letter-spacing:.06em}header .brand span{margin-right:7px}header .nw-search-toggle{padding:10px 12px;font-size:14px}header .nw-search-extra{display:none}}
header{flex-direction:row;flex-wrap:nowrap}header .brand{min-width:0}
/* The same section browser serves Rules, Lore & World, and Community. */
.nw-section-layout .margin-doodle{display:block}
/* One shared navigation treatment on every page. */
.nw-sidebar{padding-right:16px}.nw-site-tree>summary{font-size:25px;white-space:normal}.nw-site-tree nav a[aria-current="page"]{font-weight:bold}.nw-site-tree nav summary{overflow-wrap:anywhere}.nw-site-tree details details{margin-left:0}.nw-reading-layout .margin-doodle{display:block}
header .nw-search-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:0 0 150px;width:150px;min-width:0;min-height:54px;height:54px;padding:13px 25px;border:0;border-radius:0;background:transparent url('/assets/chronicle/button-centered.png') center/100% 100% no-repeat;color:#e6d7b7;font:700 22px/1 'Norse',Georgia,serif;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;box-shadow:none}header .nw-search-toggle svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}header .nw-search-toggle:hover{background:transparent url('/assets/chronicle/button-centered.png') center/100% 100% no-repeat;filter:brightness(1.2)}
.nw-search-dialog{width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px);margin:auto;max-height:calc(100dvh - 40px);padding:28px;border:1px solid #ab8d58;outline:1px solid #756447;outline-offset:4px;background:#101a17 url('/assets/ink-divider.png') center top/100% 8px no-repeat;overflow-y:auto;overflow-x:hidden}.nw-search-heading{align-items:center;margin-bottom:20px;min-width:0}.nw-search-heading h2{min-width:0;margin:0;font-size:32px;letter-spacing:.035em;overflow-wrap:anywhere}.nw-search-close{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:80px;min-height:44px;padding:10px 18px;border:1px solid #87724d;background:#17221b;font:16px/1.3 Georgia,serif}.nw-search-dialog input{width:100%;min-width:0;max-width:100%;border:1px solid #8f7955;box-shadow:inset 0 2px 8px #0006;border-radius:0;font-size:16px;background:#0b1310;padding:14px 16px}.nw-search-results a,.nw-search-results strong,.nw-search-results p{overflow-wrap:anywhere}.nw-search-results li{list-style:none}.nw-search-results strong{font-size:19px}.nw-search-status{margin:16px 0}
.nw-home-content{min-width:0}.nw-home-content>.hero-content{padding:16px 12px 28px;margin:auto;text-align:center;max-width:100%}.nw-home-content .hero-content h1{font-size:clamp(40px,4.7vw,68px)}.nw-home-content .hero-copy{font:18px/1.7 Georgia,serif}.nw-home-content .page-shell{margin:0;padding:0}.nw-home-content .section{padding:32px 16px}.nw-home-content .vision-columns{gap:20px}.nw-home-content .principles-grid{grid-template-columns:1fr 1fr}.nw-home-art{min-height:180px;position:relative;margin-top:28px}.nw-home-art .margin-doodle{position:relative;inset:auto;margin:0 auto}.nw-glossary-content{min-width:0}.nw-glossary-content .glossary-body{max-width:100%;padding:0 8px 50px}.nw-glossary-content .interior-title{margin:20px 0 30px}.nw-glossary-content .interior-title h1{font-size:clamp(42px,5vw,72px)}.nw-glossary-content .glossary-grid{gap:12px 26px}.nw-glossary-content .glossary-tools{margin:30px auto}.nw-glossary-content .glossary-term h3{font-size:29px}.nw-glossary-content .glossary-term p{font-size:16px}.nw-glossary-content .glossary-intro{padding:10px 16px}
@media(max-width:900px){.nw-site-tree>summary{font:18px/1.5 Georgia,serif}.nw-sidebar{padding:0}.nw-home-content .principles-grid{grid-template-columns:1fr}.nw-glossary-content .glossary-grid{grid-template-columns:1fr}.nw-search-dialog{padding:22px}.nw-home-content>.hero-content{padding:12px 0 26px}}
@media(max-width:600px){header{gap:12px}header .brand{font-size:16px;letter-spacing:.04em;line-height:1.2}header .nw-search-toggle{flex-basis:112px;width:112px;height:46px;min-height:46px;padding:10px 19px;gap:6px;font-size:19px}header .nw-search-toggle svg{width:14px;height:14px}.nw-search-dialog{padding:18px;width:calc(100vw - 28px);max-width:calc(100vw - 28px);max-height:calc(100dvh - 32px);outline-offset:3px}.nw-search-heading{gap:12px;align-items:flex-start}.nw-search-heading h2{font-size:26px;line-height:1.15;max-width:calc(100% - 80px)}.nw-search-close{min-width:68px;padding:9px;font-size:14px}.nw-search-results strong{font-size:18px}.nw-search-results p{font-size:14px}.nw-home-content .vision-columns{grid-template-columns:1fr}.nw-glossary-content .glossary-body{padding:0}.nw-glossary-content .glossary-intro{padding:8px}.nw-home-content .section{padding:26px 0}}
@media(max-width:360px){header{padding:12px}.brand span{display:none}header .nw-search-toggle{flex-basis:100px;width:100px;font-size:18px;padding:10px 16px}.nw-navigation{padding-inline:12px}.nw-reading-layout{padding-inline:16px}}
@media(max-width:360px){header .nw-search-toggle{flex-basis:112px;width:112px;padding:10px 19px}}
/* Preserve the full animated scene instead of cropping it into a shallow strip. */
body[data-nw-page="inner"] .veil-stage{max-width:1200px;width:calc(100% - 48px)}
body[data-nw-page="inner"] .veil-stage .veil-header{max-height:none;overflow:visible}
body[data-nw-page="inner"] .veil-stage .veil-header img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:714/228;object-fit:contain}
@media(max-width:600px){body[data-nw-page="inner"] .veil-stage{width:calc(100% - 24px);border-width:10px;border-image-width:10px}}

/* Keep search controls accessible while scrolling long mobile results. */
body:has(.nw-search-dialog[open]){overflow:hidden}
.nw-search-dialog{overscroll-behavior:contain}
.nw-search-heading{position:sticky;top:0;z-index:1;background:#101a17;box-shadow:0 -28px 0 #101a17,0 10px 12px #101a17;padding-bottom:8px}
.nw-site-tree nav a{overflow-wrap:anywhere}
