/* Boxing Today — "The Wire" (BRIEF.md §7). Light by default; dark follows the system unless the
   reader picked a theme (data-theme on <html>, from the theme cookie). */

:root {
  --bg: #fbfbf8;
  --surface: #ffffff;
  --border: #e4e2dc;
  --border-soft: #efede8;
  --border-strong: #d6d3cc;
  --ink: #16161a;
  --muted: #5c5c66;
  --body: #3a3a42;
  --accent: #c8102e;
  --scoop: #a50e26;
  --link: #2b4c9b;
  --hover: #a50e26;
  --strip-bg: #16161a;
  --strip-ink: #f4f2ee;
  --strip-muted: #b5b3ae;
  --card-dark-bg: #16161a;
  --card-dark-ink: #f4f2ee;
  --card-dark-muted: #cfcdc8;
  --button-ink: #ffffff;
  --sun: none;
  --moon: block;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #111214;
    --surface: #1a1b1e;
    --border: #2a2b30;
    --border-soft: #26272b;
    --border-strong: #3a3b40;
    --ink: #edebe6;
    --muted: #a3a3ab;
    --body: #c9c7c2;
    --accent: #e5484d;
    --scoop: #ff6b78;
    --link: #8ab4f8;
    --hover: #ff8a95;
    --strip-bg: #0a0a0b;
    --strip-ink: #f4f2ee;
    --strip-muted: #b5b3ae;
    --card-dark-bg: #1a1b1e;
    --card-dark-ink: #edebe6;
    --card-dark-muted: #c9c7c2;
    --button-ink: #111214;
    --sun: block;
    --moon: none;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #111214;
  --surface: #1a1b1e;
  --border: #2a2b30;
  --border-soft: #26272b;
  --border-strong: #3a3b40;
  --ink: #edebe6;
  --muted: #a3a3ab;
  --body: #c9c7c2;
  --accent: #e5484d;
  --scoop: #ff6b78;
  --link: #8ab4f8;
  --hover: #ff8a95;
  --strip-bg: #0a0a0b;
  --strip-ink: #f4f2ee;
  --strip-muted: #b5b3ae;
  --card-dark-bg: #1a1b1e;
  --card-dark-ink: #edebe6;
  --card-dark-muted: #c9c7c2;
  --button-ink: #111214;
  --sun: block;
  --moon: none;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    'IBM Plex Sans',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
  line-height: 1.4;
}

a {
  color: var(--ink);
  text-decoration: none;
}
a:hover {
  color: var(--hover);
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}
.narrow {
  max-width: 820px;
  padding-top: 28px;
  padding-bottom: 64px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav a {
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current='page'] {
  border-bottom-color: var(--accent);
}
/* The date and the theme switch stay together at the right of the logo's row; on narrower
   screens the sections move to a row of their own below, so the switch never wraps alone. */
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stamp {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 960px) {
  .header-row {
    row-gap: 0;
  }
  .header-tools {
    order: 2;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
  }
}
@media (max-width: 560px) {
  .stamp {
    display: none;
  }
}
.theme-toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}
.theme-toggle:hover {
  text-decoration: none;
}
.icon-sun {
  display: var(--sun);
}
.icon-moon {
  display: var(--moon);
}

/* Coming-up strip */
.strip {
  background: var(--strip-bg);
  color: var(--strip-ink);
  border-bottom: 1px solid var(--border);
}
.strip-row {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  /* Swipeable on a phone, but no scroll bar: it looked broken on desktop. */
  scrollbar-width: none;
}
.strip-row::-webkit-scrollbar {
  display: none;
}
@media (max-width: 960px) {
  /* A fade at the right edge says there is more to swipe to. */
  .strip-row {
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }
}
.strip-label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.strip-fight {
  color: var(--strip-ink);
  white-space: nowrap;
  font-size: 13px;
  padding: 6px 0;
}
.strip-fight time {
  color: var(--strip-muted);
}
.strip-fight:hover {
  color: var(--strip-ink);
}

/* Layout */
.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 28px;
  padding-bottom: 64px;
}
.river {
  flex: 999 1 560px;
  min-width: 0;
}
.sidebar {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding-bottom: 12px;
}
.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}
.empty {
  color: var(--muted);
  font-size: 14px;
}

