/* The Classic look (docs/classic-look.md): the game's web site of 2000 in the realm's colours,
   over site.css. Black ground. The realm's tools in a line at the top, then the 2000 site's rail
   turned over, the mod's logo centred in a fire's glow, and the sections as a line of pale gold
   links split by gold rules, the page you are on greyed as that site greyed it. Page titles stand
   in its gothic banner; boxes are its guide pages' gold-braided panel under their stone title bar;
   buttons are their stone side buttons, letters cut dark into the stone, the open one lit. The
   page closes on Back to top, the realm's line, Blizzard's part in it, and the rail.

   One grid: twelve 78px columns with 24px gutters, 1200px across. A box is 3, 4, 5, 6, 8 or 12
   columns wide, the boxes of a row are as tall as the row, and a list has a fixed number of slots
   (rows of 32px), so the lists side by side end level whatever they hold.

   The 2000 site's pieces come from /art/classic (classic-art.ts); without them a box keeps a
   plain border and the page still reads. */

.site { background: #000; }
.site a { color: #e9dfa6; text-decoration-color: rgba(233, 223, 166, .45); }
.site a:hover { color: #fff6cf; }

/* ------------------------------------------------------------------------------- the top */
.top { text-align: center; }
.top .tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 16px; padding: 10px 28px 4px; margin: 0; }
.top .search { min-width: 220px; border: 3px solid transparent; border-image: url(/art/panel/field.png) 3 fill / 3px stretch; box-shadow: none; background: #000; }
.rail { height: 66px; background: url(/art/classic/rail-l.png) left top no-repeat, url(/art/classic/rail-r.png) right top no-repeat,
  url(/art/classic/rail-c.png) center top no-repeat, url(/art/classic/rail-m.png) left top repeat-x; }
.rail.top { transform: scaleY(-1); }
.top .brand { display: inline-grid; justify-items: center; gap: 4px; margin-top: 2px; padding: 4px 60px 8px; text-decoration: none;
  background: radial-gradient(ellipse 55% 70% at 50% 46%, rgba(196, 72, 18, .34), transparent 72%); }
.top .brand img { display: block; width: 410px; max-width: 100%; height: auto; filter: drop-shadow(0 2px 3px #000); }
.top .brand b { font-size: 34px; }
.top .brand small { font-size: 13px; letter-spacing: .3em; }
.top .nav { display: flex; justify-content: center; flex-wrap: wrap; row-gap: 6px; gap: 6px 0; overflow: visible; padding: 6px 20px 0; }
.top .nav a { padding: 0 11px; font-size: 13.5px; letter-spacing: .05em; line-height: 1.1; color: #e9dfa6; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(233, 223, 166, .45); }
.top .nav a + a { border-left: 1px solid #8a7a4a; }
.top .nav a.on { color: #a8a8a8; text-decoration: none; }
.top .nav a.on::after { display: none; }
.top .subnav { justify-content: center; flex-wrap: wrap; padding-top: 8px; }

/* -------------------------------------------------------------------------------- the grid */
main.page { width: 1200px; max-width: calc(100% - 32px); margin: 26px auto 24px; padding: 0; }
main.page > * + * { margin-top: 24px; }
/* The grid takes a row of boxes and columns (span3 to span12) only. A row of fields, labels and
   buttons (a form's line on the admin tabs, the ladder's search, the account page) is site.css's
   flex row: as a grid it put each word of a label in a 78 px column and stretched the inputs to
   the tallest of them. */
.row:has(> .box, > .pane, > [class*="span"]) { display: grid; grid-template-columns: repeat(12, minmax(0, 78px)); column-gap: 24px; align-items: stretch; justify-content: center; }
/* A checkbox's label wraps when the line is short of room (a phone), rather than pushing the page
   wider than the screen. */
.check { white-space: normal; max-width: 100%; }
.span3 { grid-column: span 3; } .span4 { grid-column: span 4; } .span5 { grid-column: span 5; }
.span6 { grid-column: span 6; } .span8 { grid-column: span 8; } .span12 { grid-column: span 12; }
.center { text-align: center; }

/* ----------------------------------------------- boxes: the gold braid and the stone title bar */
.box, .pane, .blk:not(.lead), .wide:not(.lead), .blk.lead > .gut:not(:empty) {
  position: relative; min-width: 0; background: #000;
  border: 11px solid #3a3122; border-image: url(/art/classic/panel.png) 80 fill / 40px / 0 stretch; box-shadow: none; padding: 6px 14px 18px; }
.box { display: flex; flex-direction: column; }
.box > .in { flex: 1; min-width: 0; }
.box.totals { padding: 4px 6px 8px; }
.box > .bar, .pane > header > h2:first-child, .pane > header > h3:first-child, .pane > h2:first-child, .pane > h3:first-child, .blk:not(.lead) .body > h2:first-child {
  display: flex; align-items: center; justify-content: center; height: 32px; margin: 0 -6px 12px;
  border: solid transparent; border-width: 0 44px; border-image: url(/art/classic/titlebar.png) 0 44 fill / 0 44px round; background: #2a2620; }
.pane > header > h2:first-child, .pane > header > h3:first-child { flex: 0 0 calc(100% + 12px); margin-bottom: 2px; }
.pane > header { row-gap: 8px; }
.box > .bar h2, .pane > header > h2:first-child, .pane > header > h3:first-child, .pane > h2:first-child, .pane > h3:first-child, .blk:not(.lead) .body > h2:first-child {
  font-size: 14px; line-height: 32px; letter-spacing: .11em; color: #ddd4bd; text-shadow: 0 1px 1px #000, 0 0 4px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box > .bar h2 { margin: 0; }
.box > .bar h2 a { color: inherit; text-decoration: none; }
.box > .bar h2 a:hover { color: #fff3cf; }
.box.span3 { padding-inline: 10px; }

/* ------------------------------------------------------------------ titles in the gothic banner */
.titleban, .lead h1 {
  display: grid; place-items: center; width: min(750px, 100%); height: 100px; margin: 0 auto; padding: 4px 120px 0;
  background: url(/art/classic/banner.png) center / 750px 100px no-repeat; text-align: center; }
.titleban h1, .lead h1 {
  font-size: 24px; line-height: 1.15; letter-spacing: .18em; color: #ddd5c0; text-shadow: 0 0 8px #000, 0 2px 2px #000; }
.titleban h1 { margin: 0; }
.lead { text-align: center; }
.lead p, .lead .lede, .lead .notice { margin-inline: auto; }
.lead .btns, .lead .filters { justify-content: center; }
.blk.lead { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; padding: 0; }
.blk.lead .body { display: grid; justify-items: center; }
.blk.lead > .gut:not(:empty) { width: min(100%, 560px); text-align: left; }
/* a lead that is a title and a count side by side (the ladder's) stacks, centred, the title first.
   One full-width column: site.css spreads .head2 with space-between, which left a grid's one track
   at its content's width on the left, and the banner cut to that width lost its ends. */
.lead.head2 { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; gap: 8px; }
.lead.head2 > div { width: 100%; }

/* -------------------------------------------------------------- buttons: the stone side buttons */
/* Every button is the character page's stone side button: letters cut dark into the stone, a
   touch brighter under the pointer, the open or chosen one lit orange. That takes in the rows of
   links that work as buttons (filters, tabs) and the pages' own toggles. site.css loads before
   this sheet, so its selectors are matched as they are; compendium.css and planner.css load
   after it, so theirs are matched with .site in front. */
.btn, .btn.ghost, .btn.danger, a.btn, a.btn.ghost, .tabs a, .filters a, .plug-show button,
.site .cmp .chip, .site .cmp .fx-mt-tabs a, .site .pl .pl-tabs button {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; min-height: 0; padding: 0 18px; line-height: 1;
  border: 4px solid #5a5146; border-image: url(/art/classic/button.png) 4 fill / 4px stretch; background: #6d665c; box-shadow: none;
  font-family: var(--display); font-size: 13.5px; letter-spacing: .14em; color: #0a0806; -webkit-text-stroke: .5px #000;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 -1px 0 rgba(0, 0, 0, .3); text-decoration: none; white-space: nowrap; cursor: pointer; }
.tabs a, .filters a, .plug-show button, .site .cmp .chip, .site .cmp .fx-mt-tabs a, .site .pl .pl-tabs button { padding: 0 14px; font-size: 13px; letter-spacing: .1em; }
.btn:hover, .btn.ghost:hover, .btn.danger:hover, a.btn:hover, .tabs a:hover, .filters a:hover, .plug-show button:hover,
.site .cmp .chip:hover, .site .cmp .fx-mt-tabs a:hover, .site .pl .pl-tabs button:hover { color: #000; background: #6d665c; filter: brightness(1.15); }
.tabs a.on, .filters a.on, .plug-show button[aria-pressed="true"], .site .cmp .chip[aria-pressed="true"], .site .cmp .chip[aria-current="page"],
.site .cmp .fx-mt-tabs a[aria-selected="true"], .site .pl .pl-tabs button.on {
  color: #f3a640; background: #6d665c; -webkit-text-stroke: 0; text-shadow: 0 0 5px rgba(243, 130, 30, .7), 0 1px 1px #000; filter: none; }
.site .cmp .chip .n { color: #2a2620; }
.site .cmp .chip[aria-pressed="true"] .n, .site .cmp .chip[aria-current="page"] .n { color: #f3a640; }
/* a button that deletes, or a filter that shows warnings, keeps its colour cut into the stone, so
   only the chosen one is ever lit */
.btn.danger { color: #5c0d04; -webkit-text-stroke: .5px #2e0501; }
.btn.danger:hover { color: #5c0d04; }
.plug-show button.warn:not([aria-pressed="true"]) { color: #573300; -webkit-text-stroke: .5px #2a1800; }
.btn.small { height: 24px; padding: 0 10px; font-size: 12px; letter-spacing: .1em; }
.btn:disabled, .btn:disabled:hover { opacity: .5; cursor: default; filter: none; }
.btn:focus-visible, .tabs a:focus-visible, .filters a:focus-visible, .site .cmp .chip:focus-visible { outline: 1px solid #e9dfa6; outline-offset: 2px; }
.top .tools .btn { height: 28px; padding: 0 12px; font-size: 13px; }
.btns.center { justify-content: center; }
@media (max-width: 760px) { .tabs a.ph { display: inline-flex; } }

/* ------------------------------------------------------------------ lists: fixed 32px slots */
table.list { width: 100%; min-width: 0; border-collapse: collapse; font-size: 15px; }
table.list th { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .05em; color: var(--ink3); text-align: left; padding: 6px; border-bottom: 1px solid #4b3f2a; white-space: nowrap; }
table.list th.r { text-align: right; }
table.list td { height: 32px; padding: 0 6px; border-bottom: 1px solid #211c14; white-space: nowrap; vertical-align: middle; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list th:first-child, table.list td:first-child { padding-left: 2px; }
table.list th:last-child, table.list td:last-child { padding-right: 2px; }
table.list td:nth-child(2) { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
table.list td:has(.al-it) { overflow: visible; }
table.list td .al-it { display: inline-block; max-width: 100%; white-space: nowrap; }
table.list.kv td:first-child { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); }
table.list.kv td:nth-child(2) { width: auto; max-width: none; overflow: visible; }
table.list.sheet td:first-child { width: 100%; color: var(--ink2); }
table.list.sheet td:nth-child(2) { width: auto; max-width: none; overflow: visible; }
table.list.sheet tbody + thead th { padding-top: 14px; }
table.list.ladder td:nth-child(2) { width: auto; max-width: none; }
table.list.ladder td:nth-child(3) { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
table.list td.rank { width: 26px; font-family: var(--display); font-size: 13px; color: var(--gold); }
table.list td.v { font-family: var(--display); font-size: 15px; color: var(--ink); }
table.list td.sub, table.list td .sub { font-family: var(--display); font-size: 13px; color: var(--ink3); }
table.list td.nm a { color: var(--ink); text-decoration: none; }
table.list td.nm a:hover { color: #fff3cf; text-decoration: underline; }
table.list tbody tr:not(.slot):hover td { background: rgba(199, 179, 119, .07); }
table.list td.xpc { width: 110px; }
table.list td.xpc .xp { width: 100px; }
table.list .tag { font-size: 13px; }
table.list img.skill { width: 20px; height: 20px; margin-right: 6px; vertical-align: -5px; }
.span3 table.list, .span3 table.list td.v { font-size: 14px; }
.span3 table.list td { padding: 0 4px; }
.span3 table.list td.rank { width: 20px; }

.box .feed { list-style: none; margin: 0; padding: 0; }
.box .feed li { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0; border-bottom: 1px solid #211c14; white-space: nowrap; font-size: 15px; }
.box .feed li:last-child { border-bottom: 0; }
.box .feed .when { flex: none; width: 34px; font-family: var(--display); font-size: 13px; color: var(--ink3); }
.box .feed .art { flex: none; width: 30px; height: 30px; display: grid; place-items: center; }
.box .feed .art img { max-width: 28px; max-height: 30px; }
.box .feed .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.box .feed .what b { font-weight: 400; color: var(--ink); }
.box .steps { margin: 0 0 6px; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.box .steps li + li { margin-top: 6px; }
.box .bul { margin: 4px 0 8px; padding-left: 18px; font-size: 15px; line-height: 1.45; }
.box .bul li + li { margin-top: 6px; }
.box .sub { margin: 0; font-size: 13px; color: var(--ink3); }

/* --------------------------------------------------- the overview: the eclipse, the latest patch */
.hero { position: relative; display: flex; flex-direction: column; }
.hero .still { flex: 1; display: flex; border: 13px solid #2b241a; border-image: url(/art/classic/still-frame.png) 13 / 13px stretch; }
.hero .eclipse { flex: 1; min-height: 280px; background: #05070f url(/art/brand/eclipse.png) 50% 6% / cover; }
.hero-patch { position: absolute; left: 34px; top: 30px; display: grid; gap: 2px; text-decoration: none; text-shadow: 0 1px 2px #000, 0 0 8px #000; }
.hero-patch small { font-family: var(--display); font-size: 13px; letter-spacing: .14em; color: var(--ink2); }
.hero-patch b { font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--goldhi); }
.hero-patch span { font-size: 15px; color: #e9dfa6; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(233, 223, 166, .5); }
.hero-patch:hover b { color: #fff3cf; }
.hero .hero-btns { position: absolute; left: 32px; bottom: 30px; display: flex; gap: 12px; padding: 0; }

/* ------------------------------------------------------- the totals and the record: one line */
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.strip.record { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.strip .cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 6px 8px; text-align: center; border-left: 1px solid #2a241b; }
.strip .cell:nth-child(7n + 1) { border-left: 0; }
.strip.record .cell { border-left: 1px solid #2a241b; }
.strip.record .cell:nth-child(5n + 1) { border-left: 0; }
.strip.record .cell:nth-child(n + 6) { border-top: 1px solid #2a241b; }
.strip .cell b { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--goldhi); white-space: nowrap; }
.strip .cell b a { color: inherit; }
.strip .cell span { font-family: var(--display); font-size: 13px; letter-spacing: .08em; color: var(--ink3); }

/* ------------------------------------------------------------------------- the character */
.char { display: block; }
.char > * + * { margin-top: 24px; }
.char .heading { display: flex; justify-content: center; align-items: flex-end; gap: 3px; font-size: 46px; line-height: 1; color: var(--gold); }
.char .heading + .lede { margin-top: 12px; }
.char .lede { text-align: center; margin-inline: auto; max-width: none; font-size: 17px; }
.char .lede + .btns { margin-top: 14px; }
.dropcap { display: grid; place-items: center; width: 54px; height: 70px; padding-top: 6px; font-family: var(--display); font-size: 58px; line-height: 1;
  background: #000 url(/art/classic/lace.png) center / 56px auto; box-shadow: inset 0 0 0 1px #8a7444, 0 0 0 2px #000, 0 0 0 3px #4b3f2a;
  color: #e8cf8a; text-shadow: 0 1px 0 #fff3c4, 0 2px 2px #000, 0 0 8px rgba(0, 0, 0, .9); }
.gearcol { display: flex; gap: 8px; min-width: 0; }
.gearcol .armory-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; container-type: normal; }
.tabs.side { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 9px; margin: 9px 0 0; flex: none; }
.tabs.side a { width: 96px; padding: 0; font-size: 13.5px; letter-spacing: .08em; }
.tabs.side a.on { color: #f3a640; -webkit-text-stroke: 0; text-shadow: 0 0 5px rgba(243, 130, 30, .7), 0 1px 1px #000; filter: none; }
.c-view { --s: 1.12px !important; }
.c-view .lp { display: none !important; }
.c-view[data-tab="stash"] .lp.stash, .c-view[data-tab="cube"] .lp.cube, .c-view[data-tab="charms"] .lp.charms, .c-view[data-tab="merc"] .lp.merc { display: block !important; }
.c-view:not([data-tab="inventory"]) .panel.inventory { display: none; }
.c-view .ststrip .seg.r { display: none; }
.swapbtn { margin: 6px 0 0 10px; font-size: 14px; color: #e9dfa6; text-decoration: underline; text-underline-offset: 3px; }
.pcol { display: flex; }
.pframe { flex: 1; display: grid; place-items: end center; padding: 0 0 6px; min-height: 460px;
  border: solid #3a3122; border-width: 38px 38px 40px; border-image: url(/art/classic/portrait-frame.png) 38 38 40 38 / 38px 38px 40px stretch;
  background: radial-gradient(ellipse 70% 30% at 50% 96%, rgba(170, 52, 18, .38), transparent 75%), url(/art/classic/lace.png) 50% 0 / 112px auto repeat, #000;
  background-clip: padding-box; background-origin: padding-box; }
.pframe .portrait { --s: 4.4 !important; }

/* ------------------------------------------------------------------------------ the foot */
.foot { margin-top: auto; padding-top: 8px; text-align: center; background: none; }
.foot .totop { font-family: var(--display); font-size: 14px; letter-spacing: .06em; }
.foot p { margin: 12px 0 0; font-size: 14px; color: #e9dfa6; }
.foot p.legal { margin-top: 4px; font-size: 13px; color: var(--ink3); }
.foot .rail { margin-top: 10px; }

@media (max-width: 1260px) {
  .row:has(> .box, > .pane, > [class*="span"]) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .row:has(> .box, > .pane, > [class*="span"]) { row-gap: 24px; }
  .row:has(> .box, > .pane, > [class*="span"]) > * { grid-column: 1 / -1; }
  .titleban, .lead h1 { background-size: 100% 100%; padding-inline: 18%; }
  .top .brand img { width: 300px; }
  .top .tools { justify-content: center; }
  .strip, .strip.record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip .cell, .strip.record .cell { border-left: 0; border-top: 1px solid #2a241b; }
  .gearcol { flex-direction: column; }
  .tabs.side { flex-direction: row; flex-wrap: wrap; }
}
