/* The Candle Press: plain black and white, small Helvetica, thin lines; a dark side for the night. The
   only colours on the page are the candles themselves. The booking runs as four numbered steps: draw,
   length, date and time, book. */
:root {
  --bg: #ffffff;
  --card: #ffffff; /* what the charts are drawn on */
  --fg: #000000;
  --muted: #666666;
  --faint: #c9c9c9;
  --line: #e4e4e4;
  --hush: #f4f4f4; /* the faintest grey, for a flash */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000;
  --card: #000000;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --faint: #3a3a3a;
  --line: #222222;
  --hush: #161616;
  color-scheme: dark;
}
/* The same dark values for visitors whose device is set to dark and who have not chosen a side. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --card: #000000;
    --fg: #ffffff;
    --muted: #9a9a9a;
    --faint: #3a3a3a;
    --line: #222222;
    --hush: #161616;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 12px/1.6 Helvetica, Arial, sans-serif;
  letter-spacing: 0.36px;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }

/* ---- the bar along the top: the name, and the wallet ---------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
/* the name and the buttons line up with the page below them */
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 762px; height: 56px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.brand { color: var(--fg); text-decoration: none; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 20px; }
.top-link { color: var(--muted); text-decoration: none; }
.top-link:hover { color: var(--fg); }
.icon-button {
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--fg);
  font-size: 14px; line-height: 1;
}
.icon-button:hover { border-color: var(--fg); }

