/* ============================================================
   site.css
   Shared styles loaded AFTER each page's own styles.
   Nav sizing, focus states, field log, vendors, tracker mode.
   ============================================================ */

/* ---------- Nav: fits 9 links, collapses cleanly ---------- */
.nav { position: sticky; }
@media (max-width: 1280px) {
  .nav-link { padding: 0 12px; }
  .nav-social { display: none; }
}
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 52px; left: 0; right: 0; background: var(--bg-2);
    border-bottom: 1px solid var(--border); z-index: 200;
  }
  .nav-links.open .nav-link {
    height: 48px; border-bottom: 1px solid var(--border);
    border-right: none; padding: 0 24px;
  }
  .hamburger { display: flex; margin-left: auto; }
}

/* ---------- Logo never underlined ---------- */
.nav-logo, .nav-logo:hover { text-decoration: none !important; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tracker: permanent mode ---------- */
body.tracker-fixed .cd-timer { color: var(--gold); }
body.tracker-fixed #prev-locations { display: none !important; }
.lore-fixed { display: none; }
body.tracker-fixed .lore-weekly { display: none; }
body.tracker-fixed .lore-fixed { display: inline; }

/* ---------- Homepage intel grid (extends .quick-nav) ---------- */
.quick-nav-item.partner { background: var(--bg-2); }
.quick-nav-item.new .qn-title::after {
  content: 'New'; margin-left: 10px; font-size: 9px; letter-spacing: 0.14em;
  color: #000; background: var(--gold); padding: 1px 6px; vertical-align: middle;
}

/* ---------- Field log ---------- */
.fieldlog-list { display: grid; gap: 2px; background: var(--border); border: 1px solid var(--border); margin-bottom: 32px; }
.fl-entry { background: var(--bg-3); padding: 18px 20px; }
.fl-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.fl-tag { color: var(--gold-dim); border: 1px solid var(--border-2); padding: 1px 7px; }
.fl-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  letter-spacing: 0.03em; color: #fff; margin: 0 0 6px; text-transform: none;
}
.fl-summary { font-size: 13px; color: #888; line-height: 1.7; max-width: 68ch; margin: 0; }
.fl-body { font-size: 13px; color: #777; line-height: 1.8; max-width: 68ch; margin-top: 10px; }
.fl-body p { margin: 0 0 10px; }
.fl-link {
  display: inline-block; margin-top: 10px; font-family: var(--font-display); font-size: 11px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.fl-link:hover { text-decoration: underline; }
.fl-empty { padding: 18px 20px; background: var(--bg-3); color: var(--text-dim); font-size: 13px; margin: 0; }
.fl-more {
  display: block; padding: 12px 20px; background: var(--bg-2); border: 1px solid var(--border);
  border-top: none; margin: -32px 0 32px; font-family: var(--font-display); font-size: 11px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.fl-more:hover { color: var(--gold); }

/* ---------- Twitch embed ---------- */
#twitch-section { border-top: 1px solid var(--border); padding: 48px 32px; }
#twitch-section .twitch-inner { max-width: 1140px; margin: 0 auto; }
#twitch-video { position: relative; padding-top: 56.25%; height: 0; border: 1px solid var(--border-2); background: #000; }
#twitch-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { #twitch-section { padding: 32px 16px; } }

/* ---------- Vendors page ---------- */
.vendor-table-wrap { overflow-x: auto; border: 1px solid var(--border); margin-bottom: 40px; }
.vendor-table { width: 100%; border-collapse: collapse; font-family: var(--font-display); font-size: 13px; min-width: 560px; }
.vendor-table th {
  background: var(--bg-4); color: var(--gold); text-align: left; padding: 10px 16px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--border-2);
}
.vendor-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.vendor-table tr:last-child td { border-bottom: none; }
.vendor-table .buyer { color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.vendor-table .unconfirmed { color: var(--text-dim); font-style: italic; font-weight: 400; }
.vendor-table a { color: var(--gold); }
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px; background: var(--border); border: 1px solid var(--border); margin-bottom: 40px; }
.vendor-card { background: var(--bg-3); padding: 20px; }
.vendor-card.featured { background: var(--bg-4); box-shadow: inset 3px 0 0 var(--gold); }
.vendor-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.vendor-role { font-size: 12px; color: var(--text-dim); margin-bottom: 14px; }
.vendor-facts { list-style: none; padding: 0; margin: 0; }
.vendor-facts li { font-size: 13px; color: #888; line-height: 1.6; padding: 6px 0; border-top: 1px solid var(--border); }
.vendor-facts li strong { color: #ccc; font-weight: 600; }
.vendor-card a.vendor-link { display: inline-block; margin-top: 12px; font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- Simple page shell for new pages ---------- */
.page-hero { border-bottom: 1px solid var(--border); background: var(--bg-2); padding: 48px 0 40px; }
.page-hero-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.page-hero .lede { font-size: 14px; color: #888; line-height: 1.8; max-width: 62ch; margin-top: 8px; }
.page-main { max-width: 1140px; margin: 0 auto; padding: 40px 32px 56px; }
.page-main h2.block-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff; margin: 0 0 6px;
}
.page-main p.block-intro { font-size: 13px; color: var(--text-dim); line-height: 1.8; max-width: 68ch; margin: 0 0 18px; }
@media (max-width: 600px) {
  .page-hero { padding: 28px 0; }
  .page-hero-inner { padding: 0 16px; }
  .page-main { padding: 28px 16px 40px; }
}

/* ---------- Rogue Ops (0.5) page ---------- */
.ro-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--border); border: 1px solid var(--border); margin-top: 28px; max-width: 760px; }
.ro-date { background: var(--bg-3); padding: 16px 18px; }
.ro-date-when { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.ro-date-what { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.ro-date.main { box-shadow: inset 0 3px 0 var(--gold); }
.ro-date.main .ro-date-when { color: var(--gold); }
.ro-countdown { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-top: 16px; }
.ro-section { margin-bottom: 48px; }
.ro-lead { border: 1px solid var(--border-2); box-shadow: inset 3px 0 0 var(--gold); background: var(--bg-3); padding: 24px 26px; }
.ro-lead h2 { margin-top: 0; }
.ro-list { list-style: none; padding: 0; margin: 0; max-width: 72ch; }
.ro-list li { font-size: 14px; color: #999; line-height: 1.75; padding: 10px 0; border-top: 1px solid var(--border); }
.ro-list li:first-child { border-top: none; }
.ro-list strong { color: #e6e6e6; font-weight: 600; }
.ro-tuning { display: inline-block; font-size: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dim); border: 1px solid var(--border-2); padding: 0 6px; margin-left: 6px; vertical-align: 1px; }
.ro-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border: 1px solid var(--border); max-width: 760px; }
.ro-split > div { background: var(--bg-3); padding: 18px 20px; }
.ro-split h3 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 10px; }
.ro-split .keep h3 { color: #4ecb71; }
.ro-split .lose h3 { color: #e05050; }
.ro-split ul { margin: 0; padding-left: 18px; }
.ro-split li { font-size: 14px; color: #aaa; line-height: 1.8; }
.ro-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.ro-card { background: var(--bg-3); padding: 18px 20px; }
.ro-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; margin: 0 0 6px; }
.ro-card p { font-size: 13px; color: #888; line-height: 1.7; margin: 0; }
.ro-guns { display: flex; flex-wrap: wrap; gap: 2px; background: var(--border); border: 1px solid var(--border); }
.ro-gun { background: var(--bg-3); padding: 14px 18px; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.05em; color: #fff; flex: 1 1 140px; }
.ro-source { font-size: 12px; color: var(--text-dim); line-height: 1.8; border-top: 1px solid var(--border); padding-top: 18px; max-width: 72ch; }
@media (max-width: 700px) {
  .ro-dates, .ro-split { grid-template-columns: 1fr; }
}

/* ---------- Homepage: Rogue Ops feature tile + vendor-menu note ---------- */
.quick-nav-item.feature { grid-column: 1 / -1; background: var(--bg-4); box-shadow: inset 3px 0 0 var(--gold); }
.quick-nav-item.feature .qn-title { color: var(--gold); }
.vendor-menu-note { display: none; background: var(--bg-3); border: 1px solid var(--border-2); box-shadow: inset 3px 0 0 var(--gold); padding: 20px 22px; margin-bottom: 32px; }
.vendor-menu-note strong { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.vendor-menu-note p { font-size: 13px; color: #999; line-height: 1.7; margin: 0; max-width: 64ch; }
.vendor-menu-note a { color: var(--gold); }
body.tracker-fixed .vendor-menu-note { display: block; }
body.tracker-fixed #cop-card-wrapper, body.tracker-fixed #cop-locations { display: none !important; }

/* ---------- Redacted text (who.html) ----------
   Text stays in the page for search and screen readers.
   Select it with your mouse to "leak" it, like a bad redaction. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.redacted-line { line-height: 2.1 !important; }
.redact {
  color: transparent;
  background-color: #f1f0eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  padding: 0.12em 0.2em;
  margin: 0 -0.05em;
  border-radius: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.redact::selection { color: #111; background: #bdb7a8; }
.redact-stamp {
  display: inline-block; margin: 10px 0 16px 4px; padding: 3px 10px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #c43a31; border: 2px solid #c43a31; border-radius: 2px;
  transform: rotate(-3deg); opacity: 0.9; text-decoration: none;
}
.redact-stamp:hover { opacity: 1; color: #e04a40; border-color: #e04a40; }

/* ---------- Homepage title redaction ---------- */
.title-stamp { display: inline-block; margin: 4px 0 18px 2px; }

/* Marker swipe across "Where Is" (always on, teasing Rogue Ops) */
.hero-title .t-strike { position: relative; display: inline-block; white-space: nowrap; }
.hero-title .t-strike::after {
  content: ''; position: absolute; left: -0.06em; right: -0.08em; top: 26%; height: 52%;
  background-color: #f1f0eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  transform: rotate(-0.6deg) scaleX(1);
  transform-origin: left center;
  animation: marker-swipe 0.75s cubic-bezier(.65,.05,.35,1) 0.35s both;
  pointer-events: none;
}
@keyframes marker-swipe {
  from { transform: rotate(-0.6deg) scaleX(0); }
  to   { transform: rotate(-0.6deg) scaleX(1); }
}

/* Rogue Ops video */
.ro-video { position: relative; padding-top: 56.25%; height: 0; background: #000; border: 1px solid var(--border-2); }
.ro-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Devlog additions */
.ro-confirmed { display: inline-block; font-size: 10px; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4ecb71; border: 1px solid #1f4a2c; padding: 0 6px; margin-left: 6px; vertical-align: 1px; }
.ro-sale { margin-top: 18px; max-width: 760px; padding: 12px 16px; border: 1px solid var(--gold-dim); background: rgba(255,200,0,0.05); font-size: 13px; color: #aaa; line-height: 1.7; }
.ro-sale strong { color: var(--gold); }

/* Rogue Ops "up next" video card */
.ro-next { display: flex; align-items: center; gap: 18px; margin-top: 2px; padding: 12px; background: var(--bg-3); border: 1px solid var(--border-2); border-top: none; text-decoration: none; transition: background 0.15s; }
.ro-next:hover { background: var(--bg-4); }
.ro-next-thumb { position: relative; flex: 0 0 220px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--border-2); }
.ro-next-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.ro-next:hover .ro-next-thumb img { transform: scale(1.04); }
.ro-next-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 30px; margin: -15px 0 0 -22px; background: rgba(0,0,0,0.75); border-radius: 6px; }
.ro-next-play::after { content: ''; position: absolute; left: 18px; top: 8px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.ro-next:hover .ro-next-play { background: #e00; }
.ro-next-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ro-next-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.ro-next-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0.02em; color: #fff; line-height: 1.25; }
.ro-next-cta { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.ro-next:hover .ro-next-cta { color: var(--gold); }
@media (max-width: 600px) { .ro-next { flex-direction: column; align-items: stretch; } .ro-next-thumb { flex-basis: auto; } }

/* ── YouTube lite embeds ── */
.yt-lite { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--border-2); overflow: hidden; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.yt-play:hover img, .yt-play:focus-visible img { opacity: 1; }
.yt-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; margin: -22px 0 0 -32px; background: rgba(0,0,0,.75); border: 1px solid var(--gold-dim); border-radius: 10px; }
.yt-btn::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--gold); }
.yt-play:hover .yt-btn { background: var(--gold); }
.yt-play:hover .yt-btn::after { border-left-color: #000; }
.yt-soon { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--bg-2) 0 12px, var(--bg-3) 12px 24px); }
.yt-soon-text { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border-2); padding: 6px 12px; background: var(--bg-3); }

/* ── Chameleon camo tasks ── */
.cham-section { margin-bottom: 48px; scroll-margin-top: 70px; }
.cham-intro { max-width: 760px; margin-bottom: 20px; }
.cham-tip { background: var(--bg-3); border-left: 3px solid var(--gold); padding: 12px 16px; font-size: 14px; color: var(--text); margin: 14px 0 0; }
.cham-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.cham-card { background: var(--bg-3); display: flex; flex-direction: column; scroll-margin-top: 70px; }
.cham-card .yt-lite { border: 0; border-bottom: 1px solid var(--border); }
.cham-info { padding: 18px 20px 20px; }
.cham-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.cham-head h3 { margin: 0; }
.cham-tag { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--gold-dim); border: 1px solid var(--border-2); padding: 1px 7px; }
.cham-note { font-size: 13px; color: var(--text-dim); margin: 10px 0 0; }
.cham-more { font-size: 13px; color: var(--text-dim); margin: 14px 0 0; }
.cham-legacy-title { margin-top: 8px; }
.cham-jump { color: var(--gold); text-decoration: none; font-weight: 700; font-style: normal; }
.cham-jump:hover { text-decoration: underline; }
@media (max-width: 760px) { .cham-grid { grid-template-columns: 1fr; } }

.tt-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 14px; border: 1px solid var(--border-2); background: var(--bg-3); color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.tt-link:hover { border-color: var(--gold-dim); color: #fff; }
.bp-video { margin-top: 14px; }

/* ---------- Hideout page ---------- */
.ho-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.ho-jump a { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border-2); padding: 6px 10px; }
.ho-jump a:hover { color: var(--gold); border-color: var(--gold-dim); text-decoration: none; }
.ho-split { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.ho-split p strong { color: #e6e6e6; }
.ho-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.ho-stat { background: var(--bg-3); padding: 18px 20px; }
.ho-num { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.ho-stat.gold .ho-num { color: var(--gold); }
.ho-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-top: 8px; }
.ho-farm .bp-detail { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 6px 0 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.ho-farm .bp-detail-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }
.ho-farm .bp-detail-value { color: var(--gold); text-align: right; }
.ho-steps { margin: 0 0 10px 18px; padding: 0; }
.ho-steps li { font-size: 13px; color: #999; line-height: 1.7; padding: 2px 0; }
.ho-farm .ro-card p { margin-top: 6px; }
section[aria-label] > .yt-lite { max-width: 860px; }
@media (max-width: 900px) { .ho-split { grid-template-columns: 1fr; } }
.ho-rooms { grid-template-columns: repeat(3, 1fr); }
.ho-farm { grid-template-columns: repeat(2, 1fr); }
.ho-stats { grid-template-columns: repeat(6, 1fr); }
.quick-nav-item.partner { grid-column: 1 / -1; }
@media (max-width: 900px) { .ho-rooms { grid-template-columns: 1fr; } .ho-farm { grid-template-columns: 1fr; } .ho-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .ho-stats { grid-template-columns: repeat(2, 1fr); } }
.vendor-table.ho-table { min-width: 0; width: 100%; }
@media (max-width: 500px) { .vendor-table.ho-table td, .vendor-table.ho-table th { padding: 10px 12px; } }
