/* Field-guide redesign. The existing controls and data remain the source of truth. */
:root {
  --ink-rgb:38, 43, 31;
  --header:#f7f2e9; --action:#b94a07; --on-action:#fff;
  --olive:#5b6030; --chart-fill:#a5a780; --chart-edge:#5b6030;
  --void:#f3eee4; --char:#f7f2e9; --soot:#e9e2d5; --soot-2:#ded6c8;
  --line:rgba(47,43,33,.12); --line-2:rgba(47,43,33,.24);
  --chalk:#171914; --chalk-soft:#4d5047; --ash:#6d7062; --ash-2:#8a8a7b;
  --signal:#ad4200; --signal-hi:#8c3200; --signal-soft:rgba(214,83,0,.12);
  --better:#466632; --worse:#a43c2a; --zone-chest:#575a4b;
  --series-1:#d65300; --series-2:#177c88; --series-3:#8054a2; --series-4:#57743b;
  --wrap:min(1480px,calc(100vw - 64px)); --nav-h:76px; color-scheme:light;
}
html,body { background:var(--void); color:var(--chalk); }
body { background-image:radial-gradient(ellipse at 5% 12%,rgba(162,132,85,.09),transparent 32%), radial-gradient(ellipse at 95% 42%,rgba(162,132,85,.07),transparent 36%); }
.vignette { display:none; } .grain { opacity:.025; animation:none; mix-blend-mode:multiply; }
.topbar { background:var(--header); border-bottom:1px solid var(--line-2); backdrop-filter:blur(16px); }
.topbar .wrap { gap:14px; } .brand b { font-size:clamp(23px,2.45vw,38px); letter-spacing:.015em; white-space:nowrap; }
.brand b i { color:inherit; } .brand small { font-size:10px; color:var(--ash); letter-spacing:.12em; }
.topbar .brand svg { width:42px; height:38px; }
.topbar .brand-note { border-left:1px solid var(--line-2); margin:0 0 0 5px; padding-left:12px; line-height:1.25; }
.mainnav { gap:0; } .mainnav a { color:var(--chalk); padding:10px 12px; font-size:17px; letter-spacing:.08em; }
.mainnav a:hover,.mainnav a[aria-current] { color:var(--signal); }
.mainnav a[aria-current]::after { left:9px; right:9px; bottom:-16px; background:var(--signal); }
.navsub { background:var(--char); border:1px solid var(--line-2); box-shadow:0 15px 40px #44372320; }
.searchbtn,.navtoggle { border-color:var(--line-2); color:var(--chalk); }
.eyebrow,.label { letter-spacing:.18em; } .eyebrow { color:var(--signal); }
h1,h2,h3,h4 { letter-spacing:-.01em; } h1 em,h2 em { color:var(--signal); }
.lede { color:var(--chalk-soft); } .btn { border:1px solid #7b7a6d; border-radius:4px; color:var(--chalk); letter-spacing:.08em; background:transparent; }
.btn.primary { background:var(--action); border-color:var(--action); color:var(--on-action); }
.btn.primary:hover { background:var(--signal-hi); color:var(--on-action); }
.btn:hover { border-color:var(--signal); color:var(--signal); }
.section { padding-block:clamp(40px,5vw,72px); } .section+.section { padding-top:0; }
.sechead { border-color:var(--line-2); } .sechead p { color:var(--chalk-soft); }
.seg { border-radius:4px; overflow:hidden; background:var(--char); }
.seg button,.seg a { color:var(--chalk-soft); border-color:var(--line-2); }
.seg [aria-pressed=true],.seg [aria-current] { background:var(--action); color:var(--on-action); }
.seg button:hover,.seg a:hover { background:var(--soot); color:var(--chalk); }
.sel,input,select { color:var(--chalk); } input::placeholder { color:var(--ash); }
.pagehead { padding:clamp(42px,5vw,70px) 0 34px; background:var(--char); border-bottom:1px solid var(--line-2); }
.pagehead .bg { inset:0 0 0 55%; width:45%; opacity:.9; filter:saturate(.75); mask-image:linear-gradient(90deg,transparent,#000 35%); }
.pagehead .ticks { opacity:.2; }
.pagehead h1 { text-shadow:none; max-width:13ch; font-size:clamp(44px,6vw,90px); }
.pagehead .lede { max-width:61ch; } .pagehead.has-art .head-art { opacity:.22; }
.headstats { border-color:var(--line-2); } .headstats div { border-color:var(--line-2); }
.subnav a { color:var(--chalk-soft); } .subnav a[aria-current] { color:var(--signal); }
/* Home page: the cover, the armory spotlight and the latest update. */
.ed-hero {
  position:relative; isolation:isolate; display:grid; grid-template-columns:41% 59%;
  min-height:400px; border-bottom:1px solid var(--line-2);
  background:var(--char) url(/img/field-contours.svg) left -125px top -100px/580px auto no-repeat;
}
.ed-hero-copy { z-index:1; align-self:center; padding:38px max(24px,calc((100vw - 1580px)/2)); padding-right:0; }
.ed-hero h1 { font-size:clamp(50px,5.45vw,96px); line-height:.89; margin:16px 0 14px; }
.ed-hero h1 span,.ed-spotlight h2 span,.ed-explore h2 span { color:var(--signal); }
.ed-hero-copy p { max-width:35ch; font-size:clamp(16px,1.3vw,20px); line-height:1.35; color:var(--chalk-soft); margin:0; }
.ed-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:23px; }
.ed-hero-map { position:relative; margin-left:-10%; min-width:0; background:#27342e; clip-path:polygon(13% 0,100% 0,100% 100%,0 100%); }
.ed-hero-map img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 54%; }
.ed-hero-map::after { content:""; position:absolute; inset:48% 0 0; pointer-events:none; background:linear-gradient(transparent,#091d23e8); }
.ed-hero-map-label { position:absolute; z-index:1; left:9%; bottom:23px; color:#fff; display:flex; align-items:end; gap:20px; }
.ed-hero-map-label strong { display:block; font:700 52px/.95 var(--ui); text-transform:uppercase; margin-top:4px; }
.ed-hero-map-label>span { display:grid; gap:3px; padding-left:17px; border-left:1px solid #fff8; font-size:14px; }
.ed-hero-map-label>span b { text-transform:uppercase; font:600 13px var(--ui); letter-spacing:.14em; }
.ed-hero-map:focus-visible { outline-offset:-6px; }
.ed-tag { display:inline-block; background:var(--olive); color:#fff; font:700 12px var(--ui); letter-spacing:.1em; padding:3px 8px; text-transform:uppercase; border-radius:3px; }
.ed-spotlight { padding:23px 0 27px; border-bottom:1px solid var(--line-2); background:var(--char); }
.ed-spotlight-grid { display:grid; grid-template-columns:.71fr repeat(3,minmax(0,1fr)); gap:16px; }
.ed-spotlight-intro { align-self:center; }
.ed-spotlight-intro h2 { margin:11px 0 8px; font-size:clamp(28px,2.8vw,44px); }
.ed-spotlight-intro p { margin:0 0 13px; color:var(--chalk-soft); max-width:26ch; }
.ed-spotlight-intro .btn { min-height:35px; padding-inline:11px; }
.ed-weapon { display:grid; grid-template-rows:1fr auto; gap:10px; border:1px solid var(--line-2); border-radius:9px; background:var(--void); padding:13px 14px; }
.ed-weapon:hover { border-color:var(--signal); background:var(--soot); }
.ed-weapon-top { display:grid; grid-template-columns:minmax(90px,1fr) minmax(0,1.35fr); align-items:center; gap:8px; }
.ed-weapon h3 { margin-top:5px; font-size:34px; }
.ed-weapon p { margin:5px 0 0; font-size:13px; line-height:1.3; color:var(--chalk-soft); }
.ed-gun,.ed-gun-render { display:block; width:100%; height:105px; }
.ed-gun { background:var(--chalk); mask:var(--gun) center/contain no-repeat; }
.ed-gun-render { object-fit:contain; filter:drop-shadow(0 3px 3px #0004); }
.ed-weapon-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding-top:9px; border-top:1px solid var(--line-2); }
.ed-weapon-stats div { display:grid; gap:3px; padding:0 6px; }
.ed-weapon-stats div:first-child { padding-left:0; }
.ed-weapon-stats div+div { border-left:1px solid var(--line); }
.ed-weapon-stats span { font:600 11px var(--ui); text-transform:uppercase; letter-spacing:.05em; color:var(--chalk-soft); }
.ed-weapon-stats b { font:700 19px var(--ui); white-space:nowrap; }
.ed-update { display:grid; grid-template-columns:44% 56%; border-bottom:1px solid var(--line-2); }
.ed-update-feature { display:flex; align-items:center; gap:26px; padding:22px 28px 22px max(24px,calc((100vw - 1580px)/2)); background:#343c2b; color:#fff7e6; }
.ed-update-feature .eyebrow { color:#f2d19e; }
.ed-update-number { display:grid; gap:6px; }
.ed-update-number b { font:700 clamp(56px,6vw,95px)/.9 var(--ui); color:#ff8a30; }
.ed-update-copy h2 { font-size:clamp(24px,2.6vw,40px); margin:0 0 6px; }
.ed-update-copy p { color:#e0ddce; margin:0; }
.ed-update-highlights { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:21px max(24px,calc((100vw - 1480px)/2)) 21px 24px; }
.ed-highlight-list { display:flex; margin-top:13px; }
.ed-highlight-list>div { display:grid; padding:0 12px; }
.ed-highlight-list>div:first-child { padding-left:0; }
.ed-highlight-list>div+div { border-left:1px solid var(--line-2); }
.ed-highlight-list span { color:var(--chalk-soft); font-size:13px; }
.ed-explore { padding-top:56px !important; } .ed-more-guides { margin-top:64px; }
.mapcard .meta,.mapcard .facts { color:#fff; } .mapcard .facts b { color:#ffbf75; }
.mapcard .size { color:#fff; } .mapcard .thumb::after { background:linear-gradient(transparent 50%,rgba(8,15,12,.88)); }
.wcard { border-radius:6px; background:var(--char); border-color:var(--line-2); }
.wcard:hover { background:var(--soot); border-color:var(--signal); } .wcard::before { opacity:.25; }
.wdraw { background:var(--chalk); } .wcard:hover .wdraw { background:var(--signal); }
.armorybar { background:var(--header); border-color:var(--line-2); }
.statbar,.pr-bar { background:rgba(51,56,43,.12); } .statbar i { background:#6b7138; }
.chip { border-color:var(--line-2); color:var(--chalk-soft); }
.whero .bg { opacity:.16; } .whero .whero-grid { position:relative; } .wfig { color:#30352b; }
.pt,.pt-ctl,.pt-tlwrap,.pt-sec,.pt-notes,.pt-overall { border-color:var(--line-2); border-radius:4px; }
.pt>summary { background:var(--soot); } .pt[open]>summary { background:var(--soot-2); }
.pt-row { border-color:var(--line-2); } .pt-d.dn { color:#386f83; }
footer.site { background:#303a2c; color:#f1eee2; } footer.site .brand,footer.site h2,footer.site a { color:#f1eee2; }
footer.site p,footer.site li { color:#d6d8c8; } footer.site .brand svg { --char:#303a2c; }
/* The map canvas and floating map controls are intentionally dark for contrast over imagery. */
.mapview { --signal:#ffae68; --action:#f79a4d; --on-action:#25180f; --series-2:#80cbd0; --series-3:#c7a4ed; color-scheme:dark; --ink-rgb:236, 234, 228; --chalk:#eceae4; --chalk-soft:#c3c4b8; --ash:#a8aaa0; --line:rgba(255,255,255,.12); --line-2:rgba(255,255,255,.25); --char:#20281f; --soot:#293128; --soot-2:#353d33; --void:#171d18; }
.mapview .sel,.mapview input,.mapview select { color:var(--chalk); }
/* Weapon detail gauges were originally drawn on a dark surface. */
.dial,.wstrip>div { background:var(--char); }
.dial .dl-trk { stroke:rgba(var(--ink-rgb),.22); }
.bp-body { fill:var(--chalk); opacity:1; animation:none; filter:drop-shadow(0 8px 12px rgba(35,35,28,.18)); }
.bp-outline { stroke:var(--signal); stroke-dashoffset:0; animation:none; }
.bp-grid { stroke:rgba(var(--ink-rgb),.12); }
.tip { background:#293128; color:#f7f2e9; border-color:#66705c; }
.tip b { color:#ffb369; } .tip .tipk { color:#e1e5d8; } .tip .tipk b { color:#fff; }

/* Shared surfaces and chart marks that need contrast in either palette. */
.minidoor { border-color:var(--line-2); border-radius:7px; }
.minidoor:hover { background:var(--soot); border-color:var(--signal); }
.mini-steps rect { fill:var(--chart-fill); stroke:var(--chart-edge); }
.mini-steps .ms4 { fill:var(--signal-soft); stroke:var(--signal); }
.mini-steps text { fill:var(--chalk-soft); }
.mini-sound path,.mini-rings circle { stroke:var(--chart-edge); }
.mini-sound .sa0,.mini-rings .mr3 { stroke:var(--signal); }
.mini-rings .mr0 { stroke:var(--series-2); }
.rd-ring,.rd-spoke,.ev-grid circle,.ev-grid path,.ev-ring,.mc-ring,.mc-spoke,
.mc-grid,.rk-grid,.sf-x,.vp-grid { stroke:rgba(var(--ink-rgb),.23); }
.rctrack,.hb-grid i,.pr-bar { background:rgba(var(--ink-rgb),.15); }
.colbar,.cmp-bar { background:var(--header); }
.skb-card,.gf-card { background:radial-gradient(ellipse at center,var(--soot-2),var(--char) 75%); }
.skb-x,.skb-nav,.skv-nav,.skv-cap { background:var(--char); }
.skv-nav { opacity:1; }
table.data tbody tr:hover { background:var(--signal-soft); }
.searchbtn,.theme-toggle { border:1px solid var(--line-2); border-radius:4px; height:40px; }
.searchbtn span { font-size:13px; text-align:left; }
.theme-toggle { width:40px; flex:none; display:grid; place-items:center; }
.theme-toggle:hover { background:var(--soot); color:var(--signal); }
.theme-toggle svg { width:19px; height:19px; }
.theme-toggle svg:last-child,.theme-toggle[aria-pressed=true] svg:first-child { display:none; }
.theme-toggle[aria-pressed=true] svg:last-child { display:block; }
.ed-hero .eyebrow,.ed-spotlight-intro .eyebrow,.ed-update-highlights .eyebrow { display:flex; align-items:center; gap:12px; }
.ed-hero .eyebrow::after,.ed-spotlight-intro .eyebrow::after,.ed-update-highlights .eyebrow::after { content:""; width:36px; height:1px; background:currentColor; }
.ed-hero .btn,.ed-spotlight .btn,.ed-update .btn { font:700 15px var(--body); letter-spacing:0; text-transform:none; }

:root[data-theme=dark] {
  color-scheme:dark;
  --ink-rgb:234, 228, 209;
  --void:#171a15; --char:#20241c; --soot:#2a3025; --soot-2:#373d30;
  --header:#1b1e18; --line:rgba(234,228,209,.15); --line-2:rgba(234,228,209,.28);
  --chalk:#f5efdf; --chalk-soft:#d3cfbc; --ash:#b5b29f; --ash-2:#9c9e86;
  --signal:#ffae68; --signal-hi:#ffc38e; --signal-soft:#e88c3b29;
  --action:#f79a4d; --on-action:#25180f; --olive:#606d36;
  --chart-fill:#777e4d; --chart-edge:#bdc689;
  --better:#b7d88e; --worse:#ffa38e; --danger:#ff957e; --zone-chest:#d8d9be;
  --series-1:#ffae68; --series-2:#80cbd0; --series-3:#c7a4ed; --series-4:#b7d88e;
}
[data-theme=dark] .statbar i { background:#b5bf79; }
[data-theme=dark] .pt-d.dn { color:#8ecde6; }
[data-theme=dark] .ed-gun-render { filter:brightness(1.24) drop-shadow(0 0 1px #ffedc77a); }
[data-theme=dark] .ed-hero-map img { filter:brightness(.86) saturate(.88); }
[data-theme=dark] .ed-update-feature, [data-theme=dark] footer.site { background:#292f20; }

@media(max-width:1250px) {
  .topbar .brand-note { display:none; }
  .ed-spotlight-grid { grid-template-columns:.7fr repeat(3,minmax(0,1fr)); gap:10px; }
  .ed-weapon-stats b { font-size:16px; }
}
@media(max-width:1140px) { .searchbtn span { display:none; } }
@media(max-width:1000px) {
  :root { --wrap:calc(100vw - 40px); --nav-h:66px; }
  .topbar .wrap { gap:9px; }
  .topbar .searchbtn { margin-right:0; }
  .mainnav { background:var(--header); }
  .mainnav a { font-size:15px; }
  .ed-hero { grid-template-columns:44% 56%; }
  .ed-hero h1 { font-size:clamp(42px,6.9vw,68px); }
  .ed-spotlight-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ed-spotlight-intro { grid-column:1/-1; }
}
@media(max-width:720px) {
  :root { --wrap:calc(100vw - 32px); --nav-h:62px; }
  .topbar .brand { gap:6px; }
  .topbar .brand svg { width:31px; height:30px; }
  .topbar .brand b { font-size:22px; }
  .topbar .searchbtn,.theme-toggle,.topbar .navtoggle { width:35px; height:36px; }
  .ed-hero { grid-template-columns:1fr; min-height:0; }
  .ed-hero-copy { padding:36px 16px 26px; }
  .ed-hero h1 { font-size:clamp(43px,12.2vw,75px); }
  .ed-hero-map { min-height:235px; clip-path:none; margin:0; }
  .ed-hero-map-label { left:16px; bottom:14px; gap:12px; }
  .ed-hero-map-label strong { font-size:37px; }
  .ed-hero-map-label>span { padding-left:12px; font-size:12px; }
  .ed-hero-map-label>span b { font-size:11px; }
  .ed-spotlight-grid,.ed-update { grid-template-columns:1fr; }
  .ed-weapon-top { grid-template-columns:1fr 1.2fr; }
  .ed-weapon-stats b { font-size:18px; }
  .ed-update-feature,.ed-update-highlights { padding:18px 16px; }
  .ed-update-highlights { align-items:start; flex-wrap:wrap; }
  .pagehead .bg { inset:0; width:100%; opacity:.12; mask-image:none; }
  .pagehead h1 { font-size:clamp(42px,10vw,68px); }
}

/* Footer and overlays on map art use their own foreground, regardless of the page palette. */
footer.site { --chalk:#f1eee2; --chalk-soft:#d6d8c8; --ash:#c1c8ae; --line:rgba(241,238,226,.16); }
.pl-figbox { --chalk:#f1eee2; --chalk-soft:#d6d8c8; --ink-rgb:236, 234, 228; }
.fc-rl,.bg-sl,.zt-ax.sh { fill:var(--series-2); }
.bg-speed { stroke:var(--series-2); }
.ut-chips .warn,.cp-d.del { color:var(--worse); }
.cp-d.add { color:var(--better); }
::selection { background:var(--action); color:var(--on-action); }

.pt-bar { fill:var(--chart-fill); }
.pt-grid { stroke:var(--line-2); }
.lyr.far span { opacity:.8; }
.editorial-home .topbar .wrap,.ed-spotlight .wrap { width:min(1580px,calc(100vw - 48px)); }
@media(max-width:720px) {
  .editorial-home .topbar .wrap,.ed-spotlight .wrap { width:var(--wrap); }
}
