/* Site navigation is deliberately separate from individual encyclopedia controls. */
:root{--reader-header-height:126px}
html:has(.reader-header){scroll-padding-top:var(--reader-header-height)}
.reader-header{position:sticky;top:0;z-index:120;background:#fffef8;border-bottom:3px solid #72934f;color:#244536;box-shadow:0 2px 8px #1737290b}
.reader-header-row{max-width:1116px;margin:auto;min-height:68px;display:flex;align-items:center;gap:20px;position:relative;padding:10px 0}
.reader-header .brand{font-size:23px;letter-spacing:.07em;gap:10px;line-height:1.2}
.reader-header .brand small{font-size:10px;margin-top:6px;letter-spacing:0}
.reader-header .mark{transform:none}.reader-header .mark i{background:#70964c}.reader-header .mark i:nth-child(n+3){background:#79583f}
.header-profile{font-size:12px;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.nav-tools{margin-left:auto;display:flex;gap:6px;align-items:center;font-family:-apple-system,BlinkMacSystemFont,"Yu Gothic",sans-serif;line-height:1.5;font-size:14px;letter-spacing:0}
.nav-popover>summary,.nav-outline-link{list-style:none;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 13px;border:1px solid #c7d2bd;border-radius:4px;background:#f4f6ed;font-weight:700;cursor:pointer;white-space:nowrap;text-decoration:none!important}
.nav-popover>summary::-webkit-details-marker{display:none}.nav-popover>summary::after{content:'＋';font-size:13px}.nav-popover[open]>summary::after{content:'−'}
.nav-popover[open]>summary{background:#264d38;color:white;border-color:#264d38}
.nav-search-panel,.nav-directory-panel{position:absolute;top:calc(100% - 3px);right:0;background:#fffef8;border:1px solid #a5b995;border-top:4px solid #72934f;box-shadow:0 12px 30px #17372929;border-radius:0 0 6px 6px;z-index:125;color:#244536;padding:22px;max-height:calc(100dvh - 140px);overflow:auto;overscroll-behavior:contain}
.nav-search-panel{width:min(460px,calc(100vw - 24px))}
.nav-search-panel label{display:block;font-size:14px;font-weight:700;margin:0 0 10px}.nav-search-panel form>div{display:flex;gap:6px}
.nav-search-panel input{width:100%;min-width:0;font-size:16px;border:1px solid #8fa47e;background:white;padding:11px 10px;border-radius:3px;color:#20382e;min-height:46px}
.nav-search-panel button{flex-shrink:0;background:#294f3b;color:#fff;border:0;border-radius:3px;padding:10px 18px;font-size:14px;cursor:pointer}
.nav-search-panel>a{display:block!important;color:#355f42!important;font-size:13px!important;padding:12px 0 0!important;text-decoration:underline!important;background:none!important}
.nav-directory-panel{width:min(1050px,calc(100vw - 32px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.nav-directory-panel h2{font-size:14px!important;line-height:1.6;margin:0 0 7px!important;padding:0 0 8px!important;border:0!important;border-bottom:2px solid #d4dfc9!important;color:#536a44}
.nav-directory-panel a{display:flex!important;align-items:center;min-height:44px;padding:8px 0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#20382e!important;font-size:13px!important;line-height:1.6;text-decoration:none!important;border-bottom:1px solid #edf0e5!important;white-space:normal!important}
.nav-directory-panel a:hover{text-decoration:underline!important;color:#496f32!important}
.reader-primary{max-width:1116px;margin:auto;padding:0 0 10px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.reader-primary>a{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:3px;font-size:14px;background:#f0f3e9;text-align:center;font-weight:700;padding:7px 8px}
.reader-primary>a[data-active=true]{background:#294f3b;color:#fff;box-shadow:inset 0 -3px #9abb71}.reader-primary>a:hover{background:#dfe9d2;color:#20382e}
.reader-breadcrumb{display:block;font-size:12px;margin:22px 0 14px;color:#6a7563;line-height:1.7}
.reader-breadcrumb ol{display:flex;flex-wrap:wrap;gap:5px 10px;list-style:none;margin:0;padding:0}
.reader-breadcrumb li{display:inline;padding:0}.reader-breadcrumb li+li::before{content:'›';margin-right:10px;color:#8b9780}.reader-breadcrumb a{text-decoration:underline;text-underline-offset:3px}.reader-breadcrumb [aria-current=page]{color:#4b5d42}
.guide-path{display:block!important;margin:22px 0!important;border:1px solid #c7d4bb;border-left:4px solid #6b8d4c;background:#f7f8f0;padding:16px!important;font-size:13px;line-height:1.6}
.guide-path-label{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.guide-path-label>a{font-size:15px;font-weight:800;text-decoration:underline!important}.guide-path-label>span{color:#727e67;font-size:12px}
.guide-path-links{display:flex;flex-wrap:wrap;gap:7px}.guide-path-links>a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 13px;border:1px solid #bacbb0;background:#fffef8;border-radius:3px;font-size:13px;text-decoration:none!important;font-weight:700;line-height:1.5}
.guide-path-links>a[aria-current=page]{background:#2c503b;color:#fff;border-color:#2c503b}.guide-path-links small{font-size:10px;font-weight:400;opacity:.85}
.author-byline{font-size:12px!important;line-height:1.8!important;margin:10px 0!important;color:#65755e!important}.author-byline a{text-decoration:underline!important;text-underline-offset:3px}
.otg-mast .author-byline,.rpg-hero .author-byline,.vvv-mast .author-byline{color:#e4eedb!important}.otg-mast .author-byline a,.rpg-hero .author-byline a,.vvv-mast .author-byline a{color:inherit!important}
.otg-mast .search-date-note,.rpg-hero .search-date-note,.vvv-mast .search-date-note{color:#e4eedb!important}
.reader-outline{margin:22px 0 30px;padding:0;border:1px solid #c7d2bd;background:#f5f6ed;border-radius:4px;scroll-margin-top:var(--reader-header-height)}
.reader-outline summary{cursor:pointer;padding:14px 18px;font-size:15px;font-weight:800;min-height:48px;color:#294b35}.reader-outline summary span{font-size:11px;font-weight:400;color:#758267;margin-left:12px}
.reader-outline ol{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;list-style:none;margin:0;padding:0 18px 15px;counter-reset:toc}
.reader-outline li{margin:0;padding:0!important;counter-increment:toc;border-top:1px solid #dee5d4}
.reader-outline a{display:flex;align-items:baseline;gap:9px;padding:11px 0;min-height:44px;font-size:13px;line-height:1.7;font-weight:600;text-decoration:none!important;color:#2b5139}
.reader-outline a::before{content:counter(toc,decimal-leading-zero);font-size:11px;color:#82936e;flex-shrink:0}.reader-outline a:hover{text-decoration:underline!important}
.reader-side{position:sticky!important;top:var(--reader-header-height)!important;align-self:start;max-height:calc(100dvh - var(--reader-header-height) - 24px);overflow:auto!important;padding:18px!important}
.reader-side nav{display:block!important}.reader-side h2{font-size:15px!important;margin:0 0 10px!important}.reader-side a{font-size:12px!important;line-height:1.65;min-height:42px;padding:10px 0!important}.reader-side .side-profile{margin-top:18px;border-top:2px solid #bacaae}
.reader-header~* [id]{scroll-margin-top:0!important}
.operator-profile,.device-route{border:1px solid #b5c7a5;border-top:4px solid #72934f;border-radius:4px;padding:clamp(18px,3vw,28px);margin:28px 0;background:#f3f6eb;scroll-margin-top:var(--reader-header-height)}
.operator-profile h2,.device-route h2{padding:0!important;border:0!important;font-size:23px!important;margin:5px 0 18px!important}.operator-profile .profile-label{font-size:12px!important;color:#687e51;margin:0;font-weight:700}.operator-profile-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:28px;align-items:start}.operator-profile p{font-size:15px!important;line-height:2}.operator-profile figure{margin:0}.operator-profile img{width:100%;height:auto;border-radius:3px;display:block}.operator-profile figcaption{font-size:12px;line-height:1.8;color:#6a775f;margin:9px 0}.operator-profile figure a{font-size:13px;text-decoration:underline}.operator-profile dl{margin:20px 0}.operator-profile dl>div{padding:11px 0;border-top:1px solid #d3dfc6}.operator-profile dt{font-size:12px;font-weight:700;color:#738361}.operator-profile dd{margin:4px 0 0;font-size:14px;line-height:1.8}.profile-links{display:flex;flex-wrap:wrap;gap:12px}.profile-links a{display:block;min-height:44px;padding:9px 12px;background:#fffef8;border:1px solid #bbcdb0;font-size:13px;text-decoration:underline}
.device-route>p{font-size:14px!important;line-height:1.9}.device-route>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.device-route>div a{display:flex;flex-direction:column;gap:7px;background:#fffef8;border:1px solid #b5c7a5;padding:16px 12px;border-radius:3px;text-decoration:none!important}.device-route strong{font-size:19px}.device-route a span{font-size:12px;line-height:1.8}.device-route .device-route-help{font-size:13px!important;margin-bottom:0}.device-route-help a{text-decoration:underline}
#addon-note-links{position:relative;overflow:visible!important;align-items:center;flex-wrap:wrap!important}#addon-note-links .nav-tools{flex-wrap:nowrap}#addon-note-links .nav-popover>summary{font-size:12px;padding:6px 10px;color:#244536;min-height:36px}#addon-note-links .nav-popover[open]>summary{color:#fff}#addon-note-links .nav-directory-panel{right:8px;top:100%;width:min(950px,calc(100vw - 24px))}#addon-note-links .nav-search-panel{right:8px;top:100%}
.dex-reader-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;background:#f1f4e7;color:#244536;padding:10px 16px;position:relative;z-index:110;border-block:1px solid #a5b995;font:13px/1.6 -apple-system,BlinkMacSystemFont,"Yu Gothic",sans-serif}.dex-reader-bar>a{color:#244536!important;font-size:12px!important;text-decoration:underline;text-underline-offset:3px}.dex-reader-bar>a:first-child{font-weight:800}.dex-reader-bar .nav-directory-panel,.dex-reader-bar .nav-search-panel{top:100%;right:12px}.dex-reader-bar .nav-tools{margin-left:auto}
@media(max-width:1200px){.reader-header-row{margin:0 24px}.reader-primary{margin:0 24px}}
@media(max-width:760px){.header-profile{display:none}.reader-header-row{margin:0 16px;gap:10px;min-height:66px}.reader-header .brand{font-size:19px}.reader-header .brand small{font-size:9px}.reader-header .mark{display:none}.nav-tools{gap:4px}.nav-popover>summary,.nav-outline-link{padding:8px 10px;font-size:12px}.nav-directory-panel{grid-template-columns:1fr 1fr;gap:20px;padding:18px;right:0}.reader-primary{margin:0 12px;padding-bottom:9px;gap:4px}.reader-primary>a{font-size:12px;min-height:42px;padding:7px 3px}.reader-breadcrumb{font-size:11px;margin:16px 0 12px}.guide-path-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.guide-path-links>a{font-size:12px;padding:10px 8px;flex-direction:column;gap:1px;text-align:center}.guide-path-label>span{font-size:11px}.reader-outline ol{grid-template-columns:1fr}.operator-profile-grid{grid-template-columns:1fr;gap:16px}.operator-profile h2,.device-route h2{font-size:21px!important}.device-route>div{grid-template-columns:1fr}.device-route>div a{flex-direction:row;align-items:center;gap:16px;padding:14px}.device-route strong{min-width:75px;font-size:17px}.reader-side{display:none!important}.author-byline{font-size:11px!important}#addon-note-links .nav-tools{flex-basis:100%;margin-left:0}}
@media(max-width:370px){.reader-header-row{margin:0 10px;gap:6px}.reader-header .brand{font-size:16px}.reader-header .brand small{font-size:8px}.nav-popover>summary,.nav-outline-link{padding:8px 7px}.nav-popover>summary::after{display:none}}
@media(max-width:760px){.reader-header .brand{flex:1;min-width:0;white-space:nowrap;font-size:18px}.reader-header .brand small{white-space:normal;font-size:8px}.reader-header .nav-tools{flex-shrink:0}.nav-popover>summary,.nav-outline-link{padding:8px 7px}.nav-popover>summary::after{display:none}.dex-reader-bar{gap:7px 12px;padding:10px 12px}.dex-reader-bar .nav-tools{flex-basis:100%;margin-left:0}.dex-reader-bar .nav-directory-panel,.dex-reader-bar .nav-search-panel{right:12px;max-width:calc(100vw - 24px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.pack-early { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 22px; }
article .pack-early a.pack-early-link, main .pack-early a.pack-early-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; box-sizing: border-box;
  min-height: 44px; padding: 8px 16px; background: #285c3c; color: #fff; border: 2px solid #20472e;
  box-shadow: inset 0 2px #76a078; border-radius: 3px; font-size: 15px; font-weight: 700; text-decoration: none;
}
.pack-early a.pack-early-link:hover, .pack-early a.pack-early-link:focus-visible { text-decoration: underline; }
.pack-early .pack-check, .journal-download .pack-check { display: block; flex: 1 1 230px; font-size: 14px; line-height: 1.6; }
.journal-download .pack-check { margin-top: 8px; }
