/* ============================================
   BINDSTONE - The Bindstone Herald (/bindstone/herald)
   The public weekly war report: the hero with the gate's stone, the realm war, what is happening now,
   the top earners, the guilds and their pages, the honours. Ported from the owner's approved mock;
   the page is its own night (a single dark theme), loaded only by bindstone-herald.html with
   js/bindstone-herald.js. Images: images/gate (the stone, the mound), images/herald (guild emblems).
   ============================================ */
/* Layout: a herald's broadside on the night stone. Nameplate, then the realm war as one banner of three
   colours, then the rolls (earners, guilds), then each guild's own page. Single dark theme: the site is night. */
:root {
  --night: #0a0d12; --night-2: #0d1117; --vellum: #10151c; --vellum-2: #141a23;
  --line: #262c35; --line-soft: #1a2028;
  --gold: #d4af37; --gold-pale: #f1dc9a; --gold-dim: #8a7640; --gold-glow: rgba(212, 175, 55, .07);
  --ink: #e9e2cf; --ink-dim: #a79f8b; --ink-faint: #6f6a5e;
  --alb: #d65f5f; --mid: #6f9fe0; --hib: #7fcf7a;
  --alb-deep: #2b1214; --mid-deep: #111d31; --hib-deep: #12261a;
  --up: #7fcf7a; --down: #d65f5f;
  --f-plate: "Cinzel Decorative", "Cinzel", "Trajan Pro", Georgia, serif;
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "Crimson Pro", "Crimson Text", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font-family: var(--font-body, var(--f-body)); font-size: 17px; line-height: 1.5;
  background: radial-gradient(1200px 520px at 50% -120px, var(--gold-glow), transparent 70%), var(--night);
  padding-inline: 16px; padding-block: 0 72px;
}
.wrap { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.r-alb { color: var(--alb); } .r-mid { color: var(--mid); } .r-hib { color: var(--hib); }

/* ---- masthead ---- */
.sitebar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 16px 0;
  font-family: var(--f-display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }
.sitebar b { color: var(--gold); font-weight: 600; }
.mast { text-align: center; display: grid; gap: 10px; justify-items: center; padding-top: 18px; }
.rule { width: 100%; display: flex; align-items: center; gap: 14px; color: var(--gold-dim); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.rule::after { background: linear-gradient(90deg, var(--gold-dim), transparent); }
.rule span { font-family: var(--f-display); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-dim); text-align: center; }
.rule i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); display: inline-block; }
.plate { margin: 0; font-family: var(--f-plate); font-weight: 900; line-height: .95; letter-spacing: .02em;
  font-size: clamp(38px, 8.4vw, 96px); text-wrap: balance;
  background: linear-gradient(180deg, var(--gold-pale) 8%, var(--gold) 52%, var(--gold-dim) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)); }
.plate small { display: block; font-size: .3em; letter-spacing: .5em; font-family: var(--f-display); font-weight: 600; margin-bottom: .35em; }
.dek { margin: 0; max-width: 60ch; color: var(--ink-dim); font-size: 18px; font-style: italic; text-wrap: balance; }
.dek b { color: var(--ink); font-style: normal; font-weight: 600; }

.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  padding: 10px 0; background: linear-gradient(var(--night) 70%, transparent); }
.nav a { text-decoration: none; font-family: var(--f-display); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-dim); padding: 7px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--night-2); }
.nav a:hover { color: var(--gold-pale); border-color: var(--gold-dim); }

/* ---- section heads ---- */
.sec { display: grid; gap: 16px; scroll-margin-top: 64px; min-width: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); text-wrap: balance; }
h2 .kicker { display: block; font-size: 11px; letter-spacing: .32em; color: var(--ink-faint); font-weight: 600; margin-bottom: 4px; }
.aside { color: var(--ink-dim); font-size: 15px; }
.card { background: var(--vellum); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }

/* ---- the realm war banner ---- */
.war { display: grid; gap: 0; overflow: hidden; }
.band { display: flex; height: 54px; border-bottom: 1px solid var(--line); }
.band > div { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0;
  font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: .12em; transition: flex-grow 1.1s cubic-bezier(.2,.8,.2,1); }
.band .alb { background: linear-gradient(180deg, var(--alb-deep), var(--night-2)); color: var(--alb); box-shadow: inset 0 3px 0 var(--alb); }
.band .mid { background: linear-gradient(180deg, var(--mid-deep), var(--night-2)); color: var(--mid); box-shadow: inset 0 3px 0 var(--mid); }
.band .hib { background: linear-gradient(180deg, var(--hib-deep), var(--night-2)); color: var(--hib); box-shadow: inset 0 3px 0 var(--hib); }
.band > div + div { border-left: 1px solid var(--night); }
.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.std { padding: 20px 22px 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.std + .std { border-left: 1px solid var(--line-soft); }
.std-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.std h3 { margin: 0; font-family: var(--f-display); font-size: 16px; letter-spacing: .24em; text-transform: uppercase; }
.leads { font-family: var(--f-display); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--night);
  background: var(--gold); padding: 3px 8px; border-radius: 2px; font-weight: 700; }
