/* Race atlas on the guild site — the manual's grammar on top of umami-theme.css:
   square corners, plates with a double hairline frame, Public Sans figures instead of a
   monospace costume, game icons in gold-edged frames. Loaded only on race-atlas.html. */

:root { --f-mono: "Public Sans", "Segoe UI", system-ui, sans-serif !important; }
body { font-variant-numeric: tabular-nums; }

/* Square, printed corners everywhere the atlas drew soft cards. */
.board, .panel, .note, .banner, .vc, .tw, .formula, .quote, .race, .cls, .mx-wrap, .rec, .g, .k,
.date, .gsearch, .tag, .pill, .btn, .theme-btn, .win, .ok, .na, .on, code, .sw { border-radius: 0 !important; }

/* Cards become plates: dark ground, double hairline frame, a gold rule on top. */
.vc, .race, .cls, .panel, .mx-wrap, .tw {
  background: #10141f !important;
  border: 1px solid #2b3242 !important;
  box-shadow: inset 0 0 0 5px #10141f, inset 0 0 0 6px #232a3a, 0 14px 32px rgba(0, 0, 0, .35) !important;
}
.vc { border-top: 2px solid var(--gold) !important; transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .2s; }
.vc:hover { transform: translateY(-2px); border-color: #3a4357 !important; }
.vc .pk, .race h3, .cls h3, .cls-head h3 { font-family: "Marcellus", "Palatino Linotype", serif !important; font-weight: 400 !important; letter-spacing: .005em; }
.vc .pk { font-size: 24px !important; color: #ebe5d6; }
.vc .cn { display: inline-flex; align-items: center; gap: 8px; }
.vc .sc { font-size: 12.5px !important; color: #9c9684 !important; }

/* The gold recommendation box: a plate with a gold frame, not a rounded callout. */
.rec { background: #17140c !important; border: 1px solid #8a7038 !important; box-shadow: inset 0 0 0 4px #17140c, inset 0 0 0 5px #3a3018 !important; }

/* Eyebrow and table labels: tracked Public Sans, not monospace. */
.eyebrow, .lbl, thead th, .k-label, .meta-k { font-family: "Public Sans", system-ui, sans-serif !important; letter-spacing: .12em !important; }

/* Pills as stamped labels. */
.pill { border-width: 1px !important; font-weight: 700 !important; letter-spacing: .06em; text-transform: uppercase; font-size: 10.5px !important; padding: 3px 7px !important; }

/* Icons: gold-edged like in-game buttons. */
.ua-icon { display: block; border: 1px solid #8a7038; box-shadow: 0 0 0 1px #000, 0 3px 10px rgba(0, 0, 0, .45); background: #000; border-radius: 3px; }
.ua-inline { display: inline-block; vertical-align: -4px; margin-right: 6px; border-radius: 2px; box-shadow: 0 0 0 1px #000; }
.sigil.ua-has-icon, .crest.ua-has-icon { background: none !important; border: 0 !important; width: auto !important; height: auto !important; padding: 0 !important; clip-path: none !important; box-shadow: none !important; }
.sigil.ua-monogram { font-weight: 400 !important; border-radius: 0 !important; background: #17140c !important; border: 1px solid var(--gold) !important; color: var(--gold) !important; font-family: "Marcellus SC", "Marcellus", serif !important; }
.cls-list .ua-inline { margin: 0 4px 0 8px; }
.race-h { align-items: center; }

/* Matrix cells: square, gold for the top pick. */
.mx-wrap td > *, .mx-wrap .win, .mx-wrap .ok { border-radius: 0 !important; }

/* Phones: the two-column grids had a fixed minimum wider than the screen (pre-existing in the
   original page too), which let the whole page scroll sideways. */
@media (max-width: 640px) {
  .grid2, .lab, .toggles { grid-template-columns: minmax(0, 1fr) !important; }
  .grid2 > *, .lab > *, .toggles > * { min-width: 0; }
  .tg, .tg b, .tg small { white-space: normal !important; overflow-wrap: anywhere; }
}

/* Gold is for rules, numbers and the wordmark: the title is ink throughout. */
.hero h1 em { color: inherit !important; }
/* Build line under the standfirst (moved there by umami-atlas.js) and chapter numbers inside the h2. */
.hero .eyebrow.ua-access { margin: -8px 0 22px; }
.ch h2 .ua-no { color: var(--gold); margin-right: .25em; }
/* Search as a fill-in-the-line field. */
.gsearch { border: 0 !important; border-bottom: 1px solid #ebe5d6 !important; background: transparent !important; padding: 10px 0 !important; }
/* Plain buttons are the outline kind; .primary is the filled one. */
.btn:not(.primary):not(.on) { background: transparent !important; color: #86a6f0 !important; }
.btn:not(.primary):not(.on):hover { background: color-mix(in srgb, #86a6f0 9%, #0d1018) !important; }

/* ---- Tabs (umami-atlas.js): five views — verdict, class tables, reasoning, lab, reference ---- */
.ua-tabs { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid #ebe5d6; }
.ua-tabs-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 0 4px; }
.ua-tab { font: 400 19px/1.2 "Marcellus", "Palatino Linotype", serif; background: transparent; color: var(--ink-2); border: 0; border-bottom: 3px solid transparent; padding: 14px 14px 12px; cursor: pointer; }
.ua-tab:hover { color: var(--ink); }
.ua-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
section.ch.ua-off { display: none !important; }
main section.ch:not(.ua-off) ~ section.ch:not(.ua-off) { padding-top: 56px; }
.shell { padding-top: 34px !important; }
.rail { top: 76px !important; }
.rail a[hidden] { display: none !important; }
/* A tab with one chapter needs no rail: the chapter takes the full width. */
.shell.ua-solo { grid-template-columns: minmax(0, 1fr) !important; }
.shell.ua-solo .rail { display: none; }
/* The short conclusion on top of the verdict (moved there from "Start here"). */
.note.ua-lead { margin: 0 0 22px; border-left: 2px solid var(--bad) !important; }
/* Spells by name, with Wowhead's tooltip. */
.ua-sp { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, #86a6f0 55%, transparent); text-underline-offset: .2em; }
.ua-sp:hover { color: #86a6f0; }
/* Sources folded at the foot. */
.ua-src summary { cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ua-src[open] summary { margin-bottom: 10px; }
.ua-src p { max-width: 90ch; margin: 0; }

@media (max-width: 900px) {
  .rail { position: static !important; }
  .ua-tabs-in { padding: 0 8px; }
}
@media (max-width: 640px) {
  .ua-tabs { position: static; }
  .ua-tab { font-size: 16px; padding: 11px 9px 10px; }
  .shell { padding-top: 22px !important; }
  /* The hero board fits the phone: all five race columns, no hidden sideways scroll. */
  .board { padding: 10px !important; }
  .board table { min-width: 0 !important; border-spacing: 3px !important; }
  .board th.bcls { font-size: 12px !important; }
  .board td { height: 26px !important; font-size: 10px !important; }
  .board th { font-size: 10px !important; letter-spacing: 0 !important; }
  .board .dot { margin-right: 4px; }
  .rail nav { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 6px; }
  .rail nav a { flex: none; }
}
/* Jumps (#talents, a verdict card, a glossary term) land below the sticky tabs, not under them. */
main section.ch, main .cls, main .g, main [id] { scroll-margin-top: 78px !important; }
@media (max-width: 640px) {
  main section.ch, main .cls, main .g, main [id] { scroll-margin-top: 12px !important; }
  /* A shorter hero on a phone, so the tabs come sooner: the three dates on one line. */
  .hero { padding-block: 28px 24px !important; }
  .hero p.lede { font-size: 16.5px !important; margin-bottom: 16px !important; }
  .dates { flex-wrap: nowrap !important; gap: 6px !important; }
  .date { flex: 1 1 0; padding: 6px 8px !important; }
  .date b { font-size: 14px !important; }
  .date span { font-size: 11.5px !important; line-height: 1.3; display: block; }
}
.ch > .ch-label { display: none; }   /* no numbered "Chapter n" eyebrows, even before umami-atlas.js runs */
