/* Copied from ~/sites/football/app/assets/stylesheets/application.css (2026-11-24)
   so the sites look related. Blog-only additions are in blog.css. */
:root {
  --ink: #1d1d1f; --muted: #6b6b70; --line: #ddd; --bg: #fafaf8; --accent: #7a1f2b;
  --warn-bg: #fff4d6; --warn-ink: #6b4d00; --err-bg: #fde8e8; --err-ink: #8a1c1c;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg);
}
body { max-width: 52rem; margin: 0 auto; padding: 1rem 1.25rem 4rem; line-height: 1.5; }
a { color: var(--accent); }
h1, h2 { line-height: 1.2; }
.muted, .table-note { color: var(--muted); font-size: 0.9em; }
.flash { padding: 0.5rem 0.75rem; border-radius: 6px; background: #e8f3ea; }
.flash.alert, .error { background: var(--err-bg); color: var(--err-ink); padding: 0.5rem 0.75rem; border-radius: 6px; }
.warning { background: var(--warn-bg); color: var(--warn-ink); padding: 0.4rem 0.75rem; border-radius: 6px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; padding: 0.5rem 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.toolbar form { display: inline; }
.toolbar .spacer { flex: 1; }
.status { font-size: 0.8em; padding: 0.1rem 0.5rem; border-radius: 999px; background: #eee; }
.status-published { background: #dff0e3; }
.copy-status { color: var(--muted); font-size: 0.9em; }
button, input[type=submit] { font: inherit; padding: 0.35rem 0.8rem; border: 1px solid #bbb; border-radius: 6px; background: white; cursor: pointer; }
button:disabled, input:disabled { opacity: 0.5; cursor: default; }

.panel { margin-bottom: 1.5rem; }
.panel form { display: inline-block; margin-right: 0.5rem; }

table { border-collapse: collapse; width: 100%; font-size: 0.92em; }
th, td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

.issue { background: white; padding: 1.5rem 1.75rem; border: 1px solid var(--line); border-radius: 8px; }
.issue .masthead { color: var(--accent); font-weight: 600; letter-spacing: 0.02em; margin: 0; }
.issue h1 { margin: 0.25rem 0 1rem; }
.issue h2 { margin-top: 1.75rem; color: var(--accent); }
.data-table { margin: 1rem 0; }
.data-table figcaption { font-weight: 600; margin-bottom: 0.25rem; }

.section-edit { margin-bottom: 1.25rem; }
.section-edit textarea { width: 100%; font: inherit; padding: 0.5rem; box-sizing: border-box; }
.regenerate { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.regenerate input[type=text] { flex: 1; min-width: 14rem; font: inherit; padding: 0.35rem; }
.coverage { color: var(--muted); }
pre { white-space: pre-wrap; font-size: 0.8em; background: #f2f2ef; padding: 0.75rem; border-radius: 6px; }

.session-form { max-width: 22rem; margin: 4rem auto; display: grid; gap: 0.6rem; }
.session-form input { font: inherit; padding: 0.45rem; }

.section-edit .guide { margin: 0.1rem 0 0.35rem; }
.section-facts { margin-bottom: 0.4rem; }
.section-facts summary { cursor: pointer; color: var(--accent); font-size: 0.9em; }
.section-facts pre { max-height: 22rem; overflow: auto; }
.issue-footer { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.table-note { margin-top: 0.3rem; }

.numbers td, .numbers th { white-space: nowrap; }
.numbers td:not(:first-child):not(.muted) { font-variant-numeric: tabular-nums; }
.numbers td.sources { white-space: normal; font-size: 0.85em; min-width: 16em; }
.week-links { font-size: 0.92em; }
h3 { margin-top: 1.5rem; }