.big { font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 40px); line-height: 1; color: var(--ink); }
.big small { font-size: 13px; letter-spacing: .2em; color: var(--ink-dim); font-weight: 600; margin-left: 6px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 16px; }
.facts dt { color: var(--ink-dim); } .facts dd { margin: 0; text-align: right; }
.best { display: flex; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line-soft); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; width: 100%; }
.best:hover .best-n { color: var(--gold-pale); }
.best-k { font-family: var(--f-display); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); }
.best-n { font-size: 17px; line-height: 1.2; }

.days { padding: 18px 22px 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.days-h { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.days-h b { font-family: var(--f-display); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-dim); font-weight: 600; }
.legend { display: flex; gap: 14px; font-size: 14px; color: var(--ink-dim); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--ink-dim); font-family: var(--f-body); font-size: 13px; }
.chart .grid { stroke: var(--line-soft); }
.chart .today { fill: var(--gold-pale); }

/* ---- earners + guilds of the week ---- */
.pair { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; align-items: start; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-family: var(--f-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 6px 12px;
  border: 1px solid var(--line); background: transparent; color: var(--ink-dim); cursor: pointer; border-radius: 2px; }
.chip:hover { color: var(--ink); border-color: var(--gold-dim); }
.chip[aria-pressed="true"] { color: var(--gold-pale); border-color: var(--gold); background: #17120a; }
.chip.alb[aria-pressed="true"] { color: var(--alb); border-color: var(--alb); background: var(--alb-deep); }
.chip.mid[aria-pressed="true"] { color: var(--mid); border-color: var(--mid); background: var(--mid-deep); }
.chip.hib[aria-pressed="true"] { color: var(--hib); border-color: var(--hib); background: var(--hib-deep); }
.filters { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; }

.roll { list-style: none; margin: 0; padding: 0; }
.roll li { display: grid; grid-template-columns: 2.6em 34px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center;
  padding: 11px 18px; border-bottom: 1px solid var(--line-soft); }
.roll li:last-child { border-bottom: 0; }
.roll .pos { font-family: var(--f-display); font-weight: 700; font-size: 22px; color: var(--ink-faint); text-align: center; }
.roll li:nth-child(-n+3) .pos { color: var(--gold); }
.roll li:first-child { background: linear-gradient(90deg, rgba(212,175,55,.10), transparent 70%); }
.roll li:first-child .who { font-size: 21px; color: var(--gold-pale); }
.roll li:first-child .pos { font-size: 30px; }
.who { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.sub { color: var(--ink-dim); font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.sub button { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.sub button:hover { color: var(--gold-pale); text-decoration-color: var(--gold-dim); }
.score { text-align: right; }
.score .rp { font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.score .rr { font-size: 13.5px; color: var(--ink-dim); }
.tag { font-family: var(--f-display); letter-spacing: .14em; text-transform: uppercase; font-size: 9.5px; padding: 1px 6px;
  border: 1px solid; border-radius: 2px; margin-left: 8px; vertical-align: 3px; white-space: nowrap; }
.tag.player { color: var(--gold-pale); border-color: var(--gold-dim); }
.tag.bot { color: var(--ink-faint); border-color: var(--line); }
.tag.crew { color: var(--hib); border-color: #2f6b52; }
.tag.roster { color: var(--ink-dim); border-color: var(--line); }   /* a guildmate from the roster file, no saved row */
.more { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--line-soft); }
.linkbtn { background: none; border: 0; cursor: pointer; font-family: var(--f-display); font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); padding: 6px 10px; }
.linkbtn:hover { color: var(--gold-pale); }
.empty { padding: 26px 18px; color: var(--ink-dim); text-align: center; font-style: italic; }

.crests { display: grid; gap: 12px; }
.crest { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
  cursor: pointer; text-align: left; width: 100%; background: var(--vellum); border: 1px solid var(--line); border-radius: 6px; }
.crest:hover { border-color: var(--gold-dim); background: var(--vellum-2); }
.crest .place { font-family: var(--f-display); font-size: 11px; letter-spacing: .24em; color: var(--ink-faint); text-transform: uppercase; }
.crest .gname { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .06em; line-height: 1.2; overflow-wrap: anywhere; }
.crest .rp { font-family: var(--f-display); font-weight: 700; font-size: 18px; text-align: right; }
.crest .of { font-size: 13.5px; color: var(--ink-dim); text-align: right; }
.shield { display: block; overflow: visible; }

/* ---- standings table ---- */
.search { flex: 1 1 220px; max-width: 320px; min-width: 0; padding: 8px 12px; background: var(--night-2); border: 1px solid var(--line);
  border-radius: 2px; color: var(--ink); font: inherit; font-size: 16px; }
.search::placeholder { color: var(--ink-faint); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { text-align: left; font-family: var(--f-display); letter-spacing: .16em; text-transform: uppercase; font-size: 10.5px; font-weight: 600;
  color: var(--gold-dim); padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th button { all: unset; cursor: pointer; }
th button:hover, th button[aria-sort] { color: var(--gold-pale); }
th button[aria-sort="descending"]::after { content: " \25BE"; }
th button[aria-sort="ascending"]::after { content: " \25B4"; }
th.r, td.r { text-align: right; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr.g { cursor: pointer; }
tbody tr.g:hover td { background: var(--vellum-2); }
.gcell { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.gcell b { font-weight: 600; }
.mv { font-size: 13px; white-space: nowrap; }
.mv.up { color: var(--up); } .mv.down { color: var(--down); } .mv.same { color: var(--ink-faint); }
.pos-cell { font-family: var(--f-display); font-weight: 700; color: var(--ink-dim); }
.bar { position: relative; height: 6px; background: var(--line-soft); border-radius: 3px; min-width: 60px; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }

/* ---- honours ---- */
.honours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.step { text-align: center; padding: 16px 10px 14px; border: 1px solid var(--line); border-radius: 6px 6px 0 0; background: var(--vellum); display: grid; gap: 4px; min-width: 0; }
.step.first { padding-top: 26px; border-color: var(--gold-dim); background: linear-gradient(180deg, rgba(212,175,55,.12), var(--vellum)); }
.step .medal { font-family: var(--f-display); font-weight: 900; font-size: 26px; color: var(--gold); }
.step.first .medal { font-size: 34px; }
.step .n { font-size: 18px; overflow-wrap: anywhere; }
.step .g { font-size: 13.5px; color: var(--ink-dim); overflow-wrap: anywhere; }
.step .rp { font-family: var(--f-display); font-weight: 700; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line-soft); }
.feed li:last-child { border-bottom: 0; }
.feed time { font-family: var(--f-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); padding-top: 4px; }
.feed .rr { color: var(--gold-pale); font-weight: 600; }
.lastguild { margin-top: 12px; }
.gl { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-decoration: underline;
  text-decoration-color: var(--line); text-underline-offset: 3px; }
.gl:hover { color: var(--gold-pale); text-decoration-color: var(--gold-dim); }

/* ---- guild page ---- */
dialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--gold-dim); border-radius: 8px;
  background: var(--vellum); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(4, 6, 9, .78); backdrop-filter: blur(2px); }
.gp { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100dvh - 50px); }
.gp-head { position: relative; padding: 24px 24px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center;
  border-bottom: 1px solid var(--line); background: radial-gradient(500px 200px at 0 0, var(--gold-glow), transparent); }
.gp-head h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 3.4vw, 32px); letter-spacing: .06em; color: var(--gold-pale); line-height: 1.1; text-wrap: balance; }
.gp-meta { color: var(--ink-dim); font-size: 15.5px; margin-top: 4px; }
.gp-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 12px; }
.gp-stats div { display: grid; }
.gp-stats b { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.gp-stats span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); font-family: var(--f-display); }
.close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--night-2);
  border-radius: 3px; cursor: pointer; font-size: 18px; color: var(--ink-dim); }