/* ---- the page ------------------------------------------------------------------------------ */
main {
  max-width: 762px;
  margin: 0 auto 120px;
  padding: 52px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
h1, h2, .label { margin: 0; font-weight: 400; text-transform: uppercase; }
h1 { font-size: 14px; letter-spacing: 1.4px; }
h2 { font-size: 12px; letter-spacing: 1.4px; }
.sub { margin: 8px 0 0; color: var(--muted); }
/* Under the headline: a few short links, as chips. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.chips .chip {
  display: inline-flex; align-items: center; padding: 6px 10px; border: 1px solid var(--line);
  color: var(--fg); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
}
.chips a.chip:hover { border-color: var(--fg); }
.chips .chip[hidden] { display: none; }
.label { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); margin: 30px 0 14px; }
section { margin-top: 44px; }
section.hero { margin-top: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 28px; }

.note, .status, .row-links { color: var(--muted); margin: 10px 0 0; }
/* Above the headline: preview, or test network. */
.notice { margin: 0 0 12px; color: var(--muted); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
/* Money of the visitor's own waiting to be taken back: plain words, set apart. */
.notice.yours { padding: 12px 14px; border: 1px solid var(--fg); border-radius: 10px; color: var(--fg); font-size: 14px; letter-spacing: 0; text-transform: none; }
.notice.yours p { margin: 0; }
.notice.yours p + p { margin-top: 8px; }
.founders::before { content: "★"; margin-right: 6px; }
.status { min-height: 1.6em; }
.status.good, .status.bad { color: var(--fg); }
.status a, .note a { color: inherit; }
.muted { color: var(--muted); }

/* ---- links and buttons --------------------------------------------------------------------- */
.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  text-decoration: none;
}
.link:hover, .link.strong { color: var(--fg); }
.link:disabled, .link:disabled:hover { color: var(--faint); }
.link[aria-pressed="true"] { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--fg);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  padding: 9px 16px;
  letter-spacing: 1.2px;
  text-decoration: none;
  white-space: nowrap;
}
.button.solid, .button.go { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.button.outline:hover { background: var(--fg); color: var(--bg); }
.button.small { padding: 7px 12px; font-size: 11px; text-transform: uppercase; }
.button.wide { margin-top: 26px; padding: 12px 26px; text-transform: uppercase; }
.button:disabled { background: var(--faint); border-color: var(--faint); color: var(--bg); }

/* ---- what to print: a picture of your own, or a Presshead, side by side -------------------- */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 36px; }
.kind {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--fg);
}
.kind:hover { border-color: var(--fg); }
.kind[aria-pressed="true"] { border: 2px solid var(--fg); padding: 13px; }
.kind-art { flex: none; display: block; width: 92px; height: 92px; border: 1px solid var(--line); }
.kind-art.round { border: 0; border-radius: 50%; }
.kind-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kind-name { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; }
.kind[aria-pressed="true"] .kind-name::before { content: "● "; }
.kind-what { color: var(--muted); }
.kind-price { font-size: 11px; letter-spacing: 1px; }
/* A Presshead takes three steps instead of four. */
.stepper.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* In the line: when it prints, the next free time, in a heavy frame, large. */
.line { margin-top: 14px; }
.line-box { padding: 16px 18px 12px; border: 2px solid var(--fg); }
.line-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: 13px; }
.line-when { margin: 10px 0 2px; font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.3px; color: var(--fg); }
.line .note { margin-top: 8px; }
#line-other { margin-top: 12px; }
@media (max-width: 560px) {
  .line-box { padding: 14px 14px 10px; }
  .line-when { font-size: 22px; }
}
/* A Presshead's step 1: a few from the series, cropped round as avatars are. */
.head-samples { display: flex; justify-content: center; gap: 12px; }
/* One row, each big enough to see its candles (six; four on a phone). */
.head-samples canvas { display: block; flex: 0 1 112px; min-width: 0; aspect-ratio: 1; border-radius: 50%; }
.head-caption { margin-top: 8px; font-size: 11px; }
.head-facts b { color: var(--fg); font-weight: 400; }
/* Its step 3: the one being printed, still hidden. */
.head-checkout { grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
.head-checkout #book-head { width: 150px; height: 150px; border: 0; border-radius: 50%; }
.head-checkout p { margin: 0; align-self: center; }

/* ---- the steps ----------------------------------------------------------------------------- */
/* Along the top, under the bar: the four steps, a line over each filling in as they are done. */
.stepper {
  position: sticky; top: 56px; z-index: 5;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 10px;
  margin: 40px 0 0; padding: 0; list-style: none;
  background: var(--bg);
}
.stepper li { border-top: 2px solid var(--line); }
.stepper li.done, .stepper li.current { border-top-color: var(--fg); }
.stepper a {
  display: flex; align-items: center; gap: 10px; padding: 10px 0 12px;
  color: var(--faint); text-decoration: none; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
}
.stepper li.done a { color: var(--muted); }
.stepper li.current a { color: var(--fg); }
.stepper a:hover { color: var(--fg); }
.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border: 1px solid currentColor; font-size: 11px; letter-spacing: 0;
}
.stepper li.current .num { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.stepper li.done .num, .step-card.done .step-head .num { border-color: var(--fg); color: var(--fg); font-size: 0; }
.stepper li.done .num::after, .step-card.done .step-head .num::after { content: "✓"; font-size: 12px; }
/* done and lit: the tick shows white on the black box */
.stepper li.done.current .num { color: var(--bg); }

/* Each step: its number, what to do, and a way on to the next. */
.card { margin-top: 56px; }
.step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.step-head .num { width: 26px; height: 26px; font-size: 12px; color: var(--muted); }
.step-head h2 { line-height: 26px; }
/* step 4: what is being bought, the print small and the whole of it as it runs on the live chart */
.checkout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: end; margin: 0 0 26px; }
.checkout[hidden] { display: none; }
.checkout figure { margin: 0; min-width: 0; }
.checkout canvas { display: block; width: 100%; border: 1px solid var(--line); }
#book-print { height: 150px; }
#book-chart { height: 112px; }
.checkout figcaption { margin-top: 6px; color: var(--muted); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
/* A heading with a tag by it: "Place your bid  AUCTION". */
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.step-card.current .step-head .num { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.hint { margin: 0; color: var(--muted); }
.step-next { margin: 22px 0 0; text-align: right; }

/* ---- 1: the picture ------------------------------------------------------------------------ */
.drop {
  border-bottom: 1px solid var(--fg);
  padding: 4px 0 12px;
  font-size: 24px; line-height: 1.3; letter-spacing: 0;
  color: var(--faint);
}
.drop .link { font-size: inherit; }
.drop.over { color: var(--fg); }
.row-links .link { margin-left: 8px; }
.row-links .sep { margin: 0 6px; color: var(--faint); }
.inline {
  width: 190px; max-width: 46vw; margin-left: 6px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; padding: 2px 0; outline: none;
}
.inline:focus { border-bottom-color: var(--fg); }
.row-links .link.glyph { margin-left: 4px; }
.symbols .link.glyph { margin-left: 2px; padding: 0 5px; font-size: 16px; text-decoration: none; }

/* the chart page's choices above its chart */
.views { display: flex; flex-wrap: wrap; gap: 8px 34px; color: var(--muted); }
.views:empty, .views:not(:has(> :not([hidden]))) { display: none; }
/* "In candles", and the undo button right above the drawing: big enough for a thumb */
.canvas-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 0; }
.canvas-head .label { margin: 0 0 2px; }
.button.undo { gap: 7px; min-height: 36px; padding: 7px 14px; }
.button.undo:disabled { background: none; border-color: var(--line); color: var(--faint); }
.chart-wrap {
  position: relative; margin-top: 14px;
  border: 1px solid var(--line);
  touch-action: none;
}
.chart-wrap canvas { display: block; width: 100%; height: 320px; cursor: crosshair; touch-action: none; }
/* on the chart: one long line of candles to scroll along, to look at rather than draw on */
.chart-wrap.on-chart { overflow-x: auto; touch-action: pan-x pan-y; scrollbar-width: thin; }
.chart-wrap.on-chart canvas { cursor: default; touch-action: pan-x pan-y; }
.chart-empty {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px; text-align: center;
  color: var(--faint); pointer-events: none;
}
.tools { display: flex; flex-wrap: wrap; gap: 8px 34px; margin-top: 12px; color: var(--muted); }
.tool-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.slider { display: inline-flex; align-items: center; gap: 8px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 120px; height: 1px; background: var(--fg); outline-offset: 8px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 9px; height: 9px; border-radius: 0; background: var(--fg); border: 0;
}
input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 0; background: var(--fg); border: 0; }

