/* Winlink Wednesday — shared site stylesheet.
   Extracted from the redesigned home page (2026-11-18) so the other
   pages can link it and inherit the theme palette, header, cards and
   footer. Page-specific rules (banners, P2P panels) live here too for
   now; pages simply don't use the selectors they don't need. */

/* Comic Neue (SIL Open Font License) loads from comic-neue-bold.woff2,
   kept beside this file so browsers can cache it. It is a stand-in for
   systems that have no Comic Sans at all, so the tagline below still
   reads as a comic face everywhere. Where Comic Sans MS exists
   (Windows, macOS), it wins — see .original-tagline. */
@font-face {
  font-family: "Comic Neue";
  src: url("comic-neue-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Palette (CSS variables; theme swaps the values) ---------- */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f4;
  --offair: #c23b2e;
  --zebra: #f5f7f9;
  --thead-bg: #173550;
  --thead-ink: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --ink: #1d2935;
  --muted: #5a6b7a;
  --line: #d3dce3;
  --link: #14558f;
  --link-hover: #0d3f6b;
  --accent: #9e2b25;
  --navy: #173550;
  --navy-ink: #ffffff;
  --banner-bg: #173550;
  --banner-ink: #ffffff;
  --banner-link: #ffd9a8;
  --net-bg: #28506f;
  --net-ink: #ffffff;
  --focus: #b3541e;
  --shadow: 0 1px 3px rgba(23, 53, 80, 0.10), 0 4px 14px rgba(23, 53, 80, 0.06);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f151c;
  --offair: #ff8a7a;
  --zebra: #212c38;
  --thead-bg: #0d1b29;
  --thead-ink: #e7edf3;
  --surface: #1a232e;
  --surface-2: #212c38;
  --ink: #e7edf3;
  --muted: #9db0c1;
  --line: #31404f;
  --link: #82bcf0;
  --link-hover: #aed4f7;
  --accent: #e58a80;
  --navy: #0d1b29;
  --navy-ink: #ffffff;
  --banner-bg: #0d1b29;
  --banner-ink: #e7edf3;
  --banner-link: #ffd9a8;
  --net-bg: #1d344c;
  --net-ink: #e7edf3;
  --focus: #f0a35e;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
button, [role="button"], select, summary, input:not([type="checkbox"], [type="radio"]) { min-height: 2rem; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 28px);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--navy-ink);
}
.site-header .wrap {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 3vw, 28px);
  padding-top: 14px;
  padding-bottom: 16px;
  flex-wrap: nowrap;
  justify-content: center;
  position: relative;
}
/* Brand stack: the tagline sits directly on top of the big
   wordmark logo, centered over it, and the whole stack is
   centered in the header. The small WW mark that used to sit
   beside the tagline is gone from the header. */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 0 1 auto;
  min-width: 0;
}
.logo-plate {
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 14px;
  line-height: 0;
}
.logo-plate img {
  max-width: min(420px, 62vw);
  width: 100%;
  height: auto;
  display: block;
}
.header-actions {
  position: absolute;
  right: clamp(12px, 3vw, 28px);
  top: 14px;
  flex: 0 0 auto;
}
/* The Comic Sans tagline. It has its own class on purpose: no future
   cleanup pass should ever "helpfully" normalize this font away.
   The joke only lands if it survives. */
.original-tagline {
  font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  text-align: center;
  line-height: 1.15;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  cursor: pointer;
  flex: 0 0 auto;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.22); }
