/* ==========================================================
   KITCHECK — WARDOGS meta site
   Theme: Quartermaster (army supply office, stamped requisition forms)
   ========================================================== */

:root {
  --bg: #1b1a17;
  --bg-2: #201e1a;
  --panel: #25231e;
  --panel-2: #2d2a24;
  --line: #3a362c;
  --line-2: #4d473a;
  --text: #ece4cf;      /* paper */
  --muted: #b3a98f;
  --dim: #8a806a;
  --brass: #d4bf8a;     /* khaki: money / highlight */
  --brass-2: #e6d4a6;
  --olive: #9c9a58;
  --red: #d0563b;       /* stamp red (on dark) */
  --khaki: #c9b88f;
  --stamp: #a8321e;     /* stamp red (on paper) */
  --paper: #efe6cc;
  --ink: #2a2620;

  --t-meta: #c2412a;
  --t-a: #d4bf8a;
  --t-b: #8a8950;
  --t-c: #6e6858;

  --f-display: "Black Ops One", "Oswald", Impact, sans-serif;
  --f-head: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --f-type: "Special Elite", "Courier New", monospace;

  --r: 2px;
  --notch: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,184,143,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(156,154,88,.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 40px; padding-bottom: 64px; outline: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--f-mono); }
[hidden] { display: none !important; }

/* ---------- Sample banner ---------- */
.sample-banner {
  background: repeating-linear-gradient(-45deg, #2a1f0a 0 12px, #231a08 12px 24px);
  color: var(--brass-2);
  border-bottom: 1px solid #4a3a14;
  font-size: 13px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: .02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,11,9,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.logo {
  font-family: var(--f-display);
  font-size: 24px; letter-spacing: .04em; color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--brass); }
.logo-sm { font-size: 20px; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
  padding: 8px 12px; border-radius: var(--r);
  white-space: nowrap; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a.active { color: var(--brass); background: var(--panel); box-shadow: inset 0 -2px 0 var(--brass); }
.nav em {
  font-style: normal; font-family: var(--f-mono); font-size: 9px;
  color: var(--bg); background: var(--dim); padding: 1px 4px; border-radius: 2px;
  vertical-align: 2px; margin-left: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .03em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(38px, 7vw, 68px); font-weight: 700; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
.kicker {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass);
}
.section { margin-top: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-head a { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--brass); font-size: 14px; white-space: nowrap; }
.section-head a:hover { color: var(--brass-2); }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(34px, 5.5vw, 52px); margin-top: 6px; }
.page-head p { color: var(--muted); max-width: 640px; margin: 10px 0 0; }

/* ---------- Buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-head); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .08em;
  padding: 12px 22px; border: 1px solid var(--brass); color: var(--bg); background: var(--brass);
  clip-path: var(--notch); transition: background .15s;
}
.btn:hover { background: var(--brass-2); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--panel); color: var(--muted); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: var(--r); cursor: pointer; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.on { color: var(--bg); background: var(--brass); border-color: var(--brass); }

.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .15em; color: var(--dim); text-transform: uppercase; min-width: 64px; }
.search {
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
  font-family: var(--f-body); font-size: 15px; padding: 9px 12px; border-radius: var(--r);
  width: 100%; max-width: 320px;
}
.search:focus { outline: none; border-color: var(--brass); }

/* ---------- Tags ---------- */
.price {
  font-family: var(--f-mono); font-weight: 700; color: var(--brass);
}
.tier-badge {
  display: inline-block; font-family: var(--f-head); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  padding: 3px 8px; border-radius: 2px; color: var(--bg);
}
.t-META { background: var(--t-meta); }
.t-A { background: var(--t-a); }
.t-B { background: var(--t-b); }
.t-C { background: var(--t-c); }
.t-U { background: var(--panel-2); color: var(--muted) !important; border-right: 1px solid var(--line); }
.tier-badge.t-U { color: var(--muted); border: 1px solid var(--line-2); }
.tag {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: 2px; white-space: nowrap;
}
.tag.new { color: var(--bg); background: var(--olive); border-color: var(--olive); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 48px 0 40px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 18px 0 26px; }
.hero h1 span { color: var(--brass); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }

.ledger {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); clip-path: var(--notch); padding: 20px;
  font-family: var(--f-mono); font-size: 13px;
}
.ledger-title { display: flex; justify-content: space-between; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; margin-bottom: 12px; }
.ledger-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ledger-row span:first-child { color: var(--text); }
.ledger-row.total { border-bottom: 0; padding-top: 12px; color: var(--muted); }
.ledger-row.total b { color: var(--brass); font-size: 16px; }