/* how it runs on the live chart: one line to scroll along, to look at */
.strip-wrap { overflow-x: auto; border: 1px solid var(--line); scrollbar-width: thin; }
.strip-wrap canvas { display: block; height: 140px; }
.strip-block.flash { animation: flash 1.6s ease-out; }

/* the print's shape: three buttons side by side, the one chosen filled in, and a line on what it does */
.shapes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.segmented { display: inline-flex; flex-wrap: wrap; }
.seg {
  margin-left: -1px; padding: 7px 12px;
  border: 1px solid var(--fg); border-radius: 0; background: var(--bg); color: var(--fg);
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase;
}
.seg:first-child { margin-left: 0; }
.seg[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.seg[hidden] + .seg { margin-left: 0; }
.shape-note { margin: 0 0 16px; }

/* the print, square, and its traits */
.print-wrap { display: flex; gap: 24px; align-items: flex-start; }
.print-side { min-width: 0; }
.print-side .note { margin: 0; }
#print { flex: none; width: 260px; height: 260px; border: 1px solid var(--line); }
/* one long line: the print as wide as the page, as tall as its shape needs */
.print-wrap.long { flex-direction: column; }
.print-wrap.long #print { width: 100%; aspect-ratio: auto; }
.traits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.traits:empty { display: none; }
.traits .muted { margin-right: 4px; }
.chip { padding: 1px 8px; border: 1px solid var(--line); }
.chip.rare { border-color: var(--fg); }
.chip.rare::before { content: "★ "; }

/* ---- 2: the length ------------------------------------------------------------------------- */
.length { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; border-bottom: 1px solid var(--fg); padding: 2px 0 10px; }
.length .big { font-size: 24px; letter-spacing: 0; min-width: 110px; text-align: center; }
.hours { display: inline-flex; align-items: baseline; justify-content: center; gap: 8px; }
.hours input, .press-hours input, .press-money input {
  width: 2.4em; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--fg); font: inherit; text-align: center; outline: none;
  -moz-appearance: textfield; appearance: textfield;
}
.press-money input { width: 4.5em; text-align: left; }
.hours input:focus, .press-hours input:focus, .press-money input:focus { border-bottom-color: var(--fg); }
.hours input::-webkit-inner-spin-button, .hours input::-webkit-outer-spin-button,
.press-hours input::-webkit-inner-spin-button, .press-hours input::-webkit-outer-spin-button,
.press-money input::-webkit-inner-spin-button, .press-money input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#length-note { min-height: 3.2em; }
.step {
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--fg); border-radius: 0; background: var(--bg); color: var(--fg);
  font-size: 18px; line-height: 1;
}
.step:disabled { border-color: var(--faint); color: var(--faint); }

