/* The player guide (/guide/), on top of nova.css and nova-legal.css.
 *
 * The guide is long prose like the legal pages, so it borrows their frame
 * (.legal) and adds only what a manual needs: a contents list, sub-headings,
 * numbered steps, and anchors that land below the fixed header. */

/* The header is fixed and 82px tall; without this a contents link lands with
 * the section heading hidden underneath it. */
.guide section,
.guide .guide-toc { scroll-margin-top: 96px; }

.guide .guide-lede {
  margin: 0 0 1.8em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  font-style: italic;
  line-height: 1.5;
}

/* Download box: the two ways in, for anyone who landed here first. */
.guide .guide-get {
  margin: 0 0 2.2em;
  padding: 16px 20px;
  border: 1px solid rgba(240, 180, 41, .46);
  border-left: 3px solid #f0b429;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(122, 80, 10, .30), rgba(8, 20, 38, .72));
}
.guide .guide-get p { margin: 0; color: var(--ink); line-height: 1.6; }
.guide .guide-get-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .6rem !important; }
.guide .guide-get-links a { color: var(--gold); font-weight: 700; }

/* Contents */
.guide .guide-toc {
  margin: 0 0 1em;
  padding: 18px 22px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.guide .guide-toc h2 {
  margin: 0 0 .5em;
  padding: 0;
  border: 0;
  font-size: 1.1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.guide .guide-toc ol { margin: 0; padding-left: 1.6em; }
.guide .guide-toc li { margin-bottom: .3em; color: var(--gold-mid); }
.guide .guide-toc a { color: var(--ink); text-decoration: none; }
.guide .guide-toc a:hover,
.guide .guide-toc a:focus-visible { color: var(--gold); text-decoration: underline; }

.guide h3 {
  margin: 1.9em 0 .5em;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide .guide-steps { padding-left: 1.4em; }
.guide .guide-steps li { margin-bottom: .9em; }
.guide .guide-steps li::marker { color: var(--gold); font-weight: 700; }

/* nova-legal.css gives every table a 560px floor so wide ones scroll inside
 * their own box. A two-column table fits a phone without it. */
.guide .data-table-narrow { min-width: 0; }
.guide .data-table td:first-child { white-space: nowrap; }
.guide .data-table-narrow td:first-child { white-space: normal; }

.guide .notice strong { color: #f6d68f; }

.guide .guide-top { margin: 1.4em 0 0; font-size: .82rem; }
.guide .guide-top a { color: var(--muted); }

.guide .guide-closing { margin-top: 3em; font-style: italic; }

/* nova.css balances every paragraph, which suits a one-line hero but leaves a
 * short paragraph of prose half the width of the column. */
.guide p, .guide li { text-wrap: pretty; }

/* ---- October 2026: pictures, callouts, gauge, landmarks ---- */
.guide .guide-hero {
  margin: 0 0 1.6em;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 1;
  background: #0a1b30;
}
.guide .guide-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.guide .guide-fig {
  margin: 1.4em 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.guide .guide-fig img { display: block; width: 100%; height: auto; }
.guide .guide-fig figcaption {
  padding: 10px 14px;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--line);
}
.guide .guide-fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.4em 0; align-items: start; }
.guide .guide-fig-row .guide-fig { margin: 0; min-width: 0; }
@media (max-width: 639px) { .guide .guide-fig-row { grid-template-columns: 1fr; } }

.guide .guide-annot-box { position: relative; }
.guide .guide-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-mid);
  color: #1a1206;
  border: 2px solid #fff3d1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
  display: grid;
  place-items: center;
  font: 700 .85rem/1 var(--sans);
}
.guide .guide-pin b { font: inherit; }
.guide .guide-pin-list { margin: .6em 0 0; padding: 10px 14px 4px 2.2em; font-size: .9rem; color: var(--ink); }
.guide .guide-pin-list li::marker { color: var(--gold); font-weight: 700; }

.guide h2 .guide-h2-icon { width: 40px; height: 40px; vertical-align: middle; margin: -6px 12px 0 0; }

.guide .guide-callout {
  margin: 1.2em 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(122, 80, 10, .22), var(--panel));
  color: var(--ink);
  line-height: 1.6;
}
.guide .guide-callout p { margin: 0; }
.guide .guide-callout strong { color: #f6d68f; }
.guide .guide-callout.is-next { border-left-color: var(--cyan); }
.guide .guide-callout.is-next::before,
.guide .guide-callout.is-tip::before {
  display: block;
  margin-bottom: .4em;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.guide .guide-callout.is-next::before { content: "COMING NEXT"; }
.guide .guide-callout.is-tip::before { content: "TIP"; }

.guide .guide-rule { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 1em 0; }
.guide .guide-rule-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.guide .guide-rule-item b { display: block; color: var(--gold); }
@media (min-width: 720px) { .guide .guide-rule { grid-template-columns: 1fr 1fr; } }

.guide .guide-gauge { display: flex; margin: 1em 0; }
.guide .guide-gauge > div {
  flex: 1;
  min-width: 0;
  padding: 10px 6px;
  text-align: center;
  border: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.guide .guide-gauge b { display: block; font-size: 1.15rem; color: var(--ink); }
.guide .guide-gauge .g1 { background: rgba(255, 255, 255, .03); }
.guide .guide-gauge .g2 { background: rgba(217, 168, 62, .10); }
.guide .guide-gauge .g3 { background: rgba(217, 168, 62, .20); }
.guide .guide-gauge .g4 { background: rgba(217, 168, 62, .28); }
.guide .guide-gauge .g5 { background: rgba(217, 168, 62, .35); }
@media (max-width: 480px) {
  .guide .guide-gauge { flex-direction: column; }
  .guide .guide-gauge > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-align: left; padding: 8px 12px; font-size: .84rem; }
  .guide .guide-gauge b { display: inline; font-size: 1rem; order: 2; }
}

.guide .guide-landmarks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 1em 0; }
.guide .guide-landmark { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: center; }
.guide .guide-landmark img { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(69, 210, 255, .35); }
.guide .guide-landmark b { display: block; margin-top: 8px; color: var(--gold); }
.guide .guide-landmark small { display: block; color: var(--muted); }
.guide .guide-landmark p { margin: .4em 0 0; font-size: .86rem; line-height: 1.45; }

.guide-leagues { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 10px; margin: 1em 0 1.4em; }
.guide-leagues figure { margin: 0; text-align: center; width: 84px; }
.guide-leagues img { height: 72px; width: auto; }
.guide-leagues figcaption { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

/* Sections that moved here from the home page (24 Oct 2026): the campaign,
   what you keep, Asterra, the fleet, the Titan and alliances. Old home
   #anchors land on them, below the fixed header. */
.guide-moved { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(238, 192, 103, .22); scroll-margin-top: 100px; }
.guide-moved h3 { margin-top: 0; }
/* Every chapter and every heading with an id lands below the fixed header (24 Oct). */
.guide section[id], .guide h2[id], .guide h3[id] { scroll-margin-top: 96px; }
@media (max-width: 740px) { .guide section[id], .guide h2[id], .guide h3[id], .guide-moved { scroll-margin-top: 84px; } }
/* A long page: a link to a chapter (or an old home #anchor) jumps there at
   once instead of animating across 20,000px for a second and a half. */
html:has(main.guide) { scroll-behavior: auto; }