.close:hover { color: var(--gold-pale); border-color: var(--gold-dim); }
.gp-body { overflow: auto; padding: 16px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.gp-body > * { flex-shrink: 0; }
.gp-week { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.roster td:first-child { color: var(--ink-faint); font-family: var(--f-display); font-size: 13px; width: 3em; }
.roster tr.zero td { color: var(--ink-faint); }
.check { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-dim); font-size: 15px; cursor: pointer; }
.check input { accent-color: var(--gold); width: 16px; height: 16px; }

/* ---- hero: the gate's stone beside the nameplate ---- */
.hero { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px 56px; align-items: center; padding-block: 26px 6px; }
.hero-text { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.hero-text .rule { justify-content: flex-start; }
.hero-text .rule::before { display: none; }
.plate { text-align: left; }
.cry { margin: 2px 0 0; font-family: var(--f-body); font-style: italic; font-weight: 600; font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1; color: var(--gold-pale); text-wrap: balance; text-shadow: 0 0 28px rgba(127, 227, 180, .18); }
.dek { text-wrap: pretty; }
.cta-row { display: flex; gap: 10px 12px; flex-wrap: wrap; margin-top: 4px; }
.cta { display: inline-block; padding: 13px 22px; border: 1px solid var(--gold); background: #17120a; color: var(--gold-pale); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; cursor: pointer;
  box-shadow: 0 0 22px rgba(212, 175, 55, .18); }
.cta:hover { background: #221a0c; box-shadow: 0 0 30px rgba(212, 175, 55, .3); }
.cta.alt { border-color: var(--gold-dim); background: transparent; color: var(--gold); box-shadow: none; }
.asof { margin: 0; font-family: var(--f-display); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); }

/* The stone in its ring of mushrooms: the gate's own two images, at the home page call-out's proportions.
   The stone is drawn a touch larger than the mound's painted stone, its base fading into the moss; the mound
   shows through a soft oval. No overflow clip, so the glow never turns into a rectangle. */
.scene { position: relative; width: 250px; max-width: 100%; aspect-ratio: 240 / 330; margin-top: 10px; }
.scene .aura { position: absolute; left: 50%; top: 34%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 227, 180, .16), rgba(127, 227, 180, .05) 40%, transparent 68%); animation: breathe 7s ease-in-out infinite; }
.scene .mound { position: absolute; left: -33.5%; top: 54.2%; width: 170.2%; height: auto; max-width: none;
  -webkit-mask-image: radial-gradient(ellipse 40% 32% at 50% 60%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 40% 32% at 50% 60%, #000 45%, transparent 100%); }
.scene .stone-glow { position: absolute; left: 27.3%; top: 0; width: 48.6%; filter: drop-shadow(0 0 18px rgba(127, 227, 180, .45)) drop-shadow(0 10px 12px rgba(0, 0, 0, .6)); }
.scene .stone { display: block; width: 100%; height: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 89%, transparent 91.5%); mask-image: linear-gradient(to bottom, #000 89%, transparent 91.5%); }
.scene .pool { position: absolute; left: 51%; top: 80%; width: 70%; height: 14%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(160, 250, 205, .30), rgba(127, 227, 180, .12) 45%, transparent 72%); filter: blur(7px); }
@keyframes breathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.96); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }

