/* WNPL site — shared stylesheet
   Fonts load from Google Fonts in each page's <head>; the stacks below fall back cleanly if blocked. */

:root {
  --ink: #14171c;
  --ink-2: #23272e;
  --paper: #f0ece4;
  --card: #fffefb;
  --line: #e3ddd0;
  --red: #c8202a;
  --red-dark: #a11a22;
  --gold: #c8962e;
  --grey: #5b6470;
  --purple: #6a3fa0;
  --muted: #6b6f76;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Utility bar ---------- */

.utility { background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; }
.utility a { text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.utility .sep { margin: 0 6px; opacity: 0.6; }

/* ---------- Header ---------- */

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 74px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 4px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: 21px;
}
.brand .name { font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1; letter-spacing: 0.01em; display: block; }
.brand .sub { display: block; margin-top: 5px; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: #4a5563; }

.main-nav { display: flex; gap: 30px; flex-wrap: wrap; }
.main-nav a {
  font-size: 15px; font-weight: 600; text-decoration: none; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--red); }
.main-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.btn {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 14px;
  text-decoration: none; padding: 12px 18px; border-radius: 4px; border: 0; cursor: pointer; font-family: var(--body);
}
.btn:hover { background: var(--red-dark); }
.btn-block { display: block; width: 100%; text-align: center; padding: 14px 18px; }

/* ---------- Page hero ---------- */

.page-hero { background: var(--ink); color: #fff; padding: 44px 0 40px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 12px; }
.page-hero h1 { font-family: var(--head); font-weight: 600; font-size: 38px; line-height: 1.15; margin: 0 0 14px; }
.page-hero p { margin: 0; font-size: 16px; color: #e8e8e8; max-width: 640px; }

/* ---------- Toolbar (month nav + filters) ---------- */

.toolbar { background: #fff; border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }

.month-nav { display: flex; align-items: center; gap: 16px; }
.month-nav a {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #cfc9bb; border-radius: 4px; background: #fff; text-decoration: none; font-size: 17px;
}
.month-nav a:hover { border-color: var(--ink); }
.month-nav .month-title { font-family: var(--head); font-weight: 600; font-size: 22px; min-width: 170px; text-align: center; margin: 0; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--body); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; border: 1px solid #cfc9bb; background: #fff; color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.t-uspsa .dot, .dot.t-uspsa { background: var(--red); }
.t-pcsl .dot, .dot.t-pcsl { background: var(--grey); }
.t-steel .dot, .dot.t-steel { background: var(--gold); }
.t-champ .dot, .dot.t-champ { background: var(--ink); }
.t-special .dot, .dot.t-special { background: var(--purple); }

/* ---------- Schedule layout ---------- */

.schedule-main { padding: 48px 0 56px; }
.schedule-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: #4a4f57; margin: 0 0 14px; padding: 0; list-style: none; }
.legend li { display: flex; align-items: center; gap: 7px; }

.cal { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow {
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-align: center; padding: 12px 0; text-transform: uppercase;
}
.cal-day {
  min-height: 96px; padding: 10px 8px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--card);
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.other { background: #ebe6db; }
.cal-day .num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: #3b4658; display: block; margin-bottom: 6px; }
.cal-day.other .num { color: #b3ad9f; }
.cal-day.is-today .num { color: var(--red); }

.ev {
  display: block; font-size: 11px; line-height: 1.25; font-weight: 600; padding: 5px 7px; border-radius: 3px;
  margin-bottom: 4px; text-decoration: none; word-break: break-word;
}
.ev .dot { margin-right: 4px; vertical-align: 0; }
.ev.t-uspsa { background: #f9dfe1; color: #7b1219; }
.ev.t-pcsl { background: #e4e7eb; color: #2f3640; }
.ev.t-steel { background: #f5e8c9; color: #6b4d0f; }
.ev.t-champ { background: #dcdde0; color: var(--ink); }
.ev.t-special { background: #e9dff6; color: #43266b; }
.ev:hover { filter: brightness(0.96); }

.cal-empty { padding: 28px 24px; color: var(--muted); font-size: 15px; }

/* ---------- Sidebar ---------- */

.side-card { border-radius: 8px; padding: 22px; margin-bottom: 18px; }
.side-next { background: var(--ink-2); color: #fff; }
.side-next .eyebrow { color: #c9ccd1; font-size: 11px; display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.side-next .eyebrow .dot { background: var(--red); }
.side-next h2 { font-family: var(--head); font-weight: 600; font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.side-next p { margin: 0 0 18px; font-size: 14px; color: #cfd2d7; }

.side-new { background: #fff; border: 1px solid var(--line); }
.side-new h2 { font-family: var(--head); font-weight: 600; font-size: 17px; margin: 0 0 8px; }
.side-new p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.side-new a { color: var(--red); font-weight: 700; font-size: 14px; text-decoration: none; }
.side-new a:hover { text-decoration: underline; }

/* ---------- Month at a glance ---------- */

.glance { margin-top: 56px; }
.glance h2 { font-family: var(--head); font-weight: 600; font-size: 28px; margin: 0 0 14px; }

.row {
  display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.row .date {
  width: 56px; height: 52px; background: var(--ink); color: #fff; border-radius: 4px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.row .date b { font-family: var(--head); font-size: 22px; line-height: 1; font-weight: 600; }
.row .date span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; font-weight: 600; }
.row .info { flex: 1 1 260px; min-width: 0; }
.row .info strong { display: block; font-size: 16px; }
.row .info span { display: block; font-size: 14px; color: var(--muted); }
.row .tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 6px 10px; border-radius: 3px;
}
.row .tag.t-uspsa { background: #f9dfe1; color: #7b1219; }
.row .tag.t-pcsl { background: #e4e7eb; color: #2f3640; }
.row .tag.t-steel { background: #f5e8c9; color: #6b4d0f; }
.row .tag.t-champ { background: #dcdde0; color: var(--ink); }
.row .tag.t-special { background: #e9dff6; color: #43266b; }
.row .reg { color: var(--red); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.row .reg:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #fff; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-family: var(--head); font-weight: 600; font-size: 17px; margin: 0 0 14px; }
.site-footer p { margin: 0; font-size: 14px; color: #b9bdc4; max-width: 280px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { font-size: 14px; color: #d3d6db; text-decoration: none; }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 36px; padding-top: 18px; border-top: 1px solid #2d3138;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #8b9098;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-header .wrap { gap: 12px; }
  .main-nav { order: 3; width: 100%; gap: 20px; }
  .page-hero h1 { font-size: 32px; }
  .month-nav .month-title { min-width: 0; font-size: 20px; }
  .cal-day { min-height: 58px; padding: 6px 4px; }
  .cal-dow { font-size: 10px; letter-spacing: 0.05em; }
  .ev { font-size: 0; padding: 4px; display: inline-block; margin-right: 2px; }
  .ev .dot { margin: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.row .logo { height: 40px; width: auto; max-width: 64px; object-fit: contain; flex: none; }

main img { max-width: 100%; height: auto; }
