/* Shared styles for the guide pages (how to play, strategy, maps, FAQ, about, terms). */
:root {
  color-scheme: dark;
  --bg: #0c2a36;
  --panel: #113540;
  --panel-edge: rgba(243, 222, 170, 0.18);
  --text: #f5ecd8;
  --muted: #a8bcc0;
  --gold: #f6d98c;
  --gold-deep: #d9a941;
  --ink: #2b2118;
  --measure: 760px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--gold);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Header ------------------------------------------------------------------------ */

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--panel-edge);
}

.brand {
  font: 700 24px/1 'Iowan Old Style', Georgia, serif;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand em {
  color: var(--gold);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  flex: 1 1 auto;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
}

.site-nav a:hover {
  background: rgba(243, 222, 170, 0.1);
}

.site-nav a[aria-current='page'] {
  color: var(--gold);
  background: rgba(243, 222, 170, 0.12);
}

.play {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(#f8dd8f, #e0b048);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 0 #9c7421;
  white-space: nowrap;
}

.play:hover {
  background: linear-gradient(#fbe6a6, #e7ba55);
}

/* --- Article ----------------------------------------------------------------------- */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 8px 20px 56px;
}

main.wide {
  max-width: 1040px;
}

h1,
h2,
h3 {
  font-family: 'Iowan Old Style', Georgia, serif;
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(32px, 6vw, 44px);
  margin: 34px 0 10px;
}

h2 {
  font-size: 25px;
  margin: 44px 0 10px;
  color: var(--gold);
  scroll-margin-top: 16px;
}

h3 {
  font-size: 19.5px;
  margin: 28px 0 6px;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

li {
  margin: 5px 0;
}

.lede {
  font-size: 19.5px;
  line-height: 1.55;
  color: #fbf4e3;
  max-width: var(--measure);
}

.meta {
  color: var(--muted);
  margin: 0 0 22px;
}

.toc {
  margin: 22px 0 8px;
  padding: 14px 18px;
  border: 1px solid var(--panel-edge);
  border-radius: 12px;
  background: var(--panel);
}

.toc strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2 220px;
  column-gap: 32px;
}

.note {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--gold-deep);
  border-radius: 0 10px 10px 0;
  background: var(--panel);
}

.note p:last-child {
  margin-bottom: 0;
}

.scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--panel-edge);
}

th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

td:first-child a {
  white-space: nowrap;
}

td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

kbd {
  display: inline-block;
  min-width: 26px;
  padding: 1px 7px;
  border: 1px solid var(--panel-edge);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel);
  font: 600 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}

figure {
  margin: 22px 0;
}

figure img {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
}

figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

/* --- Map cards --------------------------------------------------------------------- */

.maps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 20px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.map {
  margin: 0;
  padding: 18px 20px 14px;
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  background: var(--panel);
  scroll-margin-top: 16px;
}

.map img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  margin-bottom: 8px;
}

.map h3 {
  margin: 0 0 2px;
  font-size: 23px;
}

.map .facts {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.map .tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--panel-edge);
  font: 600 11.5px/1.6 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  vertical-align: 3px;
}

/* --- Call to action and footer ----------------------------------------------------- */

.cta {
  margin: 44px 0 0;
  padding: 22px;
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  background: var(--panel);
  text-align: center;
}

.cta p {
  margin: 0 0 14px;
  font: 600 21px/1.3 'Iowan Old Style', Georgia, serif;
}

.site-foot {
  border-top: 1px solid var(--panel-edge);
  padding: 20px 20px 32px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
  margin-bottom: 8px;
}

.site-foot a {
  display: inline-block;
  padding: 9px 8px;
}

.site-foot p {
  margin: 0;
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

  .site-head {
    padding: 14px 16px 10px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin: 0 -6px;
  }

  .site-nav a {
    padding: 8px 6px;
    font-size: 14.5px;
    white-space: nowrap;
  }

  .brand {
    flex: 1 1 auto;
  }

  main {
    padding: 4px 16px 44px;
  }

  .map img {
    height: 200px;
  }
}