/* ---- 3: the date and time ------------------------------------------------------------------ */
.zones { margin: 0 0 14px; }
.zones .sep { margin: 0 6px; color: var(--faint); }
/* the booking picked, folded into one line, with a plain way to change it */
.picked {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 12px 14px; border: 1px solid var(--fg); font-size: 15px; letter-spacing: 0;
}
#picked-text::before { content: "✓ "; }
/* the picture chosen, the same way: one line, with the print small */
.picture-done { justify-content: flex-start; }
.picture-done .thumb { flex: none; width: 56px; height: 56px; border: 1px solid var(--line); }
#picture-done-text { flex: 1; min-width: 12em; }
#picture-done-text::before { content: "✓ "; }
/* a month at a time, Monday first, chosen with the arrows or by name, up to three years ahead */
.cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.cal-head .to-special { margin-left: auto; }
.cal-head select {
  min-width: 11em; padding: 4px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--fg); font-size: 15px; letter-spacing: 0;
}
.cal-head select:focus { border-bottom-color: var(--fg); }
.icon-button:disabled { color: var(--faint); border-color: var(--line); }
.legend { display: none; }
/* a month at a time, Monday first */
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.weekdays span { padding: 0 8px 6px; color: var(--muted); font-size: 11px; }
.days { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.day {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-width: 0; min-height: 56px; padding: 8px 9px; overflow: hidden;
  background: none; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--fg); text-align: left; white-space: nowrap;
}
.day .date { font-size: 15px; }
.day .free { font-size: 11px; color: var(--fg); }
.day.partial .free, .day.days .free, .day.held .free, .day.genesis .free { color: var(--muted); }
.day.auction .free { font-weight: 700; }
.day.later, .day.kept { color: var(--muted); }
.day.later .free, .day.kept .free { color: var(--faint); }
.day.outside .date { color: var(--faint); } /* a day of the month before or after */
.day.full, .day.past, .day.off { color: var(--faint); }
.day.full .free { color: var(--faint); }
.day.off { pointer-events: none; }
.day:not(.off):hover .date { text-decoration: underline; text-underline-offset: 4px; }
.day[aria-selected="true"] { box-shadow: inset 0 0 0 2px var(--fg); }
.day.chosen { background: var(--fg); color: var(--bg); }
.day.chosen .free { color: var(--bg); }
/* a day with event hours being auctioned: a star in its corner */
.day.has-auction::after { content: "★"; position: absolute; top: 7px; right: 8px; font-size: 11px; line-height: 1; }
/* A special date nobody bid on, let go: an ordinary day again, its star hollow. */
.day.named::after { content: "☆"; position: absolute; top: 7px; right: 8px; font-size: 11px; line-height: 1; }
/* read aloud, not shown */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.other { margin: 8px 0 0; }
.hours-panel { margin-top: 16px; }
.hours-head { margin: 0 0 10px; }
.slots {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 14px;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.slot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 6px;
  min-width: 0; padding: 9px 10px; text-align: left;
  background: none; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--fg);
}
.slot .what { color: var(--muted); font-size: 11px; }
.slot:disabled { color: var(--faint); }
.slot:disabled .what { color: var(--faint); }
.slot.auction .what, .slot.won .what { color: var(--fg); font-weight: 700; }
.slot.days:not(:disabled) .what { color: var(--fg); }
.slot:not(:disabled):hover .time { text-decoration: underline; text-underline-offset: 4px; }
.slot.chosen, .slot.chosen:disabled { background: var(--fg); color: var(--bg); }
.slot.chosen .what { color: var(--bg); }
/* an hour picked that cannot be booked: crossed out */
.slot.clash, .slot.clash:disabled { background: var(--bg); color: var(--fg); box-shadow: inset 0 0 0 2px var(--fg); }
.slot.clash .time { text-decoration: line-through; }
.slot.clash .what { color: var(--fg); }
/* a free hour the booking won't fit from (an hour after it is taken): not to be picked, but not sold */
.slot.noroom:disabled { color: var(--muted); }
.slot.noroom .what { color: var(--fg); font-style: italic; }