/* Stories */
.story {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.story-lead {
  gap: 8px;
  padding: 20px 0 24px;
  border-top: 2px solid var(--ink);
}
.meta {
  font-size: 13px;
  color: var(--muted);
}
.source {
  font-weight: 600;
  color: var(--ink);
}
.tag {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--body);
}
.headline {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
}
.story-lead .headline {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
  max-width: 70ch;
}
.story-lead .summary {
  font-size: 16px;
}
.scoop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--scoop);
}
.scoop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.more {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.more-label {
  font-weight: 600;
  color: var(--ink);
}
.more a,
.more span:not(.more-label) {
  margin-left: 10px;
}
.more a,
.river-link a {
  color: var(--link);
}
/* Other stories about the same bout, folded under the top one (decision 16). */
.related {
  margin-top: 4px;
  padding-left: 12px;
  border-left: 2px solid var(--border-strong);
  font-size: 14px;
  line-height: 1.45;
}
.related-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.related ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.related-source {
  font-size: 12px;
  color: var(--muted);
}
.river-link {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
}

/* Sidebar cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
}
.card .hint {
  margin: 4px 0 10px;
}
.fight {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border-soft);
}
.fight-date {
  width: 40px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fight-day,
.fight-month {
  font-size: 11px;
  color: var(--muted);
}
.fight-num {
  font-size: 20px;
  font-weight: 500;
}
.fight-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fight-name {
  font-weight: 600;
  font-size: 15px;
}
.fight-when {
  font-size: 12px;
  color: var(--body);
}
.leaders {
  margin: 0;
  padding: 0;
  list-style: none;
}
.leaders li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
}
.rank {
  width: 18px;
  color: var(--muted);
}
.leader-name {
  flex: 1;
  font-weight: 500;
}

/* Newsletter */
.newsletter {
  background: var(--card-dark-bg);
  color: var(--card-dark-ink);
  border-top: 3px solid var(--accent);
}
.newsletter h2 {
  margin: 0 0 6px;
  font-size: 18px;
}
.newsletter p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--card-dark-muted);
}
.newsletter label {
  display: block;
  font-size: 12px;
  color: var(--card-dark-muted);
  margin-bottom: 6px;
}
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.form-row input {
  flex: 1 1 160px;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.form-row button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--button-ink);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.newsletter .thanks {
  color: var(--card-dark-ink);
  font-weight: 600;
}
.hp {
  position: absolute;
  left: -9999px;
}

/* River page */
.river-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.river-list li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.river-list time {
  flex: none;
  width: 72px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}
.river-list .source {
  margin-right: 8px;
}
.river-list .tag {
  margin: 0 8px 0 0;
}

/* About */
.prose {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}
.prose h1,
.prose h2 {
  color: var(--ink);
  line-height: 1.25;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}
.footer-row nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

/* The editor (/admin, BRIEF.md §6): cards and big buttons, made for a phone. */
.admin-main {
  max-width: 860px;
  padding-top: 20px;
  padding-bottom: 64px;
}
.a-notice {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.a-done {
  border-color: var(--link);
}
.a-error {
  border-color: var(--accent);
  color: var(--scoop);
  font-weight: 600;
}
.a-local {
  color: var(--muted);
}
.a-story {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.a-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.a-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-ink);
  font-size: 11px;
  font-weight: 600;
}
.a-badge.a-quiet {
  background: transparent;
  color: var(--body);
  border: 1px solid var(--border-strong);
}
.a-headline {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}
.a-summary {
  margin: 0;
  font-size: 14px;
  color: var(--body);
}
.a-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.a-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.a-btn {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.a-btn:hover {
  border-color: var(--ink);
}
.a-btn.a-danger {
  color: var(--scoop);
}
.a-more {
  border-top: 1px solid var(--border-soft);
  padding-top: 6px;
  font-size: 14px;
}
.a-more summary {
  cursor: pointer;
  min-height: 32px;
  display: flex;
  align-items: center;
  color: var(--link);
  font-weight: 600;
}
.a-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}
.a-form label,
.a-trust label {
  font-size: 12px;
  color: var(--muted);
}
.a-form input,
.a-form textarea,
.a-form select,
.a-trust input {
  font: inherit;
  font-size: 15px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  max-width: 100%;
}
.a-form .a-btn {
  align-self: flex-start;
}
.a-items,
.a-hidden,
.a-sources {
  margin: 0;
  padding: 0;
  list-style: none;
}
.a-items li,
.a-hidden li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border-soft);
}
.a-hidden-head {
  margin-top: 28px;
}
.a-hidden li {
  font-size: 14px;
}
.a-sources li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.a-source-main {
  flex: 1 1 320px;
  min-width: 0;
}
.a-sources .a-off {
  opacity: 0.6;
}
.a-error-line {
  font-size: 12px;
  color: var(--scoop);
  margin-top: 2px;
}
.a-trust input {
  width: 72px;
  padding: 8px;
}
.a-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 12px;
}
.a-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.a-check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.a-add {
  margin: 8px 0 0;
}
.a-email {
  white-space: pre-wrap;
  font-size: 13px;
  background: var(--bg);
  padding: 10px;
  border-radius: 6px;
}
.results {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.results li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
}
.river-day + .river-day {
  margin-top: 24px;
}
.river-day-label {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.river-nav {
  margin: 20px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.river-nav a {
  color: var(--link);
}

/* Full schedule page (decision 25) and the link to it under the home page calendar. */
.card-more {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  font-weight: 600;
}
.schedule-credit {
  margin: 0 0 20px;
}
.schedule-day + .schedule-day {
  margin-top: 28px;
}
.schedule-show {
  padding: 10px 0 12px;
  border-top: 1px solid var(--border);
}
.schedule-where {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.schedule-bouts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.schedule-bouts li {
  padding: 3px 0;
  font-size: 15px;
  line-height: 1.4;
}
.schedule-bouts li:not(.main-event) {
  font-size: 14px;
  color: var(--body);
}
.schedule-bouts .tag {
  vertical-align: 1px;
}