.theme-toggle svg { width: 22px; height: 22px; display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- This week's net banner ---------- */
.net-banner {
  background: var(--net-bg);
  color: var(--net-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.net-banner .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1rem;
}
.net-banner strong {
  color: var(--banner-link);
  letter-spacing: 0.06em;
  font-size: 0.84rem;
  white-space: nowrap;
}
.net-banner a {
  color: var(--net-ink);
  font-weight: 700;
  font-size: 1.05rem;
}
.net-banner .updated { color: var(--net-ink); opacity: 0.75; font-size: 0.85rem; }

/* LATEST NEWS sits directly under THIS WEEK'S NET — lighter strip,
   single link only (the current change notice). */
.news-banner {
  background: var(--surface-2);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.news-banner strong { color: var(--accent); }
.news-banner a { color: var(--link); font-weight: 600; font-size: 1rem; }
.news-banner a:hover { color: var(--link-hover); }

/* ---------- Collapsible utility panels (band conditions / P2P) ----------
   Stacked in a single centered column at every width — Band
   Conditions on top, P2P Station Status directly underneath — so
   a collapsed panel never sits as a big empty box beside an
   expanded one. */
.utility-row {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
  margin: clamp(14px, 2.5vw, 22px) auto 0;
  max-width: 560px;
  width: 100%;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-toggle {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.panel-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.panel-toggle .chevron {
  margin-left: auto;
  width: 18px; height: 18px;
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}
.panel-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.panel-toggle .live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #2e9e4f; flex: 0 0 auto;
}
.panel-toggle .live-dot.is-off { background: var(--offair); }
#session_info .off-air { color: var(--offair); font-weight: 700; }
.panel-body { border-top: 1px solid var(--line); padding: 14px 16px 16px; }
.panel-body[hidden] { display: none; }
.panel-body p { margin: 0 0 10px; }
.solar-figure { margin: 0; text-align: center; }
.solar-figure img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.solar-figure figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* P2P session display. The live page drops one small table per
   session type into #session_info: a mode header row ("ARDOP P2P"
   or "VARA HF P2P" — never mixed), then one row per station with
   the callsign left and the dial frequency right-aligned. These
   rules keep that table as a single column of callsign →
   frequency rows at every width, capped at ~250px wide: callsigns
   top out around 8 characters and frequencies read like
   "7080 kHz", so 250px keeps the two comfortably close even
   when the panel itself is wide. */
.p2p-heading { font-weight: 600; margin: 0 0 10px; }
#session_info { display: block; max-width: 250px; }
#session_info table {
  border-collapse: collapse;
  width: 100%;
  max-width: 250px;
  font-size: 1.02rem;
}
#session_info thead th {
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  padding: 0 0 8px;
  font-size: 1.05rem;
}
#session_info tbody {
  display: block;
}
#session_info tbody tr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 2px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
#session_info tbody td { padding: 0; }
#session_info tbody td:first-child { font-weight: 700; letter-spacing: 0.03em; }
#session_info tbody td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.p2p-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ---------- Main sections: stacked full-width, in reading order ----------
   One section after another down the page — all of Winlink Wednesday
   (including the Change Notices link and the community links), then
   Radio Aids — instead of side-by-side columns of wildly different
   heights. Inside each card the links sit in a row-wise grid
   (3 across on desktop, switching straight to 1 on phones — no
   two-column middle step) in the live site's order, so the grid
   rows mirror the old table's rows and read correctly at full
   and narrow widths. */
.main-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(12px, 2vw, 20px);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px 20px 14px;
  width: 100%;
}
.card h2 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--ink);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 8px;
}
.card h3 {
  margin: 20px 0 4px;
  font-size: 1.05rem;
  color: var(--ink);
}
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(20px, 3vw, 36px);
}
.link-list li {
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
/* A group block keeps paired links together as one grid item,
   so the pair always shares a cell, like on the live site. */
.link-list .group-item + .group-item { border-top: 1px solid var(--line); }
.link-list a {
  display: block;
  padding: 10px 4px 4px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
}
.link-list a:hover { text-decoration: underline; }
.link-list .meta {
  display: block;
  padding: 0 4px 10px;
  font-size: 0.83rem;
  color: var(--muted);
}
.link-list .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 6px;
  vertical-align: 2px;
}







