/* Granite Yard route board: chalky charcoal wall, loud hold colours. */
:root {
  color-scheme: dark;
  --rst-bg: #15151b;
  --rst-surface: #22222b;
  --rst-surface-2: #2c2c37;
  --rst-text: #f6f3ec;
  --rst-text-muted: #c4c0cd;
  --rst-text-faint: #aaa6b5;
  --rst-line: #3b3b48;
  --rst-line-strong: #8f8b9c;
  --rst-accent: #ffd60a;
  --rst-accent-strong: #ffe34d;
  --rst-accent-soft: #3a3412;
  --rst-on-accent: #15151b;
  --rst-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rst-radius: 14px;
  --rst-radius-sm: 10px;
  --rst-depth-ambient: rgba(0, 0, 0, 0.45);
  --rst-depth-contact: rgba(0, 0, 0, 0.6);

  --gy-pink: #ff4d9a;
  --gy-display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Impact, "Arial Black", sans-serif;
  --hold-yellow: #ffd60a;
  --hold-green: #2ee66b;
  --hold-pink: #ff4d9a;
  --hold-black: #0a0a0c;
}

body {
  background-color: var(--rst-bg);
  /* Climbing-wall bolt-hole grid. */
  background-image:
    radial-gradient(circle, #2b2b35 0 2.5px, transparent 3px),
    radial-gradient(circle, #1d1d24 0 2.5px, transparent 3px);
  background-size: 56px 56px, 56px 56px;
  background-position: 0 0, 28px 28px;
  margin: 0;
  overflow-x: hidden;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, .grade, .rank, .total strong, .stats strong, .kicker {
  font-family: var(--gy-display);
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: 0.01em;
}

/* Header band */
.band {
  background: var(--rst-accent);
  color: #15151b;
  background-image: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(0, 0, 0, 0.05) 22px 44px);
  border-bottom: 6px solid var(--gy-pink);
}
.band-inner {
  box-sizing: border-box;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo { width: 4.5rem; height: 4.5rem; flex: none; overflow: visible; }
.logo-a { fill: var(--gy-pink); }
.logo-b { fill: #15151b; }
.logo-c { fill: #1f9e4a; }
.kicker { margin: 0; text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.18em; }
.band h1 {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 4.25rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.tagline { margin: 0.3rem 0 0; font-weight: 600; }
.total {
  margin: 0 0 0 auto;
  background: #15151b;
  color: var(--rst-accent);
  border-radius: var(--rst-radius);
  padding: 0.5rem 1rem;
  text-align: center;
  line-height: 1.1;
  transform: rotate(-2deg);
}
.total strong { display: block; font-size: 2.2rem; }
.total span { font-size: 0.85rem; color: var(--rst-text); }

/* Messages */
.notice, .alert {
  border-radius: var(--rst-radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}
.notice { background: var(--hold-green); color: #0d1f12; }
.alert { background: var(--gy-pink); color: #1a0710; }

/* Layout */
.layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) {
  .layout { grid-template-columns: 20rem minmax(0, 1fr); align-items: start; }
  .log { position: sticky; top: 1rem; }
}

h2 { text-transform: uppercase; font-size: 1.8rem; margin: 0 0 0.5rem; line-height: 1; }

/* Log form */
.log {
  background: var(--rst-surface);
  border-radius: var(--rst-radius);
  padding: 1.25rem;
  box-shadow: 0 10px 30px var(--rst-depth-ambient);
  outline: 2px solid var(--rst-line);
}
.log h2 { color: var(--rst-accent); }
.log [rst-field-label] { color: var(--rst-text); font-weight: 700; font-size: 0.95rem; }
.log [rst-input] { min-height: 2.75rem; background: var(--rst-surface-2); font-size: 1rem; }
.log select[rst-input] option { background: var(--rst-surface-2); color: var(--rst-text); }

.flash-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  margin: 0.75rem 0 1rem;
  cursor: pointer;
  font-weight: 600;
}
.flash-check input { position: absolute; opacity: 0; width: 1.6rem; height: 1.6rem; margin: 0; }
.flash-box {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  border: 2px solid var(--rst-line-strong);
  background: var(--rst-surface-2);
  display: grid;
  place-items: center;
}
.flash-check input:checked + .flash-box { background: var(--rst-accent); border-color: var(--rst-accent); }
.flash-check input:checked + .flash-box::after { content: "⚡"; font-size: 1rem; line-height: 1; }
.flash-check input:focus-visible + .flash-box { outline: 3px solid var(--gy-pink); outline-offset: 2px; }

.send-btn {
  width: 100%;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--gy-display);
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--rst-radius-sm);
  box-shadow: 0 5px 0 #b38f00;
}
.send-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #b38f00; }

/* Board */
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 0.75rem; }
.board-head p { margin: 0; color: var(--rst-text-muted); }
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.card {
  --hold: var(--hold-yellow);
  --on-hold: #15151b;
  position: relative;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--hold) 26%, transparent), transparent 60%),
    var(--rst-surface);
  border-radius: var(--rst-radius);
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 10px 24px var(--rst-depth-ambient), 0 1px 0 var(--rst-depth-contact);
  outline: 2px solid var(--rst-line);
  overflow: hidden;
}
.card.hold-yellow { --hold: var(--hold-yellow); }
.card.hold-green { --hold: var(--hold-green); }
.card.hold-pink { --hold: var(--hold-pink); }
.card.hold-black { --hold: var(--hold-black); --on-hold: #f6f3ec; }
.card.hold-black { background: radial-gradient(120% 70% at 100% 0%, rgba(255, 255, 255, 0.07), transparent 60%), var(--rst-surface); }
.card.top { outline: 3px solid var(--rst-accent); }

.card-head { display: flex; align-items: center; gap: 0.6rem; }
.rank { font-size: 1.1rem; color: var(--rst-text-muted); min-width: 1.8rem; }
.card-hold { width: 2.4rem; height: 2.4rem; flex: none; fill: var(--hold); }
.hold-black .card-hold { stroke: var(--rst-line-strong); stroke-width: 3; }
.card-title { flex: 1; min-width: 0; }
.card h3 { margin: 0; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.hold-label { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--rst-text-muted); display: flex; align-items: center; gap: 0.35rem; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--hold); }
.hold-black .dot { box-shadow: 0 0 0 1.5px var(--rst-line-strong); }
.grade {
  flex: none;
  background: var(--hold);
  color: var(--on-hold);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  border-radius: var(--rst-radius-sm);
  transform: rotate(3deg);
}
.hold-black .grade { box-shadow: 0 0 0 2px var(--rst-line-strong); }

.badge-top {
  display: inline-block;
  margin: 0.75rem 0 0;
  background: var(--gy-pink);
  color: #1a0710;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.stats { margin: 0.75rem 0 0.5rem; color: var(--rst-text-muted); }
.stats strong { color: var(--rst-text); font-size: 1.5rem; }
.sep { margin: 0 0.5rem; color: var(--rst-line-strong); }

.climbers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.climbers li {
  background: var(--rst-surface-2);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  max-width: 100%;
  box-sizing: border-box;
}
.climbers li.flashed { background: var(--rst-accent-soft); color: var(--rst-accent-strong); font-weight: 700; }
.empty { margin: 0; color: var(--rst-text-muted); font-style: italic; }

.foot { text-align: center; color: var(--rst-text-faint); font-size: 0.85rem; padding: 1rem 1rem 2rem; }
.foot p { margin: 0; }

input:is([type=date], [type=time], [type=datetime-local]) { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; display: block; min-height: 2.75rem; }

@media (max-width: 30rem) {
  .total { margin-left: 0; }
  .logo { width: 3.5rem; height: 3.5rem; }
}

/* Example mode: one-line note at the top of the showcase copy. */
.example-note { display: block; width: 100%; box-sizing: border-box; margin: 0; padding: 0.5rem 1rem; text-align: center; font-family: var(--rst-font, system-ui, sans-serif); font-size: 0.875rem; line-height: 1.4; font-weight: 400; letter-spacing: normal; text-transform: none; background: #3a3412; color: #f6f3ec; }
.example-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