/* ---------- Weapon cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.wcard {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); padding: 14px 14px 12px;
  clip-path: var(--notch); transition: border-color .15s, background .15s, transform .15s;
  position: relative;
}
.wcard:hover { border-color: var(--brass); background: var(--panel-2); transform: translateY(-1px); }
.wcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; white-space: nowrap; min-width: 0; }
.wcard-top .cat { overflow: hidden; text-overflow: ellipsis; }
.wcard .cat { font-family: var(--f-mono); font-size: 11px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.wcard .rank { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.wname { font-family: var(--f-head); font-weight: 700; font-size: 24px; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }
.wcard-bot { white-space: nowrap; gap: 6px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.wcard .score { font-family: var(--f-mono); color: var(--muted); font-size: 12px; }
.minibar { height: 3px; background: var(--line); }
.minibar i { display: block; height: 100%; background: var(--brass); }

/* ---------- Tier list ---------- */
.tier-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 0;
  border: 1px solid var(--line); margin-bottom: 10px; background: var(--bg-2);
}
.tier-label {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 14px 8px; color: var(--bg);
}
.tier-label span { font-family: var(--f-display); font-size: 30px; line-height: 1; }
.tier-label small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; opacity: .85; }
.tier-items { padding: 10px; }
.tier-items .card-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tier-empty { color: var(--dim); font-family: var(--f-mono); font-size: 12px; padding: 18px 8px; }

/* ---------- Weapon page ---------- */
.back { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-size: 14px; }
.back:hover { color: var(--brass); }
.w-hero {
  margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.w-hero h1 { font-size: clamp(44px, 8vw, 80px); }
.w-hero .meta-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.pricetag {
  text-align: right; background: var(--panel); border: 1px solid var(--line); padding: 14px 18px; clip-path: var(--notch);
}
.pricetag small { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.pricetag .price { font-size: 30px; }

.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 20px; }
.panel h2 { font-size: 20px; margin-bottom: 16px; }
.stat { margin-bottom: 14px; }
.stat-head { display: flex; justify-content: space-between; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin-bottom: 5px; color: var(--muted); }
.stat-head b { font-family: var(--f-mono); color: var(--text); font-size: 14px; }
.bar { height: 6px; background: var(--line); position: relative; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), var(--brass)); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec { background: var(--panel); padding: 14px; }
.spec small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.spec b { font-family: var(--f-mono); font-size: 20px; }
.note { color: var(--muted); font-size: 15px; margin-top: 16px; }

