/* Shared series design: purple and gold for identity, parchment for reading. */
:root{--series-purple:#23152e;--series-gold:#d9b969;--paper:#faf5e9;--paper-ink:#332a35}
img{max-width:100%}
.ency-home-feature{background:linear-gradient(120deg,#22182d,#30223a 54%,#24182f);border-block:1px solid #795b45}
.ency-home-layout{display:grid;grid-template-columns:1fr 1fr;gap:7%;align-items:center}
.ency-home-art{min-width:0;padding:9px;border:1px solid #b69a61;background:#e8dcc4}
.ency-home-art img{display:block;width:100%;height:auto;aspect-ratio:1.43;object-fit:cover}
.ency-home-art span{display:block;padding:12px 8px 4px;text-align:center;color:#725d43;font-size:10px;letter-spacing:.12em}
.ency-home-copy h2{font:500 clamp(42px,5vw,70px)/1.05 var(--serif);color:#f0e5d7;margin:18px 0}
.ency-home-copy>p:not(.eyebrow){color:#d0c4ca;font:18px/1.7 var(--serif);margin-bottom:27px}
[hidden]{display:none!important}
.site-header{background:#1c1226;border-bottom:1px solid #766046;height:84px}
.header-inner{gap:22px}.desktop-nav{gap:24px;align-items:center}.desktop-nav>a{white-space:nowrap;font-size:12px}
.site-search-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;background:transparent;border:0;color:#ebd9ae;cursor:pointer;font-size:12px;padding:8px}
.site-search-toggle:hover{color:white}.header-cta{padding-inline:16px}
.desktop-nav [aria-current=page],.explore-menu summary.active{color:#ffe1a4;text-decoration:underline;text-underline-offset:7px}
.explore-menu>div{min-width:260px;border-radius:3px;max-height:75vh;overflow:auto}.explore-menu>div a{min-height:44px}
.mobile-nav a{min-height:44px}.mobile-nav{max-height:calc(100dvh - 84px);overflow-y:auto;overscroll-behavior:contain}
.footer-inner{display:grid!important;grid-template-columns:1fr 1.5fr;align-items:start!important;gap:28px!important;padding-block:42px}
.footer-inner nav{gap:18px 24px;line-height:1.7;justify-content:flex-end}.footer-inner nav a,.footer-inner nav button{min-height:30px;display:inline-flex;align-items:center}
.footer-tagline{font:14px/1.7 var(--serif);color:#c8bacd;margin:12px 0 0;max-width:280px}
.footer-copyright{grid-column:1/-1;border-top:1px solid #5f4864;padding-top:20px;margin:0;font-size:12px;color:#c8bacd;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}
.footer-copyright span{font-size:11px;color:#cbb788}
.profile-page,.supporting-record,.creature-page,.text-page{overflow-wrap:break-word}
.profile-lead figure{min-width:0}.profile-lead figure img{object-fit:contain!important;background:#1c1922}
.record-portrait img{object-fit:contain!important;object-position:center top!important;background:#1c1922}
.record-facts dd,.profile-facts dd{overflow-wrap:anywhere}
.earth-family-scene{margin:36px 0 0;grid-column:1/-1;padding-top:30px;border-top:1px solid #9e8660;display:grid;grid-template-columns:minmax(200px,440px) 1fr;gap:30px;align-items:center}
.earth-family-scene img{width:100%;height:auto;max-height:600px;object-fit:contain}.earth-family-scene figcaption{font:20px/1.7 var(--serif);color:#4b3c44;max-width:350px}
.record-browse{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap;margin-block:25px;padding:20px 0;border-block:1px solid #8b7057}
.record-browse a{font:14px/1.5 var(--sans);color:#edcf98;text-decoration:underline;text-underline-offset:4px}.record-browse .record-next{margin-left:auto}
.supporting-character-page .record-browse a,.location-record-page .record-browse a{color:#edcf98}
.supporting-character-page .earth-family-scene figcaption{color:#eadfd6}
.encyclopedia-page .ency-index{background:#f8f2e5;color:#382d40}
.encyclopedia-page .ency-index h2,.encyclopedia-page .ency-index h2 em{color:#432f48}
.encyclopedia-page .ency-index .section-heading>p,.encyclopedia-page .ency-result-status,.encyclopedia-page .ency-random-note{color:#67546b}
.encyclopedia-page .ency-control-panel{background:#eae0ce;border-color:#b5a080;box-shadow:none}
.encyclopedia-page .ency-control-panel label{color:#493945}
.encyclopedia-page .ency-control-panel input,.encyclopedia-page .ency-control-panel select{background:#fffaf0;color:#352c3b;border-color:#9e8965}
.encyclopedia-page .clear-filters{color:#503c2c;border-color:#9e8965}
.encyclopedia-page .ency-record-image img{object-position:center 20%}
.encyclopedia-page .recent-records{background:#f8f2e5;padding-inline:28px;margin-block:30px}
.text-page{background:#faf5e9;color:#382d40;border:1px solid #bdab90;border-radius:3px}
.text-page h1,.text-page h2,.text-page h3{color:#432f48}
.text-page a:not(.button):not(.related-link),.text-page .related-link{color:#72521e}
.ency-control-panel{grid-template-columns:minmax(200px,2fr) minmax(150px,1.3fr) minmax(150px,1.4fr) minmax(120px,1fr) auto;align-items:end}
.ency-control-panel label{min-width:0}.ency-control-panel input,.ency-control-panel select{min-width:0;width:100%;font-size:16px}
.ency-control-panel button{min-height:48px}
.catalogue-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin-block:16px}
.catalogue-shortcuts a,.shop-jump a{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid #a88d56;color:#59401f;background:#fff9eb;font-size:13px;border-radius:30px}
.catalogue-shortcuts a:hover{background:#eee0bf}.catalogue-more{text-align:center;margin-top:28px}
.ency-random-row{align-items:center}.ency-record{min-width:0}.ency-record-image{overflow:hidden}.ency-record-body p{line-height:1.7}
.recent-records{padding-block:35px 55px}.recent-records h2{font:36px/1.1 var(--serif);color:#36273c;margin-top:0}
#recent-records{display:flex;flex-wrap:wrap;gap:12px}#recent-records a{border:1px solid #a08a60;color:#483044;padding:12px 16px;background:#fff8e9;font-size:14px}
#clear-recent{background:none;color:#674d2a;border:0;text-decoration:underline;cursor:pointer;padding:15px 0;font-size:13px}
.character-filters{display:flex;gap:8px;flex-wrap:wrap}.character-filters button{cursor:pointer;border:1px solid #a68a58;background:transparent;color:#ead8b8;padding:12px 15px;min-height:44px}
.character-filters [aria-pressed=true]{background:#d9bd83;color:#261d2b}
.shop-page{background:#f5f0e5;color:#302438}.shop-page .collection-masthead{max-width:100%;padding-bottom:45px}
.shop-page .collection-masthead h1{color:#35233f;max-width:800px;font-size:clamp(44px,5.5vw,76px)}
.shop-page .collection-masthead>p:not(.eyebrow){color:#635364}.shop-page .breadcrumb,.shop-page .eyebrow{color:#775724}.shop-page .fine-print{color:#68586d}
.shop-jump{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:28px 0}
.shop-page .shop-story{display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center;padding-block:48px;border-top:1px solid #cfc0a8;scroll-margin-top:25px}
.shop-page .shop-story>img{width:100%;height:430px;object-fit:contain;background:#fff;border:1px solid #e2d9ca}
.shop-story h2{font-size:clamp(38px,4vw,58px);line-height:1.1;color:#36243e}.shop-story p{line-height:1.85}.shop-story .related-link{color:#6b4822;display:block;margin-top:22px;text-decoration:underline;text-underline-offset:4px}
.shop-help{background:#e8e2d6;padding:36px;display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:24px}
.shop-help h2{font:38px/1.1 var(--serif);color:#35243c}.shop-help h3{font:27px/1.2 var(--serif)}.shop-help p{font-size:15px;line-height:1.8}.shop-help a{display:block;min-height:44px;color:#654a20;text-decoration:underline;font-size:14px}
.shop-end{padding-block:40px 65px}.shop-page .site-footer{color:#eee8da;background:#23182d}
.search-dialog{border:1px solid #b29661;border-radius:6px;background:var(--paper);color:var(--paper-ink);width:min(720px,calc(100vw - 30px));max-height:85dvh;overflow:auto;padding:30px;box-shadow:0 20px 90px #0008;margin-top:min(12vh,100px)}
.search-dialog::backdrop{background:#130d20cb;backdrop-filter:blur(5px)}
.search-dialog h2{font:38px/1.15 var(--serif);margin:0 45px 20px 0;color:#38263f}.search-dialog label{display:block;font-size:13px;font-weight:600;margin-bottom:9px}
.search-dialog input{width:100%;padding:15px;border:1px solid #8b7653;background:white;color:#302438;font-size:17px;border-radius:3px}
.search-close{position:absolute;right:20px;top:18px;min-width:44px;min-height:44px;background:transparent;color:#533b56;border:1px solid #d1c3ac;cursor:pointer;font-size:25px;border-radius:50%}
.search-status{font-size:13px;color:#6d5a6e;margin:18px 0}.search-results a{display:block;padding:16px 10px;border-bottom:1px solid #d6c9b2;min-height:70px}
.search-results strong{display:block;font:23px/1.25 var(--serif);color:#432d48}.search-results small{display:block;font:12px/1.5 var(--sans);color:#746047;margin-bottom:5px}
.search-results a:hover,.search-results a:focus-visible{background:#ede3d1}.search-full{display:inline-block;margin-top:22px;font-size:14px;color:#72521e;text-decoration:underline;min-height:30px}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d7b368;outline-offset:4px}
.encyclopedia-page :is(input,select,button):focus-visible,.shop-page a:focus-visible,.search-dialog :is(a,input,button):focus-visible{outline-color:#6a4180}
.text-page .fine-print{color:#68566c}.profile-surface .profile-intro{line-height:1.75}
@media(max-width:1190px){.desktop-nav{display:none!important}.menu-toggle{display:flex;flex-shrink:0;margin-left:0}.header-inner{gap:15px}.site-search-toggle{margin-left:auto}.header-cta{display:inline-flex}.mobile-nav.open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;background:#24182f;padding:16px 25px;border-bottom:1px solid #9c8051}.mobile-nav a{padding:13px 10px;font:14px/1.4 var(--sans);color:#efe2d1}.mobile-nav a:hover{background:#3b2a46}.mobile-nav [aria-current=page]{color:#ffdc96}.ency-control-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.ency-home-layout{grid-template-columns:minmax(0,1fr);gap:30px}.header-inner{width:calc(100% - 32px)}.brand-type{font-size:13px}.brand-type small{font-size:7px;letter-spacing:.2em}.brand{gap:9px}.site-search-toggle span{display:none}.header-cta{display:none}.footer-inner{grid-template-columns:1fr;gap:25px!important}.footer-inner nav{justify-content:flex-start}.footer-copyright{grid-column:auto}.shop-page .shop-story{grid-template-columns:minmax(0,1fr);gap:25px;padding-block:32px}.shop-page .shop-story>img{height:340px}.shop-help{grid-template-columns:minmax(0,1fr);gap:22px;padding:25px}.earth-family-scene{grid-template-columns:minmax(0,1fr);gap:20px}.earth-family-scene img{max-height:530px}.record-browse{gap:15px}.record-browse .record-next{margin-left:0}.ency-control-panel{grid-template-columns:minmax(0,1fr)}.search-dialog{padding:24px}.search-dialog h2{font-size:30px}.recent-records h2{font-size:32px}}
@media(max-width:390px){.brand-type{font-size:11px;letter-spacing:.08em}.brand-mark{width:30px;height:36px}.brand-mark img{width:28px;height:32px}.header-inner{gap:7px}.mobile-nav.open{grid-template-columns:minmax(0,1fr)}.home-page .hero h1{font-size:clamp(42px,14vw,56px)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.button:hover{transform:none}}