@media (max-width: 720px) {
  .hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .hero .scene { width: 190px; }
  .hero-text { justify-items: center; }
  .hero-text .rule { justify-content: center; }
  .hero-text .rule::before { display: block; }
  .plate { text-align: center; }
  .cta-row { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .scene .aura { animation: none; } }


/* ---- happening now ---- */
.now-head { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 16px; }
.now-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hib); box-shadow: 0 0 10px var(--hib); display: inline-block; margin-right: 8px; vertical-align: 1px; }
.now-head b { color: var(--gold-pale); font-weight: 600; }
.now-head .lock { color: var(--ink-dim); font-size: 14.5px; }
.field li { grid-template-columns: 5em 22px minmax(0, 1fr); align-items: start; }
.field time { font-family: var(--f-body); font-size: 14px; letter-spacing: 0; text-transform: none; padding-top: 2px; font-variant-numeric: tabular-nums; }
.field .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-dim); }
.field b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .pair, .honours { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .standards { grid-template-columns: minmax(0, 1fr); }
  .std + .std { border-left: 0; border-top: 1px solid var(--line-soft); }
  .band > div { font-size: 12px; letter-spacing: .06em; }
  .roll li { grid-template-columns: 2em 28px minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; }
  .gp-head { grid-template-columns: minmax(0, 1fr); padding-right: 56px; }
  .gp-body { padding: 14px 14px 18px; }
  .hide-s { display: none; }
  .chart text { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .band > div { transition: none; } }

/* ---- the page's states (loading, asleep, no report, a failed read) ---- */
[hidden] { display: none !important; }
.sitebar a { text-decoration: none; }
.sitebar a:hover b, .sitebar a:hover { color: var(--gold-pale); }
.notice { margin: 0; padding: 12px 16px; border: 1px solid var(--gold-dim); border-radius: 6px; background: var(--vellum);
  color: var(--ink-dim); font-style: italic; }
.now-head .dot.asleep { background: var(--ink-faint); box-shadow: none; }
.now-head .dot.reading { background: var(--gold-dim); box-shadow: none; }
.field li.plain { grid-template-columns: 5em 22px minmax(0, 1fr); }
.honours .feed li { grid-template-columns: 22px minmax(0, 1fr); }
.honours .feed .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-dim); }
.best.none { cursor: default; }
.crest.static { cursor: default; }
.crest.static:hover { border-color: var(--line); background: var(--vellum); }
.empty-card { padding: 26px 18px; color: var(--ink-dim); text-align: center; font-style: italic; background: var(--vellum);
  border: 1px solid var(--line); border-radius: 6px; margin: 0; }
.on { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hib); box-shadow: 0 0 6px var(--hib);
  margin-left: 8px; vertical-align: 2px; }
.lastnote { margin: 0; }
.ago { white-space: nowrap; }
