/* Static stylesheet for the pre-rendered /guides/ pages (public/guides/**).
   These pages sit outside the Vite bundle so they cannot reference the
   hashed app CSS; this file is a hand-kept copy of the tokens and .guide-
   prefixed rules from src/styles.css, plus the site chrome (header, footer,
   buttons) those pages reuse. Keep it in sync with src/styles.css when
   guide-page styling changes. See WIKI.md, "Guides and Hindi locale". */
@font-face {
  /* Round 3: swapped to the clean Regular face for small/running use; the
     punched face moved to "Everywear Display Punch" for big display sizes
     only (see src/ewds.css .wm-wordmark--display). */
  font-family: "Everywear Display";
  src: url("/fonts/EverywearDisplay-Regular.woff2") format("woff2"),
    url("/fonts/EverywearDisplay-Regular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  ascent-override: 104%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Roboto Variable";
  src: url("/fonts/Roboto-latin-ext-variable.woff2") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Variable";
  src: url("/fonts/Roboto-latin-variable.woff2") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Variable";
  src: url("/fonts/Roboto-cyrillic-ext-variable.woff2") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Roboto Variable";
  src: url("/fonts/Roboto-cyrillic-variable.woff2") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  /* Self-hosted Roboto Mono (OFL), the EWDS mono family. Latin subset. */
  font-family: "Roboto Mono";
  src: url("/fonts/RobotoMono-latin-variable.woff2") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 100 700;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: dark;
  --bg: #111611;
  --surface: #191f18;
  --text: #e8ebe3;
  --muted: #b3bcac;
  --accent: #b3d087;
  --line: #3a4434;
  --ui: "Roboto Variable", "Segoe UI", Tahoma, "Leelawadee UI", "Noto Sans Thai", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-family: var(--ui);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  font-weight: 400;
  line-height: 1.65;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
button,
select {
  font: inherit;
}
a:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  /* Layout symmetry pass: the single site container (see
     src/theme/wingmait.css --wm-content). */
  width: var(--wm-content, min(100% - 40px, 1376px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--bg);
  padding: 10px 20px;
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: #101510;
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 10px;
  gap: 48px;
}
.wordmark,
.wm-wordmark,
.site-header__brand {
  font-family: "Everywear Display", "Segoe UI", var(--ui);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.wm-wordmark {
  font-size: 1em;
  display: inline-block;
}
.wordmark,
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark::before,
.site-header__brand::before {
  content: "";
  flex: none;
  width: clamp(60px, 6vw, 84px);
  aspect-ratio: 480 / 152;
  background: url("/brand/wingmait-gold-wings.png") center / contain no-repeat;
}
.header-inner nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "Roboto Mono", Consolas, "Courier New", var(--ui);
  font-size: 13px;
  white-space: nowrap;
}
select {
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid #77836d;
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--accent);
  letter-spacing: 0.025em;
}
.button.secondary {
  background: transparent;
  color: var(--accent);
}
.button.secondary:hover {
  background: var(--accent);
  color: var(--bg);
}
footer {
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  background: #0f140f;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  padding-block: 22px;
}
.footer-main a {
  color: var(--muted);
}
:lang(th) {
  line-height: 1.85;
}
:lang(hi) {
  font-family: "Nirmala UI", "Noto Sans Devanagari", Mangal, var(--ui);
  line-height: 1.9;
}

/* --- .guide- prefixed rules, mirrored from src/styles.css --- */
.guide-doc {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.guide-crumb {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font: 11px/1.6 "Roboto Mono", Consolas, "Courier New", var(--ui);
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}
.guide-crumb a {
  color: var(--accent);
}
.guide-crumb span[aria-hidden="true"] {
  margin-inline: 8px;
  color: #5a6752;
}
.guide-lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.guide-lang-switch label {
  font-size: 11px;
  color: var(--muted);
}
.guide-hero {
  padding-block: 34px 0;
}
.guide-hero-eyebrow {
  color: var(--accent);
  font: 700 10px/1.5 "Roboto Mono", Consolas, "Courier New", var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.guide-hero h1 {
  margin-top: 10px;
  font: 700 clamp(30px, 4vw, 50px)/1.25 var(--ui);
}
:lang(th) .guide-hero h1,
:lang(zh-CN) .guide-hero h1,
:lang(hi) .guide-hero h1 {
  font-family: var(--ui);
  font-weight: 700;
}
:lang(hi) .guide-hero h1 {
  font-family: "Nirmala UI", "Noto Sans Devanagari", Mangal, var(--ui);
}
.guide-dek {
  max-width: 72ch;
  margin-top: 16px;
  color: #c8cebf;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.guide-badge {
  padding: 5px 10px;
  border: 1px solid #59694c;
  color: var(--muted);
  font: 10px/1.5 "Roboto Mono", Consolas, "Courier New", var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guide-badge.is-warn {
  border-color: #b58a4a;
  color: #e0b879;
}
/* PATCHED notice: a guide whose method the game has since fixed (meta.patched). Red/amber band, full width of the hero column. */
.guide-patched {
  margin-top: 18px;
  padding: 14px 18px 15px;
  border: 1px solid #d9654a;
  border-left: 8px solid #d9654a;
  background: rgba(217, 101, 74, 0.16);
  color: #ffe6dd;
}
.guide-patched__title {
  margin: 0 0 6px;
  color: #ffb29a;
  font: 700 13px/1.5 "Roboto Mono", Consolas, "Courier New", var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.guide-patched__note {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}
.guide-hero-image {
  margin-top: 26px;
  border: 1px solid #59694c;
  overflow: hidden;
  background: #0d130f;
}
.guide-hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.guide-hero-image img:not(.build-schematic) {
  height: clamp(300px, 32vw, 520px);
  aspect-ratio: auto;
  object-position: center 65%;
}
.guide-quickcard {
  margin-top: 30px;
  margin-inline: auto;
  max-width: none;
  padding: 22px;
  border: 1px solid #59694c;
  background: #151c14;
}
.guide-quickcard h2 {
  margin: 0 0 14px;
  font: 700 20px/1.3 var(--ui);
}
:lang(th) .guide-quickcard h2,
:lang(zh-CN) .guide-quickcard h2 {
  font-family: var(--ui);
  font-weight: 700;
}
:lang(hi) .guide-quickcard h2 {
  font-family: "Nirmala UI", "Noto Sans Devanagari", Mangal, var(--ui);
  font-weight: 700;
}
.guide-quickcard dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin: 0;
}
.guide-quickcard dt {
  color: var(--muted);
  font: 10px/1.5 "Roboto Mono", Consolas, "Courier New", var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guide-quickcard dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 14px;
}
.guide-body {
  display: grid;
  gap: clamp(28px, 3vw, 46px);
  max-width: none;
  margin-inline: auto;
  padding-block: 34px 64px;
  counter-reset: field-note;
}
.guide-section-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.4vw, 24px);
  align-items: stretch;
}
.guide-section-pair > :only-child {
  /* A lone section is centred at the readable measure, not stranded in the
     left column of a two-up row. */
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, calc(var(--wm-measure, 70ch) + 2 * clamp(24px, 2vw, 34px)));
}
.guide-doc .guide-section {
  position: relative;
  min-width: 0;
  padding: clamp(24px, 2vw, 34px);
  border: 1px solid var(--ew-border, var(--line));
  background: linear-gradient(155deg, #20271c 0%, #171e15 58%, #141a13 100%);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  counter-increment: field-note;
}
.guide-doc .guide-section::before {
  content: counter(field-note, decimal-leading-zero);
  display: block;
  width: fit-content;
  margin-bottom: 24px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font: 700 12px/1 "Roboto Mono", Consolas, "Courier New", monospace;
  letter-spacing: 0.12em;
}
.guide-doc .guide-section h2 {
  margin-bottom: 15px;
  font: 800 clamp(21px, 1.55vw, 27px)/1.28 var(--ui);
}
:lang(th) .guide-section h2,
:lang(zh-CN) .guide-section h2 {
  font-family: var(--ui);
  font-weight: 700;
}
:lang(hi) .guide-section h2 {
  font-family: "Nirmala UI", "Noto Sans Devanagari", Mangal, var(--ui);
  font-weight: 700;
}
.guide-doc .guide-section p {
  white-space: pre-line;
  max-width: 70ch;
  color: #c5cdbf;
  font-size: clamp(15px, 0.92vw, 17px);
  line-height: 1.7;
}
.guide-doc .guide-section__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 12px;
}
.guide-doc .guide-section__link {
  color: var(--accent);
  font: 700 13px/1.5 var(--ui);
  text-decoration: none;
}
.guide-doc .guide-section__link:hover,
.guide-doc .guide-section__link:focus-visible {
  text-decoration: underline;
}
.guide-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(16px, 1.4vw, 24px);
}
.guide-figure {
  min-width: 0;
  border: 1px solid var(--ew-border, var(--line));
  background: #10160f;
}
.guide-figure img {
  width: 100%;
  height: clamp(260px, 26vw, 430px);
  object-fit: cover;
}
.guide-figure--technical img {
  object-fit: contain;
  background: #090e0c;
}
.guide-figure.guide-figure--natural img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.guide-figure--portrait {
  width: min(100%, 440px);
  justify-self: center;
}
.guide-figure--portrait img {
  height: min(68vh, 650px);
}
.guide-figure figcaption {
  padding: 15px 18px 18px;
  color: #c5cdbf;
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .guide-section-pair { grid-template-columns: 1fr; }
  .guide-figure img { height: auto; aspect-ratio: 16 / 9; }
  .guide-figure--portrait img { aspect-ratio: 321 / 781; }
}
@media (max-width: 600px) {
  .guide-doc .guide-section { padding: 22px 20px 26px; }
  .guide-doc .guide-section::before { margin-bottom: 17px; }
}
.guide-sources {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.guide-sources strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.guide-sources ul {
  margin: 0;
  padding-left: 18px;
}
.guide-note {
  margin-top: 14px;
  color: #a4ae9a;
  font-size: 12px;
  line-height: 1.75;
}
.guide-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding-block: 30px 60px;
}
.guide-index-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #59694c;
  background: #151c14;
  overflow: hidden;
}
.guide-index-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.guide-index-card-body {
  padding: 18px 20px 22px;
}
.guide-index-card span {
  color: var(--accent);
  font: 11px "Roboto Mono", Consolas, monospace;
}
.guide-index-card h2 {
  margin: 8px 0 8px;
  font: 700 22px/1.3 var(--ui);
}
:lang(th) .guide-index-card h2,
:lang(zh-CN) .guide-index-card h2 {
  font-family: var(--ui);
  font-weight: 700;
}
:lang(hi) .guide-index-card h2 {
  font-family: "Nirmala UI", "Noto Sans Devanagari", Mangal, var(--ui);
  font-weight: 700;
}
.guide-index-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
@media (max-width: 800px) {
  .guide-quickcard dl {
    grid-template-columns: 1fr;
  }
  .guide-hero h1 {
    font-size: clamp(27px, 7vw, 40px);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding-block: 16px;
  }
  .header-inner nav {
    width: 100%;
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Round 3: EWDS pass over existing guide-page selectors, mirroring
   src/styles.css's block of the same name. Keep in sync with that file.
   ========================================================================== */
.site-header {
  background: linear-gradient(180deg, #141a12 0%, #101510 100%);
  box-shadow: inset 0 -1px 0 rgba(232, 235, 227, 0.16), 0 8px 20px -14px rgba(0, 0, 0, 0.7);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
@media (max-width: 640px) {
  .site-header { clip-path: none; }
}
.button {
  --cut: 10px;
  position: relative;
  border-radius: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.guide-hero-image {
  --cut: 16px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.guide-quickcard {
  --cut: 14px;
  position: relative;
  background: linear-gradient(160deg, #1a2116 0%, #141a13 100%);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 22px -16px rgba(0, 0, 0, 0.6);
}
.guide-index-card {
  --cut: 12px;
  background: linear-gradient(160deg, #1a2116 0%, #151c14 100%);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 22px -16px rgba(0, 0, 0, 0.55);
  transition: transform 0.16s ease;
}
.guide-index-card:hover { transform: translateY(-2px); }
.guide-badge {
  clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%, 0 5px);
}
@media (prefers-reduced-motion: reduce) {
  .guide-index-card { transition: none; }
  .guide-index-card:hover { transform: none; }
}
/* Locale rules above set a script font on every :lang() element; the wordmark
   is a Latin brand mark and always stays Everywear Display. */
:lang(th) .wm-wordmark, :lang(zh-CN) .wm-wordmark, :lang(hi) .wm-wordmark, :lang(ru) .wm-wordmark,
:lang(th) .wordmark, :lang(zh-CN) .wordmark, :lang(hi) .wordmark, :lang(ru) .wordmark {
  font-family: "Everywear Display", "Segoe UI", var(--ui);
}

/* DMZ intel pass (2026-10-08): optional guide video embed and section data tables.
   Mirrored in src/styles.css. */
.guide-video {
  margin: 26px 0 0;
  border: 1px solid #59694c;
  background: #10160f;
}
.guide-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #0d130f;
  background-size: cover;
  background-position: center;
}
.guide-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.guide-video figcaption {
  padding: 13px 18px 16px;
  color: #c5cdbf;
  font-size: 13px;
  line-height: 1.55;
}
.guide-video figcaption a { color: var(--accent); font-weight: 700; }
.guide-section-pair > .guide-section--wide { grid-column: 1 / -1; }
.guide-table-wrap { margin-top: 16px; overflow-x: auto; }
.guide-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: #c5cdbf;
  font-size: 14px;
  line-height: 1.45;
}
.guide-table caption {
  padding-bottom: 8px;
  color: var(--muted);
  font: 11px/1.4 "Roboto Mono", Consolas, "Courier New", monospace;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}
.guide-table th,
.guide-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #2f3a2b;
  text-align: left;
  vertical-align: top;
}
.guide-table thead th { color: var(--accent); font-weight: 700; border-bottom-color: #59694c; }
.guide-table tbody th { color: #e6ecdf; font-weight: 700; }
