/* PolyTrack Field Guide — asphalt, cream board, neon-blue accents.
   Same visual grammar as the other guides in this workspace: a cream card on a
   dark ground, chunky pill controls, and badges that say what kind of claim a
   block is. */

:root {
  --ground-a: #101a2c;
  --ground-b: #16233a;
  --board: #f4f7fa;
  --card: #ffffff;
  --ink: #11202f;
  --soft: #55677d;
  --line: #16283c;
  --accent: #1aa2e8;
  --accent-2: #ff8a3d;
  --wrap: 1120px;
  --measure: 70ch;
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 7px),
    linear-gradient(170deg, var(--ground-b), var(--ground-a));
  background-attachment: fixed;
  min-height: 100vh;
}

a { color: #0b6fa4; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #08527a; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 22px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 9; }

/* ---------------------------------------------------------------- header */
.site {
  background: #fdfaf3;
  border-bottom: 4px solid var(--line);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .25);
}
.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.brand .thin { font-weight: 600; color: #7b8ea4; margin-left: 2px; }
.brand .mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, #35c2ff, #0b7fd0);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18);
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.nav a {
  padding: 7px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fffdf7;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(17, 32, 47, .45);
}
.nav a:hover { background: #ffe9c6; transform: translateY(-1px); }
.nav a.on { background: var(--accent-2); color: #fff8ee; }

/* ---------------------------------------------------------------- board */
main .wrap {
  background: var(--board);
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .28), 0 18px 40px rgba(0, 0, 0, .22);
  margin-block: 22px 36px;
  padding: 34px 34px 46px;
}

.kicker {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #b06a2a;
  margin: 0 0 10px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 26px; height: 3px;
  background: var(--accent-2);
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 2px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.1;
  margin: 0 0 18px;
  max-width: 22ch;
}
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.4vw, 27px);
  margin: 38px 0 12px;
  scroll-margin-top: 80px;
}
h2::before {
  content: "◆";
  color: var(--accent);
  font-size: .62em;
  margin-right: 9px;
  vertical-align: 3px;
}
h3 { font-size: 17.5px; margin: 22px 0 6px; }

p, ul, ol { max-width: var(--measure); }
.lede { font-size: 18.5px; color: #2b3d4f; }
ul { padding-left: 22px; }
li { margin: 5px 0; }

/* ---------------------------------------------------------------- bits */
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  max-width: none;
}
.stats li {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 4px 0 rgba(17, 32, 47, .22);
}
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  color: #0d7a3f;
}
.stats span { display: block; font-size: 13.5px; color: var(--soft); margin-top: 4px; }

