/* Written guides: index, guide pages and the ladder viewer. Uses the site's tokens. */
.guide-hero { padding: 72px 0 40px; }
.guide-hero h1 { margin: 6px 0 12px; }
.guide-hero .guide-lede { max-width: 760px; color: var(--nag-text-dim, #c9c9cf); }
.guide-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 18px; font-size: 0.9rem; color: var(--nag-text-mute, #9a9aa3); }
.guide-wip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--nag-gold-edge, rgba(221, 163, 67, 0.45)); background: rgba(221, 163, 67, 0.1);
  color: var(--nag-gold-text, #e7b65f); font-size: 0.82rem; font-weight: 750;
}
.guide-wip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: guide-pulse 1.8s ease-in-out infinite; }
@keyframes guide-pulse { 50% { opacity: 0.35; } }

.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 40px 24px 80px; }
.guide-toc { position: sticky; top: 96px; align-self: start; font-size: 0.9rem; }
.guide-toc h2 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nag-gold-eyebrow, #a77d38); margin: 0 0 10px; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--nag-hairline, #2a2a31); }
.guide-toc a { display: block; padding: 6px 0 6px 14px; color: var(--nag-text-dim, #c9c9cf); }
.guide-toc a:hover { color: var(--nag-gold-text, #e7b65f); }
.guide-body { max-width: 860px; }
.guide-body section { scroll-margin-top: 96px; margin-bottom: 48px; }
.guide-body h2 { font-size: 1.45rem; margin: 0 0 14px; }
.guide-body h3 { margin: 26px 0 10px; }
.guide-body ul, .guide-body ol { padding-left: 22px; }
.guide-body li { margin-bottom: 8px; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95rem; }
.guide-body th, .guide-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--nag-hairline, #2a2a31); vertical-align: top; }
.guide-body th { color: var(--nag-text-mute, #9a9aa3); font-weight: 700; }
.guide-table-wrap { overflow-x: auto; }
.guide-label { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; vertical-align: middle; border: 1px solid var(--nag-hairline, #2a2a31); color: var(--nag-text-mute, #9a9aa3); }
.guide-label-candidate { border-color: rgba(221, 163, 67, 0.5); color: var(--nag-gold-text, #e7b65f); }
.guide-callout { padding: 14px 18px; margin: 16px 0; border-left: 3px solid var(--nag-gold-edge-strong, #dda343); background: var(--nag-panel, rgba(255, 255, 255, 0.03)); border-radius: 0 6px 6px 0; }
.guide-callout p:last-child { margin-bottom: 0; }
/* "In short": the page's takeaways above At a glance, each with its jump links; a compact panel in the callout's look */
.guide-body .guide-in-short { padding: 14px 18px; margin-bottom: 36px; border: 1px solid var(--nag-hairline, #2a2a31); border-left: 3px solid var(--nag-gold-edge-strong, #dda343); border-radius: 0 8px 8px 0; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); }
.guide-body .guide-in-short h2 { font-size: 1.1rem; margin: 0 0 8px; }
.guide-body .guide-in-short ul { list-style: none; margin: 0; padding: 0; }
.guide-body .guide-in-short li { margin-bottom: 6px; font-size: 0.95rem; overflow-wrap: anywhere; }
.guide-body .guide-in-short li:last-child { margin-bottom: 0; }
.guide-in-short-jump { margin-left: 6px; font-size: 0.85rem; white-space: nowrap; color: var(--nag-gold-text, #e7b65f); }
.guide-in-short-jump::before { content: "\2192\00a0"; }
.guide-video { margin: 16px 0; border: 1px dashed var(--nag-hairline, #2a2a31); border-radius: 8px; padding: 18px; color: var(--nag-text-mute, #9a9aa3); }
.guide-embed { margin: 16px 0; }
.guide-embed-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--nag-hairline, #2a2a31); background: #000; }
.guide-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.guide-embed-poster { display: block; width: 100%; padding: 0; cursor: pointer; }
.guide-embed-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-embed-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: rgba(0, 0, 0, 0.65); border: 2px solid var(--nag-gold-edge-strong, #dda343); }
.guide-embed-poster:hover .guide-embed-play, .guide-embed-poster:focus-visible .guide-embed-play { background: rgba(221, 163, 67, 0.85); }
.guide-loop video { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--nag-hairline, #2a2a31); background: #000; }
/* Each loop is a play / pause button (media.js); the mark sits in a corner, drawn inline, no asset. */
.guide-loop-box { position: relative; display: block; }
.guide-loop-toggle { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.guide-loop-toggle:focus-visible { outline: 2px solid var(--gold, #e0a84a); outline-offset: 2px; }
.guide-loop-mark { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; padding: 8px; border-radius: 50%; background: rgba(0, 0, 0, 0.65); fill: #fff; opacity: 0.55; transition: opacity 0.15s ease; }
.guide-loop-toggle:hover .guide-loop-mark, .guide-loop-toggle:focus-visible .guide-loop-mark, .guide-loop-toggle.is-paused .guide-loop-mark { opacity: 1; }
.guide-loop-toggle .i-play, .guide-loop-toggle.is-paused .i-pause { display: none; }
.guide-loop-toggle.is-paused .i-play { display: inline; }
.guide-embed figcaption { margin-top: 6px; font-size: 0.9rem; }
.guide-clip { margin: 18px 0; }
.guide-clip video { width: 100%; border-radius: 8px; border: 1px solid var(--nag-hairline, #2a2a31); background: #000; }
.guide-clip figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--nag-text-mute, #9a9aa3); }
.guide-feedback { margin-top: 56px; padding: 22px; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 10px; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); }
.guide-feedback h2 { font-size: 1.2rem; }
/* Long button labels wrap on phones (the site .btn is nowrap): 390 px laid the guide pages out 567 px wide. */
.guide-feedback .btn { max-width: 100%; white-space: normal; line-height: 1.3; text-align: center; padding-block: 10px; margin-top: 8px; }

/* Index */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 40px 24px 80px; }
.guides-class { border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 10px; overflow: hidden; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); }
.guides-class-art { display: block; height: 150px; width: auto; max-width: 100%; margin: 14px auto 0; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); }
.guides-class-body { padding: 16px 18px 18px; }
.guides-class h2 { font-size: 1.2rem; margin: 0 0 10px; }
.guides-class ul { list-style: none; margin: 0; padding: 0; }
.guides-class li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--nag-hairline, #2a2a31); font-size: 0.95rem; }
.guides-class li span { color: var(--nag-text-mute, #9a9aa3); font-size: 0.8rem; white-space: nowrap; }

/* Ladder viewer */
.ladder { margin: 18px 0; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 10px; padding: 16px; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); }
.ladder-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ladder-tab { min-height: 40px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--nag-hairline, #2a2a31); background: transparent; color: var(--nag-text-dim, #c9c9cf); font: inherit; font-size: 0.9rem; cursor: pointer; }
.ladder-tab[aria-selected="true"] { border-color: var(--nag-gold-edge-strong, #dda343); color: var(--nag-gold-text, #e7b65f); background: rgba(221, 163, 67, 0.08); }
.ladder-steps .ladder-tabs { border-top: 1px solid var(--nag-hairline, #2a2a31); padding-top: 12px; }
.ladder-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.ladder-status { padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 750; border: 1px solid; }
.ladder-status-tested { color: var(--nag-pos, #5fc48a); }
.ladder-status-candidate { color: var(--nag-gold-text, #e7b65f); }
.ladder-status-their { color: var(--nag-info, #7aa7e0); }
.ladder-basis, .ladder-note { margin: 6px 0; font-size: 0.88rem; color: var(--nag-text-mute, #9a9aa3); }
.ladder-dps { display: flex; gap: 12px; margin: 12px 0; }
.ladder-dps-cell { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--nag-hairline, #2a2a31); }
.ladder-dps-fight { display: block; font-size: 0.78rem; color: var(--nag-text-mute, #9a9aa3); text-transform: uppercase; letter-spacing: 0.08em; }
.ladder-dps-value { font-size: 1.7rem; font-variant-numeric: tabular-nums; color: var(--nag-text, #f2f2f4); }
.ladder-dps-unit { margin-left: 6px; font-size: 0.8rem; color: var(--nag-text-mute, #9a9aa3); }
.ladder-items { list-style: none; margin: 8px 0 0; padding: 0; }
.ladder-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 9px 4px; border-top: 1px solid var(--nag-hairline, #2a2a31); animation: ladder-in 0.35s var(--ease-out, ease-out) both; }
.ladder-slot { color: var(--nag-text-mute, #9a9aa3); font-size: 0.85rem; padding-top: 2px; }
.ladder-main { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.ladder-name { font-weight: 700; color: var(--nag-text, #f2f2f4); }
.ladder-source { flex-basis: 100%; font-size: 0.88rem; color: var(--nag-text-dim, #c9c9cf); }
.ladder-caveat { flex-basis: 100%; font-size: 0.82rem; color: var(--nag-warn, #e0b45f); }
.ladder-tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 1px 7px; border-radius: 4px; }
.ladder-tag-absolute { color: #16110a; background: var(--nag-gold-fill, #dda343); }
.ladder-tag-new { color: var(--nag-info, #7aa7e0); border: 1px solid currentColor; }
.ladder-item.is-absolute .ladder-name { color: var(--nag-gold-text, #e7b65f); }
.ladder-item.is-absolute { box-shadow: inset 3px 0 0 var(--nag-gold-fill, #dda343); animation: ladder-in 0.35s var(--ease-out, ease-out) both, ladder-glow 2.4s ease-in-out 0.4s 2; }
.ladder-item.is-new { background: rgba(122, 167, 224, 0.06); }
@keyframes ladder-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes ladder-glow { 50% { box-shadow: inset 3px 0 0 var(--nag-gold-fill, #dda343), 0 0 18px rgba(221, 163, 67, 0.22); } }

@media (max-width: 860px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .guide-toc { position: static; }
  .ladder-item { grid-template-columns: 1fr; gap: 2px; }
  .ladder-dps-value { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-wip::before, .ladder-item, .ladder-item.is-absolute { animation: none; }
}

/* Item and spell tooltips (self-hosted: our own item / spell data, no third-party script). */
.gtip { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.gtip-btn { display: inline-flex; padding: 0; border: 0; background: none; cursor: help; line-height: 0; }
.gtip-icon { width: 22px; height: 22px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.18); flex: none; }
.gtip-icon-empty { display: inline-block; background: rgba(255, 255, 255, 0.06); }
.gtip-link { color: inherit; text-decoration: none; }
a.gtip-link:hover, a.gtip-link:focus-visible { text-decoration: underline; }
.gtip-box { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: max-content; max-width: min(300px, 82vw);
  padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.16); background: #101015; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  font-size: 0.85rem; font-weight: 400; line-height: 1.45; color: var(--nag-text, #f2f2f4); text-align: left; }
.gtip:hover .gtip-box, .gtip:focus-within .gtip-box, .gtip.is-open .gtip-box { display: flex; flex-direction: column; gap: 2px; }
.gtip-title { font-size: 0.95rem; margin-bottom: 2px; }
.gtip-src { margin-top: 4px; color: var(--nag-text-mute, #9a9aa3); }
.q2, .q2 .gtip-link { color: #5ee36a; }
.q3, .q3 .gtip-link { color: #4aa3ff; }
.q4, .q4 .gtip-link { color: #c27bff; }
.q5, .q5 .gtip-link { color: #ff9c3a; }
.gtip-spell { font-weight: 600; color: #f3d58c; }
.gtip-spell .gtip-icon { width: 20px; height: 20px; }

/* Pictures from our videos. */
.guide-figure { margin: 18px 0; }
.guide-figure img, .guide-figure video { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: #0c0c10; }
.guide-figure figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--nag-text-mute, #9a9aa3); }
.guide-build-link { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; }
.guide-videos { display: grid; gap: 8px; padding-left: 0; list-style: none; }

/* Header art: spec characters from our class videos. Fixed boxes, so nothing shifts while they load. */
.guide-hero .container { position: relative; }
.guide-hero-art { display: flex; align-items: flex-end; justify-content: flex-end; gap: 0; pointer-events: none; }
.guide-toon { height: 260px; width: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55)); }
.guide-toon + .guide-toon { margin-left: -40px; }
.guide-toon:nth-child(2) { height: 220px; }
.guide-toon:nth-child(3) { height: 200px; }
@media (min-width: 1100px) {
  .guide-hero.has-art .guide-hero-art { position: absolute; right: 24px; top: -24px; }
  .guide-hero.has-art h1, .guide-hero.has-art .guide-lede { max-width: 640px; }
}
@media (max-width: 1099px) {
  .guide-hero-art { justify-content: flex-start; margin-bottom: 12px; }
  .guide-toon { height: 120px; }
  .guide-toon:nth-child(2) { height: 104px; }
  .guide-toon:nth-child(3) { height: 96px; }
  .guide-toon + .guide-toon { margin-left: -16px; }
}
.guide-older-videos { margin-top: 12px; max-width: 760px; font-size: 0.92rem; color: var(--nag-text-mute, #9a9aa3); }
.guide-older-videos summary { cursor: pointer; }
.guide-older-videos ul { margin: 8px 0 0; }
.guide-older-videos a { color: var(--nag-text-dim, #c9c9cf); }
/* Animated charts (assets/js/guides/charts/*.js): the fallback list stays for readers without JS. */
.guide-figure[data-guide-chart] { margin: 20px 0; }
.guide-chart-fallback ul { margin: 0; }
.guide-figure.is-drawn .guide-chart-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Per-page changelog and the index cards' dates. */
.guide-changelog ul { list-style: none; padding: 0; margin: 0; }
.guide-changelog li { padding: 8px 0; border-top: 1px solid var(--nag-hairline, #2a2a31); color: var(--nag-text-dim, #c9c9cf); }
.guide-changelog strong { color: var(--nag-text, #f4f2ed); font-weight: 600; }
.guides-class-updated { margin: -6px 0 10px; font-size: 0.8rem; color: var(--nag-text-mute, #9a9aa3); }

/* Deep-dive visuals (opt-in per page). Rank list: bar length shows the ORDER only (first = longest). Each sits next to
   the page text it draws, which stays the readable version, so the visual is aria-hidden. */
.guide-rank-pair { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 14px 0 6px; }
.guide-rank-pair figcaption { grid-column: 1 / -1; }
.guide-rank h4 { margin: 0 0 8px; font-size: 0.95rem; }
.guide-rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.guide-rank li { position: relative; padding: 5px 10px; border-radius: 6px; font-size: 0.9rem; color: var(--nag-text, #f4f2ed); background: linear-gradient(90deg, rgba(221, 163, 67, 0.32), rgba(221, 163, 67, 0.12)) no-repeat; }
.guide-rank li:nth-child(1) { background-size: 100% 100%; }
.guide-rank li:nth-child(2) { background-size: 84% 100%; }
.guide-rank li:nth-child(3) { background-size: 68% 100%; }
.guide-rank li:nth-child(4) { background-size: 52% 100%; }
.guide-rank li:nth-child(5) { background-size: 36% 100%; }
.guide-rank li.is-low { color: var(--nag-text-mute, #9a9aa3); background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); }

/* Mana gauge: a drawn direction, not a measured curve. Resting state = the drained level (--floor); guides.js adds
   .is-run once when the gauge first scrolls into view, which plays the drain one time. */
.guide-gauge { display: grid; gap: 10px; margin: 14px 0 6px; }
.guide-gauge-row { display: grid; gap: 4px; }
.guide-gauge-name { font-size: 0.9rem; color: var(--nag-text, #f4f2ed); }
.guide-gauge-name b { color: var(--nag-gold-fill, #dda343); font-weight: 700; }
.guide-gauge-track { height: 12px; border-radius: 6px; background: var(--nag-hairline, rgba(255, 255, 255, 0.075)); overflow: hidden; }
.guide-gauge-fill { height: 100%; width: var(--floor); border-radius: 6px; background: #4f8fe0; }
.guide-gauge.is-run .guide-gauge-fill { animation: guide-drain 2.4s cubic-bezier(0.3, 0, 0.4, 1) 1 both; }
@keyframes guide-drain { from { width: 100%; } to { width: var(--floor); } }
@media (prefers-reduced-motion: reduce) { .guide-gauge.is-run .guide-gauge-fill { animation: none; } }

/* Annotated screenshot (Shaman totem radar): boxes as percentages of the still, labels never cover the boxed part. */
.guide-annotated-shot { position: relative; }
.guide-mark { position: absolute; border: 2px solid var(--gold, #e0a84a); border-radius: 8px; pointer-events: none; }
.guide-mark > span { position: absolute; white-space: nowrap; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold, #e0a84a); background: rgba(0, 0, 0, 0.78); padding: 2px 6px; border-radius: 4px; }
.guide-mark-radar { left: 24.2%; top: 13.9%; width: 17.2%; height: 30.5%; }
.guide-mark-radar > span { left: 0; bottom: 100%; margin-bottom: 4px; }
.guide-mark-time { left: 32.8%; top: 33.3%; width: 16.4%; height: 20.9%; }
.guide-mark-time > span { left: 100%; top: 50%; transform: translateY(-50%); margin-left: 6px; }
.guide-annotated-list { margin: 10px 0 4px; padding-left: 1.2em; }
@media (max-width: 520px) {
  .guide-mark > span { font-size: 0.6rem; padding: 1px 4px; }
  .guide-mark-radar > span { left: auto; right: 100%; bottom: auto; top: 0; margin: 0 5px 0 0; white-space: normal; width: 7.5em; text-align: right; }
}

/* Page layout (opt-in, catalog "layout"): a sticky section strip under the site header (sticky, z-index 50, about
   74 px tall), spec headers, numbered parts and gear tier tabs. The strip scrolls sideways inside itself on phones. */
.guide-spec-head { padding: 14px 18px; margin: 0 0 20px; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); }
.guide-spec-head p { margin: 6px 0; overflow-wrap: anywhere; }
.guide-spec-answer { font-weight: 700; color: var(--nag-text, #f2f2f4); }
.guide-spec-answer::first-letter { text-transform: uppercase; }
.guide-num { margin-right: 6px; color: var(--nag-gold-eyebrow, #a77d38); font-variant-numeric: tabular-nums; }
.guide-tiers { margin: 14px 0; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 10px; padding: 16px; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); }
.guide-tier h4 { margin: 4px 0 8px; }
.guide-tier-step + .guide-tier-step { margin-top: 18px; }
.guide-tier-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 10px 0 4px; }
.guide-tier-dps { font-variant-numeric: tabular-nums; color: var(--nag-text-dim, #c9c9cf); }
.guide-tiers .ladder-item { animation: none; }
/* Small devices: side mechanics in an expander. Warnings reuse .guide-callout with .guide-label-candidate. */
.guide-expander { margin: 12px 0; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; padding: 8px 14px; }
.guide-expander > summary { cursor: pointer; font-weight: 600; }
.guide-tiers [role="tablist"][hidden] { display: none; }
/* Visual blocks (owner 2026-12-02: "we dont send wall of texts"): generic, data-light. Markup in the page source, hooks
   in build-guides.mjs renderBlocks / tierOne. Section tabs reuse the tier tabs' script: without JS (and in print) every
   panel shows stacked under its own label; with JS the label moves to the tab button. */
.guide-tabs { margin: 14px 0; }
.guide-tabs [role="tablist"][hidden] { display: none; }
.guide-tabs > .ladder-tabs { margin-bottom: 10px; }
.guide-tabs > .ladder-tabs:not([hidden]) ~ .guide-tab > .guide-tab-h { display: none; }
.guide-tab-h { margin: 18px 0 8px; font-size: 1rem; color: var(--nag-gold-text, #e7b65f); }
.guide-tiers-one { margin: 10px 0 0; }
@media print {
  .guide-tabs [role="tablist"] { display: none !important; }
  .guide-tab[hidden], .guide-tier[hidden], .guide-spec[hidden], .guide-part[hidden] { display: block !important; }
  .ladder-tabs, .guide-chat { display: none !important; }
  .guide-specs > .guide-spec > h2, .guide-parts > .guide-part > h3 { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; white-space: normal !important; }
  .guide-tab-h { display: block !important; }
  .guide-fold:not([open]) > :not(summary) { display: block; }
}
/* CAPTION (the block's labels, once) and short notes */
.guide-caption { margin: 0 0 18px; padding: 8px 12px; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; font-size: 0.8rem; line-height: 1.5; color: var(--nag-text-mute, #9a9aa3); }
.guide-caption .guide-label { display: inline; margin: 0 6px 0 0; padding: 0; border: 0; font-size: inherit; font-weight: 600; }
.guide-note { margin: 6px 0 14px; font-size: 0.9rem; color: var(--nag-text-mute, #9a9aa3); }
.guide-lead { font-size: 1.02rem; }
.guide-lead-box p { font-size: 1.05rem; }
.guide-row-title { margin: 14px 0 6px; font-weight: 700; }
/* figure TABLE: compact, numbers right-aligned; scrolls inside its own box, never the page */
.guide-body table.guide-fig { display: block; max-width: 100%; overflow-x: auto; margin: 10px 0 14px; font-size: 0.9rem; border-collapse: collapse; }
.guide-body .guide-fig caption { caption-side: top; text-align: left; padding: 0 0 6px; font-weight: 700; color: var(--nag-text-dim, #c9c9cf); }
.guide-body .guide-fig th, .guide-body .guide-fig td { padding: 6px 10px; }
.guide-body .guide-fig .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-fig-delta { color: var(--nag-pos, #5fc48a); font-size: 0.82rem; }
/* ICON (self-hosted; a missing file is a text chip) and the struck "do not press" icon */
.g-icon { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
.g-icon img { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--nag-hairline, #2a2a31); }
.g-icon-text { align-items: center; min-height: 36px; padding: 0 8px; border-radius: 6px; border: 1px dashed var(--nag-hairline, #2a2a31); font-size: 0.78rem; color: var(--nag-text-mute, #9a9aa3); }
.g-struck::after, .g-struck-take::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--nag-neg, #e06c6c); border-radius: 50%;
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--nag-neg, #e06c6c) calc(50% - 1px), var(--nag-neg, #e06c6c) calc(50% + 1px), transparent calc(50% + 1px)); }
.guide-recap .g-icon img { width: 22px; height: 22px; }
/* ICON ROW: numbered priority strip, wraps on phones */
.guide-body .guide-icon-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 8px 0 12px; padding: 0; list-style: none; counter-reset: gi; }
.guide-icon-row > li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; align-content: flex-start; padding: 10px; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); }
.guide-icon-row > li > strong { flex: 1 1 0; min-width: 0; }
.guide-icon-row > li > span:last-child { flex-basis: 100%; font-size: 0.85rem; color: var(--nag-text-dim, #c9c9cf); }
ol.guide-icon-row > li > strong::before { counter-increment: gi; content: counter(gi) ". "; color: var(--nag-gold-text, #e7b65f); }
.guide-icon-row-side > li { border-style: dashed; }
/* CARD and the "do not press" CARD GRID (2 columns on phones, 3 on desktop) */
.guide-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 12px 0; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); }
.guide-card p { margin: 0 0 4px; }
.guide-body .guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; padding: 0; list-style: none; }
.guide-cards > .guide-card { flex-direction: column; margin: 0; font-size: 0.88rem; }
.guide-cards > .guide-card strong { font-size: 0.95rem; }
@media (min-width: 900px) { .guide-body .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* CHIPS */
.guide-body .guide-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; padding: 0; list-style: none; }
.guide-chips > li { display: flex; gap: 8px; align-items: center; flex: 1 1 220px; padding: 8px 10px; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; font-size: 0.88rem; }
/* FOLD (native details) and RECAP */
.guide-fold { margin: 12px 0; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; padding: 8px 14px; }
.guide-fold > summary { cursor: pointer; font-weight: 600; color: var(--nag-gold-text, #e7b65f); }
.guide-recap { margin: 28px 0 8px; padding: 14px 18px; border: 1px solid var(--nag-gold-edge, rgba(221, 163, 67, 0.45)); border-radius: 10px; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); }
.guide-recap-title { margin: 0 0 6px; font-weight: 800; color: var(--nag-gold-text, #e7b65f); }
.guide-recap ul { margin: 0; padding-left: 18px; }
.guide-recap li { margin: 4px 0; }
.guide-legend { margin: 24px 0 8px; font-size: 0.82rem; color: var(--nag-text-mute, #9a9aa3); }
.guide-legend dt { font-weight: 700; color: var(--nag-text-dim, #c9c9cf); }
.guide-legend dd { margin: 4px 0; }
.guide-legend .guide-label { display: inline; margin: 0 0 0 4px; padding: 0; border: 0; font-size: inherit; font-weight: 400; }
.guide-legend dd strong { color: var(--nag-gold-text, #e7b65f); }
.guide-cite { text-decoration: underline dotted; }
.guide-icon-pair { display: inline-flex; gap: 8px; }
@media (max-width: 479px) { .guide-body .guide-cards { grid-template-columns: minmax(0, 1fr); } }
/* A card may hold a table: its text column may shrink, so the table scrolls inside it instead of widening a phone. */
.guide-card > div { min-width: 0; }
/* STACKED TABLE (opt-in: table.guide-stack (a figure table or a generated one), each cell <td data-th="Column name">): under 480 px every row
   becomes a small card, the column name before each value. The header row stays for screen readers only. */
@media (max-width: 479px) {
  .guide-body table.guide-stack, table.guide-stack tbody, table.guide-stack tr, table.guide-stack td { display: block; }
  table.guide-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.guide-stack tr { margin: 0 0 8px; padding: 6px 0; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; }
  .guide-body table.guide-stack td { padding: 3px 10px; }
  .guide-body table.guide-stack caption { display: block; }
  .guide-body table.guide-stack td.num { text-align: left; white-space: normal; }
  table.guide-stack td[data-th]::before { content: attr(data-th) ": "; font-weight: 700; color: var(--nag-text-dim, #c9c9cf); }
}
/* Phones: a stand-alone card (icon beside text) stacks its icon above the text, so the text gets the full width. */
@media (max-width: 479px) {
  .guide-card { flex-direction: column; }
}
/* CHIPS, one per line (opt-in .guide-chips-wide): longer chip text reads full width instead of narrow columns. */
.guide-body .guide-chips.guide-chips-wide { flex-direction: column; }
.guide-chips.guide-chips-wide > li { flex: none; }
/* EXPERIMENTS (Hunter, 2026-12-02: "find a place for them in graphs ... tabs / expandable features"): one box per
   experiment (chart, finding, result badge, two folds), a RESULT BADGE (text + a shape, never colour alone), the
   "What we tested" grid of mini charts (charts/overview.js) and small flow DIAGRAMS built from HTML, not pictures. */
.guide-exp { margin: 16px 0 24px; padding-top: 12px; border-top: 1px solid var(--nag-hairline, #2a2a31); }
.guide-exp-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; font-size: 1rem; }
.guide-exp .guide-figure[data-guide-chart] { margin: 8px 0 6px; }
.guide-exp figcaption { font-size: 0.92rem; }
.guide-exp .guide-fold { margin: 8px 0; }
.guide-badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.78rem; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.guide-badge-won { color: var(--nag-pos, #5fc48a); }
.guide-badge-lost { color: var(--nag-warn, #e0a35a); }
.guide-badge-level { color: var(--nag-text-dim, #c9c9cf); }
.guide-badge-could-not-be-built { color: var(--nag-text-mute, #9a9aa3); border-style: dashed; }
.guide-exp-nc .guide-card { margin: 6px 0; }
.guide-body .guide-exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; padding: 0; list-style: none; }
.guide-exp-card { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 8px 10px; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); color: inherit; font-size: 0.85rem; text-decoration: none; }
.guide-exp-card:hover, .guide-exp-card:focus-visible { border-color: var(--nag-gold-edge-strong, #dda343); }
.guide-exp-card-name { font-weight: 600; overflow-wrap: anywhere; }
.guide-exp-card .guide-badge { align-self: flex-start; }
.guide-exp-mini { display: block; margin-top: auto; }
.guide-exp-mini:empty { display: none; }
.guide-body .guide-flow { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 8px 0; padding: 0; list-style: none; }
.guide-flow > li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--nag-hairline, #2a2a31); border-radius: 8px; background: var(--nag-panel, rgba(255, 255, 255, 0.03)); font-size: 0.88rem; }
.guide-flow > li + li::before { content: "\2192"; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); color: var(--nag-gold-text, #e7b65f); }
.guide-flow .g-icon img, .guide-deadzone .g-icon img { width: 26px; height: 26px; }
.guide-deadzone { margin: 6px 0; font-size: 0.88rem; color: var(--nag-text-dim, #c9c9cf); }
.guide-swing { display: block; width: 100%; max-width: 440px; height: auto; }
.guide-swing-bar { fill: var(--nag-info, #9ecbff); }
.guide-swing-bar.is-base { fill: var(--nag-gold-fill, #dda343); }
.guide-swing-t, .guide-swing-v { font-size: 13px; fill: var(--nag-text-dim, #c9c9cf); }
.guide-diagram-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.guide-body code { overflow-wrap: anywhere; }
.guide-badge-mixed { color: var(--nag-info, #9ecbff); }
.guide-badge-measured { color: var(--nag-text-dim, #c9c9cf); border-style: dotted; }
.guide-body .guide-badge-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 12px; padding: 0; list-style: none; font-size: 0.85rem; color: var(--nag-text-dim, #c9c9cf); }
/* small icons beside a name: a table's first column, an experiment heading, an item in a list */
.guide-fig td .g-icon img, .guide-exp-h .g-icon img, .guide-short .g-icon img { width: 22px; height: 22px; border-radius: 4px; }
.guide-fig td > .g-icon, .guide-exp-h > .g-icon, .guide-short .g-icon { margin-right: 6px; vertical-align: middle; }
.guide-body .guide-spec-short { margin: 8px 0; padding-left: 18px; }
.guide-spec-short li { margin: 4px 0; }
.guide-spec-short .g-icon img { width: 22px; height: 22px; border-radius: 4px; }
/* chips may hold an icon: the icon keeps its size, a small icon inside the chip's text sits on the line */
.guide-chips > li > .guide-icon-pair { flex: 0 0 auto; }
.guide-chips > li > span:not(.g-icon):not(.guide-icon-pair) .g-icon img { width: 20px; height: 20px; vertical-align: -4px; }
/* The short version first (owner 2026-12-02: "the first thing they see is the TLDR version, with gear, talents,
   rotation, etc.. all separated into tabs"): a short hero, the spec switcher (.guide-spec-tabs, the main strip, with
   icons), each spec's opening card framed as THE answer, then its part strip (.guide-part-tabs, an underlined bar, so it
   never looks like the switcher or a part's own small tab groups). Without JS the tablists stay hidden and every spec
   and part reads stacked under its own heading; with JS that heading stays for screen readers only. */
.guide-hero.is-short { padding: 40px 0 12px; }
.guide-hero.is-short h1 { margin-bottom: 4px; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.1; }
.guide-has-specs .guide-num { display: none; }   /* the numbers served the old jump links; the tabs name the parts now */
.guide-hero.is-short .guide-meta { margin-top: 8px; }
.guide-has-specs { padding-top: 20px; }
.guide-has-specs .guide-toc { top: calc(var(--guide-strip-top, 74px) + 16px); }
.guide-has-specs .guide-body section, .guide-has-specs [id] { scroll-margin-top: calc(var(--guide-strip-top, 74px) + 12px); }
.guide-specs { margin-bottom: 48px; }
.guide-specs > .ladder-tabs[hidden], .guide-parts > .ladder-tabs[hidden] { display: none; }
.guide-spec-tabs { gap: 8px; margin: 0 0 14px; }
.guide-spec-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; font-size: 0.95rem; font-weight: 650; }
.guide-spec-tab img { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--nag-hairline, #2a2a31); }
.guide-specs > .guide-spec-tabs:not([hidden]) ~ .guide-spec > h2,
.guide-parts > .guide-part-tabs:not([hidden]) ~ .guide-part > h3 { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.guide-specs > .guide-spec-tabs:not([hidden]) ~ .guide-spec, .guide-specs > .guide-spec:first-of-type { margin-bottom: 0; padding-top: 0; }
.guide-has-specs .guide-spec-head { position: relative; padding: 30px 18px 14px; border: 1px solid var(--nag-gold-edge, rgba(221, 163, 67, 0.45)); border-left: 3px solid var(--nag-gold-edge-strong, #dda343); border-radius: 0 10px 10px 0; }
.guide-has-specs .guide-spec-head::before { content: "In short"; position: absolute; top: 10px; left: 18px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nag-gold-text, #e7b65f); }
.guide-has-specs .guide-spec-answer { font-size: 1.08rem; margin-top: 2px; }
.guide-part-tabs { position: relative; flex-wrap: nowrap; gap: 2px; margin: 22px 0 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--nag-hairline, #2a2a31); }
.guide-part-tabs::-webkit-scrollbar { display: none; }
/* while a long tab is read, its strip stays under the site header (sticky inside its own spec only) */
.guide-part-tabs:not([hidden]) { position: sticky; top: var(--guide-strip-top, 74px); z-index: 20; background: var(--bg-darker, #07090c); }
.guide-has-specs .guide-specs, .guide-has-specs .guide-parts { scroll-margin-top: calc(var(--guide-strip-top, 74px) + 8px); }
.guide-has-specs .guide-parts [id] { scroll-margin-top: calc(var(--guide-strip-top, 74px) + 60px); }
.guide-part-tabs .ladder-tab { flex: none; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font-weight: 600; white-space: nowrap; }
.guide-part-tabs .ladder-tab[aria-selected="true"] { border-bottom-color: var(--nag-gold-edge-strong, #dda343); background: none; }
.guide-part-tabs .ladder-tab:hover { color: var(--nag-gold-text, #e7b65f); }
.guide-part-tabs.is-more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.guide-part-tabs.is-more-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent); }
.guide-part-tabs.is-more-left.is-more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.guide-parts > .guide-part-tabs:not([hidden]) ~ .guide-part > :first-child + * { margin-top: 0; }
.ladder-tab:focus-visible { outline: 2px solid var(--nag-gold-edge-strong, #dda343); outline-offset: 2px; }
.guide-part-tabs .ladder-tab:focus-visible { outline-offset: -2px; }   /* inside the strip: its overflow would clip an outer ring */
.guide-about .guide-lede { color: var(--nag-text-dim, #c9c9cf); }
@media (min-width: 1100px) {
  .guide-hero.is-short .guide-toon { height: 190px; }
  .guide-hero.is-short .guide-toon:nth-child(2) { height: 165px; }
  .guide-hero.is-short .guide-toon:nth-child(3) { height: 150px; }
}
@media (max-width: 860px) {
  .guide-has-specs .guide-toc { order: 2; }
  .guide-hero.is-short { padding: 20px 0 4px; }
  .guide-hero.is-short h1 { font-size: clamp(1.7rem, 7.4vw, 2.3rem); line-height: 1.12; }
  .guide-hero.is-short .guide-meta { gap: 4px 12px; font-size: 0.82rem; }
  .guide-spec-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-spec-tab { gap: 6px; padding: 0 8px; font-size: 0.85rem; text-align: left; line-height: 1.2; }
  .guide-spec-tab img { width: 20px; height: 20px; flex: none; }
  .guide-hero.is-short .guide-hero-art { display: none; }
  .guide-has-specs { padding-top: 12px; }
  .guide-has-specs .guide-spec-head { padding: 28px 14px 10px; }
  .guide-has-specs .guide-spec-head p { margin: 4px 0; }
}
