@import url('/assets/fonts/fonts.css');

:root {
  color-scheme: dark;
  --bg: #0b0d0e;
  --panel: #131719;
  --panel-strong: #1b2022;
  --paper: #f2e9d8;
  --ink: #171817;
  --text: #f2e9d8;
  --muted: #a8b0ae;
  --ember: #c65b36;
  --brass: #b59a5a;
  --line: #343a3b;
  --content: 1240px;
  font-family: 'PT Sans';
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.66; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, summary { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  z-index: 50;
  width: min(var(--content), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { min-width: 200px; display: grid; text-decoration: none; font-family: 'Oswald'; font-size: 21px; font-weight: 650; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; }
.brand small { color: var(--brass); font-family: 'PT Sans'; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.site-header .primary-nav { gap: clamp(.7rem, 2vw, 1.8rem); }
.site-header .primary-nav a { color: var(--muted); text-decoration: none; }
.site-header .primary-nav a:hover, .site-header .primary-nav a.active { color: var(--paper); }
.site-header [data-guide-menu] summary, .site-header .language-menu > summary { border-color: var(--line); background: var(--panel); }

.dossier-main { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding-bottom: clamp(4rem, 8vw, 7rem); }
.dossier-breadcrumb { min-width: 0; padding: 1rem 0; display: flex; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: 13px; }
.dossier-breadcrumb a { color: var(--paper); text-decoration: none; }
.dossier-hero { min-height: min(690px, calc(100vh - 76px)); padding: clamp(2.2rem, 6vw, 5.5rem) 0; display: grid; grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.dossier-copy { min-width: 0; position: relative; z-index: 2; }
.dossier-kicker { margin: 0 0 .9rem; color: var(--brass); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1,h2 { overflow-wrap: anywhere; font-family: 'Oswald'; }
h1 { max-width: 780px; margin: 0; color: var(--paper); font-size: clamp(3.2rem, 6.8vw, 6.6rem); font-weight: 520; letter-spacing: -.035em; line-height: .94; text-transform: uppercase; }
.dossier-lede { max-width: 660px; margin: 1.45rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; }
.dossier-visual { min-width: 0; margin: 0; position: relative; isolation: isolate; }
.dossier-visual::before { position: absolute; z-index: -1; inset: -18px 18px 18px -18px; border: 1px solid var(--brass); content: ''; opacity: .55; }
.dossier-visual img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.78) contrast(1.08); }
.dossier-visual figcaption { margin-top: .7rem; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.dossier-visual-placeholder { min-height: 360px; display: grid; place-items: center; border: 1px solid var(--line); background: linear-gradient(135deg, var(--panel), #202426); color: var(--brass); font-family: 'Oswald'; letter-spacing: .2em; text-transform: uppercase; }

.dossier-reading { display: grid; grid-template-columns: 240px minmax(0, 760px); justify-content: space-between; align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.dossier-toc { position: sticky; top: 24px; min-width: 0; padding: 1rem 0; border-top: 3px solid var(--ember); }
.dossier-toc > p { margin: 0 0 .75rem; color: var(--brass); font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.dossier-toc nav { display: grid; gap: .2rem; }
.dossier-toc a { min-width: 0; padding: .5rem 0; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .45rem; color: var(--muted); font-size: 13px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.dossier-toc a span { color: var(--ember); font-family: 'Oswald'; }
.dossier-toc a:hover { color: var(--paper); }
.dossier-article { min-width: 0; color: var(--text); border: 1px solid var(--line); background: var(--panel); box-shadow: 18px 18px 0 #070809; }
.article-section { min-width: 0; padding: clamp(1.7rem, 4vw, 3rem); display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 1rem; border-bottom: 1px solid var(--line); }
.article-section:first-child { border-top: 6px solid var(--ember); }
.section-index { color: var(--ember); font-family: 'Oswald'; font-size: 17px; font-weight: 650; }
.section-content { min-width: 0; }
h2 { margin: 0 0 1rem; color: var(--text); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 560; line-height: 1.08; }
.content-block + .content-block { margin-top: 1.4rem; }
.content-block p { margin: .65rem 0; }
.block-prose p:first-child { margin-top: 0; }
.block-steps ol, .block-checklist ul { margin: 0; padding-left: 1.4rem; }
.block-steps li, .block-checklist li { padding: .35rem 0 .35rem .35rem; }
.block-steps li::marker, .block-checklist li::marker { color: var(--ember); font-weight: 700; }
.block-comparison .table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); }
.block-comparison table { width: 100%; min-width: 560px; border-collapse: collapse; }
.block-comparison th, .block-comparison td { padding: .8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.block-comparison th { background: var(--panel-strong); color: var(--text); font-family: 'Oswald'; font-weight: 550; letter-spacing: .04em; text-transform: uppercase; }
.block-faq dl { margin: 0; }
.block-faq .faq-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.block-faq dt { font-weight: 700; }
.block-faq dd { margin: .4rem 0 0; }
.player-action { color: #ef8059; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: .18em; }

.dossier-related { margin-top: clamp(4rem, 8vw, 7rem); }
.dossier-related header { max-width: 500px; margin: 0 0 1.5rem; }
.dossier-related header p { margin: 0 0 .35rem; color: var(--brass); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.dossier-related h2 { margin: 0; color: var(--paper); }
.dossier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dossier-card { min-width: 0; min-height: 160px; padding: 1.3rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.dossier-card span { color: var(--brass); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.dossier-card strong { margin-top: 1.5rem; font-family: 'Oswald'; font-size: 21px; font-weight: 520; line-height: 1.15; }
.dossier-card:hover { border-color: var(--ember); background: var(--panel-strong); }
.site-footer { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer > span { color: var(--paper); font-family: 'Oswald'; letter-spacing: .08em; text-transform: uppercase; }
.video-card { max-width: 760px; margin: 1rem 0; border: 1px solid var(--line); }
.video-stage { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.video-stage img, .video-stage iframe { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play { position: absolute; inset: 50% auto auto 50%; padding: .7rem 1rem; border: 0; background: var(--ember); color: var(--paper); transform: translate(-50%, -50%); cursor: pointer; }
.video-caption { margin: 0; padding: .75rem; color: var(--muted); font-size: 13px; }
.video-caption small { display: block; }

@media (max-width: 980px) {
  .dossier-hero { min-height: auto; grid-template-columns: minmax(0, 1fr); }
  .dossier-visual { width: min(780px, 100%); }
  .dossier-reading { grid-template-columns: minmax(0, 1fr); }
  .dossier-toc { position: static; }
  .dossier-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dossier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header { width: min(100% - 24px, var(--content)); }
  .brand { min-width: 0; max-width: 52vw; font-size: 17px; }
  .dossier-main, .site-footer { width: min(100% - 24px, var(--content)); }
  .dossier-hero { padding-top: 1.4rem; gap: 2rem; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.25rem); }
  .dossier-visual::before { inset: -8px 8px 8px -8px; }
  .dossier-toc nav, .dossier-grid { grid-template-columns: minmax(0, 1fr); }
  .article-section { padding: 1.35rem; grid-template-columns: minmax(0, 1fr); }
  .section-index { font-size: 13px; }
}


/* Shared production navigation: bounded primary links, an accessible full guide menu,
   a wrapping footer directory, and an empty-safe advertising slot. */
.site-header {
  position: relative;
  gap: clamp(.65rem, 1.5vw, 1.4rem);
}
.site-header .primary-nav {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  overflow-x: visible;
}
.site-header .primary-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.25;
}
.site-header [data-guide-menu] {
  position: relative;
  z-index: 30;
  display: block;
  flex: 0 0 auto;
}
.site-header .language-menu {
  position: relative;
  z-index: 31;
  flex: 0 0 auto;
}
.site-header .site-search-trigger {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line, currentColor);
  border-radius: 10px;
  background: var(--panel, var(--paper, var(--bg, transparent)));
  color: inherit;
  cursor: pointer;
}
.site-header .site-search-trigger:hover { color: var(--amber, var(--acid, var(--red, var(--orange, currentColor)))); }
.site-header .site-search-trigger:focus-visible,
.site-search-dialog button:focus-visible,
.site-search-dialog input:focus-visible,
.site-search-dialog a:focus-visible {
  outline: 3px solid var(--amber, var(--acid, var(--red, var(--orange, currentColor))));
  outline-offset: 3px;
}
.site-search-dialog {
  width: min(42rem, calc(100% - 1.5rem));
  max-height: min(80dvh, 42rem);
  margin: min(12vh, 5rem) auto auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line, currentColor);
  border-radius: 16px;
  background: var(--panel, var(--paper, var(--bg, #fff)));
  color: var(--text, var(--ink, currentColor));
  box-shadow: 0 1.4rem 4rem rgba(0,0,0,.35);
}
.site-search-dialog::backdrop { background: rgba(0,0,0,.72); }
.site-search-panel { padding: clamp(1rem, 3vw, 1.6rem); }
.site-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-search-heading h2 { margin: 0; color: inherit; font-family: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.site-search-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line, currentColor);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1;
}
.site-search-input-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-search-dialog input[type="search"] {
  width: 100%;
  min-height: 48px;
  margin-top: 1rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line, currentColor);
  border-radius: 10px;
  background: var(--bg, var(--paper, #fff));
  color: inherit;
  font: inherit;
  font-size: 1rem;
}
.site-search-status { margin: .9rem 0; font-size: .85rem; line-height: 1.4; opacity: .78; }
.site-search-results { display: grid; gap: .35rem; }
.site-search-result {
  min-width: 0;
  padding: .8rem .9rem;
  display: grid;
  gap: .3rem;
  border: 1px solid var(--line, currentColor);
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-search-result:hover { background: rgba(127,127,127,.12); }
.site-search-result strong { font-size: .95rem; line-height: 1.35; }
.site-search-result span { font-size: .82rem; line-height: 1.45; opacity: .78; }
.site-header .language-menu > summary {
  height: 40px;
  min-height: 40px;
  padding: .65rem .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, currentColor);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.2;
  list-style: none;
  white-space: nowrap;
}
.site-header .language-menu > summary::-webkit-details-marker { display: none; }
.site-header .language-menu > div {
  position: absolute;
  z-index: 42;
  top: calc(100% + .45rem);
  right: 0;
  min-width: 9rem;
  padding: .45rem;
  display: grid;
  gap: .2rem;
  border: 1px solid var(--line, currentColor);
  background: var(--panel, var(--paper, var(--bg, #15191b)));
  box-shadow: 0 .8rem 2rem rgba(0,0,0,.3);
}
.site-header .language-menu:not([open]) > div { display: none !important; }
.site-header .language-menu > div a {
  min-height: 40px;
  padding: .5rem .65rem;
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 1.25;
  text-decoration: none;
}
.site-header [data-guide-menu] summary {
  height: 42px;
  min-height: 40px;
  padding: .65rem .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid var(--line, currentColor);
  background: var(--panel, var(--paper, var(--bg, #15191b)));
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  list-style: none;
  white-space: nowrap;
}
.site-header [data-guide-menu] summary::-webkit-details-marker { display: none; }
.site-header [data-guide-menu] summary span { font-size: 1rem; transition: transform .18s ease; }
.site-header [data-guide-menu][open] summary span { transform: rotate(45deg); }
.site-header [data-guide-menu] > nav {
  position: absolute;
  z-index: 40;
  top: calc(100% + .55rem);
  right: 0;
  width: min(36rem, calc(100vw - 2rem));
  min-width: 0;
  max-height: min(70vh, 36rem);
  padding: .75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--line, currentColor);
  background: var(--panel, var(--paper, var(--bg, #15191b)));
  box-shadow: 0 1.1rem 2.8rem rgba(0,0,0,.35);
}
.site-header [data-guide-menu]:not([open]) > nav { display: none !important; }
.site-header [data-guide-menu] > nav a {
  min-width: 0;
  min-height: 42px;
  padding: .65rem .72rem;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.site-header [data-guide-menu] > nav a:hover,
.site-header [data-guide-menu] > nav a:focus-visible,
.site-header [data-guide-menu] > nav a[aria-current="page"] {
  color: var(--amber, var(--acid, var(--red, var(--orange, currentColor))));
  background: rgba(127,127,127,.12);
  transform: none;
}
.site-header a:focus-visible,
.site-header summary:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--amber, var(--acid, var(--red, var(--orange, currentColor))));
  outline-offset: 3px;
}
.site-footer {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(10rem, .35fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.4rem, 4vw, 4rem);
}
.footer-guide-groups {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem clamp(1rem, 2.5vw, 2.4rem);
  overflow-x: visible;
}
.footer-guide-group { min-width: 0; }
.footer-guide-group h2 {
  margin: 0 0 .65rem;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-guide-group nav {
  min-width: 0;
  display: grid;
  gap: .2rem;
  overflow: visible;
  overflow-x: visible;
  background: transparent;
}
.footer-guide-group nav a {
  min-width: 0;
  min-height: 36px;
  padding: .35rem 0;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transform: none;
}
.footer-guide-group nav a:hover,
.footer-guide-group nav a:focus-visible,
.footer-guide-group nav a[aria-current="page"] {
  color: var(--amber, var(--acid, var(--red, var(--orange, currentColor))));
  transform: none;
}
.ad-slot {
  width: min(60rem, 100%);
  min-width: 0;
  margin: clamp(1.5rem, 4vw, 3rem) auto 0;
  padding: .8rem 0 0;
  overflow: visible;
  border-top: 1px solid var(--line, currentColor);
}
.ad-slot > small {
  display: block;
  margin: 0 0 .55rem;
  font-size: 12px;
  line-height: 1.3;
  opacity: .72;
}
.ad-slot-container { width: 100%; min-width: 0; }
.ad-slot:has(> .ad-slot-container:empty) { display: none; }
.site-privacy {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: .85rem 0 1.25rem;
  border-top: 1px solid var(--line, currentColor);
  color: inherit;
  font-size: 12px;
  line-height: 1.55;
  opacity: .78;
}
.site-privacy > summary {
  width: max-content;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.site-privacy > p { max-width: 60rem; margin: .65rem 0 0; }
@media (max-width: 980px) {
  .site-header .primary-nav { display: none; }
  .footer-guide-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; }
  html:not([data-template="tactical-grid"]) .site-header .brand { max-width: calc(100% - 3.5rem); }
  html:not([data-template="tactical-grid"]) .site-header .site-search-trigger {
    position: absolute;
    top: 1rem;
    right: 0;
  }
  html[data-template="arcade-signal"] .site-header .site-search-trigger,
  html[data-template="field-guide"] .site-header .site-search-trigger,
  html[data-template="pixel-dream"] .site-header .site-search-trigger { right: 4vw; }
  html[data-template="community-wiki"] .site-header .site-search-trigger,
  html[data-template="community-wiki-organic"] .site-header .site-search-trigger { top: .25rem; }
  html[data-template="community-wiki"] .site-header,
  html[data-template="community-wiki-organic"] .site-header { padding-right: 3.5rem; }
  html[data-template="field-guide"] .site-header .site-search-trigger { top: 1.6rem; }
  .site-header [data-guide-menu] > nav {
    position: fixed;
    top: max(4.5rem, env(safe-area-inset-top));
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100dvh - 6rem);
  }
  .site-footer { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .site-header [data-guide-menu] > nav,
  .footer-guide-groups { grid-template-columns: minmax(0, 1fr); }
}
