/* Fairview Town Square: a clean, modern local-news look. Neutral surfaces, near-black ink, one terracotta accent taken from the logo.
   Green lives only in the logo. Sports pages use the Yellowjackets' black and gold (see "Sports theme" at the end). */
:root {
  --bg: #F7F6F3; --paper: var(--bg); --surface: #FFFFFF; --text: #24282D; --muted: #5C636C; --line: #E4E1DA; --rule: #1D2126;
  --heading: #12161A; --link: #12161A; --accent: #C2552B; --accent-text: #A9441F; --chip-bg: #EEECE6; --btn-bg: #1D2126; --btn-text: #FFFFFF;
  --ph-a: #EDEBE5; --ph-b: #E3E0D9; --wx-bg: #1D2126; --wx-text: #F4F2EC; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
  --amber: #D9A441; --terracotta: var(--accent-text); --sage: #B8B3A7; --olive: #8D897F; --forest: #1D2126; --cream: #F6EFE0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;   /* nameplate only */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--sans);
  --radius: 12px; --radius-sm: 8px; --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1114; --paper: #0F1114; --surface: #171A1E; --text: #E7E6E2; --muted: #9AA0A8; --line: #292D33; --rule: #CFCDC6;
    --heading: #F3F2EE; --link: #F3F2EE; --accent: #E58A62; --accent-text: #E58A62; --chip-bg: #1F2328; --btn-bg: #F3F2EE; --btn-text: #12161A;
    --ph-a: #1C2025; --ph-b: #23282E; --wx-bg: #171A1E; --wx-text: #E7E6E2; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --sage: #3A3F46; --olive: #50565E; --forest: #CFCDC6;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16.5px/1.6 var(--sans); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Masthead */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.edition { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 0; font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nameplate { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 0 16px; text-decoration: none; color: var(--heading); }
.nameplate img { width: 60px; height: 60px; flex: none; }
.np-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.np-title { font: 700 clamp(1.9rem, 6vw, 3.1rem)/1.05 var(--serif); letter-spacing: -.015em; }
.np-tag { font: 600 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.sections { background: var(--surface); border-top: 1px solid var(--line); }
.sections .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding-top: 8px; padding-bottom: 10px; }
.sections a { padding: 7px 13px; border-radius: 999px; text-decoration: none; color: var(--text); font: 600 .8rem var(--sans); letter-spacing: .04em; text-transform: uppercase; transition: background .15s, color .15s; }
.sections a:hover { background: var(--chip-bg); }
.sections a[aria-current] { background: var(--rule); color: var(--surface); }

main { padding: 28px 0 64px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; color: var(--heading); letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); font-weight: 800; margin: 0 0 12px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.kicker { font: 700 .72rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 6px; }
.dek { font-size: 1.1rem; color: var(--text); }
.byline { font: 600 .8rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.page-title { border-bottom: 1px solid var(--line); padding-bottom: 12px; }

/* Front page */
.front { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-bottom: 36px; border-bottom: 1px solid var(--line); }
@media (min-width: 880px) { .front { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .rail { border-left: 1px solid var(--line); padding-left: 28px; } }
.lead h1 { font-size: clamp(2.1rem, 5.5vw, 3.3rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.section-head { font: 800 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; padding-top: 8px; border-top: 2px solid var(--rule); color: var(--heading); }
.section-head a { text-decoration: none; color: inherit; } .section-head a:hover { color: var(--accent-text); }
.rail .section-head:not(:first-child) { margin-top: 28px; }
.brief { list-style: none; margin: 0; padding: 0; }
.brief li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.4; }
.when { display: inline-block; min-width: 4.2em; font: 700 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.where { color: var(--muted); font-size: .9em; }
.meeting { margin: 0; font-size: 1rem; }
.pulse { display: inline-flex; align-items: center; gap: 8px; font: 500 .8rem var(--sans); color: var(--muted); margin-top: 18px; }
.pulse::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(194,85,43,.55); } 70% { box-shadow: 0 0 0 9px rgba(194,85,43,0); } 100% { box-shadow: 0 0 0 0 rgba(194,85,43,0); } }
@media (prefers-reduced-motion: reduce) { .pulse::before { animation: none; } }

.four { display: grid; gap: 0 28px; grid-template-columns: minmax(0, 1fr); padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .four .col + .col { border-left: 1px solid var(--line); padding-left: 28px; } }
.four .col, .two .col { padding-bottom: 18px; }
.two { display: grid; gap: 0 32px; grid-template-columns: minmax(0, 1fr); padding: 28px 0 0; }
@media (min-width: 880px) { .two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .two .col + .col { border-left: 1px solid var(--line); padding-left: 32px; } }
.item { padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; }
.item h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 3px; } .item h3 a { text-decoration: none; color: var(--heading); } .item h3 a:hover { color: var(--accent-text); text-decoration: underline; }
.item p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.more { font: 700 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase; margin: 10px 0 0; }
.cols-2 { display: grid; gap: 0 24px; grid-template-columns: minmax(0, 1fr); } @media (min-width: 560px) { .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols-3 { display: grid; gap: 20px 24px; grid-template-columns: minmax(0, 1fr); } @media (min-width: 760px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cols-3 .item { border-top: 2px solid var(--rule); padding-top: 14px; }

.ph-img { aspect-ratio: 16/10; width: 100%; margin: 0 0 12px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px); color: var(--muted); font: 700 .72rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.lead .ph-img { aspect-ratio: 16/9; }
.ph-tag { font: 700 .62rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; vertical-align: middle; margin-left: 4px; white-space: nowrap; }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px; margin-bottom: 10px; font: 800 1.05rem var(--display); }
.score b { font-size: 1.6rem; color: var(--muted); } .score small { grid-column: 1 / -1; font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* Directory, business, and legal pages */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: var(--text); }
.card:hover { border-color: var(--accent); }
.card strong { font: 700 1.1rem var(--display); color: var(--heading); display: block; }
.card span { color: var(--muted); font-size: .92rem; }
.chip { display: inline-block; background: var(--chip-bg); color: var(--heading); border: 1px solid var(--line); border-radius: 999px; padding: 2px 11px; font: 600 .78rem var(--sans); margin: 0 6px 6px 0; text-decoration: none; }
.badge-open { background: #E3EDD6; color: #2F4A3A; border-color: #C9DAB4; } .badge-closed { background: #F3DDD2; color: #7A3418; border-color: #E6C3B2; }
.crumbs { font: 500 .85rem var(--sans); color: var(--muted); margin-bottom: 14px; } .crumbs a { color: inherit; }
h2 { font-size: 1.4rem; margin: 32px 0 12px; }
.biz { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .biz { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; font-family: var(--sans); }
.panel h2 { margin-top: 0; font: 800 .85rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.panel dl { margin: 0; } .panel dt { font-weight: 700; margin-top: 12px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.panel dd { margin: 2px 0 0; }
.btn { display: inline-block; background: var(--btn-bg); color: var(--btn-text) !important; padding: 10px 18px; border-radius: 8px; text-decoration: none; font: 700 .85rem var(--sans); letter-spacing: .05em; text-transform: uppercase; margin: 6px 8px 0 0; }
.btn.alt { background: transparent; color: var(--heading) !important; border: 2px solid var(--line); } .btn.alt:hover { border-color: var(--heading); }
.photo { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: linear-gradient(135deg, var(--sage), var(--olive)); display: grid; place-items: center; color: var(--cream); font: 700 3rem var(--display); }
.photo-credit { font: 400 .8rem var(--sans); color: var(--muted); }
.note { background: var(--chip-bg); border-left: 4px solid var(--amber); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 12px 16px; font: 400 .95rem/1.5 var(--sans); }
.gbadge { font: 400 .95rem var(--sans); } .gbadge .star { color: var(--amber); }
.hours { list-style: none; padding: 0; margin: 0; font-size: .95rem; } .hours li { padding: 2px 0; }
.legal { max-width: 46rem; } .legal h2 { font-size: 1.2rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; color: var(--muted); font: 400 .9rem/1.5 var(--sans); }
.site-footer a { color: inherit; } .site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }

/* Sports */
.recordbar { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 12px 0; margin: 0 0 16px; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--line); }
.recordbar > div { display: flex; flex-direction: column; }
.recordbar .big { font: 800 2.1rem/1 var(--display); color: var(--heading); }
.recordbar .lbl { font: 700 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.gamecard { display: flex; flex-direction: column; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; text-decoration: none; color: var(--text); margin: 0 0 12px; }
.gamecard strong { font: 700 1.1rem var(--display); color: var(--heading); }
.gamecard span { font-size: .92rem; color: var(--muted); }
.gamecard:hover { border-color: var(--accent); }
.two-up { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); } @media (min-width: 640px) { .two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.teamcard { margin-bottom: 28px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: #B3261E; color: #fff !important; font: 800 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 8px; }
.live-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse-dot 1.2s infinite; }
@keyframes pulse-dot { 50% { opacity: .25; } } @media (prefers-reduced-motion: reduce) { .live-badge::before { animation: none; } }
.is-live { border-color: #B3261E !important; }
.sched { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.sched tr.is-self td { font-weight: 800; }
.sched th { text-align: left; font: 800 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--rule); padding: 6px 8px 6px 0; }
.sched td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.sched td small { display: block; color: var(--muted); font: 500 .78rem var(--sans); }
.res { display: inline-block; min-width: 1.6em; text-align: center; font: 800 .8rem var(--sans); padding: 1px 6px; border-radius: 8px; }
.res-w { background: #DDEBCB; color: #2A4A14; } .res-l { background: #F3D6D2; color: #7A1C14; } .res-t { background: var(--chip-bg); color: var(--heading); }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 14px; margin: 0 0 24px; }
.sb-team { display: flex; flex-direction: column; gap: 4px; }
.sb-name { font: 700 .9rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sb-score { font: 800 clamp(2.6rem, 10vw, 4.4rem)/1 var(--display); color: var(--heading); }
.sb-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sb-status { font: 700 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini-record { font: 800 1.6rem/1.1 var(--display); color: var(--heading); margin: 0 0 8px; } .mini-record small { font: 600 .8rem var(--sans); color: var(--muted); letter-spacing: .04em; }

/* Score desk */
.desk { display: grid; gap: 10px; margin-bottom: 8px; max-width: 34rem; }
.desk input, .desk select, .desk textarea { width: 100%; font: 400 1rem var(--sans); padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; }
.desk .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .desk .row b { flex: 1 0 100%; }
.desk .row label { flex: 1 1 8rem; font: 600 .85rem var(--sans); }
.desk .btn { margin: 0; cursor: pointer; border: 2px solid var(--btn-bg); font-size: .95rem; padding: 14px 16px; min-width: 4.5rem; }
.desk .btn.alt { border-color: var(--heading); }

/* Weather strip and alerts */
.wx { background: var(--wx-bg); color: var(--wx-text); font: 400 .88rem/1.35 var(--sans); }
.wx a { color: var(--wx-text); }
.wx-row { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.wx-now { display: flex; gap: 10px; align-items: center; }
.wx-temp { font: 700 2rem/1 var(--display); }
.wx-what { display: flex; flex-direction: column; } .wx-what b { text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; opacity: .85; }
.wx-what small { opacity: .75; font-size: .75rem; }
.wx-fc { display: flex; gap: 6px 18px; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; overflow-x: auto; }
.wx-fc li { white-space: nowrap; } .wx-fc span { opacity: .8; } .wx-fc b { font-weight: 700; margin-right: 2px; }
.wx-sun { font-size: .75rem; opacity: .9; display: flex; flex-direction: column; text-align: right; } .wx-sun a { margin-top: 2px; }
@media (max-width: 700px) { .wx-sun { display: none; } }
.wx-alert { font: 400 .95rem/1.45 var(--sans); padding: 8px 0; color: #fff; }
.wx-alert strong { text-transform: uppercase; letter-spacing: .06em; margin-right: 6px; } .wx-alert a { color: inherit; }
.wx-warning { background: #B3261E; } .wx-watch { background: #E0A100; color: #2A2000; } .wx-advisory { background: #475569; } .wx-stale { background: #5E5A4A; font-size: .85rem; }
.wx-head { margin-left: 4px; }
.wx-alert details { margin-top: 4px; } .wx-alert summary { cursor: pointer; font-weight: 700; text-decoration: underline; }
.wx-text { white-space: pre-line; background: rgba(255,255,255,.14); padding: 10px 12px; margin-top: 6px; font-size: .9rem; max-height: 22rem; overflow: auto; }
.wx-src { font-size: .8rem; margin: 6px 0 0; }

/* Meetings */
.msearch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.msearch input[type=search] { flex: 1 1 18rem; font: 400 1rem var(--sans); padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; }
.msearch select { font: 400 .95rem var(--sans); padding: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; }
.msearch .btn { margin: 0; cursor: pointer; border: 2px solid var(--btn-bg); }
.sr { position: absolute; left: -999px; }
.chips { margin: 0 0 14px; } .chip.on { background: var(--heading); color: var(--surface); border-color: var(--heading); }
.mtg-card { border-top: 2px solid var(--rule); padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.mtg-card h3 { margin: 2px 0 6px; font-size: 1.25rem; } .mtg-card h3 a { color: var(--heading); text-decoration: none; } .mtg-card h3 a:hover { text-decoration: underline; color: var(--terracotta); }
.mtg-card p { margin: 0 0 6px; } .mtg-card.is-cancelled { opacity: .75; }
.snip { font-size: .95rem; color: var(--muted); } mark { background: #F4DC8A; color: #2A2000; padding: 0 2px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 700 .85rem var(--sans); margin: 18px 0; }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 24px; }
.summary-box h2 { margin: 4px 0 8px; font-size: 1.5rem; } .points { margin: 8px 0; padding-left: 1.2rem; }
.ai-note { font: 400 .8rem/1.4 var(--sans); color: var(--muted); margin-bottom: 0; }
.linkbar { margin: 0 0 20px; }
.tablewrap { overflow-x: auto; } .votes td:nth-child(2) { max-width: 36rem; }
.agenda { list-style: none; padding: 0; margin: 0; } .agenda > li { padding: 10px 0; border-bottom: 1px solid var(--line); } .agenda li.sub { margin-left: 1.4rem; }
.agenda h3 { font-size: 1.05rem; margin: 0 0 4px; } .agenda p { margin: 4px 0; font-size: .97rem; }
.ik { display: inline-block; min-width: 2.2rem; font: 800 .75rem var(--sans); letter-spacing: .06em; color: var(--terracotta); }
.motion { font-size: .9rem !important; color: var(--muted); } .docs { margin: 4px 0 0; padding-left: 1.2rem; font-size: .9rem; }
.agenda details summary { cursor: pointer; font: 700 .8rem var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.video { aspect-ratio: 16/9; width: 100%; max-width: 760px; background: #12161A; display: grid; place-items: center; margin: 0 0 8px; }
.video iframe { width: 100%; height: 100%; border: 0; } .video-poster { color: #F4F2EC !important; font: 700 1.1rem var(--sans); text-decoration: none; padding: 14px 22px; border: 2px solid #F4F2EC; }

/* Construction */
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin: 0 0 12px; }
.proj h3 { margin: 2px 0 6px; font-size: 1.15rem; } .proj h3 a { color: var(--heading); text-decoration: none; } .proj h3 a:hover { color: var(--terracotta); text-decoration: underline; }
.proj p { margin: 0 0 6px; } .proj.road { border-left: 4px solid var(--amber); }
.statband { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: flex-end; padding: 14px 0; margin: 0 0 16px; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--line); }
.statband > div { display: flex; flex-direction: column; } .statband .big { font: 800 2.2rem/1 var(--display); color: var(--heading); }
.statband .lbl { font: 700 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; } .statband p { flex: 1 1 100%; margin: 4px 0 0; }
.comm td small { display: block; color: var(--muted); font: 500 .78rem var(--sans); }
.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; min-width: 90px; } .bar i { display: block; height: 100%; background: var(--accent); }
.big-bar { height: 16px; margin: 0 0 16px; }
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 10px 0 12px; border-bottom: 1px solid var(--line); } .timeline p { margin: 4px 0; font-size: .95rem; color: var(--muted); }

.shoplocal { padding: 24px 0 0; margin-top: 24px; border-top: 1px solid var(--rule); }
.cols-2.four { grid-template-columns: minmax(0, 1fr); } @media (min-width: 700px) { .cols-2.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (min-width: 1000px) { .cols-2.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Event lists (Bowie Park) */
.evlist { list-style: none; margin: 0; padding: 0; }
.evlist li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.evlist h3 { margin: 0 0 2px; font-size: 1.1rem; } .evlist h3 a { color: var(--heading); text-decoration: none; } .evlist h3 a:hover { color: var(--terracotta); text-decoration: underline; }
.evlist p { margin: 2px 0; font-size: .95rem; }
.evlist .is-cancelled h3, .evlist .is-cancelled p { opacity: .65; } .evlist .is-cancelled h3 a { text-decoration: line-through; }
.datebox { flex: none; width: 3.4rem; text-align: center; border: 1px solid var(--rule); background: var(--surface); padding: 4px 0; align-self: flex-start; }
.datebox b { display: block; font: 800 .68rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); }
.datebox i { display: block; font: 800 1.5rem/1.1 var(--display); font-style: normal; color: var(--heading); }
.hubabout { max-width: 46rem; margin: 0 0 18px; } .hubabout p { margin: 0 0 10px; }
.show { padding: 12px 0; } .show .src { font-size: .85rem; margin-top: 4px; }
a.button, button[type=submit] { display: inline-block; padding: 9px 16px; margin: 0 8px 8px 0; background: var(--heading); color: var(--bg, #fff); border: 0; border-radius: 8px; font: 700 .95rem var(--sans); text-decoration: none; cursor: pointer; }
a.button:hover, button[type=submit]:hover { background: var(--accent-text); color: #fff; }
.admin { max-width: 1100px; }
.adminnav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; padding: 8px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font: 700 .8rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.adminnav a { text-decoration: none; color: var(--heading); } .adminnav a[aria-current] { border-bottom: 2px solid var(--terracotta); } .adminnav .sp { flex: 1; } .adminnav form { margin: 0; }
button.linklike { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-transform: none; letter-spacing: 0; cursor: pointer; text-decoration: underline; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 12px 0 20px; }
.admin table.sched td, .admin table.sched th { vertical-align: top; padding: 8px 10px 8px 0; } .admin table.sched small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font: 700 .72rem var(--sans); letter-spacing: .04em; text-transform: uppercase; background: var(--line); color: var(--text); }
.pill-ok { background: #dcebd8; color: #1f4a2a; } .pill-warning, .pill-partial { background: #f6e6b8; color: #6b4a00; } .pill-error { background: #f3c9c0; color: #7a1f10; } .pill-off, .pill-never { background: var(--line); color: var(--muted); }
.errrow td { background: var(--surface); border-left: 3px solid var(--accent); font-size: .92rem; line-height: 1.5; }
.bad { color: #a32a18; } .note.bad { border-left-color: #a32a18; }
.logbox { background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; overflow: auto; max-height: 420px; font: .8rem/1.45 ui-monospace, Menlo, monospace; white-space: pre-wrap; }
form.inline { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 8px; } form.inline label { font-size: .9rem; }
button.small { padding: 3px 10px; font-size: .8rem; margin: 0; }
.adminform .field { margin: 0 0 14px; max-width: 760px; } .adminform label { display: block; font-weight: 700; margin-bottom: 3px; }
.adminform input[type=text], .adminform input[type=url], .adminform input[type=datetime-local], .adminform textarea, .adminform select { width: 100%; max-width: 760px; padding: 7px 9px; font: inherit; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.adminform .field small { display: block; color: var(--muted); font-size: .85rem; margin-top: 3px; } .adminform .has-error input, .adminform .has-error textarea { border-color: #a32a18; }
tr.dim td { opacity: .65; }
.tabs { display: flex; gap: 6px 18px; margin: 4px 0 14px; border-bottom: 1px solid var(--line); } .tabs a { padding: 6px 2px; text-decoration: none; color: var(--muted); font-weight: 700; } .tabs a[aria-current] { color: var(--heading); border-bottom: 3px solid var(--terracotta); }

/* Photos shown where an event or business is highlighted (home lead, home Dining column, Events page sections) */
.photo-fig { margin: 0 0 12px; }
.photo-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; border: 1px solid var(--line); }
.lead .photo-fig img { aspect-ratio: 16/9; }
.photo-fig .photo-credit { margin-top: 4px; }
.spot-kicker { font: 700 .8rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }

/* Sports theme: Fairview High School's black and gold (the school's About page names them; it publishes no hex codes, so these shades are ours).
   Applies to every /sports page (body.theme-sports) and the home page Sports column. Gold is a fill or an accent, never small text on a light page,
   and it is used sparingly: the current nav pill, a short bar under the title, card tops, win badges and the scoreboard. */
.theme-sports, .sports-col { --team-black: #121212; --team-gold: #F2B705; --team-gold-text: #8A6500; --accent: var(--team-gold-text); --accent-text: var(--team-gold-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sports, :root:not([data-theme="light"]) .sports-col { --accent: var(--team-gold); --accent-text: var(--team-gold); } }
.theme-sports .sections a[aria-current] { background: var(--team-gold); color: var(--team-black); }
.theme-sports .page-title { position: relative; border-bottom: 0; padding-bottom: 18px; }
.theme-sports .page-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 5px; border-radius: 3px; background: var(--team-gold); }
.theme-sports .recordbar .big { display: inline-block; padding-bottom: 3px; border-bottom: 4px solid var(--team-gold); }
.theme-sports .gamecard, .sports-col .gamecard { border-top: 4px solid var(--team-gold); }
.theme-sports .gamecard:hover, .sports-col .gamecard:hover { border-color: var(--team-gold); }
.theme-sports .scoreboard { background: var(--team-black); border-color: var(--team-black); border-top: 4px solid var(--team-gold); }
.theme-sports .sb-name { color: #D6D6D6; } .theme-sports .sb-score { color: var(--team-gold); } .theme-sports .sb-status { color: #FFFFFF; }
.theme-sports .sched th { border-bottom: 2px solid var(--team-gold); }
.theme-sports .res-w { background: var(--team-gold); color: var(--team-black); }
.theme-sports .res-l { background: var(--team-black); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sports .res-l { background: #2B2B2B; } }
.theme-sports .chip.on { background: var(--team-gold); color: var(--team-black); border-color: var(--team-gold); }
.sports-col .section-head { border-top-color: var(--team-gold); }
.sports-col .mini-record { border-bottom: 3px solid var(--team-gold); padding-bottom: 8px; display: inline-block; }

.more a, .brief a, .section-head a, .item h3 a, .card, .gamecard, .evlist a { text-decoration: none; }
.more a:hover, .brief a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.brief a { font-weight: 600; }
/* Generic illustration shown when a lead event has no photo: no border or credit, since it is not a photograph. */
.photo-fig.generic-art img { border: 0; border-radius: var(--radius); background: var(--chip-bg); }

.lead h1 a { color: inherit; text-decoration: none; } .lead h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.eventpage { max-width: 760px; } .eventpage h1 { margin: 2px 0 12px; }
.eventpage .facts { display: grid; grid-template-columns: 5.5rem 1fr; gap: 8px 14px; margin: 16px 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.eventpage .facts dt { font: 700 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; } .eventpage .facts dd { margin: 0; }
.eventbody p { margin: 0 0 12px; line-height: 1.6; }
