/*
 * site.css — shared chrome for every static content page under /public.
 *
 * Why this file exists: the AdSense "low value content" rejection is driven by
 * the crawler seeing a canvas-only root and two orphan pages. The fix is a real
 * interlinked site, which means every content page needs the same header nav,
 * typography, and footer. Duplicating ~200 lines of inline <style> across eight
 * pages would guarantee drift, so the chrome lives here and each page links it.
 *
 * public/ is copied verbatim by Vite (no bundling, no hashing), so the
 * absolute /site.css URL is stable in dev, preview, and production alike.
 * index.html deliberately does NOT use this file — it is a Vite entry with its
 * own src/style.css that also has to lay out the Phaser canvas.
 */

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/roboto-mono-latin.woff2') format('woff2');
}

:root {
  --bg: #060c14;
  --panel: #0a1622;
  --panel-2: #0c1f2e;
  --ink: #d8eefb;
  --muted: #8fa9bd;
  --cyan: #00d4ff;
  --amber: #ffd166;
  --green: #5dff9b;
  --line: rgba(0, 212, 255, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Keep in-page anchors clear of the sticky header. */
html { scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto Mono", ui-monospace, "Courier New", monospace;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 24px 20px 64px; }

/* ---------------------------------------------------------------- header --
   Sticky brand bar + the site-wide nav. Every content page carries the same
   list, so the reviewer (and Googlebot) can reach all nine URLs from any one
   of them — no page is an orphan. */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 12, 20, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 9px 20px;
}
.brand {
  color: var(--cyan); font-weight: 700; letter-spacing: 2px;
  text-decoration: none; font-size: 17px; white-space: nowrap;
}
.back {
  color: var(--amber); text-decoration: none; border: 2px solid var(--amber);
  border-radius: 6px; padding: 6px 14px; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.back:hover, .back:focus { background: rgba(255, 209, 102, 0.12); }

.sitenav {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 12, 20, 0.94);
}
.sitenav ul {
  max-width: 860px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  list-style: none;
}
.sitenav a {
  display: inline-block; padding: 7px 0;
  color: var(--muted); text-decoration: none; font-size: 13.5px;
}
.sitenav a:hover, .sitenav a:focus { color: var(--cyan); text-decoration: underline; }
/* aria-current="page" marks the page you are on — set it per page. */
.sitenav a[aria-current="page"] { color: var(--cyan); font-weight: 700; }

/* Skip link: keyboard users jump past the nav. Also a small a11y signal. */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--panel); color: var(--cyan); padding: 10px 16px; z-index: 40;
}
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------ typography -- */
h1 { color: var(--cyan); font-size: 30px; margin: 0 0 8px; letter-spacing: 1px; line-height: 1.25; }
h2 { color: var(--amber); font-size: 22px; margin: 38px 0 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
h3 { color: var(--cyan); font-size: 17px; margin: 24px 0 6px; }
p, li { color: var(--ink); }
a { color: var(--cyan); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }
strong { color: #eaf7ff; }
.lead { font-size: 17.5px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; color: var(--muted); }

kbd {
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 4px; padding: 1px 7px; font-size: 13px; color: var(--ink);
  white-space: nowrap;
}

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 4px 24px 24px; margin-bottom: 28px;
}
.card > h2:first-child, .card > h1:first-child { margin-top: 20px; }

.play {
  display: inline-block; margin-top: 18px; background: #06351f; color: var(--green);
  border: 2px solid var(--green); border-radius: 6px; padding: 12px 28px;
  font-weight: 700; letter-spacing: 1px; text-decoration: none;
}
.play:hover, .play:focus { background: #0a5232; }

/* ---------------------------------------------------------------- tables --
   Stat tables are the densest, most genuinely useful content on the weapons
   and strategy pages. They must scroll inside their own box so a narrow phone
   never gets a horizontally scrolling page body. */
.table-scroll { overflow-x: auto; margin: 14px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
caption { caption-side: top; text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--panel-2); color: var(--amber); font-weight: 700; }
tbody tr:nth-child(even) td { background: rgba(0, 212, 255, 0.035); }

/* Definition-style rows used for the equipment and glossary lists. */
.deflist { margin: 14px 0; }
.deflist dt { color: var(--cyan); font-weight: 700; margin-top: 14px; }
.deflist dd { margin: 4px 0 0; color: var(--ink); }

/* Callout for the one or two things worth pulling out of the body copy. */
.note {
  border-left: 3px solid var(--amber); background: rgba(255, 209, 102, 0.06);
  padding: 10px 16px; margin: 18px 0; border-radius: 0 6px 6px 0;
}

/* FAQ entries double as the source for the FAQPage structured data. */
.faq h3 { margin-top: 26px; }
.faq p { margin-top: 4px; }

/* --------------------------------------------------------------- footer -- */
.sitefoot {
  border-top: 1px solid var(--line);
  background: var(--panel);
  margin-top: 40px;
}
.sitefoot-inner {
  max-width: 860px; margin: 0 auto; padding: 24px 20px 32px;
  color: var(--muted); font-size: 13.5px;
}
.sitefoot h2 { font-size: 13px; color: var(--muted); border: 0; margin: 0 0 8px; padding: 0; letter-spacing: 1px; text-transform: uppercase; }
.sitefoot nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 16px; }
.sitefoot nav li { margin: 0; }
.sitefoot a { color: var(--muted); text-decoration: none; }
.sitefoot a:hover, .sitefoot a:focus { color: var(--cyan); text-decoration: underline; }
.sitefoot .copyright { margin: 0; }

/* The consent-revocation control is a <button> (it performs an action, it does
   not navigate) styled to sit inline with the footer links. site.js unhides it
   only once Funding Choices is actually available. */
.linklike {
  background: none; border: 0; padding: 0;
  color: var(--muted); font: inherit; cursor: pointer; text-align: left;
}
.linklike:hover, .linklike:focus { color: var(--cyan); text-decoration: underline; }

/* Same control, rendered as a prominent button inside the privacy policy body. */
.consent-cta {
  display: inline-block; padding: 8px 16px; border: 2px solid var(--cyan);
  border-radius: 6px; background: none; color: var(--cyan);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.consent-cta:hover, .consent-cta:focus { background: rgba(0, 212, 255, 0.12); }

@media (max-width: 420px) {
  h1 { font-size: 25px; }
  h2 { font-size: 20px; }
  .brand { font-size: 15px; letter-spacing: 1px; }
  .back { padding: 6px 10px; font-size: 13px; }
  .topbar-inner { padding: 8px 14px; }
  .sitenav ul { gap: 2px 14px; padding: 0 14px; }
  .wrap { padding: 20px 14px 48px; }
  .card { padding: 4px 16px 20px; }
}
