/* Shared OctoBot shell and palette for every dashboard tab. */
html{scrollbar-gutter:stable}
:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;background:#101727;color:#e5e9ef;--gold:#efce47;--panel:#1f2b3b;--line:#39465a;--muted:#a1adbd}
body{margin:0;padding:26px 24px;background:#101727}
main,.planner-view main{width:100%;max-width:1180px;margin:0 auto}
.site-header,.planner-view .site-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;min-height:74px;padding:0 0 18px;border-bottom:1px solid var(--line)}
.site-identity{display:flex;align-items:center;gap:15px;min-width:0}
.site-logo{width:48px;height:48px;flex:none;object-fit:contain;filter:drop-shadow(0 3px 8px #0005)}
.site-header .brand{color:#9ba8bc;font-size:11px;font-weight:700;letter-spacing:.14em;line-height:14px}
.site-header h1,.planner-view .site-header h1{color:#e5e9ef;font-size:28px;font-weight:500;line-height:30px;margin:5px 0 0}
.site-header .header-status{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:nowrap;flex:none}
.site-header .badge,.planner-view .site-header .badge{font-size:10px;line-height:14px;letter-spacing:.05em;color:#e9cc67;background:#302c21;padding:7px 10px;border-radius:4px;white-space:nowrap}
.page-nav,.planner-view .page-nav{display:flex;align-items:stretch;gap:6px;flex-wrap:wrap;margin:18px 0 22px}
.page-nav a,.planner-view .page-nav a{display:inline-flex;align-items:center;justify-content:center;min-width:145px;min-height:38px;padding:9px 16px;border:1px solid var(--line);border-radius:4px;background:#1f2b3b;color:#bec9d8;font-size:12px;line-height:18px;text-decoration:none}
.page-nav a[aria-current=page],.planner-view .page-nav a[aria-current=page]{background:#3a3827;color:#f4d65c;border-color:#9d8a35}
.page-nav a:hover,.page-nav a:focus-visible{background:#2b332e;border-color:var(--gold);color:#f4d65c}
.site-header .viewers{display:inline-flex;align-items:center;gap:7px;min-width:34px;justify-content:flex-end;white-space:nowrap;font-size:13px;line-height:18px;color:#dce5ef;font-variant-numeric:tabular-nums}
.viewer-dot{width:7px;height:7px;flex:none;display:inline-block;border-radius:50%;background:#fc3039;box-shadow:0 0 5px #fa313888;animation:viewer-pulse 2.8s ease-in-out infinite}
.viewers.is-offline .viewer-dot{animation:none;background:#748092;box-shadow:none}
@keyframes viewer-pulse{0%,100%{opacity:1}50%{opacity:.24}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.stats,.chart-card,.panel,.milestone,.archive-stat{background:var(--panel);border-color:var(--line)}
.stats,.chart-card,.panel{border-radius:6px}
.stat,.controls,.incident{border-color:var(--line)}
.milestones,.archive-summary{background:var(--line);border-color:var(--line);border-radius:6px;overflow:hidden}
h2,h3,.milestone strong{color:var(--gold)}
.stat strong,.archive-stat strong{color:var(--gold)}
.stat strong.is-down{color:#f08f8f}.stat strong.is-unknown{color:#e3bd57}
button[aria-pressed=true]{background:#3a3827;color:#f4d65c;border-color:#9d8a35}
/* Align From/To with Apply on the bottom row; keep Jump compact above it. */
.dates{align-items:flex-end}
.date-fields{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-height:30px}
.date-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0}
.controls button{border-radius:4px}
.date-actions button{width:auto;white-space:nowrap}
.date-actions .jump-to-present{font-size:11px;line-height:15px;padding:5px 9px}
.dates input[type="date"]{border-radius:4px}
.jump-to-present:disabled,.jump-to-present:disabled:hover{opacity:.45;color:#a1adbd;background:#1e2938;border-color:#39465a;cursor:not-allowed}
select,.dates input,.archive-controls select,.server-label select{background:#182333;border-color:#4a596e;color:#e5e9ef}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--gold)}
.tip{background:#0d1420f7;border-color:#827547;border-radius:4px}
/* Keep planner rails clear of the content, while its header shares the site shell. */
@media(min-width:1351px){.planner-view #planner{width:100%;margin:0 auto}}
@media(max-width:780px){body{padding:22px 12px}.site-header,.planner-view .site-header{gap:14px;align-items:flex-start}.site-header h1,.planner-view .site-header h1{font-size:25px;line-height:27px}.site-identity{gap:10px}.site-logo{width:42px;height:42px}.site-header .header-status{gap:9px;flex-wrap:wrap;max-width:165px}.page-nav a,.planner-view .page-nav a{min-width:0;flex:1;padding:9px 10px}.site-header .badge,.planner-view .site-header .badge{font-size:9px}}
@media(max-width:560px){.site-header,.planner-view .site-header{position:relative;min-height:92px;padding-right:42px}.site-header .header-status{position:absolute;top:0;right:0;max-width:none}.site-header .header-status .badge{position:absolute;right:0;top:57px}.site-header h1,.planner-view .site-header h1{font-size:23px;line-height:25px}.site-logo{width:38px;height:38px}.page-nav,.planner-view .page-nav{gap:5px;margin-top:15px}.page-nav a,.planner-view .page-nav a{font-size:11px;padding:8px 7px}.site-header .brand{font-size:10px}}
@media(prefers-reduced-motion:reduce){.viewer-dot{animation:none}}

/* Header shortcuts: Discord and donate, with an instant tooltip */
.site-header .header-link{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--line,#39465a);border-radius:4px;background:#1f2b3b;color:#c0ccda;text-decoration:none;flex:none}
.site-header .header-link:hover,.site-header .header-link:focus-visible{border-color:#9d8a35;background:#2a2f33;color:#f4d65c}
.header-icon{display:block;width:20px;height:20px;background:currentColor}
.header-link::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);right:0;padding:6px 9px;background:#0d1420f7;border:1px solid #827547;border-radius:4px;color:#f0f5fa;font-size:12px;line-height:1.3;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .08s;z-index:50}
.header-link:hover::after,.header-link:focus-visible::after{opacity:1;visibility:visible}

/* Titles use Friz Quadrata (the WoW interface typeface). It is a commercial font, so it is not bundled: it shows for
   visitors who have it installed, and everyone else gets the serif fallback below. Section sub-headings, labels and body
   text keep the normal font. */
@font-face{font-family:"OctoBot Title";font-weight:400;src:local("Friz Quadrata TT"),local("FrizQuadrataTT"),local("Friz Quadrata Std"),local("Friz Quadrata"),local("FRIZQT__");font-display:swap}
:root{--title-font:"OctoBot Title","Friz Quadrata TT","Friz Quadrata","Palatino Linotype","Book Antiqua",Palatino,Georgia,serif}
@font-face{font-family:"OctoBot Title";font-weight:700;src:local("Friz Quadrata TT Bold"),local("FrizQuadrataTT-Bold"),local("Friz Quadrata Bold"),local("FrizQuadrata-Bold"),local("Friz Quadrata TT"),local("FrizQuadrataTT");font-display:swap}
/* Titles are bold. The selector is prefixed so page-level heading rules do not win. */
body h1,body h2,body .site-header h1,body.planner-view .site-header h1,
body .section-title h2,body .panel-head h3,body .world-panel h2,body .world-panel h3,body .look-heading h3{font-family:var(--title-font);font-weight:700}

/* Date range controls: "Jump to present" on top, From/To directly against Apply, all against the right edge,
   and every control on the same 30px height. */
.controls .dates{display:grid;grid-template-columns:auto auto;justify-content:end;align-items:center;gap:6px 8px;margin-top:0}
.controls .dates .date-actions{display:contents}
.controls .dates .jump-to-present{grid-row:1;grid-column:1/-1;justify-self:end}
.controls .dates .date-fields{grid-row:2;grid-column:1;justify-content:flex-end}
.controls .dates .date-actions>button:not(.jump-to-present){grid-row:2;grid-column:2}
.controls .dates .date-actions button,.controls .dates .date-actions .jump-to-present{height:30px;padding:0 12px;font-size:12px;line-height:1}
.controls .dates input[type="date"],.controls .ranges button{height:30px;box-sizing:border-box}

/* The logo links home */
.site-home{display:inline-flex;flex:none;border-radius:6px;line-height:0}
.site-home:hover .site-logo,.site-home:focus-visible .site-logo{filter:brightness(1.18) drop-shadow(0 0 6px #e8c67c66)}
.site-home:focus-visible{outline:2px solid #e8c67c;outline-offset:3px}

/* Discord and donate: icons only, no box */
.site-header .header-link{width:auto;height:auto;padding:4px;border:0;background:transparent;border-radius:4px}
.site-header .header-link:hover,.site-header .header-link:focus-visible{border:0;background:transparent;color:#f4d65c}
.header-icon{width:24px;height:24px}

/* Discord and donate sit close to the viewer count, further to the right */
.site-header .header-status{gap:6px}
.site-header .viewers{min-width:24px}

/* Site-wide tooltip: the same look as the Gear Planner talent tooltip */
.site-tooltip{position:fixed;z-index:2000;width:max-content;max-width:min(370px,calc(100vw - 16px));padding:7px 10px;background:#0d1420f7;border:1px solid #827547;border-radius:4px;box-shadow:0 8px 25px #0009;color:#e1e7ef;font:400 12px/1.45 Arial,Helvetica,sans-serif;white-space:pre-line;pointer-events:none}
.site-tooltip[hidden]{display:none}

/* Discord and Buy Me a Coffee sit a little closer together */
.site-header .header-link+.header-link{margin-left:-5px}

/* Grouped navigation (rendered by site-nav.js): groups are separated by a thin rule matching the header's divider.
   Links size to their text so all six fit one row on laptop widths; below 1000px each group becomes its own row. */
.page-nav{align-items:stretch}
.page-nav .nav-group{display:flex;gap:6px}
/* One tab size on every page: several pages style .page-nav a themselves (taller, wider padding), so pin the box here. */
.page-nav .nav-group a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:38px;min-height:38px;min-width:0;padding:0 13px;font-size:12px;line-height:18px;white-space:nowrap}
.page-nav .nav-group+.nav-group{margin-left:6px;padding-left:12px;border-left:1px solid var(--line)}
@media(max-width:1000px){
 .page-nav{flex-direction:column;gap:8px}
 .page-nav .nav-group a{flex:1;height:auto;padding:8px 10px;white-space:normal;text-align:center}
 .page-nav .nav-group+.nav-group{margin-left:0;padding-left:0;padding-top:8px;border-left:0;border-top:1px solid var(--line)}
}

/* Compact BETA labels for developing sections; tooltip comes from site-tooltips.js. */

/* Small square icon button shared with the Dressing Room's viewer tools (identical to its reset-camera control). */
.tool-btn{width:30px;height:30px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid #39465a;border-radius:4px;background:rgba(24,35,51,.85);color:#c0ccda;cursor:pointer}
.tool-btn:hover,.tool-btn:focus-visible{border-color:#9d8a35;color:#f4d65c;outline:0}
.tool-btn .flip{display:block;font-size:17px;line-height:1;transform:rotate(90deg)}

/* Same header height on every tab: its 74px minimum includes the bottom padding. Pages that lack a global border-box rule (the Auction House) made it 19px taller. */
.site-header,.planner-view .site-header{box-sizing:border-box}

/* Item rarity colours. These are the Gear Planner's, and every page uses them (Dressing Room, Auction House, dropdowns). */
:root{--quality-0:#9d9d9d;--quality-1:#fff;--quality-2:#1eff00;--quality-3:#0070dd;--quality-4:#a335ee;--quality-5:#ff8000;--quality-6:#ff8000}

.page-nav .nav-group a[aria-disabled=true]{background:#26282c;color:#a0a2a6;border-color:#464950;cursor:not-allowed;pointer-events:none}