/* a day beyond two weeks picked for a shorter booking: why there are no hours, and the way on */
.days-only {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-top: 14px; padding: 12px 14px; border: 1px solid var(--fg);
}
.days-only p { margin: 0; flex: 1 1 320px; }

/* the press: hours held for itself, and auctions of them */
.press { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.press .note:first-child { margin-top: 0; }
.press-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-top: 12px; }
.press-row input[type="date"], .press-row input[type="datetime-local"], .press-row select {
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--fg);
  font: inherit; padding: 2px 0;
}
.press-hours, .press-money { color: var(--muted); }

/* ---- 4: booking ---------------------------------------------------------------------------- */
.field { display: flex; align-items: baseline; border-bottom: 1px solid var(--fg); }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 4px 0 10px; }
.field .big { flex: 1; font-size: 24px; letter-spacing: 0; padding: 4px 0 10px; }
.field .suffix { font-size: 24px; letter-spacing: 0; color: var(--muted); }
.field.small { margin-top: 22px; border-bottom-color: var(--line); }
.field.small:focus-within { border-bottom-color: var(--fg); }
.field.small input { padding: 4px 0 8px; }
/* a special date's bid, in place of the price */
.bid-field input { font-size: 24px; letter-spacing: 0; padding: 4px 6px 10px; -moz-appearance: textfield; appearance: textfield; }
.bid-field input::-webkit-inner-spin-button, .bid-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
::placeholder { color: var(--faint); opacity: 1; }