.note {
  border: 3px solid var(--line);
  border-left-width: 8px;
  border-radius: 12px;
  background: var(--card);
  padding: 14px 18px 4px;
  margin: 20px 0;
  box-shadow: 0 4px 0 rgba(17, 32, 47, .18);
}
.note .badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: .12em;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  border: 2px solid currentColor;
  margin: 0 0 6px;
}
.note.tested { border-left-color: #1a9b57; }
.note.tested .badge { color: #147a44; }
.note.official { border-left-color: #2563c9; }
.note.official .badge { color: #1d4fa8; }
.note.ingame { border-left-color: #0f7b6c; }
.note.ingame .badge { color: #0b5f54; }
.note.unchecked { border-left-color: #c47a12; }
.note.unchecked .badge { color: #9b5f06; }
.note.community { border-left-color: #6b53b8; }
.note.community .badge { color: #55429a; }

.table-scroll {
  overflow-x: auto;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 4px 0 rgba(17, 32, 47, .18);
  margin: 18px 0;
}
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; vertical-align: top; border-bottom: 1.5px solid #dbe4ec; }
th { background: #e8f4fd; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0; max-width: none; }
.chips li {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fffdf7;
  padding: 5px 13px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(17, 32, 47, .3);
}

.page-hero { margin: 20px 0 6px; }
.page-hero img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(17, 32, 47, .18);
}
.page-hero figcaption {
  font-size: 12.5px;
  color: var(--soft);
  margin-top: 8px;
  max-width: 66ch;
}

.faq-item {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px 6px;
  margin: 14px 0;
  box-shadow: 0 4px 0 rgba(17, 32, 47, .18);
}
.faq-item h3 { margin-top: 0; }
.detail { font-size: 13px; color: var(--soft); }

/* ---------------------------------------------------------------- footer */
footer.site {
  background: #0b1420;
  border-top: 4px solid #060d16;
  color: #cfdcea;
  padding-block: 24px 30px;
  font-size: 14.5px;
}
footer.site .small { font-size: 12.5px; color: #8fa2b6; }
footer.site a { color: #8fd4ff; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  main .wrap { margin: 12px; padding: 22px 18px 32px; border-radius: 14px; }
  .site .wrap { gap: 10px; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { padding: 6px 11px; font-size: 12.5px; }
  .page-hero img { height: 190px; }
}

/* language switcher: only rendered once a second language is READY */
.lang { display: flex; align-items: center; gap: 6px; margin-left: 10px; }
.lang .tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6b7c92; }
.lang a {
  font-size: 12.5px; padding: 4px 10px; border-radius: 999px;
  border: 2px solid #2b3a4d; color: #cfe0f2; text-decoration: none;
}
.lang a.on { background: #ff8a3d; border-color: #ff8a3d; color: #14181f; font-weight: 700; }

/* quoted game text and key caps */
blockquote {
  margin: 10px 0 10px 0; padding: 8px 14px;
  border-left: 4px solid #0f7b6c; background: #eaf4f2; border-radius: 0 8px 8px 0;
}
blockquote p { margin: 4px 0; }
blockquote p + p { margin-top: 8px; }
kbd {
  display: inline-block; min-width: 18px; padding: 1px 6px; margin: 0 1px;
  font: 600 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #22303f; background: #eef3f8; border: 1px solid #b9c7d6;
  border-bottom-width: 2px; border-radius: 5px; text-align: center;
}

/* language switcher as a dropdown (details/summary, no JS) */
.langmenu { position: relative; display: inline-block; }
.langmenu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
  border: 2px solid #2b3a4d; color: #cfe0f2; background: #16233a;
}
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu > summary::marker { content: ""; }
.langmenu[open] > summary { border-color: #ff8a3d; color: #ffb27a; }
.langmenu .caret { font-size: 10px; opacity: .8; }
.langmenu > ul {
  position: absolute; z-index: 30; top: calc(100% + 6px); right: 0;
  min-width: 150px; margin: 0; padding: 6px; list-style: none;
  background: #111c2e; border: 2px solid #2b3a4d; border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.langmenu > ul li { margin: 0; }
.langmenu > ul a, .langmenu > ul .on {
  display: block; padding: 7px 10px; border-radius: 8px;
  font-size: 13px; color: #cfe0f2; text-decoration: none; white-space: nowrap;
}
.langmenu > ul a:hover { background: #1c2c42; color: #fff; }
.langmenu > ul .on { color: #ffb27a; font-weight: 700; }

/* ---- guidance layout: section heads, entry cards, badge legend ---- */
.sec-head {
  display: flex; align-items: center; gap: 12px;
  margin: 34px 0 14px;
}
.sec-head::before {
  content: ""; width: 8px; height: 26px; border-radius: 3px;
  background: var(--accent-2); flex: none;
}
.sec-head h2 { margin: 0; font-size: 23px; line-height: 1.2; }
.sec-head .meta {
  margin-left: auto; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: #6b7c92; white-space: nowrap;
}

.entry-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 0 0 8px; }
.entry-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 20px 20px 16px; border-radius: 16px; text-decoration: none;
  background: #fff; border: 2px solid #d9e2ec; border-top: 6px solid var(--accent);
  box-shadow: 0 6px 0 rgba(16, 32, 58, .06);
  color: inherit; transition: transform .12s ease, box-shadow .12s ease;
}
.entry-card:hover, .entry-card:focus-visible {
  transform: translateY(-2px); box-shadow: 0 9px 0 rgba(16, 32, 58, .10);
}
.entry-card .num {
  font: 800 13px/1 ui-monospace, monospace; letter-spacing: .08em;
  color: #fff; background: var(--accent); border-radius: 999px;
  padding: 5px 9px; align-self: flex-start;
}
.entry-card h3 { margin: 2px 0 0; font-size: 19px; }
.entry-card p { margin: 0; font-size: 14.5px; color: #33465c; }
.entry-card .more { margin-top: auto; font-size: 13px; font-weight: 700; color: #0f6f9c; }
.entry-card.c2 { border-top-color: #22b8a6; }
.entry-card.c3 { border-top-color: var(--accent-2); }

.legend { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin: 0 0 10px; }
.legend-card {
  border: 2px solid #d9e2ec; border-left: 6px solid #0f7b6c; border-radius: 12px;
  padding: 14px 16px; background: #fff;
}
.legend-card .badge { margin-bottom: 8px; }
.legend-card p { margin: 0; font-size: 14px; color: #33465c; }
.legend-card .count { font-weight: 800; color: #10203a; }
.legend-card.official { border-left-color: #1f6fd0; }
.legend-card.check { border-left-color: #c98a00; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 44px; font-size: 15px; line-height: 1.6; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -1px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-2); color: #fff; font-weight: 800; font-size: 14px;
}

.thumbs { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin: 6px 0 4px; }
.thumbs figure { margin: 0; }
.thumbs img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; border: 2px solid #d9e2ec; }
.thumbs figcaption { font-size: 12.5px; color: #5c6f84; margin-top: 6px; }

@media (max-width: 760px) {
  .entry-grid, .legend, .thumbs { grid-template-columns: 1fr; }
  .sec-head { flex-wrap: wrap; }
  .sec-head .meta { margin-left: 0; }
}

/* the guidance section headers already carry an accent bar */
.sec-head h2::before { content: none; }
.sec-head h2 { margin: 0; }

/* ---- inner pages use the same section header rhythm as the home page ---- */
main h2 {
  display: flex; align-items: center;
  margin: 34px 0 14px; font-size: 23px; line-height: 1.2;
}
main h2::before {
  content: ""; display: inline-block; width: 8px; height: 26px;
  border-radius: 3px; background: var(--accent-2); margin-right: 12px; flex: none;
}