.builds { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.build { background: var(--panel); border: 1px solid var(--line); clip-path: var(--notch); display: flex; flex-direction: column; }
.build header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.att { list-style: none; margin: 0; padding: 6px 18px; font-size: 15px; }
.att li { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.att li:last-child { border-bottom: 0; }
.att .slot { font-family: var(--f-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.att .price { font-size: 13px; font-weight: 500; }
.build footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--panel-2); border-top: 1px solid var(--line); }
.build footer small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.build footer .price { font-size: 18px; }
.build p { margin: 0; padding: 12px 18px 0; color: var(--muted); font-size: 14px; }

/* ---------- Loadouts ---------- */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.lcard { background: var(--panel); border: 1px solid var(--line); clip-path: var(--notch); display: flex; flex-direction: column; }
.lcard-head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.lcard-head .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.lcard-head p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.lcard .items { list-style: none; margin: 0; padding: 8px 18px; font-size: 15px; }
.lcard .items li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.lcard .items li:last-child { border-bottom: 0; }
.lcard .items a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.lcard .items a:hover { color: var(--brass); border-color: var(--brass); }
.lcard .items small { color: var(--dim); font-family: var(--f-mono); font-size: 11px; margin-left: 6px; }
.lcard .items .price { font-size: 13px; font-weight: 500; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 18px 14px; font-size: 13px; }
.proscons ul { margin: 0; padding-left: 16px; color: var(--muted); }
.proscons b { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.proscons .pro b { color: var(--olive); }
.proscons .con b { color: var(--red); }
.lcard footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: var(--panel-2); border-top: 1px solid var(--line); }
.lcard footer small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.lcard footer .price { font-size: 20px; }
.budget-meter { height: 4px; background: var(--line); margin: 0 18px 14px; }
.budget-meter i { display: block; height: 100%; background: var(--brass); }

/* style tiles on home */
.style-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.style-tile { background: var(--panel); border: 1px solid var(--line); padding: 16px; transition: border-color .15s; clip-path: var(--notch); }
.style-tile:hover { border-color: var(--brass); }
.style-tile b { font-family: var(--f-head); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; display: block; }
.style-tile small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }

/* coming soon */
.soon {
  border: 1px dashed var(--line-2); padding: 28px; text-align: left;
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.015) 14px 28px);
}
.soon h2 { margin: 8px 0 10px; }
.soon p { color: var(--muted); max-width: 640px; margin: 0; }
.squad-sizes { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.squad-sizes span { font-family: var(--f-mono); border: 1px solid var(--line-2); padding: 6px 12px; color: var(--muted); }

.empty { color: var(--dim); font-family: var(--f-mono); padding: 30px 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 28px 0; }
.footer-wrap { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 24px; align-items: start; }
.footer-wrap p { margin: 6px 0 0; }
#footer-patch a, .sources a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
#footer-patch a:hover, .sources a:hover { color: var(--brass); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 28px; }
  .w-grid { grid-template-columns: 1fr; }
  .footer-wrap { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 600px) {
  .nav-wrap { height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; padding-bottom: 6px; }
  .nav { width: 100%; margin-left: -12px; }
  .tier-row { grid-template-columns: 1fr; }
  .tier-label { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 14px; }
  .tier-label small { margin-top: 0; }
  .w-hero { grid-template-columns: 1fr; }
  .pricetag { text-align: left; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .builds, .lgrid { grid-template-columns: 1fr; }
  .card-grid, .tier-items .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wcard { padding: 12px 10px 10px; }
  .wcard .rank { display: none; }
  .wcard .score { font-size: 11px; }
  .wname { font-size: 20px; }
  .att li { grid-template-columns: 70px 1fr auto; }
  .proscons { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .card-grid, .tier-items .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Verification + weapon intel ---------- */
.unv { color: var(--brass); font-family: var(--f-mono); font-size: 11px; margin-left: 3px; cursor: help; }
.legend { margin-top: 10px; }
.sources { margin-top: 18px; }
.peers-title { font-size: 15px; color: var(--muted); margin: 22px 0 8px; }
.peers { display: flex; flex-direction: column; }
.peers a { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.peers a:hover span:first-child { color: var(--brass); }
.peers .price { font-size: 13px; }
.panel .note { margin-top: 0; }

/* ---------- Progression ---------- */
.howgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.howcard { background: var(--panel); border: 1px solid var(--line); padding: 18px; clip-path: var(--notch); }
.howcard h3 { font-size: 18px; margin: 8px 0 8px; }
.howcard p { color: var(--muted); font-size: 14px; margin: 0; }
.howcard b { color: var(--text); font-weight: 600; }
.hownum { font-family: var(--f-mono); font-size: 12px; color: var(--brass); letter-spacing: .12em; }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tcard {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); padding: 16px; clip-path: var(--notch);
  display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, background .15s;
}
.tcard:hover { border-color: var(--line-2); background: var(--panel-2); }
.tcard.on { border-color: var(--brass); background: var(--panel-2); box-shadow: inset 3px 0 0 var(--brass); }
.tcard-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tcard-head b { font-family: var(--f-head); font-size: 20px; text-transform: uppercase; letter-spacing: .03em; }
.tcard p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.tcard p .kicker { font-size: 10px; margin-right: 4px; }
.tcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px dashed var(--line); }
.tcard-foot small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }

.plist { border: 1px solid var(--line); background: var(--bg-2); }
.prow { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--panel); }
.plvl { text-align: center; border-right: 1px solid var(--line); padding-right: 12px; }
.plvl small { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.plvl b { font-family: var(--f-mono); font-size: 22px; line-height: 1.1; }
.pname { font-size: 16px; font-weight: 500; }
.pname a { border-bottom: 1px solid var(--line-2); }
.pname a:hover { color: var(--brass); border-color: var(--brass); }
.ptype { display: inline-block; margin-top: 3px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.type-wpn .ptype { color: var(--brass); }
.type-veh .ptype { color: var(--red); }
.type-gear .ptype { color: var(--olive); }
.type-wpn .plvl b { color: var(--brass); }
.pnote { font-size: 12px; color: var(--brass-2); margin-top: 3px; }
.pcost { text-align: right; white-space: nowrap; }
.pcost small { display: block; font-family: var(--f-mono); font-size: 10px; color: var(--dim); margin-top: 2px; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 540px; }
.ptable th { text-align: left; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 500; padding: 10px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.ptable td { padding: 9px 14px; border-bottom: 1px dashed var(--line); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable tr:hover td { background: var(--panel); }
.ptable td a { border-bottom: 1px solid var(--line-2); }
.ptable td a:hover { color: var(--brass); }
.ptable td.price { font-size: 14px; }

.takeaways { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.takeaways li { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brass); padding: 14px 16px; color: var(--muted); font-size: 15px; }
.takeaways b { color: var(--text); font-weight: 600; }

@media (max-width: 860px) { .howgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .howgrid { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 58px 1fr auto; gap: 10px; padding: 10px; }
  .plvl { padding-right: 8px; }
  .plvl b { font-size: 18px; }
  .pname { font-size: 15px; }
}

/* ---------- Weapon images ---------- */
.wimg, .w-visual, .pthumb, .lthumb {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(201,184,143,.08), transparent 70%), var(--bg-2);
  border: 1px solid var(--line);
}
.wimg img, .w-visual img, .pthumb img, .lthumb img { width: 100%; height: 100%; object-fit: contain; }
.sil { width: 88%; height: auto; fill: var(--line-2); }
.sil { fill: #3b3f31; }
.wimg, .w-visual, .pthumb, .lthumb { position: relative; }
.wimg img, .w-visual img, .pthumb img, .lthumb img { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.loaded > img { opacity: 1; }
.loaded > .sil { visibility: hidden; }
.wcard:hover .wimg img { transform: scale(1.04); }
.wimg img { transition: opacity .2s, transform .2s; padding: 4px; }
.pthumb img, .lthumb img { padding: 2px; }
.wcard:hover .sil { fill: #4d523f; }
.wimg { aspect-ratio: 200 / 80; margin: 2px 0 0; }
.w-visual { position: relative; margin-top: 26px; height: 260px; clip-path: var(--notch); }
.w-visual .sil { width: min(560px, 80%); }
.w-visual img { padding: 16px; }
.sil-note { position: absolute; right: 14px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pitem { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.pitem > :not(.pthumb) { grid-column: 2; }
.pthumb { grid-row: 1 / span 3; width: 96px; height: 40px; }
.lname { display: inline-flex; align-items: center; gap: 10px; border-bottom: 0 !important; }
.lthumb { width: 64px; height: 26px; flex: none; border: 0; background: transparent; }
@media (max-width: 600px) {
  .w-visual { height: 160px; }
  .pthumb { width: 64px; height: 28px; }
}

/* ---------- Loadout tier tabs + bag meter ---------- */
.tier-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.tier-tab {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  padding: 12px 10px; text-align: left; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; gap: 3px; clip-path: var(--notch);
}
.tier-tab b { font-family: var(--f-head); font-size: 18px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.tier-tab small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); }
.tier-tab:hover { border-color: var(--brass); }
.tier-tab.on { background: var(--brass); border-color: var(--brass); }
.tier-tab.on b, .tier-tab.on small { color: var(--bg); }
.tier-tab:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.tier-note { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.lcard .needs { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--brass); margin-top: 6px; }
.lcard .items small.slot { color: var(--olive); }
.bag-label { display: flex; justify-content: space-between; margin: 0 18px 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 640px) {
  .tier-tabs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Footer: official links ---------- */
.official { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.official-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; }
.official-links a { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.official-links a:hover { color: var(--brass); border-color: var(--brass); }
.steam-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .official { flex-direction: column; align-items: flex-start; }
  .official-links .toolbar-label { width: 100%; }
}

/* ---------- News & patch notes ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.news-group { margin-bottom: 26px; }
.news-h { font-family: var(--f-head); font-size: 22px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; }
.news-h small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.ncard { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line-2); padding: 14px 16px; margin-bottom: 10px; }
.ncard.src-official { border-left-color: var(--olive); }
.ncard h3 { font-family: var(--f-head); font-size: 20px; margin: 8px 0 6px; line-height: 1.2; }
.ncard p { color: var(--muted); font-size: 15px; margin: 0; }
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ndate { font-family: var(--f-mono); font-size: 12px; color: var(--brass); letter-spacing: .04em; }
.ntag { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.nlinks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: 13px; }
.nlinks a, .plink { color: var(--muted); border-bottom: 1px solid var(--line-2); }
.nlinks a:hover, .plink:hover { color: var(--brass); border-color: var(--brass); }
.patch-col { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; background: var(--bg-2); border: 1px solid var(--line); padding: 16px; }
.patch-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.patch-title h2 { font-family: var(--f-head); font-size: 22px; text-transform: uppercase; margin: 0; }
.patch-title small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.patch { border: 1px solid var(--line); background: var(--panel); margin-bottom: 8px; }
.patch-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.patch-head b { display: block; font-family: var(--f-head); font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.patch-head small { display: block; color: var(--muted); font-size: 13px; }
.patch-head:hover b, .patch.open .patch-head b { color: var(--brass); }
.patch-head:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.patch-body { padding: 0 14px 14px; font-size: 14px; }
.patch-body h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin: 12px 0 4px; }
.patch-body ul { margin: 0; padding-left: 18px; color: var(--muted); }
.patch-body li { margin: 3px 0; }
.patch-body .pnote { color: var(--muted); margin: 0; }
.plink { display: inline-block; margin-top: 12px; font-size: 13px; }
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .patch-col { position: static; max-height: none; order: -1; }
}

/* ---------- Squad Planner ---------- */
.sq-controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.sq-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sq-type { background: var(--panel); border: 1px solid var(--line); color: var(--muted); text-align: left; padding: 12px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 4px; clip-path: var(--notch); }
.sq-type b { font-family: var(--f-head); font-size: 18px; text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.sq-type small { font-size: 12px; line-height: 1.35; }
.sq-icon { font-size: 18px; color: var(--brass); line-height: 1; }
.sq-type:hover { border-color: var(--brass); }
.sq-type.on { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.sq-type.on b, .sq-type.on .sq-icon { color: var(--bg); }
.sq-type:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.sq-row { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: end; margin-top: 8px; }
.sq-tier-wrap .tier-tabs { margin-bottom: 0; }
.sq-warn { border: 1px solid var(--brass); background: rgba(201,184,143,.08); padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.sq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.sq-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 14px; }
.sq-summary > div { background: var(--panel); padding: 12px 14px; }
.sq-summary small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.sq-summary b { font-size: 22px; font-family: var(--f-head); }
.sq-slots { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sq-slot { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; }
.sq-slot.missing { opacity: .6; }
.sq-n { font-family: var(--f-mono); font-size: 20px; color: var(--brass); }
.sq-slot-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sq-role { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.sq-role em { color: var(--brass); font-style: normal; }
.sq-kit { font-family: var(--f-head); font-size: 20px; margin: 2px 0; }
.sq-slot p { color: var(--muted); font-size: 14px; margin: 2px 0 6px; }
.sq-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.sq-slot details { margin-top: 8px; }
.sq-slot summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.sq-slot summary:hover { color: var(--brass); }
.sq-slot details .lcard { margin-top: 10px; }
.sq-side { display: flex; flex-direction: column; gap: 12px; }
.sq-card { background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; }
.sq-card h3 { font-family: var(--f-head); font-size: 20px; text-transform: uppercase; margin: 0 0 8px; }
.sq-card h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); margin: 14px 0 4px; }
.sq-card p { color: var(--muted); font-size: 14px; margin: 0; }
.sq-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.sq-card li { margin: 4px 0; }
.sq-cov { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.sq-cov li { display: flex; gap: 6px; align-items: center; }
.sq-cov li.ok span { color: var(--olive); }
.sq-cov li.no { color: var(--dim); }
.sq-cov li.no span { color: var(--red); }
.sq-missing { margin-top: 10px; font-size: 13px; }
.sq-allok { color: var(--olive) !important; margin-top: 8px !important; }
.sq-src { color: var(--dim); font-size: 11px; }
.sq-src a { color: var(--dim); border-bottom: 1px solid var(--line-2); }
.sq-src a:hover { color: var(--brass); }
.ours { font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--bg); background: var(--olive); padding: 1px 5px; white-space: nowrap; }
.sq-ess { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sq-ess .sq-card h3 { font-size: 17px; }
.sq-ess .sq-card p { margin-bottom: 8px; }
@media (max-width: 900px) {
  .sq-layout { grid-template-columns: 1fr; }
  .sq-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .sq-summary { grid-template-columns: 1fr 1fr; }
  .sq-summary > div:last-child { grid-column: 1 / -1; }
  .sq-types { grid-template-columns: 1fr 1fr; }
  .sq-type small { display: none; }
}
.tag.auto { color: var(--bg); background: var(--brass); border-color: var(--brass); vertical-align: middle; font-size: 10px; }
.nauto { font-style: italic; }

/* ---------- Community: account, builder, community loadouts ---------- */
.nav a.nav-account { border: 1px solid var(--line-2); margin-left: 6px; white-space: nowrap; }
.nav a { white-space: nowrap; }
.cm-demo { border: 1px dashed var(--brass); background: rgba(201,184,143,.07); padding: 10px 14px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.cm-demo b { color: var(--brass); }
.cm-card { background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; }
.cm-card h2 { font-family: var(--f-head); font-size: 24px; text-transform: uppercase; margin: 0 0 6px; }
.cm-card h3 { font-family: var(--f-head); font-size: 18px; text-transform: uppercase; margin: 18px 0 8px; color: var(--olive); letter-spacing: .04em; }
.cm-narrow { max-width: 520px; }
.cm-form { display: flex; flex-direction: column; gap: 6px; }
.cm-form label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 8px; }
.cm-form input, .cm-form select, .cm-form textarea {
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 16px;
  padding: 10px 12px; width: 100%; box-sizing: border-box; border-radius: var(--r);
}
.cm-form input:focus, .cm-form select:focus, .cm-form textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.cm-form .btn { margin-top: 10px; align-self: flex-start; }
#in-code { font-family: var(--f-mono); font-size: 24px; letter-spacing: .4em; max-width: 220px; }
.cm-msg { min-height: 1.2em; font-size: 14px; margin: 6px 0 0; color: var(--muted); }
.cm-msg.err { color: var(--red); }
.cm-msg.ok { color: var(--olive); }
.cm-msg a { color: var(--brass); }
.cm-democode { background: var(--bg-2); border: 1px solid var(--line-2); padding: 8px 12px; font-family: var(--f-mono); }
.cm-democode b { color: var(--brass); font-size: 20px; letter-spacing: .2em; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.cm-danger { margin-top: 16px; font-size: 14px; color: var(--muted); }
.cm-danger summary { cursor: pointer; color: var(--red); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; border-bottom: 1px solid var(--line-2); }
.linkbtn:hover { color: var(--brass); }
.linkbtn.danger { color: var(--red); }
.cm-builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cm-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.cm-checks { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding-top: 18px; }
.cm-checks label { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: 15px; color: var(--text); margin: 0; display: flex; gap: 8px; align-items: center; }
.cm-checks input { width: auto; }
.cm-bag { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.cm-bagrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line); padding: 5px 0; font-size: 14px; }
.cm-bagrow small { display: block; color: var(--dim); font-family: var(--f-mono); font-size: 10px; }
.cm-qty { display: inline-flex; align-items: center; gap: 6px; }
.cm-qty button { width: 28px; height: 28px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; font-size: 16px; line-height: 1; }
.cm-qty button:hover { border-color: var(--brass); color: var(--brass); }
.cm-qty b { min-width: 20px; text-align: center; font-family: var(--f-mono); }
.cm-sum { position: sticky; top: 84px; }
.cm-sum h3 { margin-top: 0; }
.cm-big { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0; }
.cm-big small { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cm-big b { font-family: var(--f-head); font-size: 22px; }
.cm-over { color: var(--red); }
.cm-sum .budget-meter { margin: 8px 0 12px; }
.cm-items { list-style: none; padding: 0; margin: 8px 0 14px; font-size: 14px; }
.cm-items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.cm-items a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.cm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 8px; }
.cm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cm-build { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; background: var(--panel); border: 1px solid var(--line); padding: 14px; }
.cm-build.is-new { border-color: var(--brass); }
.cm-build.is-hidden { opacity: .6; }
.cm-vote { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cm-vote .vote { width: 40px; height: 34px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; font-size: 14px; }
.cm-vote .vote:hover:not([disabled]) { border-color: var(--brass); color: var(--brass); }
.cm-vote .vote.up.on { background: var(--olive); border-color: var(--olive); color: var(--bg); }
.cm-vote .vote.down.on { background: var(--red); border-color: var(--red); color: #fff; }
.cm-vote .vote[disabled] { opacity: .35; cursor: not-allowed; }
.cm-vote .vote:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.cm-vote .score { font-family: var(--f-head); font-size: 22px; }
.cm-vote small { font-family: var(--f-mono); font-size: 10px; color: var(--dim); white-space: nowrap; }
.cm-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cm-rank { font-family: var(--f-mono); color: var(--brass); font-size: 13px; }
.cm-body h3 { font-family: var(--f-head); font-size: 22px; margin: 6px 0 2px; }
.cm-by { font-size: 13px; color: var(--dim); }
.cm-body p { color: var(--muted); font-size: 14px; margin: 8px 0; }
.cm-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); margin: 6px 0; }
.cm-body details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.cm-tools { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; }
.cm-prose { max-width: 760px; }
.cm-prose h2 { font-size: 20px; margin-top: 18px; }
.cm-prose h2:first-child { margin-top: 0; }
.cm-prose p, .cm-prose li { color: var(--muted); }
.cm-prose a { color: var(--brass); }
@media (max-width: 900px) {
  .cm-builder { grid-template-columns: 1fr; }
  .cm-sum { position: static; }
}
@media (max-width: 560px) {
  .cm-grid2, .cm-grid3, .cm-bag { grid-template-columns: 1fr; }
  .cm-build { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 12px; }
}
.nav a.nav-account { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1320px) and (min-width: 721px) {
  .nav a { padding: 8px 9px; font-size: 14px; letter-spacing: .06em; }
}

/* ---------- Attachments ---------- */
.lcard .items li.att { padding: 4px 0 4px 12px; font-size: 14px; border-bottom-style: dotted; }
.lcard .items li.att > span:first-child { color: var(--muted); }
.lcard .items small.fx { display: block; margin-left: 14px; color: var(--dim); font-family: var(--f-body); font-size: 12px; }
.att-needs { color: var(--olive) !important; }
.att-note { margin: 0 18px 12px; font-size: 13px; color: var(--muted); }
.att-note b { color: var(--text); }
.att-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.att-group h3 { font-family: var(--f-head); font-size: 18px; text-transform: uppercase; margin: 0 0 8px; }
.att-group h3 small { font-family: var(--f-mono); font-size: 11px; color: var(--dim); }
.att-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.att-list li { background: var(--panel); border: 1px solid var(--line); padding: 10px 12px; }
.att-list li.pick { border-color: var(--olive); }
.att-top { display: flex; align-items: center; gap: 8px; }
.att-top b { flex: 1; font-size: 15px; }
.att-top .price { font-size: 13px; white-space: nowrap; }
.att-meta { font-family: var(--f-mono); font-size: 11px; color: var(--dim); margin-top: 2px; }
.att-fx { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 12px; }
.att-fx .good { color: var(--olive); }
.att-fx .bad { color: var(--red); }
.cm-attw { border-left: 2px solid var(--olive); padding: 2px 0 6px 12px; margin: 12px 0 4px; }
.cm-attw h4 { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); }
.cm-fx { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11px; margin-top: 4px; }
.cm-fx .good { color: var(--olive); } .cm-fx .bad { color: var(--red); }
.cm-items li.att { padding-left: 10px; color: var(--muted); font-size: 13px; }

/* ==========================================================
   QUARTERMASTER THEME — khaki header, paper requisition forms,
   stamps and typewriter details. Paper surfaces flip the colour
   variables locally, so everything inside them adapts.
   ========================================================== */

/* header: khaki bar with ink text */
.site-header { background: var(--khaki); backdrop-filter: none; border-bottom: 3px solid var(--ink); }
.site-header .logo { color: var(--ink); display: inline-flex; align-items: center; font-size: 27px; letter-spacing: .03em; }
.site-header .logo span { color: var(--ink); }
.logo-stamp {
  font: 700 10px/1 var(--f-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp); padding: 3px 5px; margin-left: 10px;
  transform: rotate(-8deg); opacity: .9;
}
.site-header .nav a { color: #4a4436; }
.site-header .nav a:hover { color: var(--ink); background: rgba(42,38,32,.08); }
.site-header .nav a.active { color: var(--ink); background: transparent; box-shadow: inset 0 -3px 0 var(--ink); }
.site-header .nav a.nav-account { border-color: rgba(42,38,32,.45); }
.site-header .nav em { background: var(--ink); color: var(--khaki); }
.site-header a:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
.footer-wrap .logo span { color: var(--khaki); }
@media (max-width: 560px) { .logo-stamp { display: none; } }

/* typography details */
.kicker { font-family: var(--f-type); color: var(--red); letter-spacing: .1em; }
.page-head p, .hero p.lead { font-family: var(--f-body); }
.hero h1 span { color: var(--khaki); }

/* buttons: square-cut, stamped */
.btn { clip-path: none; border-width: 2px; color: var(--ink); background: var(--khaki); border-color: var(--khaki); }
.btn:hover { background: var(--brass-2); border-color: var(--brass-2); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { color: var(--khaki); border-color: var(--khaki); }
.btn.danger { background: var(--stamp); border-color: var(--stamp); color: #fff; }
.chip.on { color: var(--ink); }

/* paper surfaces (requisition forms) */
.lcard, .build, .cm-build, .ledger {
  --bg: #efe6cc; --bg-2: #e6dcbf;
  --panel: #efe6cc; --panel-2: #e4d9b9;
  --line: #d2c6a4; --line-2: #b3a57f;
  --text: #2a2620; --muted: #574f40; --dim: #6f6550;
  --brass: #8e2a17; --brass-2: #a8321e;
  --olive: #56552c; --red: #a8321e;
  --t-a: #8a7238; --t-b: #6b6a3a; --t-c: #6e6858;
  color: var(--text);
  background: var(--paper);
  border: 0;
  clip-path: none;
  box-shadow: 0 2px 0 rgba(0,0,0,.35), 0 10px 24px rgba(0,0,0,.25);
}
.lcard .price, .build .price, .cm-build .price, .ledger .price, .ledger-row.total b { color: var(--ink); }
.lcard footer, .build footer { background: #e4d9b9; border-top: 1px dashed #b3a57f; }
.lcard footer small, .build footer small, .bag-label, .ledger-title { font-family: var(--f-type); letter-spacing: .06em; }
.lcard .tag, .build .tag, .cm-build .tag { color: var(--ink); border-color: #9c8f6c; }
.lcard .tag.new, .cm-build .tag.new { color: #fff; }
.chip.on, .tier-badge { color: var(--ink); }
.t-META.tier-badge, .t-B.tier-badge, .t-C.tier-badge { color: #fff; }
.lcard .proscons .pro b { color: #4c5a1e; }

/* the APPROVED stamp on every loadout form */
.lcard { position: relative; }
.lcard-head .row { justify-content: flex-start; flex-wrap: wrap; padding-right: 104px; }
.lcard::before {
  content: "Approved"; position: absolute; top: 15px; right: 14px; z-index: 1; pointer-events: none;
  font: 700 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp); padding: 4px 7px;
  transform: rotate(8deg); opacity: .85;
}
.ledger { position: relative; padding-bottom: 58px; }
.ledger::after {
  content: "Issued"; position: absolute; bottom: 14px; left: 18px; pointer-events: none;
  font: 700 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--stamp); border: 2px solid var(--stamp); padding: 4px 7px; transform: rotate(-7deg); opacity: .8;
}

/* footer: khaki rule like the header */
.site-footer { border-top: 3px solid var(--khaki); }

/* tier list votes (weapon page) */
.tv { display: grid; gap: 6px; margin: 4px 0 10px; }
.tv-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 24px; align-items: center; gap: 10px; font-family: var(--f-mono); }
.tv-row .tier-badge { text-align: center; font-size: 11px; }
.tv-bar { height: 8px; background: var(--line); }
.tv-bar i { display: block; height: 100%; background: var(--khaki); }
.tv-row b { text-align: right; }