/* ---- special dates: auctions, at the top of the page, in a heavy frame ---------------------- */
section.special { margin-top: 32px; padding: 18px 20px 6px; border: 2px solid var(--fg); }
.special-head { display: flex; align-items: center; gap: 10px; }
.tag { padding: 1px 7px; background: var(--fg); color: var(--bg); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.special > .note { margin-top: 6px; }
/* Tiles: three across, two on a narrow screen, one on a phone held upright. */
.auctions { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.auctions:empty { display: none; }
.auctions > .auction {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 190px;
  padding: 14px; border: 1px solid var(--line); background: var(--card);
}
.auctions > .auction[hidden] { display: none; }
.auctions > .auction:hover { border-color: var(--fg); }
.auctions > .auction.flash { animation: flash 1.6s ease-out; }
/* The last row while there are more to load: fading out, under the button that loads them. */
.auctions > .auction.fade {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 72%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 72%); pointer-events: none;
}
.auctions > .auction.fade .act { visibility: hidden; }
.special .more { position: relative; margin: 14px 0 14px; text-align: center; }
.auctions.clipped + .more { margin-top: -64px; }
.special .rules { margin-top: 6px; }
.special .rules summary { cursor: pointer; list-style: none; color: var(--fg); }
.special .rules summary::-webkit-details-marker { display: none; }
.special .rules summary::after { content: " +"; color: var(--muted); }
.special .rules[open] summary::after { content: " −"; }
@keyframes flash { from { background: var(--hush); } to { background: var(--card); } }
.auctions > .auction .when .name { display: block; font-size: 16px; letter-spacing: 0; }
.auctions > .auction .when .name::before { content: "★ "; }
.auctions > .auction .when .sep { display: none; }
.auctions > .auction .when .date { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.auctions > .auction .state { color: var(--muted); }
.auctions > .auction .state > div + div { margin-top: 3px; }
.auctions > .auction .state b { color: var(--fg); font-weight: 700; }
.auctions > .auction .state .short { color: var(--fg); }
.auctions > .auction .addr, .auctions > .auction .left { white-space: nowrap; }
.auctions > .auction .note { margin: 0; }
.auctions > .auction .note.good, .auctions > .auction .note.bad { color: var(--fg); }
.auctions > .auction .act { margin-top: auto; }
.auctions > .auction .act .button { width: 100%; }
/* the special date chosen to bid on, and the way to cancel it, under its button */
.auctions > .auction.chosen { border: 2px solid var(--fg); padding: 13px; }
.auctions > .auction .act .cancel { display: block; margin: 9px auto 0; font-size: 13px; }

/* ---- the live chart, how it works, the foot of the page ------------------------------------ */
.live-frame { height: 440px; margin-top: 12px; border: 1px solid var(--line); }
.live-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.how-card summary {
  display: inline-block; cursor: pointer; list-style: none;
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
}
.how-card summary::-webkit-details-marker { display: none; }
.how-card summary::after { content: " +"; color: var(--muted); }
.how-card[open] summary::after { content: " −"; }
.how { margin: 16px 0 0; padding: 0; list-style: none; color: var(--muted); }
.how li { padding: 5px 0 5px 16px; position: relative; }
.how li::before { content: "·"; position: absolute; left: 2px; color: var(--fg); }
.footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); }
.addresses { line-height: 2; }
.addresses a { word-break: break-all; }
.addresses b { font-weight: 400; color: var(--fg); margin-right: 6px; }

/* chart.html inside the booking page: the chart alone */
:root.embedded, :root.embedded body { background: var(--card); }
body.embedded main { margin: 0; padding: 8px 12px 0; max-width: none; }
body.embedded main > header, body.embedded #prints-section, body.embedded main > hr, body.embedded .back { display: none; }

/* the chart page: the prints so far */
.prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 14px; }
.prints figure { margin: 0; }
.prints img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #0f1218; }
.prints figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; }

@media (max-width: 720px) {
  .top-link { display: none; }
  .auctions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  main { padding-top: 32px; }
  section.special { padding: 14px 14px 4px; }
  /* Two tiles across, kept short: the long parts of their lines are left out. */
  .auctions { gap: 8px; }
  .auctions > .auction { min-height: 0; padding: 10px; gap: 8px; }
  .auctions > .auction.chosen { padding: 9px; }
  .auctions > .auction .when .name { font-size: 14px; }
  .auctions > .auction .when .date { font-size: 9px; letter-spacing: 1px; }
  .auctions > .auction .long, .auctions > .auction .starts { display: none; }
  .auctions > .auction .act .button { padding: 7px 6px; }
  .checkout { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
  #book-print { height: 104px; }
  .kinds { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .kind-art { width: 72px; height: 72px; }
  .head-samples { gap: 10px; }
  .head-samples canvas:nth-child(n + 5) { display: none; }
  .head-checkout #book-head { width: 104px; height: 104px; }
  #book-chart { height: 80px; }
  .topbar { gap: 10px; }
  .top-nav { gap: 10px; }
  .stepper { gap: 0 6px; }
  .stepper a { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 0 10px; font-size: 10px; letter-spacing: 0.8px; }
  .card { margin-top: 44px; }
  .drop { font-size: 19px; }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .day { min-height: 50px; padding: 6px 5px; }
  .day .date { font-size: 13px; }
  .day .free { font-size: 9px; letter-spacing: 0; }
  .day .free .word { display: none; } /* "18 available": the number alone */
  .legend { display: block; }
  .day.has-auction::after, .day.named::after { top: 5px; right: 5px; }
  .print-wrap { flex-direction: column; }
  #print { width: 100%; height: auto; aspect-ratio: 1; }
  .chart-wrap canvas { height: 240px; }
}
