/* InsideLife advertiser and staff pages (docs/M3C-BILLBOARDS.md). Plain CSS, no build. */
:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #fcfcfb;
  --surface-2: #efeee9;
  --line: #dcdad2;
  --text: #0b0b0b;
  --text-2: #52514e;
  --text-3: #75736d;
  --accent: #0f7a52;
  --accent-ink: #ffffff;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --ok: #0f7a52;
  --ok-bg: #e3f4ec;
  --info: #1f5fa8;
  --info-bg: #e5eefa;
  --muted-bg: #ecebe6;
  --test-bg: #fff1c2;
  --test-ink: #5c3d00;
  --water: #cfe1ee;
  --land: #f1efe6;
  --district: #b9b6aa;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --bar: #2a78d6;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121211;
    --surface: #1a1a19;
    --surface-2: #232321;
    --line: #34332f;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --text-3: #9a998f;
    --accent: #3fb489;
    --accent-ink: #0b0b0b;
    --danger: #f08b80;
    --danger-bg: #3a1a17;
    --warn: #f0c060;
    --warn-bg: #3a2d10;
    --ok: #6fd3a8;
    --ok-bg: #133126;
    --info: #8fb8ee;
    --info-bg: #17263a;
    --muted-bg: #2a2a27;
    --test-bg: #4a3a0c;
    --test-ink: #ffe6a0;
    --water: #1d3242;
    --land: #20201e;
    --district: #4a4943;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --bar: #3987e5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121211;
  --surface: #1a1a19;
  --surface-2: #232321;
  --line: #34332f;
  --text: #f0efec;
  --text-2: #c3c2b7;
  --text-3: #9a998f;
  --accent: #3fb489;
  --accent-ink: #0b0b0b;
  --danger: #f08b80;
  --danger-bg: #3a1a17;
  --warn: #f0c060;
  --warn-bg: #3a2d10;
  --ok: #6fd3a8;
  --ok-bg: #133126;
  --info: #8fb8ee;
  --info-bg: #17263a;
  --muted-bg: #2a2a27;
  --test-bg: #4a3a0c;
  --test-ink: #ffe6a0;
  --water: #1d3242;
  --land: #20201e;
  --district: #4a4943;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --bar: #3987e5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--info); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: 20px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 8px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; letter-spacing: 0.2px; }
.brand span { color: var(--text-2); font-weight: 500; }
.spacer { flex: 1; }
.who { font-size: 13px; color: var(--text-2); }

.testband {
  background: var(--test-bg); color: var(--test-ink);
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}

main { max-width: 1120px; margin: 0 auto; padding: 16px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; font: inherit;
}
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab .count { margin-left: 6px; font-size: 12px; opacity: 0.8; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.card.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }

label { display: block; font-size: 13px; color: var(--text-2); margin: 10px 0 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="tel"],
input[type="url"], input[type="number"], select, textarea {
  width: 100%; padding: 9px 10px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--info); outline-offset: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }
.btn.link { background: none; border: none; color: var(--info); padding: 4px 0; font-weight: 500; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.msg { padding: 10px 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.msg.error { background: var(--danger-bg); color: var(--danger); }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.info { background: var(--info-bg); color: var(--info); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--muted-bg); color: var(--text-2); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--danger-bg); color: var(--danger); }
.badge.info { background: var(--info-bg); color: var(--info); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile .label { font-size: 12px; color: var(--text-2); }
.tile .value { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--text-2); font-weight: 600; }
td.num, th.num { text-align: right; }
.tablewrap { overflow-x: auto; }

.artwork {
  width: 100%; max-width: 420px; aspect-ratio: 2 / 1; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); display: block;
}
.artwork.small { max-width: 180px; }

/* Bars: one series, so no legend; values in text ink. */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 90px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.bars .b { flex: 1; min-width: 4px; background: var(--bar); border-radius: 4px 4px 0 0; position: relative; }
.bars .b:hover { filter: brightness(1.15); }
.barsaxis { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: 2px; }

.tip {
  position: fixed; z-index: 50; pointer-events: none;
  background: var(--text); color: var(--bg); font-size: 12px; padding: 6px 8px; border-radius: 6px;
  white-space: nowrap;
}

.empty { color: var(--text-2); padding: 24px; text-align: center; }
.list > * + * { margin-top: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }
