.boxed-site{--box-bg:var(--color-surface-1,#151515);--box-border:var(--border-color-base,#333);--box-muted:var(--color-base--subtle,#aaa);padding:20px!important;background-image:none!important;position:relative;isolation:isolate}
.boxed-site::before{--home-dot-gutter:max(100px,calc((100% - var(--homepage-width)) / 2));content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background-image:radial-gradient(circle,var(--bc-grid-dot) .8px,transparent 1px);background-size:12px 12px;mask-image:linear-gradient(90deg,#00000003 0%,#0000001a calc(var(--home-dot-gutter) / 2),#000 var(--home-dot-gutter),#000 calc(100% - var(--home-dot-gutter)),#0000001a calc(100% - var(--home-dot-gutter) / 2),#00000003 100%)}
.boxed-site .boxed-header,.boxed-site .boxed-sidebar,.boxed-site .boxed-panel,.boxed-site .boxed-footer{background:var(--box-bg);border:1px solid var(--box-border);border-radius:7px;box-shadow:0 2px 7px #00000018}
.boxed-site .boxed-header{max-width:1450px;margin:0 auto;padding:12px 17px;display:flex;align-items:center;gap:25px;position:relative;z-index:3}
.boxed-site .home-brand{display:flex;align-items:center;gap:13px;width:auto;padding:0;color:inherit;flex:none}.boxed-site .home-brand span,.boxed-footer-brand span{display:grid;gap:3px}.boxed-site .home-brand strong{font-size:1.05rem}.boxed-site .home-brand small{font-size:.7rem;color:var(--box-muted)}
.boxed-search{display:flex;align-items:center;gap:10px;text-align:left;flex:1;min-width:0;border:1px solid var(--box-border);border-radius:5px;background:var(--color-surface-2,#202020);color:var(--box-muted);padding:0 12px;min-height:42px;font:inherit;position:relative;margin:0}.social-search{font-size:1.4em;flex:none}
.boxed-search input{flex:1;min-width:0;width:100%;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--color-base);font:inherit;padding:10px 0!important;margin:0!important;outline-offset:2px}
.boxed-search:focus-within{border-color:var(--color-progressive)}
.boxed-search input:focus,.boxed-search input:focus-visible{outline:none}
.boxed-site .home-brand,.boxed-footer-brand{-webkit-user-select:none;user-select:none}
.home-search-panel{position:absolute;top:calc(100% + 7px);left:0;right:0;min-width:min(370px,calc(100vw - 30px));max-height:min(65vh,560px);overflow:auto;background:var(--box-bg);border:1px solid var(--box-border);border-radius:6px;box-shadow:0 8px 24px #0006;padding:12px;z-index:5;text-align:left}
.home-search-panel[hidden]{display:none}.home-search-panel p{margin:0 0 8px;font-size:.8rem}.home-search-panel .search-result{display:grid;gap:5px;padding:10px 8px;color:var(--color-base);border-bottom:1px solid var(--box-border)}.home-search-panel .search-result:hover,.home-search-panel .search-result:focus{background:var(--color-surface-2)}.home-search-panel small{font-size:.75rem;line-height:1.4}.home-search-panel button{margin-top:10px}
.boxed-header-actions{display:flex;align-items:center;gap:8px}.boxed-header-actions [aria-label="Open navigation"]{display:none}
.boxed-site .citizen-page-container{display:grid!important;grid-template-columns:190px minmax(0,1fr)!important;gap:18px;max-width:1450px!important;margin:0 auto!important;padding:0!important;width:100%!important}
.boxed-site main.mw-body{padding:0!important;border:0!important;background:none!important;min-width:0;max-width:none!important}.boxed-site .citizen-body-container,.boxed-site .citizen-body,.boxed-site .mw-parser-output{display:block!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important}
.boxed-site .citizen-page-container,.boxed-site .citizen-body{background:none!important;border:0!important}.boxed-header-actions .social-link{color:var(--color-base--subtle,#aaa)}.boxed-header-actions .primary-button{display:inline-flex;align-items:center;gap:7px}.boxed-header-actions .primary-button .citizen-ui-icon{width:17px;height:17px;flex:none}
.boxed-site .citizen-page-container{position:relative;z-index:1}.boxed-site .mw-body-content{margin:0!important}
.boxed-sidebar{padding:16px;height:max-content}.boxed-sidebar h2{font-size:.7rem;color:var(--box-muted);text-transform:uppercase;letter-spacing:.08em;margin:23px 10px 9px;padding-top:13px;border-top:1px dotted var(--box-border);position:relative}.boxed-sidebar h2:before,.boxed-sidebar h2:after{content:'';position:absolute;top:-3px;width:5px;height:5px;background:var(--box-bg);border:1px solid var(--box-border)}.boxed-sidebar h2:before{left:0}.boxed-sidebar h2:after{right:0}.boxed-sidebar nav{display:grid;gap:3px}.boxed-sidebar a{display:flex;gap:10px;align-items:center;padding:8px 10px;border-radius:4px;color:inherit}.boxed-sidebar .citizen-ui-icon{flex:none;width:17px;height:17px}.boxed-sidebar a:hover{background:var(--color-surface-2,#222)}.boxed-sidebar a[aria-current]{background:color-mix(in srgb,#bb2436 15%,var(--box-bg));border-left:3px solid #bb2436;font-weight:700}
.boxed-site .home-hero{min-height:305px!important;padding:0!important;margin:0 0 18px!important;overflow:hidden}.boxed-site .home-hero-copy{padding:38px 30px 25px!important}.boxed-site .home-hero h1{font-size:clamp(2rem,3vw,3.2rem)!important;margin:0 0 12px!important}.boxed-site .home-hero-actions{margin-top:20px}.boxed-site .home-hero-bottom{padding:10px 30px!important;margin-top:8px}.boxed-site .home-content-columns{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px}.home-main-column,.home-supporting{display:grid;gap:18px;align-content:start;min-width:0}
.boxed-site .boxed-panel:not(.home-hero){padding:18px}.boxed-site .boxed-panel h2{font-size:1.05rem;margin:0 0 14px;border:0;padding:0}.home-panel-heading{display:flex;align-items:center;justify-content:space-between}.boxed-site .featured-article{display:flex;gap:20px;color:inherit;align-items:center}.featured-picture{width:210px;height:100px;flex:none;background:var(--color-surface-2,#202020);border-radius:4px}.featured-picture img{width:100%;height:100%;object-fit:contain}.featured-article>span:last-child{display:grid;gap:8px}.featured-article strong{font-size:1.5rem}.featured-article small,.home-supporting time,.category-copy small{color:var(--box-muted)}
.boxed-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.boxed-category-card{position:relative;display:flex;align-items:flex-end;min-height:270px;overflow:hidden;border:1px solid var(--box-border);border-radius:9px;background:#252525;color:#fff;min-width:0}.category-image{display:block;position:absolute;inset:0;overflow:hidden}.category-image::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,transparent 25%,#0008 55%,#111 100%)}.category-image img{width:100%;height:100%;object-fit:cover}.category-weapon .category-image img{object-fit:contain;object-position:center 15%;height:78%;padding:15px}.category-copy{position:relative;display:grid;gap:8px;padding:24px;width:100%;color:#fff}.category-copy strong{font-size:1.5rem;line-height:1.15}.category-copy>span{font-size:.87rem;line-height:1.5}.category-copy small{font-size:.75rem}.category-mechanics{display:flex;align-items:flex-start;padding-top:55px;justify-content:space-evenly;color:#b5b5b5;font-size:3.3rem}.home-supporting h3{font-size:1rem;line-height:1.45;margin:10px 0}.home-supporting p{font-size:.85rem;line-height:1.65;margin:10px 0}.home-supporting time{font-size:.75rem}.latest-update-image{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:4px;margin:0 0 12px}
.boxed-site .boxed-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 20px}.boxed-footer-brand{display:flex;align-items:center;gap:12px;color:inherit}.boxed-footer-brand small{font-size:.7rem;color:var(--box-muted)}.boxed-footer nav{display:flex;align-items:center;flex-wrap:wrap;gap:16px;font-size:.8rem}.boxed-site .boxed-footer a,.boxed-site .boxed-footer strong{color:var(--color-emphasized,#fff)}.boxed-footer .social-link{display:flex}.boxed-footer .social-icon{width:20px;height:20px}
.boxed-site a:focus-visible,.boxed-site button:focus-visible{outline:2px solid var(--color-progressive,#e06674);outline-offset:3px}
.reference-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.reference-link-grid a{display:grid;gap:8px;padding:16px;border:1px solid var(--border-color-base,#333);border-radius:5px;color:inherit}.reference-link-grid span{font-size:.9em}.recent-page-list time{font-size:.85em;margin-right:12px;color:var(--color-base--subtle,#aaa)}
@media(max-width:1200px){.boxed-site .home-content-columns{grid-template-columns:minmax(0,1fr) 220px}.boxed-site .citizen-page-container{grid-template-columns:160px minmax(0,1fr)!important}.boxed-site .home-brand small{display:none}.boxed-header{gap:12px!important}.boxed-site .featured-picture{width:155px}}
@media(max-width:1000px){.boxed-site{padding:12px!important}.boxed-site .citizen-page-container{display:block!important}.boxed-sidebar{display:none}.boxed-header-actions [aria-label="Open navigation"]{display:block}.boxed-site .home-content-columns{grid-template-columns:minmax(0,1fr) 240px}.boxed-site .boxed-footer{margin-top:18px}.boxed-site .home-brand span{display:none}.boxed-header-actions .primary-button{display:none}.boxed-site .boxed-header{padding:9px;gap:10px}.boxed-site .home-brand img{width:54px;height:30px}}
@media(max-width:740px){.boxed-site .home-content-columns{display:grid;grid-template-columns:1fr}.home-supporting{grid-template-columns:repeat(2,minmax(0,1fr))}.boxed-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.boxed-header-actions .social-link{display:none}.boxed-header-actions{gap:3px}.boxed-site .boxed-footer{align-items:flex-start;flex-direction:column}.boxed-site .home-hero-copy{padding:35px 20px 40px!important}}
@media(max-width:430px){.boxed-category-grid,.home-supporting{grid-template-columns:1fr}.boxed-search{font-size:.75rem;padding:8px;gap:5px}.boxed-site .home-brand img{width:42px}.boxed-site .featured-article{gap:12px}.boxed-site .featured-picture{width:100px;height:85px}.boxed-site .featured-article strong{font-size:1.25rem}.boxed-site .boxed-panel:not(.home-hero){padding:15px}}
.home-panel-sublabel{margin:-6px 0 14px;font-size:.8rem;color:var(--box-muted)}
.boxed-site .category-copy small{color:#d4d4d4;font-weight:400}.boxed-site .category-copy .category-new{color:#51df80;font-weight:700}
.boxed-search .citizen-ui-icon{flex:none;width:18px;height:18px}
.boxed-search-label-short{display:none}
@media(max-width:430px){.boxed-search-label-long{display:none}.boxed-search-label-short{display:inline}.boxed-header-actions .plain-button{padding:8px}.boxed-site .home-hero-copy{padding:28px 20px 16px!important}}
:root{--homepage-width:1250px}html[data-width="wide"]{--homepage-width:1450px}html[data-width="full"]{--homepage-width:100%}
.boxed-site .boxed-header,.boxed-site .citizen-page-container{max-width:var(--homepage-width)!important}
.boxed-site .citizen-page-container{margin-top:18px!important;column-gap:24px}
.boxed-site .mw-parser-output a.boxed-category-card{color:#fff}
.boxed-site .category-copy strong{color:#fff}
.boxed-site .compact-feature{container-type:inline-size}
.boxed-site .featured-article{min-width:0}
.boxed-site .featured-article>span:last-child{flex:1;min-width:0;overflow-wrap:anywhere}
.boxed-site .featured-picture{display:block;height:auto;aspect-ratio:16/9;max-width:40%;overflow:hidden}
.boxed-site .featured-picture img{display:block;width:100%;height:auto;object-fit:contain}
@container(max-width:440px){
 .boxed-site .featured-article{flex-direction:column;align-items:stretch;gap:14px}
 .boxed-site .featured-picture{width:100%;max-width:none;height:auto}
 .boxed-site .featured-article strong{font-size:1.25rem}
}
.boxed-site .mw-parser-output a.boxed-category-card:hover{border-color:var(--color-progressive);color:#fff;text-decoration:none}
.boxed-site .mw-parser-output a.featured-article:hover{color:inherit;text-decoration:none}
.boxed-site .compact-feature:has(.featured-article:hover){border-color:var(--color-progressive)}
.boxed-site .boxed-sidebar a:hover{color:inherit;text-decoration:none;box-shadow:inset 0 0 0 1px var(--color-progressive)}
.boxed-site :is(.boxed-category-card,.featured-article,.boxed-sidebar a):hover *{text-decoration:none}
.boxed-site .home-main-column .boxed-panel h2{font-size:1.3125rem}.boxed-site .home-panel-heading h2{margin-bottom:10px}
.sidebar-category-icon{width:20px;height:20px;object-fit:contain;flex:none}
.boxed-header-actions .menu-icon{display:none}
.boxed-site .boxed-footer .social-icon-github{color:var(--box-muted)}
html[data-theme="dark"] .boxed-site .boxed-footer a,html[data-theme="dark"] .boxed-site .boxed-footer strong,
html[data-theme="black"] .boxed-site .boxed-footer a,html[data-theme="black"] .boxed-site .boxed-footer strong{color:#fff}
html[data-theme="light"] .sidebar-category-icon{filter:brightness(.45)}
@media(max-width:430px){.boxed-search{padding:0 8px}.home-search-panel{position:fixed;top:75px;left:12px;right:12px;min-width:0}.boxed-category-card{min-height:255px}.category-copy{padding:20px}.boxed-header-actions .menu-label{display:none}.boxed-header-actions .menu-icon{display:block;width:17px;height:17px;min-width:17px}}

@media(min-width:1001px){.boxed-site .boxed-sidebar{position:sticky;top:16px;align-self:start;max-height:calc(100dvh - 32px);overflow-y:auto;box-sizing:border-box;scrollbar-width:thin}}

/* Keep shared navigation and content links free of underlines in every state. */
body.boxed-site :is(a,button,a *,button *,abbr[title],u){text-decoration:none!important}
.boxed-site .home-brand small{font-weight:400}

/* Shared header/footer utility icons keep one neutral colour, including hover. */
.boxed-site :is(.boxed-header-actions,.boxed-footer) :is(.icon-button,.social-link,.social-icon,.icon-button .citizen-ui-icon){color:var(--box-muted)!important}

/* Header and footer brand titles share the header grey and keep it on hover. */
html .boxed-site :is(.home-brand,.boxed-footer-brand),html .boxed-site :is(.home-brand,.boxed-footer-brand):hover,html .boxed-site .boxed-footer .boxed-footer-brand strong,html .boxed-site :is(.home-brand,.boxed-footer-brand):hover strong{color:var(--color-base)}