/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(20px, 4vw, 34px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 26px;
}
.site-footer img { width: 62px; height: auto; background: #fff; border-radius: 6px; padding: 3px; }
.site-footer p { margin: 0; text-align: center; }

/* ---------- Responsive: the card grids go straight from three
   columns to one — no two-column middle step. ---------- */
@media (max-width: 720px) {
  .site-header .wrap { gap: 10px; }
}
@media (max-width: 560px) {
  .link-list { grid-template-columns: 1fr; }
  .logo-plate img { max-width: min(420px, 66vw); }
}
@media (prefers-reduced-motion: reduce) {
  .panel-toggle .chevron { transition: none; }
}

/* ---------- Sub-page header (minimal variant) ----------
   Sub-pages add class "subpage" to the site header: no tagline,
   the wordmark capped at ~72px tall, and a slimmer bar, so page
   content starts higher. The home page keeps the full header
   with the tagline. */
.site-header.subpage .wrap {
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-header.subpage .logo-plate { padding: 6px 12px; }
.site-header.subpage .logo-plate img {
  width: auto;
  height: auto;
  max-height: 72px;
  max-width: min(260px, 68vw);
}
.site-header.subpage .header-actions {
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 560px) {
  .site-header.subpage .logo-plate img { max-width: min(240px, 66vw); max-height: 60px; }
}

/* ---------- Sub-page components ---------- */
/* Centered page heading with a short accent rule under it. */
.page-head {
  text-align: center;
  margin: clamp(20px, 3.5vw, 32px) auto 0;
  max-width: 900px;
}
.page-head h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4.5vw, 2.15rem);
  line-height: 1.2;
  color: var(--ink);
}
.page-head .rule {
  width: 72px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}
.page-head + .card { margin-top: clamp(16px, 2.5vw, 24px); }
/* A single wide image in a card (growth chart): keeps its 900px
   ceiling on wide screens, scales fluidly down to phones. */
.chart-figure { margin: 0; text-align: center; }
.chart-figure img {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border: 2px solid var(--line);
  background: #ffffff;
}

