/* Utah VHF Society — public site styles
   Designed for readability: large type, strong contrast, big click targets, no hover-only menus. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: italic; font-display: swap; src: url("../fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); }

:root {
  --navy: #10325a;
  --navy-dark: #0a2240;
  --red: #b0201a;
  --gold: #f4c430;
  --ink: #161616;
  --muted: #444;
  --line: #c9ced6;
  --soft: #f2f5f9;
  --cream: #fff8e6;
  --link: #0645ad;
  --ok: #1d6b2f;
  --radius: 10px;
  --wrap: 1180px;
  font-size: 125%; /* 20px base */
}
html.text-lg { font-size: 140%; }
html.text-xl { font-size: 160%; }

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 4px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-dark); margin: 1.4em 0 .5em; }
h1 { font-size: 2rem; margin-top: .4em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 2px solid var(--line); margin: 2em 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #fff; font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .35rem; padding-bottom: .35rem; }
.topbar a { color: #fff; }
.textsize { display: flex; align-items: center; gap: .35rem; }
.textsize button {
  font: inherit; font-weight: 700; background: #fff; color: var(--navy-dark); border: 2px solid #fff; border-radius: 6px;
  min-width: 2.4rem; min-height: 2.2rem; cursor: pointer; padding: 0 .4rem;
}
.textsize button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); }
.textsize button:nth-of-type(2) { font-size: 1.1em; }
.textsize button:nth-of-type(3) { font-size: 1.25em; }
.topbar-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--navy-dark); }
.brand img { width: 84px; height: auto; }
.brand-name { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.brand-tag { display: block; font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.header-search { display: flex; gap: .4rem; flex: 0 1 360px; }
.header-search input { flex: 1; min-width: 0; }

/* ---------- Main navigation (always visible, wraps on small screens) ---------- */
.mainnav { background: var(--navy); }
.mainnav ul { list-style: none; margin: 0 auto; padding: .4rem 1.1rem; max-width: var(--wrap); display: flex; flex-wrap: wrap; gap: .35rem; }
.mainnav li { margin: 0; }
.mainnav a {
  display: block; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem;
  padding: .6rem 1rem; border-radius: 8px; border: 2px solid transparent;
}
.mainnav a:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.mainnav a[aria-current="page"] { background: #fff; color: var(--navy-dark); }
@media (max-width: 700px) {
  .mainnav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .mainnav a { text-align: center; padding: .7rem .4rem; background: rgba(255,255,255,.08); }
  .brand img { width: 64px; }
  .brand-name { font-size: 1.35rem; }
  .header-search { flex-basis: 100%; }
}

/* ---------- Breadcrumbs / layout ---------- */
.crumbs { font-size: .9rem; margin: 1rem 0 0; color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: .4rem; color: var(--muted); }
main { padding-bottom: 3rem; min-height: 50vh; }
.page-head { margin: 1rem 0 1.4rem; }
.page-head p.lead { font-size: 1.15rem; color: var(--muted); max-width: 52rem; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .with-side { grid-template-columns: 1fr; } }
.side-nav { background: var(--soft); border-radius: var(--radius); padding: 1rem 1.2rem; position: sticky; top: 1rem; }
.side-nav h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav li { margin: 0; border-top: 1px solid var(--line); }
.side-nav a { display: block; padding: .5rem 0; }
.side-nav a[aria-current="page"] { font-weight: 700; color: var(--ink); text-decoration: none; }

/* ---------- Buttons & forms ---------- */
.button, button.button, input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: 8px;
  padding: .7rem 1.2rem; text-decoration: none; cursor: pointer; min-height: 2.8rem;
}
.button:hover, button.button:hover { background: var(--navy-dark); color: #fff; }
.button-red { background: var(--red); border-color: var(--red); }
.button-red:hover { background: #8a1712; border-color: #8a1712; }
.button-light, button.button-light { background: #fff; color: var(--navy-dark); }
.button-light:hover, button.button-light:hover { background: var(--soft); color: var(--navy-dark); }
.button-small { padding: .45rem .8rem; min-height: 2.2rem; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
label { display: block; font-weight: 700; margin-bottom: .3rem; }
input[type=text], input[type=email], input[type=search], input[type=tel], input[type=password], select, textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: .6rem .7rem; border: 2px solid #6b7480; border-radius: 8px; background: #fff; color: var(--ink);
  min-height: 2.8rem;
}
textarea { min-height: 10rem; }
.field { margin-bottom: 1.2rem; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.field .error { color: var(--red); font-weight: 700; margin-top: .3rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.checkbox { display: flex; align-items: center; gap: .6rem; font-weight: 700; }
.checkbox input { width: 1.5rem; height: 1.5rem; }
.hp { position: absolute; left: -5000px; }

/* ---------- Notices ---------- */
.notice { border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0; border-left: 8px solid var(--navy); background: var(--soft); }
.notice-success { border-color: var(--ok); background: #e9f6ec; }
.notice-warn { border-color: #c77700; background: var(--cream); }
.notice-error { border-color: var(--red); background: #fdecea; }
.notice > :last-child { margin-bottom: 0; }

/* ---------- Home ---------- */
.hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, #1d4f86); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-top: 2rem; padding-bottom: 2rem; }
.hero h1 { color: #fff; margin: 0 0 .5rem; font-size: 2.1rem; }
.hero p { font-size: 1.1rem; max-width: 44rem; }
.hero a:not(.button) { color: #fff; }
.hero img { width: 210px; background: #fff; border-radius: 50%; padding: 6px; }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero img { display: none; } }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: -1.4rem 0 2rem; position: relative; }
.quick a {
  display: block; background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--red); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.quick a:hover { border-color: var(--navy); }
.quick strong { display: block; font-size: 1.25rem; color: var(--navy-dark); margin-bottom: .25rem; }
.quick span { color: var(--muted); font-size: .95rem; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; }
@media (max-width: 960px) { .home-grid { grid-template-columns: 1fr; } }
.home-grid h2:first-child { margin-top: 0; }

.net-box { background: var(--cream); border: 2px solid #e8c766; border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1.5rem; }
.net-box h2, .net-box h3 { margin-top: 0; }
.net-freq { font-size: 2.2rem; font-weight: 700; color: var(--navy-dark); line-height: 1.1; font-variant-numeric: tabular-nums; }
.net-freq small { font-size: 1.1rem; }
.net-box dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: .8rem 0; }
.net-box dt { font-weight: 700; }
.net-box dd { margin: 0; }

.card-list { display: grid; gap: 1.2rem; }
.card { border: 2px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: #fff; }
.card h3 { margin: 0 0 .3rem; font-size: 1.25rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .meta { color: var(--muted); font-size: .9rem; margin-bottom: .5rem; }
.card.pinned { border-color: var(--red); background: #fffaf9; }
.pin { display: inline-block; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em; vertical-align: middle; margin-right: .4rem; }
.side-box { border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.5rem; }
.side-box h2 { font-size: 1.25rem; margin-top: 0; }
.event-mini { display: flex; gap: .9rem; margin-bottom: 1rem; }
.datebox { flex: 0 0 4.2rem; text-align: center; background: var(--navy); color: #fff; border-radius: 8px; padding: .3rem; line-height: 1.1; }
.datebox .m { display: block; font-size: .8rem; text-transform: uppercase; font-weight: 700; }
.datebox .d { display: block; font-size: 1.7rem; font-weight: 700; }
.datebox .y { display: block; font-size: .75rem; }

/* ---------- Section landing ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; margin: 1.5rem 0; }
.tile { display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; text-decoration: none; color: var(--ink); background: #fff; }
.tile:hover { border-color: var(--navy); background: var(--soft); color: var(--ink); }
.tile strong { display: block; color: var(--link); font-size: 1.15rem; text-decoration: underline; text-underline-offset: 3px; margin-bottom: .3rem; }
.tile span { color: var(--muted); font-size: .95rem; }
.tile .ext { font-size: .8rem; color: var(--muted); }

/* ---------- Page content (including content imported from the old site) ---------- */
.prose { max-width: 60rem; }
.prose table { border-collapse: collapse; margin: 1rem 0 1.5rem; display: block; overflow-x: auto; max-width: 100%; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .4rem .6rem; vertical-align: top; text-align: left; }
.prose th { background: var(--soft); }
.prose tr:nth-child(even) td { background: #fafbfc; }
.prose .legacy-block { margin-bottom: 1.4rem; }
.prose img { border-radius: 6px; }
.prose blockquote { border-left: 6px solid var(--line); margin: 1rem 0; padding: .3rem 1rem; color: var(--muted); }
.prose address { font-style: normal; background: var(--soft); padding: .8rem 1rem; border-radius: 8px; display: inline-block; margin: .5rem 0 1rem; }
.prose ol.steps > li { margin-bottom: 1rem; }
.updated { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.5rem; padding-top: .8rem; }

.dues { border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 1.05rem; min-width: 18rem; }
.dues th, .dues td { border: 2px solid var(--line); padding: .55rem 1rem; text-align: left; }
.dues thead th { background: var(--navy); color: #fff; border-color: var(--navy); }
.dues td.num, .dues th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Repeater directory ---------- */
.filters { background: var(--soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1rem 0 1.2rem; }
.filters .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem 1rem; align-items: end; }
.filters .field { margin: 0; }
.filters .actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .9rem; }
.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin: .5rem 0 1rem; }
.result-bar .count { font-weight: 700; font-size: 1.1rem; }

.rpt-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rpt-table caption { text-align: left; font-size: 1.35rem; font-weight: 700; color: var(--navy-dark); padding: 1.4rem 0 .5rem; }
.rpt-table th { background: var(--navy); color: #fff; text-align: left; padding: .55rem .6rem; position: sticky; top: 0; z-index: 1; }
.rpt-table td { border-bottom: 1px solid var(--line); padding: .55rem .6rem; vertical-align: top; }
.rpt-table tbody tr:nth-child(even) td { background: #f7f9fb; }
.rpt-table tbody tr:hover td { background: var(--cream); }
.rpt-table .freq { font-weight: 700; font-size: 1.1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rpt-table .freq a { text-decoration: none; }
.rpt-table .freq a:hover { text-decoration: underline; }
.rpt-table .nowrap { white-space: nowrap; }
.rpt-table .loc small { display: block; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: .25rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .45rem; border-radius: 4px; border: 1px solid; white-space: nowrap; line-height: 1.4; }
.b-open { color: #155724; border-color: #8cc79a; background: #ecf7ee; }
.b-closed { color: #7a1c14; border-color: #e6a39d; background: #fcefed; }
.b-wide { color: #0b3d75; border-color: #94b7e0; background: #edf3fb; }
.b-intertie { color: #fff; border-color: var(--navy); background: var(--navy); }
.b-linked { color: #3d2a7a; border-color: #b6a8e3; background: #f3f0fc; }
.b-internet { color: #5a3c00; border-color: #e0bf73; background: #fff6df; }
.b-power { color: #444; border-color: #bbb; background: #f4f4f4; }
.b-uvhfs { color: #7a1c14; border-color: var(--red); background: #fff; }
.b-off { color: #fff; border-color: #6b6b6b; background: #6b6b6b; }
.mode { font-size: .85rem; }
@media screen and (max-width: 820px) {
  .rpt-table thead { display: none; }
  .rpt-table, .rpt-table tbody, .rpt-table tr, .rpt-table td { display: block; width: 100%; }
  .rpt-table tr { border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: .9rem; padding: .6rem .8rem; background: #fff; }
  .rpt-table tbody tr:nth-child(even) td { background: transparent; }
  .rpt-table td { border: 0; padding: .15rem 0; }
  .rpt-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
  .rpt-table td.freq::before { content: none; }
  .rpt-table td.freq { font-size: 1.4rem; }
}
.legend { margin-top: 2rem; }
.legend dl { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: baseline; }
.legend dd { margin: 0; }

/* Repeater detail */
.rpt-hero { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; }
.rpt-hero .big { font-size: 2.6rem; font-weight: 700; color: var(--navy-dark); font-variant-numeric: tabular-nums; }
.program-box { background: var(--cream); border: 2px solid #e8c766; border-radius: var(--radius); padding: 1rem 1.3rem; margin: 1rem 0 1.5rem; }
.program-box h2 { margin: 0 0 .6rem; font-size: 1.25rem; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.program-grid div { background: #fff; border-radius: 8px; padding: .6rem .8rem; border: 1px solid #ecd9a0; }
.program-grid span { display: block; font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.program-grid strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.details { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.details th { text-align: left; width: 34%; padding: .5rem .7rem; background: var(--soft); border: 1px solid var(--line); vertical-align: top; }
.details td { padding: .5rem .7rem; border: 1px solid var(--line); }
#map { height: 520px; border-radius: var(--radius); border: 2px solid var(--line); margin: 1rem 0; }
#map.small { height: 340px; }
.leaflet-popup-content { font-size: 15px; line-height: 1.45; }

/* ---------- Officers ---------- */
.officers { display: grid; gap: 1.5rem; }
.officer { display: grid; grid-template-columns: 180px 1fr; gap: 1.5rem; border: 2px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.officer img { width: 180px; height: 210px; object-fit: cover; border-radius: 8px; background: var(--soft); }
.officer .noimg { width: 180px; height: 210px; border-radius: 8px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: var(--navy); }
.officer h2 { margin: 0; font-size: 1.45rem; }
.officer .pos { color: var(--red); font-weight: 700; margin-bottom: .6rem; }
.officer .call { font-family: inherit; color: var(--muted); font-weight: 700; }
.officer details summary { cursor: pointer; font-weight: 700; color: var(--link); padding: .3rem 0; }
.officer.memoriam { background: #fafafa; }
@media (max-width: 640px) { .officer { grid-template-columns: 1fr; } .officer img, .officer .noimg { width: 140px; height: 160px; } }

/* ---------- Documents ---------- */
.doc-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.doc-list li { border: 2px solid var(--line); border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.doc-list a { font-weight: 700; font-size: 1.1rem; }
.doc-type { font-size: .8rem; font-weight: 700; background: var(--soft); border-radius: 4px; padding: .1rem .5rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #e9eef5; margin-top: 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem 2.5rem; padding-top: 2rem; padding-bottom: 2rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); font-size: .85rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; padding-bottom: .9rem; }

/* ---------- Print ---------- */
@media print {
  :root, html.text-lg, html.text-xl { font-size: 11pt; }
  .topbar, .mainnav, .header-search, .site-footer, .filters, .no-print, .crumbs, .side-nav, .button-row, #map { display: none !important; }
  .site-header { border: 0; }
  .brand img { width: 50px; }
  .with-side { display: block; }
  a { color: #000; text-decoration: none; }
  .rpt-table { font-size: 8.5pt; }
  .rpt-table th { background: #ddd !important; color: #000; position: static; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .rpt-table td { padding: 2px 4px; }
  .rpt-table thead { display: table-header-group; }
  .rpt-table tr { page-break-inside: avoid; }
  .badge { border: 0; background: none !important; color: #000 !important; padding: 0; font-weight: 400; }
  .badge::after { content: ";"; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
