/* Crogin's Rotation Buddy: site styles. Compact layout. Text stays at 13px or larger; body text is 16px. */
:root {
  --bg: #080b11; --bg-2: #0c121b; --panel: #111823; --panel-2: #172131; --panel-3: #1c2a3d;
  --line: #243248; --line-2: #34476a;
  --text: #e9eef7; --text-2: #b6c2d6; --muted: #93a1bb;
  --blue: #5db4ff; --blue-2: #3a86d8; --blue-dim: rgba(93, 180, 255, .13);
  --gold: #f0c25e; --gold-2: #ffd98a; --gold-dim: rgba(240, 194, 94, .13);
  --good: #74d99b; --warn: #f2bd5c; --bad: #ff8f8f;
  --radius: 8px; --radius-sm: 5px;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --shell: 1180px;
  --cls: var(--blue);
  --sb: 16px; --sb-track: #0a0f17; --sb-thumb: #4d74b3; --sb-thumb-hover: #f0c25e; --sb-thumb-active: #ffd98a;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 66px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.5;
  background-image:
    radial-gradient(900px 360px at 8% -4%, rgba(93, 180, 255, .10), transparent 70%),
    radial-gradient(800px 360px at 96% 2%, rgba(240, 194, 94, .07), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: auto, auto, 100% 30px;
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: scroll;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #9ad0ff; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9em; background: #0b1220; border: 1px solid var(--line); border-radius: 4px; padding: .05em .34em; color: #cfe3ff; overflow-wrap: anywhere; }
pre.code { background: #0a101a; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; overflow-x: auto; margin: 10px 0; }
pre.code code { background: none; border: 0; padding: 0; font-size: .9375rem; white-space: pre; overflow-wrap: normal; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: #1b1300; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 8px; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }
main { display: block; outline: 0; }
[hidden] { display: none !important; }

/* ---------- scrollbars: CRB dark blue and gold, page and every scrolling panel ---------- */
/* Firefox has no ::-webkit-scrollbar, so it gets the standard properties. Chromium and Safari get the styled bar. */
@media (forced-colors: none) {
  @supports not selector(::-webkit-scrollbar) {
    * { scrollbar-width: auto; scrollbar-color: var(--sb-thumb) var(--sb-track); }
  }
  @supports selector(::-webkit-scrollbar) {
    ::-webkit-scrollbar { width: var(--sb); height: var(--sb); background: var(--sb-track); }
    ::-webkit-scrollbar-track { background: var(--sb-track); }
    ::-webkit-scrollbar-thumb { background: var(--sb-thumb); border: 3px solid var(--sb-track); border-radius: 999px; min-height: 44px; min-width: 44px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
    ::-webkit-scrollbar-thumb:active { background: var(--sb-thumb-active); }
    ::-webkit-scrollbar-corner { background: var(--sb-track); }
    ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  }
}
/* Any panel that scrolls on its own (the mobile menu, code, tables, and later the sequence editor) */
.scroll-panel { overflow: auto; max-height: var(--panel-max, 70vh); overscroll-behavior: contain; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: .01em; line-height: 1.15; margin: 0 0 .4em; color: #fff; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.3rem); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); text-transform: uppercase; letter-spacing: .02em; margin-top: 1.1em; }
h3 { font-size: 1.15rem; margin-top: .9em; }
h4 { font-size: 1.02rem; margin-top: .8em; color: var(--text-2); }
p { margin: 0 0 .7em; }
.section h2:first-child, .shell > h2:first-child, .panel > h2:first-child, .eyebrow + h2 { margin-top: 0; }
.eyebrow { font-family: var(--font-display); font-size: .875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .15em; }
.lede { font-size: 1.0625rem; color: var(--text-2); max-width: 82ch; margin: 0 0 .3em; }
.section-lede { font-size: 1rem; color: var(--text-2); max-width: 80ch; margin-bottom: .8em; }
.tagline { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.2; color: var(--gold-2); letter-spacing: .03em; margin: 0 0 .4em; }
.fine { font-size: .9375rem; color: var(--muted); }
.stamp { font-size: .8125rem; color: var(--muted); margin: 0; white-space: nowrap; }
.callout { border-left: 4px solid var(--gold); background: var(--gold-dim); padding: 8px 12px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: .7em 0 .4em; }
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.ticks { list-style: none; padding-left: 0 !important; }
.ticks li { position: relative; padding-left: 1.4em; margin: .35em 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .5em; width: .55em; height: .55em; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #0a0f17; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; }
.brand-art { width: 34px; height: 34px; flex: none; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { white-space: nowrap; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; }
.brand-text small { font-size: .8125rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav-more > summary { white-space: nowrap; display: inline-flex; align-items: center; min-height: 36px; padding: 0 11px; border-radius: var(--radius-sm); color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .9375rem; cursor: pointer; list-style: none; }
.nav > a:hover, .nav-more > summary:hover, .nav-more[open] > summary { background: var(--panel-2); color: #fff; }
.nav > a[aria-current="page"], .nav-more.has-current > summary { color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold); }
.nav-more { position: relative; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ' \25BE'; font-size: .8em; margin-left: .35em; }
.nav-more-panel { position: absolute; right: 0; top: calc(100% + 6px); width: min(320px, 92vw); max-height: calc(100vh - 90px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); z-index: 120; }
.nav-more-panel a { display: block; padding: 6px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); line-height: 1.3; }
.nav-more-panel a:hover { background: var(--panel-2); }
.nav-more-panel strong { display: block; font-weight: 600; }
.nav-more-panel span { display: block; font-size: .875rem; color: var(--muted); }
.nav-more-panel a[aria-current="page"] strong { color: var(--gold-2); }
.menu { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: #fff; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; content: ''; position: relative; }
.menu-bars::before { position: absolute; top: -6px; }
.menu-bars::after { position: absolute; top: 6px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #0a0f17; padding: 6px 20px 14px; max-height: calc(100vh - 56px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav.open { display: block; }
.mobile-nav a:not(.btn) { display: flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.mobile-nav a[aria-current="page"] { color: var(--gold-2); }
.mobile-nav .btn { margin-top: 10px; width: 100%; }
.mobile-group { margin: 10px 0 0; font-family: var(--font-display); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 .9375rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-lg { min-height: 42px; padding: 0 20px; font-size: 1rem; }
.btn-gold { background: var(--gold); color: #1a1200; }
.btn-gold:hover { background: var(--gold-2); color: #1a1200; }
.btn-blue { background: var(--blue-dim); color: #bfe0ff; border-color: var(--blue-2); }
.btn-blue:hover { background: rgba(93, 180, 255, .24); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); color: #fff; border-color: var(--blue-2); }
.chip-btn { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 500 .9375rem var(--font-body); cursor: pointer; }
.chip-btn:hover { border-color: var(--blue-2); }
.chip-btn[aria-pressed="true"] { background: var(--blue-dim); border-color: var(--blue); color: #fff; }

/* ---------- release notice ---------- */
.release-bar { background: linear-gradient(90deg, rgba(240, 194, 94, .16), rgba(58, 134, 216, .12)); border-bottom: 1px solid #5a4a1f; font-size: .875rem; line-height: 1.4; }
.release-bar .shell { padding-top: 4px; padding-bottom: 4px; color: var(--text); }
.release-bar strong { color: var(--gold-2); }
.release-bar a { color: #cfe6ff; margin-left: 4px; }
.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--text-2); margin: 0 0 .5em; font-size: .9375rem; }

/* ---------- page head, crumbs ---------- */
.page-head { padding: 10px 0 8px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(23, 33, 49, .55), transparent); }
.page-head.has-banner { background: linear-gradient(90deg, rgba(8, 11, 17, .96) 0%, rgba(8, 11, 17, .82) 45%, rgba(8, 11, 17, .15) 100%), var(--banner) right center / cover no-repeat; }
.head-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 .12em; }
.page-head .eyebrow { margin: 0; }
.classpage .page-head { border-bottom-color: var(--cls); box-shadow: inset 0 -3px 0 -1px var(--cls); }
.classpage .page-head .eyebrow { color: var(--cls-text, var(--cls)); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; padding: 0; margin: 0 0 2px; list-style: none; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line-2); }
.crumbs a { color: var(--text-2); }
.err { padding: 36px 0 32px; }

/* ---------- hero ---------- */
.hero { padding: 16px 0 6px; position: relative; }
.hero.has-art { background: linear-gradient(90deg, rgba(8, 11, 17, .96) 0%, rgba(8, 11, 17, .82) 45%, rgba(8, 11, 17, .25) 100%), var(--hero-art) right center / cover no-repeat; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; align-items: center; }
.hero h1 { margin: 0 0 .1em; line-height: 1; font-size: clamp(2rem, 4.2vw, 2.9rem); }
.hero .lede { margin-bottom: .5em; font-size: 1rem; }
.hero-art { min-width: 0; }
.rcards-wrap { max-width: 600px; }
.rcards { margin: 0; display: grid; gap: 7px; }
.rc-cap { font-size: .8125rem; color: var(--muted); margin: 4px 0 0; line-height: 1.35; }
.hero.has-art .rc-cap { color: var(--text-2); }
.rcard { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; align-items: center; background: linear-gradient(160deg, #162033, #0d1420); border: 1px solid var(--line-2); border-left: 4px solid var(--cls); border-radius: var(--radius); padding: 6px 12px 7px; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); }
.rc-top { display: flex; align-items: baseline; gap: 0 10px; min-width: 0; white-space: nowrap; }
.rc-state { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: .875rem; color: var(--gold-2); }
.rc-ctx { font-size: .8125rem; color: var(--cls-text, var(--cls)); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.rc-chips { display: flex; gap: 4px; }
.rc-chips span { font-size: .8125rem; font-weight: 600; letter-spacing: .06em; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); line-height: 1.45; }
.rc-chips .key { border-color: var(--gold); color: var(--gold-2); }
.rc-name { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; color: #fff; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
.rc-next { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.rc-nl { font-family: var(--font-display); font-weight: 600; letter-spacing: .12em; font-size: .8125rem; color: var(--muted); }
.rc-nt { font-size: .875rem; padding: 1px 8px; border-radius: 5px; background: #0b121d; border: 1px solid var(--line); color: var(--text); }
.classbar { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; margin: 12px 0 4px; }
.cb { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; border: 1px solid var(--line); border-left: 4px solid var(--cls); border-radius: var(--radius-sm); background: var(--panel); text-decoration: none; min-width: 0; transition: border-color .15s, background-color .15s; }
.cb:hover { background: var(--panel-2); border-color: var(--cls); }
.cb .ico { width: 26px; height: 26px; flex: none; }
.cb span.t { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.cb strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--cls-text, var(--cls)); text-transform: uppercase; letter-spacing: .04em; }
.cb em { font-style: normal; font-size: .8125rem; color: var(--text-2); }
.hero-note { margin: 2px 0 8px; font-size: .875rem; color: var(--muted); }

/* ---------- status strip ---------- */
.status-strip { border-block: 1px solid var(--line); background: #0a1018; }
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding-block: 0; }
.stat { padding: 8px 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 0; line-height: 1.25; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .k { font-family: var(--font-display); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: #fff; line-height: 1.15; }
.stat .s { font-size: .8125rem; color: var(--text-2); }

/* ---------- sections ---------- */
.section { padding: 20px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.panel > :last-child { margin-bottom: 0; }
.panel h3:first-child, .latest-head h3 { margin-top: 0; }
.panel h2 { font-size: 1.25rem; }
.cta-band { background: linear-gradient(90deg, rgba(58, 134, 216, .16), rgba(240, 194, 94, .12)); border-block: 1px solid var(--line-2); padding: 14px 0; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.cta-row h2 { margin: 0 0 .1em; font-size: 1.3rem; }
.cta-row p { margin: 0; color: var(--text-2); }
.cta-row .btns { margin: 0; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px 9px 15px; position: relative; }
.feature::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--blue); }
.feature h3 { font-size: 1.1rem; margin: 0 0 .15em; }
.feature p { margin: 0; color: var(--text-2); font-size: .9375rem; line-height: 1.4; }
.feature.beta::before { background: var(--gold); }
.feature .tag { font-family: var(--font-display); letter-spacing: .1em; text-transform: uppercase; font-size: .8125rem; color: var(--gold); margin-bottom: .15em; }
.feature-grid.modes { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; }
.feature-grid.modes .feature h3 { color: var(--gold-2); }

/* ---------- community and resources ---------- */
.community .two { gap: 10px; }
.comm { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 12px; align-items: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.comm.no-ico { grid-template-columns: minmax(0, 1fr); }
.comm-ico { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line-2); display: block; }
.comm h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.comm-by { font-family: var(--font-body); font-size: .9375rem; font-weight: 400; color: var(--text-2); white-space: nowrap; }
.comm-desc { margin: 2px 0 0; color: var(--text-2); }
.comm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; }
.comm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; }
.comm-host { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.comm .btn .ext { width: 12px; height: 12px; flex: none; }
.community .fine { margin: 8px 0 0; }
.more-features { margin-top: 8px; }
.more-features > summary { cursor: pointer; min-height: 34px; display: flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; }
.more-features[open] > summary { margin-bottom: 6px; }

/* ---------- classes, specs, guides ---------- */
.class-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.class-tile { position: relative; display: flex; flex-direction: column; gap: 0; padding: 8px 12px 8px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); overflow: hidden; transition: border-color .15s, background-color .15s; }
.class-tile:hover { border-color: var(--cls); background: var(--panel-2); color: #fff; }
.class-tile .swatch { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--cls); }
.class-tile strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--cls-text, var(--cls)); text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.class-tile .specs { color: var(--text-2); font-size: .9375rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.spec-card, .guide-card { display: flex; flex-direction: column; gap: 3px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); position: relative; transition: border-color .15s, background-color .15s; }
.spec-card:hover, .guide-card:hover { border-color: var(--cls, var(--blue)); background: var(--panel-2); color: #fff; }
.spec-card { border-top: 3px solid var(--cls); }
.spec-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.spec-card strong, .guide-card strong { font-family: var(--font-display); font-size: 1.25rem; color: #fff; line-height: 1.15; }
.spec-card .s, .guide-card .s { font-size: .9375rem; color: var(--text-2); line-height: 1.35; }
.spec-card .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.guide-card { border-top: 3px solid var(--blue-2); }
.guide-card .chip { align-self: flex-start; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); background: #0d1522; color: var(--text-2); font-size: .8125rem; font-weight: 500; line-height: 1.55; white-space: nowrap; }
.chip.role-dps { border-color: #8a4a4a; color: #ffb4b4; }
.chip.role-healer { border-color: #3f8a5f; color: #9ee6bb; }
.chip.role-tank { border-color: #4a6ea3; color: #a9c8f5; }
.chip.talent { border-color: #7f6cb3; color: #cbbdf2; }
.chip.lvl { color: var(--text-2); }
.chip.warn { border-color: var(--warn); color: var(--warn); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.src-ok { border-color: #3f8a5f; color: #9ee6bb; }
.chip.src-mid { border-color: #9a7a2f; color: var(--gold-2); }
.chip.src-low { border-color: #8a4a4a; color: #ffb4b4; }
.ico { display: inline-block; flex: none; border-radius: 5px; object-fit: cover; }
.ico.cls { border-radius: 0; object-fit: contain; }

/* ---------- priority lists: numbered rows ---------- */
.rot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 8px; align-items: start; }
.plcard { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--cls); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.pl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 6px 10px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.pl-head h2, .pl-head h3, .pl-head h4 { margin: 0 auto 0 0; font-size: 1.1rem; letter-spacing: .03em; color: #fff; text-transform: none; }
.pl-count { font-size: .8125rem; color: var(--muted); }
.pl-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; }
.pl-line h2 { margin: 0; font-size: 1.2rem; }
.rot-cols.narrow { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.chip.cond { border-color: #3f5f8f; color: #bcd5f5; }
.class-tile .ico, .lrow .c-class .ico { margin-right: 8px; vertical-align: -6px; }
.head-top .stamp { margin-left: auto; }
.logo-full { display: block; width: 300px; max-width: 100%; height: auto; margin: 0 0 10px; }
.plist { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.blk { position: relative; border-top: 1px solid var(--line); }
.blk:first-child { border-top: 0; }
.blk-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 34px; padding: 3px 10px 3px 8px; list-style: none; }
details.blk-d > summary { cursor: pointer; }
details.blk-d > summary::-webkit-details-marker { display: none; }
details.blk-d > summary:hover { background: var(--panel-2); }
details.blk-d > summary .blk-lv::after { content: '\25BE'; margin-left: 6px; font-size: 1em; color: var(--blue); }
details.blk-d[open] > summary .blk-lv::after { content: '\25B4'; }
.blk .num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--line-2); font: 600 .8125rem/1 var(--font-display); color: var(--gold-2); }
.blk-main { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.blk .spell { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: #fff; line-height: 1.2; }
.blk-badges { display: flex; flex-wrap: wrap; gap: 3px; }
.blk-lv { font-size: .8125rem; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.blk-detail { padding: 2px 10px 8px 40px; font-size: .9375rem; color: var(--text-2); }
.blk-note { margin: 0; padding: 0 10px 5px 40px; font-size: .875rem; color: var(--warn); }
.flags { margin: 2px 0 0; padding-left: 1.1em; color: var(--text-2); }
.ranks { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: .875rem; }
.ranks th, .ranks td { text-align: left; padding: 2px 8px 2px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-weight: 400; }
.ranks thead th { color: var(--muted); font-size: .8125rem; }
/* in-list state from the level selector */
.blk.is-later { opacity: .55; }
.blk.is-later .spell { text-decoration: line-through; text-decoration-color: var(--muted); text-decoration-thickness: 1px; }
.blk.is-dim { opacity: .6; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; align-items: start; }
.rot-block { margin: 0 0 10px; }
.rot-wrap > * + * { margin-top: 10px; }
.rot-block > h2 { font-size: 1.2rem; margin: 0 0 .3em; }
.how > summary, .talents > summary { cursor: pointer; font-weight: 600; min-height: 34px; display: flex; align-items: center; color: var(--blue); }
.how.panel, .talents.panel { padding: 4px 14px; margin: 0 0 8px; }
.how[open], .talents[open] { padding-bottom: 8px; }
.how dl { margin: 4px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; font-size: .9375rem; }
.how dt { font-weight: 600; color: #fff; }
.how dd { margin: 0; color: var(--text-2); }
.srcline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 0; font-size: .9375rem; color: var(--text-2); }
.srcline b { font-weight: 600; color: #fff; }

/* level selector */
.level-panel { margin: 0 0 8px; padding: 8px 14px; }
.level-row { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.level-row h2 { margin: 0; font-size: 1.1rem; }
.level-row label { font-weight: 600; }
.level-row output { font-family: var(--font-display); font-size: 1.6rem; min-width: 2ch; color: var(--gold-2); line-height: 1; }
input[type=range] { flex: 1 1 200px; accent-color: var(--blue); height: 30px; }
input[type=range]::-webkit-slider-thumb { width: 22px; height: 22px; }
.level-note { margin: 4px 0 0; color: var(--gold-2); min-height: 1.4em; font-size: .9375rem; }
.level-panel .fine { margin: 2px 0 0; font-size: .875rem; }
.level-tools { margin-left: auto; }

/* ---------- rotation library ---------- */
.libbar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: flex-end; margin: 0 0 8px; }
.f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.f label { font-size: .875rem; color: var(--text-2); font-weight: 500; }
.libbar .f { flex: 1 1 130px; }
.libbar .f.grow { flex: 2 1 220px; }
.libbar .f.btn-f { flex: 0 0 auto; }
select, input[type=text], input[type=search], input:not([type]), input[type=number], textarea, input[name] {
  width: 100%; min-height: 38px; padding: 6px 10px; background: #0a111b; color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: 400 .9375rem var(--font-body);
}
textarea { min-height: 70px; resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
select:focus, input:focus, textarea:focus { border-color: var(--blue); }
.count { color: var(--muted); font-size: .875rem; min-height: 1.3em; margin: 0 0 4px; }
.empty { padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2); }
.libwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); border-top: 3px solid var(--cls); }
table.lib { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.lib th, table.lib td { text-align: left; padding: 3px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.lib thead th { background: var(--panel-2); font-family: var(--font-display); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; font-weight: 600; padding: 0; }
table.lib thead th > span, table.lib thead th > button { display: block; padding: 6px 10px; }
table.lib thead button { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; padding: 6px 10px; }
table.lib thead button:hover { color: #fff; }
table.lib thead button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
table.lib thead th[aria-sort="ascending"] button::after { content: ' \25B2'; font-size: .7em; color: var(--gold); }
table.lib thead th[aria-sort="descending"] button::after { content: ' \25BC'; font-size: .7em; color: var(--gold); }
tr.lrow:hover > td { background: rgba(23, 33, 49, .6); }
tr.lrow td:first-child { border-left: 4px solid var(--cls); }
.lrow .c-class { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .04em; text-transform: uppercase; color: var(--cls-text, var(--cls)); white-space: nowrap; font-weight: 600; }
.lrow .c-class .ico { width: 22px; height: 22px; vertical-align: -6px; margin-right: 6px; }
.lrow .c-name a { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: #fff; text-decoration: none; letter-spacing: .01em; }
.lrow .c-name a:hover { color: var(--blue); text-decoration: underline; }
.lrow .c-num, .lrow .c-lv { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lrow .c-num { text-align: center; }
.mode { display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; padding: 0 6px; margin-right: 4px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--text-2); line-height: 1.5; }
.mode.st { border-color: #4a6ea3; color: #a9c8f5; }
.mode.aoe { border-color: #9a7a2f; color: var(--gold-2); }
.mode.heal { border-color: #3f8a5f; color: #9ee6bb; }
.mode.keep { border-color: #7f6cb3; color: #cbbdf2; }
.dash { color: var(--muted); }
.peek { display: none; min-height: 26px; padding: 0 10px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text); font: 500 .875rem var(--font-body); cursor: pointer; white-space: nowrap; }
.peek:hover { border-color: var(--blue-2); }
.peek[aria-expanded="true"] { background: var(--blue-dim); border-color: var(--blue); color: #fff; }
html.js .peek { display: inline-flex; align-items: center; }
tr.qrow > td { background: #0d1522; padding: 8px 12px 10px 18px; border-left: 4px solid var(--cls); }
.peek-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; }
.peek-grid h3 { font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 3px; }
.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 3px 4px; }
.mini li { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 3px; background: #0b121d; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; color: var(--text); }
.mini .n { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); font: 600 .75rem/1 var(--font-display); color: var(--gold-2); }
.peek-go { margin: 6px 0 0; font-size: .9375rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.data th, table.data td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--panel-2); font-family: var(--font-display); font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
table.data tbody th { font-weight: 600; color: #fff; width: 34%; }
table.data tr:last-child > * { border-bottom: 0; }
.prose > table.data { display: block; overflow-x: auto; }

/* ---------- lists, steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 8px 0; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 8px 40px; min-height: 32px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); border: 1px solid var(--gold); color: var(--gold-2); font: 600 .95rem var(--font-display); }

/* ---------- release status / download ---------- */
.dl-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 14px; align-items: start; }
.dl-card { border-color: var(--line-2); background: linear-gradient(160deg, #162033, #0f1724); }
.dl-card h2 { margin-top: 0; font-size: 1.8rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 0 0 10px; }
.facts div { min-width: 0; }
.facts dt { font-family: var(--font-display); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.checksum { margin-top: 10px; }
.checksum summary { cursor: pointer; min-height: 34px; display: flex; align-items: center; color: var(--blue); }
.hash code { display: inline-block; word-break: break-all; }

/* ---------- faq, troubleshooting, changelog ---------- */
.qa { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); margin: 5px 0; }
.qa summary { cursor: pointer; padding: 8px 14px; font-weight: 600; font-size: 1rem; min-height: 42px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font: 600 1.4rem var(--font-display); color: var(--gold); }
.qa[open] summary::after { content: '\2212'; }
.qa-a { padding: 0 14px 4px; color: var(--text-2); }
.qa-static { border-left: 3px solid var(--blue); padding: 0 0 0 14px; margin: 10px 0; }
.qa-static h3 { margin-top: 0; font-size: 1.2rem; }
.toc ul { columns: 2; column-gap: 24px; padding-left: 1.1em; margin: 6px 0; }
.toc li { break-inside: avoid; margin: 3px 0; }
.trouble { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 16px; }
.trouble h2 { margin-top: .4em; }
.trouble h3 { font-size: 1.1rem; color: var(--gold-2); margin-top: .7em; }
.tcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.release { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 2px 16px 8px; margin: 0 0 10px; }
.release.current { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(240, 194, 94, .2); }
.release h2 { margin-top: .4em; }
.release h3 { font-size: 1.1rem; color: var(--blue); }
.release ul { padding-left: 1.2em; margin: .3em 0 .6em; }
.release li { margin: .25em 0; }

/* ---------- guides ---------- */
.guide-card { min-height: 0; }
.guide-grid + p, .spec-grid + p, .class-grid + p { margin-top: 8px; }

/* ---------- report, search ---------- */
.report-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px; align-items: start; }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tabs button { min-height: 38px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line-2); font: 600 .9375rem var(--font-body); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--blue-dim); border-color: var(--blue); color: #fff; }
.f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
form .f { margin-bottom: 8px; }
.out { font-family: ui-monospace, Consolas, monospace; font-size: .9375rem; min-height: 240px; }
.search-form { max-width: 640px; }
.search-form label { display: block; margin-bottom: 4px; font-weight: 600; }
.results { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.results li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 12px; }
.results a { font-family: var(--font-display); font-size: 1.2rem; color: #fff; text-decoration: none; }
.results a:hover { color: var(--blue); }
.results p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.results .chip { margin-right: 8px; vertical-align: 2px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; background: #070a10; border-top: 1px solid var(--line); padding-top: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 16px; }
.footer-brand { display: flex; gap: 10px; }
.footer-brand .brand-art { width: 34px; height: 34px; }
.footer-brand strong { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-brand p { color: var(--text-2); font-size: .9375rem; margin: 2px 0 0; line-height: 1.4; }
.site-footer h2 { font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; }
.site-footer nav a { display: block; padding: 2px 0; color: var(--text-2); text-decoration: none; font-size: .9375rem; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px; padding-bottom: 12px; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.footer-base p { margin: 0 0 3px; }

/* ---------- responsive ---------- */
/* touch screens and phone widths: larger targets (44 px for controls, 40 px for dense list rows) */
@media (pointer: coarse), (max-width: 760px) {
  .btn, .tabs button, .brand { min-height: 44px; }
  .chip-btn, .peek { min-height: 40px; }
  select, input[type=text], input[type=search], input:not([type]), input[type=number], textarea, input[name] { min-height: 44px; }
  input[type=range] { height: 40px; }
  .site-footer nav a { display: flex; align-items: center; min-height: 40px; padding: 0; }
  .qa summary, .how > summary, .talents > summary, .more-features > summary, .checksum summary { min-height: 44px; }
  details.blk-d > summary { min-height: 40px; }
}
.sortsel { display: none; }
@media (max-width: 1060px) {
  .nav, .header-cta { display: none; }
  .menu { display: inline-flex; }
  .brand { margin-right: auto; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+3) { border-top: 0; }
  .rc-top { flex-wrap: wrap; white-space: normal; }
  .rc-ctx { overflow: visible; }
}
@media (max-width: 1180px) {
  .classbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid, .two, .dl-grid, .report-grid { grid-template-columns: minmax(0, 1fr); }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc ul, .tcols { columns: 1; grid-template-columns: minmax(0, 1fr); }
  .f3 { grid-template-columns: minmax(0, 1fr); }
  /* the hero is one tall column here, so the wide picture would be stretched: use the squarer one under an even shade */
  .hero.has-art { background-image: linear-gradient(180deg, rgba(8, 11, 17, .9) 0%, rgba(8, 11, 17, .78) 100%), var(--hero-art-m, var(--hero-art)); background-position: center; }
}
@media (max-width: 760px) {
  .classbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid.modes { grid-template-columns: minmax(0, 1fr); }
  /* community cards on a phone: the buttons use the full card width so both fit on one line when they can */
  .comm-body { display: contents; }
  .comm .comm-ico { grid-row: 1 / span 2; }
  .comm h3, .comm-desc { grid-column: 2; }
  .comm.no-ico h3, .comm.no-ico .comm-desc { grid-column: 1; }
  .comm-row, .comm-meta { grid-column: 1 / -1; }
  .comm-row { margin-top: 8px; gap: 6px 8px; }
  .comm-row .btn { flex: 1 1 auto; padding: 0 10px; font-size: .875rem; }
  .hero-art { display: none; }
  .section { padding: 14px 0; }
  .class-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .stat:nth-child(-n+2) { border-top: 0 !important; }
  .brand-text small { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .cta-row .btn-lg { width: 100%; }
  .hero .btn-lg { flex: 1 1 auto; }
  .rc-top { flex-wrap: wrap; white-space: normal; }
  .rc-ctx { overflow: visible; }
  .lrow .c-num::before { content: attr(data-label); margin-right: 4px; font-size: .8125rem; color: var(--muted); }
  .lrow .c-num.zero { display: none; }
  .libbar .f { flex-basis: 45%; }
  .libbar .f.grow { flex-basis: 100%; }
  .page-head.has-banner { background-position: 82% center; }
  /* the library table becomes two-line rows */
  table.lib, .lib tbody, tr.lrow, tr.qrow, tr.lrow td, tr.qrow td { display: block; }
  tr.lrow, tr.qrow { width: 100%; }
  .lib thead { display: none; }
  .sortsel { display: flex; }
  tr.lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 6px 10px 6px 12px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--cls); }
  tr.lrow td, tr.lrow td:first-child { border: 0; padding: 0; background: none !important; }
  tr.lrow::after { content: ''; order: 4; flex-basis: 100%; height: 0; }
  .lrow .c-class { order: 1; font-size: .875rem; }
  .lrow .c-name { order: 2; flex: 1 1 auto; }
  .lrow .c-act { order: 3; }
  .lrow .c-role, .lrow .c-lv, .lrow .c-num, .lrow .c-src { order: 5; }
  .lrow .c-keep, .lrow .c-heal { display: none; }
  .lrow .c-num { text-align: left; }
  tr.qrow > td { border-left: 4px solid var(--cls); }
}
@media (max-width: 480px) {
  .shell { padding: 0 14px; }
  .blk-detail, .blk-note { padding-left: 14px; }
  .cb { flex-direction: column; justify-content: center; gap: 2px; padding: 6px 4px 6px 6px; text-align: center; }
  .cb span.t { align-items: center; }
  .cb .ico { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