/* ---------- Roster table & filter (Century Club) ---------- */
.lead { font-size: 1.08rem; line-height: 1.55; margin: 0 auto 16px; max-width: 62ch; text-align: center; }
.cert-figure { margin: 0; text-align: center; }
.cert-figure img { display: block; width: 100%; max-width: 586px; height: auto; margin: 0 auto; border: 2px solid var(--line); background: #ffffff; }
.cert-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.recognition { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.recognition .recog-cert { font-size: 1.6rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.recognition .recog-who { font-size: 1.15rem; font-weight: 700; }
.recognition .recog-call { font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.recognition .recog-date { margin-left: auto; color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) { .recognition .recog-date { margin-left: 0; } }
.filter-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-bottom: 12px; }
.filter-field { flex: 1 1 260px; min-width: 0; }
.filter-field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 5px; }
.filter-field input { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; min-height: 44px; }
.filter-field input::placeholder { color: var(--muted); }
.clear-btn { font: inherit; font-weight: 600; cursor: pointer; color: var(--link); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; min-height: 44px; }
.clear-btn:hover { color: var(--link-hover); }
.member-count { margin: 0 0 10px; font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; overflow-y: auto; max-height: 72vh; border: 1px solid var(--line); border-radius: 8px; -webkit-overflow-scrolling: touch; }
table.members { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; font-size: .94rem; }
table.members th, table.members td { padding: 7px 12px; text-align: left; white-space: nowrap; }
table.members td.member-name { white-space: normal; min-width: 210px; }
table.members thead th { position: sticky; top: 0; z-index: 2; background: var(--thead-bg); color: var(--thead-ink); font-size: .86rem; letter-spacing: .02em; line-height: 1.3; border-bottom: 2px solid var(--accent); }
table.members tbody tr:nth-child(even) { background: var(--zebra); }
table.members tbody td { border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.members tbody tr:last-child td { border-bottom: none; }
table.members td.cert { font-weight: 700; text-align: right; }
table.members thead th.cert-h { text-align: right; }
.no-results td { text-align: center; color: var(--muted); padding: 22px 12px; white-space: normal; }

/* ---------- Blog posts (KW6GB's Winlink Blog) ---------- */
.blog-post h3 { margin: 0 0 2px; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.blog-post .post-date { margin: 0 0 12px; color: var(--muted); font-style: italic; }
.blog-post p { line-height: 1.6; margin: 0 0 12px; }
.blog-post p:last-child { margin-bottom: 0; }
.blog-post img { display: block; max-width: 100%; height: auto; margin: 14px auto; border: 2px solid var(--line); background: #ffffff; }
.back-home { text-align: center; margin: clamp(16px, 3vw, 24px) 0 0; }
.site-footer .counter { font-size: .78rem; }

/* ---------- Change-notice pages ---------- */
/* The line of text over the header wordmark on the change-notice
   pages ("Change Notices for", "Historical Check-in Archive for"):
   Times, as on the original pages, centered over the logo plate. */
.header-eyebrow {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  margin: 0;
  text-align: center;
  color: var(--navy-ink);
}
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.55; }
.notice-list li:first-child { padding-top: 0; }
.notice-list li:last-child { border-bottom: none; padding-bottom: 0; }
.notice-body p { line-height: 1.6; }
.notice-body img { max-width: 100%; height: auto; }

/* ---------- Net reminder page ---------- */
/* The episode banner card: centered header, no accent rule — it is a
   banner, not a section heading. */
.episode-card h2 { text-align: center; border-bottom: none; padding-bottom: 0; }
.episode-date { text-align: center; font-size: 1.12rem; font-weight: 700; margin: 2px 0 12px; }
.episode-card p { line-height: 1.6; }
/* The session-mode names (ARDOP P2P / VARA HF P2P) keep the original
   page's red, via the theme accent. */
.mode { color: var(--accent); }
/* The ICS-213 sample screenshot: 500px ceiling as on the original
   page, fluid down to phones. */
.sample-img img { display: block; width: 100%; max-width: 500px; height: auto; margin-top: 6px; border: 2px solid var(--line); background: #ffffff; }
/* The To / Subject / Message body block, set off as a panel. */
.format-block { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; line-height: 1.65; margin: 0 0 12px; }
/* P2P station tables: same navy-header / zebra language as the
   Century Club table, minus the sticky header (these are short). */
.p2p-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; margin: 10px 0 18px; -webkit-overflow-scrolling: touch; }
.p2p-scroll:last-child { margin-bottom: 4px; }
table.p2p { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 540px; font-size: .94rem; }
table.p2p th, table.p2p td { padding: 7px 12px; text-align: left; white-space: nowrap; }
table.p2p thead th { background: var(--thead-bg); color: var(--thead-ink); font-size: .86rem; letter-spacing: .02em; line-height: 1.3; }
table.p2p thead tr.window th { text-align: center; font-size: .95rem; border-bottom: 2px solid var(--accent); }
table.p2p tbody tr:nth-child(even) { background: var(--zebra); }
table.p2p tbody td { border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
table.p2p tbody tr:last-child td { border-bottom: none; }

/* Full grid for the P2P tables (David's pick, 2026-11-19, over
   row-rules only): hairline column dividers in the theme line color. */
table.p2p th, table.p2p td { border-right: 1px solid var(--line); }
table.p2p th:last-child, table.p2p td:last-child { border-right: none; }
table.p2p thead tr.window th { border-right: none; }
table.p2p thead tr:last-child th { border-bottom: 1px solid var(--line); }
/* Large sample image: same treatment as .sample-img, 900px ceiling,
   centered. */
.sample-img-lrg img { display: block; width: 100%; max-width: 900px; height: auto; margin: 6px auto 0; border: 2px solid var(--line); background: #ffffff; }
