:root {
  --navy: #15395B;
  --teal: #2A8C82;
  --teal-deep: #1F6F67; /* all teal text: 5.9:1 on white, passes AA */
  --teal-soft: #E3F1EF;
  --sand: #F4EFE6;
  --paper: #FBF9F5;
  --ink: #1C2430;
  --muted: #5A6672;
  --rule: #DDD6C9;
  --warn: #8A5A00;
  --warn-bg: #FFF4DB;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--navy); }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.topbar { background: var(--navy); color: #DCE6EF; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.pill { display: inline-block; background: #F2C14E; color: #3B2A00; border-radius: 99px; padding: 1px 9px; font-weight: 700; font-size: 12px; margin-left: 8px; }
.masthead { text-align: center; padding: 22px 0 14px; border-bottom: 1px solid var(--rule); }
.masthead img { width: 330px; max-width: calc(100% - 32px); height: auto; display: block; margin: 0 auto; }
.tagline { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
@media (max-width: 479px) { .masthead img { width: 240px; } } /* plain logo.svg here: never a slogan version under 240 px */
nav.main { border-bottom: 3px double var(--rule); background: #fff; position: sticky; top: 0; z-index: 5; }
nav.main ul { list-style: none; margin: 0 auto; padding: 0 16px; max-width: 1120px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
nav.main ul::-webkit-scrollbar { display: none; }
nav.main a { display: block; padding: 11px 10px; white-space: nowrap; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
nav.main a:hover, nav.main a.on { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--teal); }
@media (min-width: 901px) { nav.main a { padding: 11px 8px; } }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; padding-top: 28px; padding-bottom: 48px; } /* keeps .wrap's 16px side gutter on phones */
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; gap: 28px; } }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.2; }
.kicker { font: 700 12px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 8px; }
.kicker a { color: inherit; text-decoration: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12px; font-weight: 600; background: var(--sand); color: var(--navy); padding: 2px 9px; border-radius: 99px; text-decoration: none; }

/* Lead + cards */
.lead { padding-bottom: 26px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.lead h2 { font-size: clamp(28px, 4.2vw, 40px); margin: 0 0 10px; }
.lead h2 a, .card h3 a { color: var(--ink); text-decoration: none; }
.lead h2 a:hover, .card h3 a:hover { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; }
.dek { font-size: 19px; color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.card h3 { font-size: 22px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.section-title { font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--navy); border-top: 3px solid var(--navy); padding-top: 10px; margin: 0 0 16px; }

/* Sidebar */
aside .box { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 18px; margin-bottom: 22px; }
aside .box h2 { font-size: 20px; margin: 0 0 12px; }
.meet-day { font: 700 13px var(--sans); color: var(--navy); margin: 14px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.meet-day:first-of-type { margin-top: 0; }
.meet { font-size: 15px; line-height: 1.4; margin: 0 0 9px; }
.meet .t { color: var(--muted); font-size: 13px; display: block; }
.signup label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
input[type=email], input[type=text], select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #C9C1B2; border-radius: 8px; background: #fff; color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 14px; }
.checks label { font-weight: 500; margin: 0; display: flex; gap: 6px; align-items: center; }
button, .btn { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px; font: 700 15px var(--sans); cursor: pointer; text-decoration: none; margin-top: 14px; }
button:hover, .btn:hover { background: var(--teal-deep); color: #fff; }
.hp { position: absolute; left: -5000px; }
.small { font-size: 13px; color: var(--muted); }

/* Article */
article.story { max-width: 720px; }
article.story h1 { font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 12px; }
.byline { font-size: 14px; color: var(--muted); margin: 14px 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.body p, .body li { font-size: 18px; }
.body h3 { font-size: 21px; margin: 28px 0 8px; }
.sources { background: var(--sand); border-radius: 10px; padding: 16px 20px; margin-top: 32px; font-size: 15px; }
.sources h2 { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; color: var(--navy); }
.sources ul { margin: 0; padding-left: 18px; }
.sources li { margin: 4px 0; }
.src-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-deep); margin-right: 6px; }
.correction { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Editor preview */
.editor { background: var(--warn-bg); border: 1px dashed #D9A93A; border-radius: 10px; padding: 14px 18px; margin: 18px 0; font-size: 15px; }
.editor h2, .editor h3 { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--warn); margin: 0 0 8px; }
.editor ul { margin: 0; padding-left: 18px; }

/* Tables and directory */
.dir-town { margin-bottom: 34px; }
.dir-town h2 { font-size: 26px; margin: 0 0 6px; }
table.dir { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
table.dir th, table.dir td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.dir th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sand); }
.table-scroll { overflow-x: auto; }
.page { max-width: 760px; padding: 28px 0 56px; }
.page h1 { font-size: clamp(30px, 4.5vw, 42px); margin: 0 0 14px; }
.notice { background: var(--teal-soft); border-radius: 10px; padding: 14px 18px; }
.count { font-size: 13px; color: var(--muted); text-align: right; margin-top: 4px; }

/* Footer */
footer { background: var(--navy); color: #C9D6E2; font-size: 14px; padding: 30px 0; }
footer a { color: #fff; }
footer .cols { display: flex; flex-wrap: wrap; gap: 18px 34px; justify-content: space-between; align-items: flex-start; }
footer img { height: 54px; width: auto; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.card p.kicker { font-size: 12px; color: var(--teal-deep); margin: 0 0 8px; }

/* Advertising: rate card, quote form, standards */
.rate-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; margin: 8px 0 6px; }
.rate-table th, .rate-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rate-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sand); }
.rate-table td.num { text-align: right; white-space: nowrap; font-weight: 700; }
.rate-table tr.group td { background: var(--teal-soft); font-weight: 700; color: var(--navy); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.ad-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; }
.ad-cta .btn { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stats div { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; }
.stats strong { display: block; font: 700 22px var(--serif); color: var(--navy); }
.stats span { font-size: 14px; color: var(--muted); }
.adq fieldset { border: 1px solid var(--rule); border-radius: 12px; background: #fff; padding: 14px 16px 18px; margin: 0 0 20px; min-width: 0; }
.adq legend { font: 700 19px var(--serif); color: var(--navy); padding: 0 6px; }
.adq .field { margin: 14px 0 0; }
.adq .field > label, .adq .lab { display: block; font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.adq .hint { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.adq .opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.adq input[type=url], .adq input[type=tel], .adq input[type=date], .adq input[type=number] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #C9C1B2; border-radius: 8px; background: #fff; color: var(--ink); }
.adq input[type=file] { font-size: 14px; max-width: 100%; }
.adq .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .adq .two { grid-template-columns: 1fr; } }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; margin: 8px 0 0; cursor: pointer; background: var(--paper); }
.choice:hover { border-color: var(--teal); }
.choice input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--teal); }
.choice strong { display: block; font-size: 15px; }
.choice span.d { display: block; font-size: 13px; color: var(--muted); }
.choice .price { font-weight: 700; color: var(--navy); font-size: 14px; }
.choice.on { border-color: var(--teal); background: var(--teal-soft); }
.sub { margin: 8px 0 0 28px; display: grid; gap: 8px; }
.sub label { font-size: 13px; font-weight: 700; display: block; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios .choice { flex: 1 1 180px; margin: 0; }
.err { color: #B3261E; font-size: 14px; font-weight: 600; margin: 4px 0 0; }
.err:empty { display: none; }
[aria-invalid=true] { border-color: #B3261E !important; }
.err-summary { border: 2px solid #B3261E; border-radius: 10px; background: #FDF2F1; padding: 12px 16px; margin: 0 0 18px; }
.err-summary h2 { font-size: 18px; margin: 0 0 6px; color: #8C1D18; }
.estimate { position: sticky; bottom: 0; z-index: 4; background: var(--navy); color: #fff; border-radius: 12px 12px 0 0; padding: 12px 16px; margin: 0 0 18px; box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
.estimate .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.estimate .total { font: 700 24px var(--serif); }
.estimate details { font-size: 14px; color: #DCE6EF; margin-top: 4px; }
.estimate summary { cursor: pointer; color: #fff; font-weight: 600; }
.estimate table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.estimate td { padding: 3px 0; vertical-align: top; }
.estimate td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.estimate .disc td { color: #9ED8D0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.agree input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.adq button[type=submit] { font-size: 17px; padding: 13px 24px; }
.adq button[disabled] { opacity: .6; cursor: wait; }
.std-list li { margin: 6px 0; }
.std-list .req { display: block; font-size: 14px; color: var(--muted); }

/* ---------- Shared: focus and screen-reader text ---------- */
a:focus-visible, button:focus-visible, summary:focus-visible, .tog input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hscroll { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.hscroll > * { scroll-snap-align: start; min-width: 0; }

/* ---------- Events: date tile and chips ---------- */
.dtile { --c: var(--navy); background: var(--c); color: #fff; border-radius: 10px; width: 64px; min-width: 64px; padding: 6px 4px 7px; text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1; align-self: flex-start; }
.dtile .ico { opacity: .92; margin-bottom: 3px; }
.dtile .wd { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.dtile .dn { font: 700 28px/1.05 var(--serif); margin: 2px 0 1px; }
.dtile .mo { font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.dtile.sm { width: 44px; min-width: 44px; padding: 5px 2px; border-radius: 8px; }
.dtile.sm .ico { display: none; }
.dtile.sm .dn { font-size: 19px; }
.dtile.sm .wd, .dtile.sm .mo { font-size: 10px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pchip, .cchip { font-size: 12px; font-weight: 700; border-radius: 99px; padding: 2px 9px; line-height: 1.5; }
.pchip { background: var(--sand); color: var(--navy); }
.pchip.free { background: #1B6B3A; color: #fff; }
.cchip { --c: var(--navy); background: #fff; color: var(--c); border: 1px solid currentColor; }

/* ---------- Events page ---------- */
.evp { padding: 26px 16px 56px; }
.evp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.evp-head h1 { font-size: clamp(30px, 4.5vw, 42px); margin: 0 0 6px; }
.evp-head .dek { max-width: 720px; font-size: 18px; }
.evp-head .add-ev { margin: 0; white-space: nowrap; }
.ev-stories { margin-bottom: 26px; }
.ev-stories li { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.ev-stories a { font: 600 17px/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.ev-stories a:hover { text-decoration: underline; color: var(--navy); }
.featured { margin-bottom: 28px; }
.ft-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 3px solid var(--navy); margin-bottom: 14px; }
.ft-head .section-title { border-top: 0; margin: 0; }
.ft-ad { font-size: 13px; font-weight: 600; white-space: nowrap; padding-top: 10px; }
.ft-cards { grid-auto-columns: minmax(270px, 1fr); }
.ft-card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: flex; gap: 14px; }
.ft-card.sponsored { border-color: #D9A93A; background: #FFFCF3; }
.spons { font: 700 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--warn); margin: 0 0 6px; }

/* Controls */
.ev-controls { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.ev-controls .row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.ev-controls .fld { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 0; }
.ev-controls .fld.q { flex: 2 1 260px; }
.ev-controls .fld.date { flex: 0 1 190px; }
.ev-controls label { font-size: 13px; font-weight: 700; color: var(--muted); }
.ev-controls input[type=search], .ev-controls input[type=date] { width: 100%; font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid #C9C1B2; border-radius: 8px; background: #fff; color: var(--ink); min-height: 44px; }
.ev-controls select { padding: 9px 10px; min-height: 44px; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 300px; }
.qchip, .views button, .linkbtn, .act { font: 600 14px var(--sans); margin: 0; cursor: pointer; border-radius: 99px; }
.qchip { background: var(--paper); color: var(--navy); border: 1px solid #C9C1B2; padding: 8px 14px; min-height: 40px; }
.qchip:hover { background: var(--teal-soft); color: var(--navy); border-color: var(--teal); }
.qchip[aria-pressed=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tog { display: inline-flex; align-items: center; cursor: pointer; }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog span { display: inline-flex; gap: 4px; align-items: center; border: 1px solid #C9C1B2; border-radius: 99px; padding: 8px 14px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--paper); }
.tog span::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 4px; margin-right: 4px; flex: none; }
.tog input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.tog input:checked + span::before { background: #fff; box-shadow: inset 0 0 0 2px var(--navy); }
.tog .saved-n { border: 0; padding: 0; min-height: 0; background: none; color: inherit; }
.tog .saved-n::before { display: none; }
.linkbtn { background: none; color: var(--navy); border: 0; text-decoration: underline; padding: 8px 4px; }
.linkbtn:hover { background: none; color: var(--teal-deep); }
.ev-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.ev-count { margin: 0; font-weight: 700; color: var(--navy); }
.views { display: inline-flex; border: 1px solid #C9C1B2; border-radius: 99px; overflow: hidden; background: #fff; }
.views button { background: #fff; color: var(--navy); border: 0; border-radius: 0; padding: 8px 14px; min-height: 40px; }
.views button + button { border-left: 1px solid #C9C1B2; }
.views button:hover { background: var(--teal-soft); color: var(--navy); }
.views button[aria-pressed=true] { background: var(--navy); color: #fff; }

/* Results */
.ev-results:focus { outline: none; }
.day-h { position: sticky; top: var(--navh, 48px); z-index: 3; background: var(--paper); font: 700 15px var(--sans); color: var(--navy); margin: 0; padding: 12px 0 8px; border-bottom: 2px solid var(--navy); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.day-h .day-wd { font-weight: 600; color: var(--muted); }
.day-h .n, .ongoing summary .n { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.day { margin-bottom: 18px; }
.ongoing { background: #fff; border: 1px solid var(--rule); border-radius: 12px; margin: 0 0 18px; }
.ongoing summary { cursor: pointer; padding: 12px 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; list-style: none; }
.ongoing summary::-webkit-details-marker { display: none; }
.ongoing summary::before { content: "+"; font: 700 18px/1 var(--sans); color: var(--teal-deep); width: 14px; }
.ongoing[open] summary::before { content: "\2212"; }
.og-t { font: 700 15px var(--sans); color: var(--navy); }
.og-d { font-size: 14px; color: var(--muted); }
.ongoing .day-items { padding: 0 14px 6px; }
.ev { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.ev-body { min-width: 0; flex: 1; }
.ev-title { font-size: 20px; margin: 0 0 4px; overflow-wrap: anywhere; }
.ev-title a { color: var(--ink); text-decoration: none; }
.ev-title a:hover { color: var(--navy); text-decoration: underline; }
.ev-meta, .ev-where { margin: 0; font-size: 15px; }
.ev-meta { font-weight: 700; color: var(--navy); }
.ev-where { color: var(--muted); overflow-wrap: anywhere; }
.ev-desc { margin: 6px 0 0; font-size: 15px; color: var(--ink); }
.ev-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin-top: 6px; }
.ev-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ft-card .ev-actions { margin-top: 10px; }
.act { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--navy); border: 1px solid #C9C1B2; padding: 6px 12px; min-height: 36px; font-size: 13px; }
.act:hover { background: var(--teal-soft); color: var(--navy); border-color: var(--teal); }
.act.save[aria-pressed=true] { background: var(--teal-deep); border-color: var(--teal); color: #fff; }
.act.save[aria-pressed=true] svg path { fill: currentColor; }
.ev-empty { text-align: center; background: #fff; border: 1px dashed #C9C1B2; border-radius: 12px; padding: 30px 18px; }
.ev-empty h2 { margin: 0 0 6px; font-size: 22px; }
.ev-note { margin-top: 22px; }
/* Compact view: one row per event, category shown as a colored edge */
.view-compact .ev { display: block; padding: 8px 0 8px 12px; border-left: 4px solid var(--c); }
.view-compact .dtile, .view-compact .ev-desc, .view-compact .ev-chips .cchip { display: none; }
.view-compact .ev-body { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; }
.view-compact .ev-meta { grid-column: 1; grid-row: 1 / span 2; font-size: 14px; align-self: start; padding-top: 1px; }
.view-compact .ev-title { font: 700 16px/1.35 var(--sans); grid-column: 2; grid-row: 1; margin: 0; }
.view-compact .ev-where { grid-column: 2; grid-row: 2; font-size: 14px; }
.view-compact .ev-foot { grid-column: 3; grid-row: 1 / span 2; margin: 0; flex-wrap: nowrap; }
.view-compact .ev-chips .pchip { font-size: 11px; }
.view-compact .act .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.view-compact .act { padding: 6px 9px; }
/* Grid view: cards */
.view-grid .day-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding-top: 12px; }
.view-grid .ongoing .day-items { padding: 0 14px 14px; }
.view-grid .ev { flex-direction: column; background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--c); border-radius: 10px; padding: 14px; gap: 10px; }
.view-grid .dtile { flex-direction: row; gap: 6px; width: auto; min-width: 0; padding: 5px 10px; align-items: center; }
.view-grid .dtile .ico { margin: 0; }
.view-grid .dtile .dn { font-size: 18px; margin: 0; }
.view-grid .ev-title { font-size: 18px; }
.view-grid .ev-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.view-grid .ev-body { display: flex; flex-direction: column; }
.view-grid .ev-foot { margin-top: auto; padding-top: 10px; }
@media (max-width: 620px) {
  .evp-head { align-items: flex-start; }
  .evp-head .dek { font-size: 16px; }
  .ev-controls { padding: 12px; }
  .ev-controls .fld { flex: 1 1 40%; }
  .ev-controls .fld.q, .ev-controls .fld.date { flex: 1 1 100%; }
  .ev-controls select { font-size: 15px; padding: 9px 6px; }
  .ev-controls .qchips { gap: 6px; }
  .qchip { padding: 7px 11px; }
  .ev-title { font-size: 18px; }
  .dtile { width: 56px; min-width: 56px; }
  .dtile .dn { font-size: 24px; }
  .view-compact .ev-body { grid-template-columns: minmax(0, 1fr) auto; }
  .view-compact .ev-title, .view-compact .ev-meta, .view-compact .ev-where { grid-column: 1; grid-row: auto; }
  .view-compact .ev-foot { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: flex-end; gap: 6px; }
  .view-compact .ev-foot .ev-chips { display: none; }
  .hscroll { grid-auto-columns: 82%; }
  .ft-card { gap: 12px; }
}

/* ---------- Home sidebar: coming up, obituaries ---------- */
.mini-ev, .mini-ob { list-style: none; margin: 0 0 8px; padding: 0; }
.mini-ev li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 15px; line-height: 1.35; }
.mini-ev li > span, .mini-ob li { min-width: 0; }
.mini-ob li { margin: 0 0 9px; font-size: 15px; line-height: 1.35; }
.mini-ev .t, .mini-ob .t { display: block; color: var(--muted); font-size: 13px; }

/* ---------- Obituaries ---------- */
.obits .ob-intro { background: var(--sand); border-radius: 10px; padding: 12px 16px; margin: 16px 0 26px; font-size: 16px; }
.ob-date { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); border-top: 1px solid var(--navy); padding-top: 10px; margin: 30px 0 4px; }
.ob { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.ob:last-child { border-bottom: 0; }
.ob h3 { font-size: 23px; margin: 0 0 4px; }
.ob p { margin: 4px 0; font-size: 16px; }
.ob-meta { color: var(--muted); }
.ob .lab { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 6px; }
.ob-foot { margin-top: 30px; }

/* ---------- Event submission form ---------- */
.evs fieldset { border: 1px solid var(--rule); border-radius: 12px; background: #fff; padding: 12px 16px 18px; margin: 0 0 20px; min-width: 0; }
.evs legend { font: 700 19px var(--serif); color: var(--navy); padding: 0 6px; }
.evs .field { margin: 14px 0 0; }
.evs .field > label { display: block; font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.evs .opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.evs .hint { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.evs input[type=url], .evs input[type=tel], .evs input[type=date], .evs input[type=time] { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #C9C1B2; border-radius: 8px; background: #fff; color: var(--ink); }
.evs textarea { min-height: 110px; }
.evs .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .evs .two { grid-template-columns: 1fr; } }
.evs .check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 14px; }
.evs .check input { width: 18px; height: 18px; accent-color: var(--teal); }
.evs button[type=submit] { font-size: 17px; padding: 13px 24px; }

/* Membership */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0; }
.plan .price { font-size: 1.1rem; margin: 4px 0; }
.plan .price strong { font-family: Lora, Georgia, serif; font-size: 2rem; color: #15395B; }
.plan input[type=email] { width: 100%; box-sizing: border-box; }
a.button { display: inline-block; background: #15395B; color: #fff; padding: 10px 18px; border-radius: 4px; text-decoration: none; font-weight: 700; }
a.button:hover { background: var(--teal-deep); }

/* Topic jump links (town and sports pages) */
.topic-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 22px; }
.topic-jump a { font: 600 13px/1 system-ui, sans-serif; padding: 7px 11px; border: 1px solid #D6CFC2; border-radius: 999px; color: #15395B; text-decoration: none; background: #fff; }
.topic-jump a:hover { border-color: #2A8C82; color: var(--teal-deep); }
.topic { scroll-margin-top: 16px; margin-bottom: 26px; }
.btn.ghost { background: transparent; color: #15395B; border: 1px solid #15395B; }

/* Business spotlight and member news */
.spotlight { background: #F4EFE6; border-left: 5px solid #2A8C82; padding: 18px 20px; margin: 0 0 26px; }
.spotlight h2 { margin: 4px 0 6px; font-size: clamp(22px, 3vw, 28px); }
.spotlight h2 a { color: inherit; text-decoration: none; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 9px 0; border-bottom: 1px solid #E6E0D4; }
.news-list .t, .worship .t { display: block; font-size: 13px; color: #5A6672; }

/* Worship directory */
.worship { padding: 12px 0; border-bottom: 1px solid #E6E0D4; }
.worship h3 { margin: 0 0 2px; font-size: 18px; }
.worship ul { margin: 6px 0 0; padding-left: 18px; }

/* Sports schedule and scores */
.sc-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin: 16px 0 6px; }
.sc-filters label { display: flex; flex-direction: column; font: 600 12px system-ui, sans-serif; color: #5A6672; gap: 4px; }
.sc-filters select { font-size: 15px; padding: 6px 8px; min-width: 150px; }
.sc-day h2 { font-size: 17px; margin: 22px 0 6px; padding-bottom: 4px; border-bottom: 2px solid #15395B; }
.sc-day ul { list-style: none; margin: 0; padding: 0; }
.sc-game { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EEE8DC; }
.sc-time { font: 600 14px system-ui, sans-serif; color: #15395B; }
.sc-what .t { display: block; font-size: 13px; color: #5A6672; }
.sc-res { display: inline-block; min-width: 48px; }
.sc-res.w { color: #1F6F3A; } .sc-res.l { color: #9C2F2F; }
.sc-monthbar { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 8px; }
.sc-monthbar button { background: #fff; color: #15395B; border: 1px solid #D6CFC2; padding: 6px 10px; border-radius: 6px; cursor: pointer; font: 600 14px system-ui, sans-serif; margin: 0; }
.sc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #DDD6C9; border-left: 1px solid #DDD6C9; }
.sc-hd { font: 700 12px system-ui, sans-serif; text-transform: uppercase; padding: 6px; background: #F4EFE6; border-right: 1px solid #DDD6C9; border-bottom: 1px solid #DDD6C9; }
.sc-cell { min-height: 92px; padding: 4px; border-right: 1px solid #DDD6C9; border-bottom: 1px solid #DDD6C9; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.sc-cell.empty { background: #FAF8F4; }
.sc-dn { font: 700 12px system-ui, sans-serif; color: #5A6672; }
.sc-chip { font: 11px/1.3 system-ui, sans-serif; padding: 1px 4px; border-radius: 3px; background: #EEF2F6; color: #15395B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-chip.home { background: #DCEFEC; }
.sc-more { font-size: 11px; color: #5A6672; }
@media (max-width: 640px) { .sc-cell { min-height: 64px; } .sc-chip { font-size: 10px; } .sc-game { grid-template-columns: 74px 1fr; } }

/* Launch notice */
.launch-note { background: #F4EFE6; border-bottom: 1px solid #E2DACB; font: 14px/1.5 system-ui, sans-serif; color: #1C2430; }
.launch-note .wrap { padding-top: 9px; padding-bottom: 9px; text-align: center; }
.launch-note strong { color: #15395B; }

/* Share buttons on stories */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 18px; }
.share-label { font: 700 12px/1 var(--sans, system-ui); letter-spacing: .08em; text-transform: uppercase; color: #5A6672; margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid #D6CFC2; border-radius: 999px; background: #fff; color: #15395B; font: 600 13px/1 system-ui, sans-serif; text-decoration: none; cursor: pointer; margin: 0; }
.share-btn:hover { border-color: #2A8C82; color: var(--teal-deep); }
.share-btn[hidden] { display: none; }
@media (max-width: 520px) { .share-btn span { display: none; } .share-btn { padding: 9px; } }

/* The hidden attribute always wins over layout rules (filters rely on it). */
[hidden] { display: none !important; }

/* Sports calendar filter bar */
.fbar { background: #fff; border: 1px solid #E2DACB; border-radius: 10px; padding: 12px 14px; margin: 16px 0 10px; display: grid; gap: 8px; }
.frow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flabel { font: 700 12px system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #5A6672; width: 110px; flex: none; }
.chips-f { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-f button { margin: 0; background: #fff; color: #15395B; border: 1px solid #CFC7B8; border-radius: 999px; padding: 6px 12px; font: 600 13px/1.1 system-ui, sans-serif; cursor: pointer; }
.chips-f button:hover { border-color: #2A8C82; }
.chips-f button.on { background: #15395B; border-color: #15395B; color: #fff; }
.fclear { margin: 0 0 0 auto; background: none; color: #15395B; border: 0; text-decoration: underline; font: 600 13px system-ui, sans-serif; padding: 6px; cursor: pointer; }
.linkbtn { background: none; border: 0; color: #15395B; text-decoration: underline; padding: 0; margin: 0; font: inherit; cursor: pointer; }
.sc-cell.today { outline: 2px solid #2A8C82; outline-offset: -2px; }
@media (max-width: 640px) { .flabel { width: 100%; } .fclear { margin-left: 0; } }

/* Brand lines, Oct. 1, 2026 */
.slogan { margin: 8px 0 0; font: italic 600 17px/1.3 var(--serif); color: var(--navy); }
.lead-line { font: 600 21px/1.35 var(--serif); color: var(--navy); margin: 0 0 18px; }
.kbid { display: inline-block; font: 700 12px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--teal-deep); margin: 0 0 8px; }
.kbid + .kicker { margin-top: 0; }
.kbid-sep { color: var(--muted); margin: 0 6px; }
/* Signup box inside story text, after the third paragraph */
.story .inline-signup { background: var(--sand); border-radius: 10px; padding: 16px 18px; margin: 26px 0; }
.inline-signup h2 { font: 700 19px/1.25 var(--serif); margin: 0 0 4px; color: var(--navy); }
.inline-signup p.small { margin: 0 0 10px; }
.inline-signup form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-signup label.email { flex: 1 1 220px; font-size: 14px; font-weight: 600; }
.inline-signup .checks { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.inline-signup button { margin-top: 0; }
/* Cape Ann crime chart */
#crime-chart { margin: 22px 0; padding: 14px; border: 1px solid #E5DED2; border-radius: 10px; background: #fff; position: relative; }
#crime-chart h3 { margin: 0 0 8px; }
.cc-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.cc-ctl label { font-size: 14px; font-weight: 600; } .cc-ctl select { font-size: 15px; padding: 6px 8px; border-radius: 6px; }
.cc-seg { display: inline-flex; border: 1px solid #C9C1B2; border-radius: 99px; overflow: hidden; }
.cc-seg button { margin: 0; border: 0; border-radius: 0; background: #fff; color: #15395B; padding: 7px 12px; font-size: 13px; }
.cc-seg button[aria-pressed="true"] { background: #15395B; color: #fff; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; align-items: center; }
.cc-chip { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid #C9C1B2; border-radius: 99px; background: #fff; color: #1C2430; font-size: 13px; font-weight: 600; opacity: .55; }
.cc-chip[aria-pressed="true"] { opacity: 1; border-color: #15395B; }
.cc-chip:disabled { opacity: .3; cursor: not-allowed; }
.cc-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cc-sep { font-size: 12px; color: #5A6672; margin-left: 6px; }
.cc-tip { display: none; font-size: 14px; background: #F4EFE6; border-radius: 6px; padding: 8px 10px; margin: 6px 0; }
.cc-note { margin: 8px 0 4px; }
.cc-tbl { border-collapse: collapse; width: 100%; margin-top: 6px; font-size: 13px; }
.cc-tbl th, .cc-tbl td { border-bottom: 1px solid #E5DED2; padding: 4px 6px; text-align: right; } .cc-tbl th:first-child { text-align: left; }
.cc-tbl span { color: #5A6672; }

.byline-who { font-weight: 700; color: var(--ink, #1C2430); }
.byline-note { display: block; margin-top: 4px; font-size: 13px; }
/* AI note under the date on story teasers (Oct. 3, 2026) */
.dateline .card-note { display: block; margin-top: 2px; font: 400 12px/1.35 var(--sans); color: var(--muted); }
.dateline .card-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.kbid-band .dateline .card-note, .kbid-band .dateline .card-note a { color: #C9D6E2; }

/* ===== Homepage hierarchy, photos and signup (Oct. 1, 2026) ===== */
.dateline { font: 600 13px/1.3 var(--sans); color: var(--muted); margin: 0 0 8px; }
.card .dateline { margin: -2px 0 8px; }
.lead .dateline { margin: 0 0 10px; }
.lead.has-photo h2 { margin-top: 4px; }
.lead .lead-photo { margin: 4px 0 14px; }  /* photo sits under the headline and date line (Oct. 5, 2026) */

/* Photos: fixed frames reserve space before the image loads, so nothing jumps. */
.photo { margin: 0 0 16px; }
.photo-frame { position: relative; overflow: hidden; background: var(--sand); border-radius: 6px; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Illustrations (Current graphics) are shown whole inside the frame, never cropped; navy fills any gap to match the graphics. */
.photo-frame.whole { background: var(--navy); }
.photo-frame.whole img { object-fit: contain; }
.photo figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.photo .credit { white-space: normal; overflow-wrap: anywhere; font-size: 12px; letter-spacing: .02em; }
.photo figcaption { overflow-wrap: anywhere; }
.photo-label { position: absolute; left: 8px; top: 8px; background: var(--navy); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; }
.story-photo { margin: 18px 0 6px; }
.thumb { margin-bottom: 10px; }
.thumb figcaption { font-size: 11px; margin-top: 4px; }

/* Top stories next to the lead */
.top-stories { margin: 0 0 30px; }
.top-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.top-story { padding: 0 18px; border-left: 1px solid var(--rule); }
.top-story:first-child { padding-left: 0; border-left: 0; }
.top-story:last-child { padding-right: 0; }
.top-story h3 { font-size: 19px; margin: 0 0 6px; line-height: 1.25; }
.top-story h3 a { color: var(--ink); text-decoration: none; }
.top-story h3 a:hover { color: var(--navy); text-decoration: underline; }
.top-story p:not(.kicker):not(.dateline) { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 700px) {
  .top-grid { grid-template-columns: 1fr; }
  .top-story { padding: 16px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .top-story:first-child { padding-top: 0; border-top: 0; }
}

/* Shared signup form */
.cc-signup label, .cc-signup legend { font: 600 14px/1.3 var(--sans); color: var(--ink); }
.cc-signup .sf-field label { display: block; margin: 0 0 5px; }
.cc-signup fieldset { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.cc-signup legend { padding: 0; margin: 0 0 6px; }
.cc-signup .checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; }
.cc-signup .checks label { font-weight: 500; display: flex; gap: 6px; align-items: center; margin: 0; min-height: 28px; }
.cc-signup .checks input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.cc-signup button { margin-top: 14px; }
.cc-signup button[disabled] { opacity: .65; cursor: wait; }
.sf-err { color: #B3261E; font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.cc-signup input[aria-invalid=true] { border-color: #B3261E; outline-color: #B3261E; }
.sf-towns.invalid legend { color: #B3261E; }
.sf-status { font-size: 14px; margin: 8px 0 0; min-height: 0; }
.sf-status:empty { display: none; }
.sf-status.error { color: #B3261E; font-weight: 600; }
.sf-status.busy { color: var(--muted); }
.sf-done { background: var(--teal-soft); border-radius: 10px; padding: 14px 16px; font-size: 16px; }
.sf-done strong { color: var(--navy); }

/* Homepage signup band, right after the lead area */
.signup-band { background: var(--sand); border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 10px; padding: 20px 22px; margin: 0 0 28px; }
.signup-band h2 { font-size: 24px; margin: 0 0 6px; }
.signup-band .sb-copy p { margin: 0 0 4px; }
.signup-band .sb-copy p.small { margin-bottom: 12px; }
.signup-band .cc-signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; }
.signup-band .sf-field { grid-column: 1; grid-row: 1; }
.signup-band button { grid-column: 2; grid-row: 1; margin-top: 0; height: 46px; white-space: nowrap; }
.signup-band fieldset { grid-column: 1 / -1; grid-row: 2; }
.signup-band .sf-status { grid-column: 1 / -1; grid-row: 3; }
.signup-band .sf-field .sf-err { position: static; }
@media (max-width: 560px) {
  .signup-band { padding: 18px 16px; }
  .signup-band .cc-signup { grid-template-columns: 1fr; }
  .signup-band button { grid-column: 1; grid-row: 3; width: 100%; margin-top: 14px; }
  .signup-band .sf-status { grid-row: 4; }
}
.inline-signup form.cc-signup { display: block; }
.inline-signup .cc-signup .checks { flex: none; }
aside .signup .cc-signup button { width: 100%; }

/* Town strip */
.town-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 30px; }
.town-strip .ts-label { font: 700 12px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--navy); margin-right: 4px; }
.town-strip a { font-weight: 600; font-size: 15px; color: var(--navy); background: #fff; border: 1px solid var(--rule); border-radius: 99px; padding: 6px 14px; text-decoration: none; }
.town-strip a:hover { border-color: var(--teal); color: var(--teal-deep); }

/* Know Before It's Decided: the signature civic feature */
.kbid-band { background: var(--navy); color: #fff; border-radius: 12px; padding: 22px 24px 18px; margin: 0 0 34px; }
.kbid-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 12px; margin-bottom: 4px; }
.kbid-head h2 { color: #fff; font-size: 26px; margin: 0; }
.kbid-head p { margin: 0; color: #7FD1C7; font: italic 600 17px/1.3 var(--serif); }
.kbid-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.kbid-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.kbid-town { font: 700 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: #7FD1C7; margin: 0 0 7px; }
.kbid-list h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; }
.kbid-list h3 a { color: #fff; text-decoration: none; }
.kbid-list h3 a:hover { text-decoration: underline; }
.kbid-band .dateline { color: #C9D6E2; margin: 0; }
.kbid-band .more { margin: 14px 0 0; font-size: 14px; font-weight: 600; }
.kbid-band .more a { color: #fff; text-decoration-color: #7FD1C7; text-underline-offset: 3px; }
.kbid-band .small { color: #DCE6EF; }
.kbid-band a:focus-visible { outline-color: #7FD1C7; }
@media (max-width: 620px) { .kbid-band { padding: 18px 16px 14px; } .kbid-list { grid-template-columns: 1fr; } }

/* Section blocks */
.home-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 34px; }
@media (max-width: 700px) { .home-sections { grid-template-columns: 1fr; } }
.home-sec .section-title a { color: var(--navy); text-decoration: none; }
.home-sec .section-title a:hover { color: var(--teal-deep); }
.briefs { list-style: none; margin: 0; padding: 0; }
.brief { padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid var(--rule); }
.brief h3 { font-size: 17px; line-height: 1.3; margin: 0 0 4px; }
.brief:first-child h3 { font-size: 20px; }
.brief h3 a { color: var(--ink); text-decoration: none; }
.brief h3 a:hover { color: var(--navy); text-decoration: underline; }
.brief .dateline { margin: 0; }
.brief-lead .thumb { margin: 0 0 8px; }
.brief-lead .thumb img { width: 100%; height: auto; display: block; }
.dek-sm { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.home-sec .more { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.home-sec .more a { color: var(--teal-deep); }
.older { margin: 34px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
/* School meal widgets */
.mw { margin: 22px 0; padding: 14px; border: 1px solid #E5DED2; border-radius: 10px; background: #fff; }
.mw h3 { margin: 0 0 6px; }
.mw-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0; }
.mw-ctl label { font-size: 14px; font-weight: 600; } .mw-ctl select, .mw-ctl input[type=number] { font-size: 15px; padding: 6px 8px; border-radius: 6px; max-width: 100%; }
.mw-ctl input[type=number] { width: 80px; } .mw-chk { font-weight: 400 !important; }
.mw-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 8px 0; }
.mw-items fieldset { border: 1px solid #E5DED2; border-radius: 8px; padding: 6px 10px; margin: 0; }
.mw-items legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2A8C82; }
.mw-it { display: block; font-size: 14px; padding: 3px 0; }
.mw-out { background: #F4EFE6; border-radius: 8px; padding: 10px 12px; }
.mw-bar { margin: 6px 0 10px; } .mw-bl { font-size: 14px; margin-bottom: 4px; }
.mw-track { position: relative; height: 16px; background: #fff; border: 1px solid #DDD6C9; border-radius: 8px; overflow: hidden; }
.mw-fill { position: absolute; left: 0; top: 0; bottom: 0; background: #15395B; opacity: .85; }
.mw-band { position: absolute; top: 0; bottom: 0; z-index: 2; background: rgba(143,211,201,.35); border: 2px solid #2A8C82; box-sizing: border-box; }
.mw-line { position: absolute; z-index: 3; top: -2px; bottom: -2px; width: 3px; background: #C0562E; } .mw-l2 { background: #B8892B; }
.mw-facts { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; margin: 6px 0; }
.mw-big { font-size: 26px; margin: 8px 0; color: #15395B; }
.mw-dl { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 6px 14px; margin: 10px 0; font-size: 14px; }
.mw-dl dt { font-weight: 700; color: #15395B; } .mw-dl dd { margin: 0; }
.mw-dist .cc-tbl td { text-align: left; vertical-align: top; }
.story-photo { margin: 18px 0; } .story-photo img { width: 100%; height: auto; border-radius: 8px; } .story-photo figcaption { font-size: 13px; color: #5A6672; margin-top: 4px; }
.cc-seg button[aria-selected="true"] { background: #15395B; color: #fff; }
/* North Shore plate reader map */
#alpr-map { margin: 22px 0; padding: 14px; border: 1px solid #E5DED2; border-radius: 10px; background: #fff; }
#alpr-map h3 { margin: 0 0 6px; }
.am-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.am-wrap { background: #EAF2F6; border-radius: 8px; }
.am-t { cursor: pointer; transition: opacity .2s; } .am-t:hover, .am-t:focus { stroke: #C0562E; stroke-width: 2.5; outline: none; }
.am-sel { stroke: #C0562E !important; stroke-width: 3 !important; }
.am-n { color: #5A6672; font-weight: 400; }

/* Stages and screens: /events/venues/ (Oct. 1, 2026) */
.venues .kicker { margin: 0 0 4px; font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.vn-jump { margin: 18px 0 8px; }
.vn-area { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.vn-area > .small { flex-basis: 100%; font-weight: 600; }
.vn-jump .qchip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.vn-n { font-size: 12px; background: var(--teal-soft); color: var(--navy); border-radius: 99px; padding: 1px 7px; }
.vn-area-h { margin-top: 36px; }
.vn { padding: 22px 0; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.vn-head h3 { margin: 0 0 4px; font-size: 22px; }
.vn-head p { margin: 0 0 4px; }
.vn-links { margin-bottom: 12px !important; }
.vn-empty { font-style: italic; }

/* Cart placement widgets (static/cart-widgets.js), Oct. 1, 2026 */
.cw-scroll { overflow-x: auto; margin: 8px 0; }
.cw-svg { width: 100%; min-width: 600px; height: auto; display: block; border-radius: 8px; touch-action: pan-x; }
.cw-cart { touch-action: none; }
.cw-lbl { font: 600 12px var(--sans); fill: #5A6672; letter-spacing: .04em; }
.cw-lbl-b { font-weight: 700; fill: #1C2430; }
.cw-cart { cursor: grab; outline: none; }
.cw-cart.drag { cursor: grabbing; }
.cw-cart:focus-visible > g { filter: drop-shadow(0 0 4px #2A8C82); }
.cw-cart.cw-hit > g { filter: drop-shadow(0 0 6px #C0562E); }
.cw-btn { margin: 0; font: 600 13px var(--sans); padding: 7px 12px; border: 1px solid #C9C1B2; border-radius: 99px; background: #fff; color: #15395B; cursor: pointer; }
.cw-btn[aria-pressed="true"] { background: #15395B; color: #fff; }
.cw-btn:disabled { opacity: .5; cursor: default; }
.cw-go { background: #1F6F67; border-color: #1F6F67; color: #fff; }
.cw-out { font-size: 14px; }
.cw-verdict { margin: 0 0 6px; font-weight: 700; }
.cw-verdict.ok { color: #1F6F67; } .cw-verdict.bad { color: #A2441F; }
.cw-list { list-style: none; padding: 0; margin: 0; }
.cw-list li { padding: 2px 0; } .cw-list li.ok span { color: #1F6F67; font-weight: 700; } .cw-list li.bad span { color: #A2441F; font-weight: 700; }
.cw-card { background: #F4EFE6; border-radius: 8px; padding: 14px; text-align: center; margin: 8px 0; }
.cw-item { font: 700 22px var(--serif); color: #15395B; margin-top: 4px; }
.cw-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.cw-choice { margin: 0; font: 700 14px var(--sans); padding: 12px 6px; border-radius: 8px; border: 2px solid #C9C1B2; background: #fff; color: #1C2430; cursor: pointer; }
.cw-choice.cw-recycle { border-color: #2F6FB0; } .cw-choice.cw-trash { border-color: #1C2430; } .cw-choice.cw-neither { border-color: #B8892B; }
.cw-choice.right { background: #E3F1EF; border-color: #1F6F67; } .cw-choice.wrongpick { background: #FBE7DF; border-color: #A2441F; }
.cw-choice:disabled { cursor: default; }
.cw-bulk { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 12px 0; }
.cw-bulk fieldset { border: 1px solid #E5DED2; border-radius: 8px; padding: 8px 14px 10px; margin: 0; min-width: 0; }
.cw-bulk legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1F6F67; }
.cw-brow { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; padding: 8px 0; border-bottom: 1px solid #EFEAE0; }
.cw-brow:last-child { border-bottom: 0; }
.cw-brow > span:first-child { flex: 1; min-width: 0; }
.cw-brow .small { display: block; margin-top: 1px; }
.cw-qty { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.cw-q { width: 32px; height: 32px; margin: 0; border-radius: 50%; border: 1px solid #C9C1B2; background: #fff; color: #15395B; font: 700 18px/1 var(--sans); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.cw-q:hover { background: #E3F1EF; color: #15395B; }
.cw-n { min-width: 20px; text-align: center; font-weight: 700; }
.cw-chart { margin: 10px 0; }
.cw-bars { position: relative; padding-top: 34px; }
.cw-bar { display: grid; grid-template-columns: 34% 1fr; gap: 8px; align-items: center; font-size: 14px; margin: 3px 0; }
.cw-bn { text-align: right; } .cw-bn abbr { font-size: 10px; color: #1F6F67; text-decoration: none; font-weight: 700; }
.cw-bt { position: relative; height: 20px; }
.cw-bf { position: absolute; left: 0; top: 0; bottom: 0; background: #9AA8B5; border-radius: 0 4px 4px 0; }
.cw-bar.me .cw-bf { background: #15395B; } .cw-bar.me .cw-bn { font-weight: 700; }
.cw-bv { position: absolute; top: 0; font-size: 12px; line-height: 20px; color: #1C2430; font-weight: 700; white-space: nowrap; }
.cw-plot { position: absolute; top: 0; bottom: 0; left: calc(34% + 8px); right: 0; pointer-events: none; }
.cw-ref { position: absolute; top: 0; bottom: 0; border-left: 2px dashed #C0562E; }
.cw-ref span { position: absolute; top: 0; left: 4px; font-size: 11px; color: #A2441F; white-space: nowrap; background: rgba(255,255,255,.85); }
.cw-ref span.r2 { top: 16px; }
.cw-ref span.flip { left: auto; right: 4px; }
@media (max-width: 560px) { .cw-choices { grid-template-columns: 1fr; } .cw-bar { grid-template-columns: 38% 1fr; } .cw-plot { left: calc(38% + 8px); } .cw-ref span { font-size: 10px; } }

/* widget notes stay small inside story bodies */
.mw p.small, .mw .small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.mw-dist .cc-tbl th:first-child { min-width: 110px; }

/* ===== Team schedules and results (/sports/teams/, Oct. 2, 2026) ===== */
.tm-card { background: #fff; border: 1px solid #E2DACB; border-radius: 12px; padding: 16px; margin-top: 12px; }
.tm-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.tm-head h2 { margin: 0; font-size: 22px; }
.tm-rec { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.tm-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  font: 800 13px/1 system-ui, sans-serif; letter-spacing: .02em; color: #fff; }
.tm-badge.tm-opp { width: 30px; height: 30px; font-size: 10px; background: var(--sand); color: var(--navy); box-shadow: inset 0 0 0 1px #CFC7B8; }
.tm-sub { font: 700 12px system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 16px 0 4px; }
.tm-list { list-style: none; margin: 0; padding: 0; }
.tm-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #EEE8DD; }
.tm-row:last-child { border-bottom: 0; }
.tm-date { font-size: 13px; color: var(--muted); }
.tm-opp-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.tm-where { color: var(--muted); font-size: 13px; }
.tm-venue { display: block; font-size: 12px; color: var(--muted); }
.tm-res { font: 700 13px/1.2 system-ui, sans-serif; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.tm-w { background: #E3F2EC; color: #1F6B4F; }
.tm-l { background: #F7E4E4; color: #8F1D1D; }
.tm-t { background: var(--sand); color: var(--navy); }
.tm-time { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 480px) {
  .tm-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tm-date { grid-column: 1 / -1; margin-bottom: -4px; }
}

/* ===== Win banners (Oct. 3, 2026; pipeline/win_banners.py, templates/win_banners.html, docs/WIN_BANNERS.md) =====
   School colors come in as --w1 (main) and --w2 (accent). White text on --w1 passes AA for all three schools. */
.win { display: grid; grid-template-columns: 88px 1fr; gap: 0; margin: 0 0 16px; border-radius: 12px; overflow: hidden;
  background: var(--w1); color: #fff; box-shadow: inset 0 -5px 0 var(--w2); }
.win-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px 19px;
  background: rgba(0,0,0,.18); color: var(--w2); }
.win-init { font: 800 13px/1 var(--sans); letter-spacing: .1em; color: #fff; }
.win-body { padding: 14px 18px 19px; min-width: 0; }
.win-k { margin: 0; font: 800 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--w2); }
.win .win-h { margin: 4px 0 2px; font: 700 clamp(24px, 4.2vw, 34px)/1.12 var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.win-line { margin: 0 0 10px; font-size: 16px; color: rgba(255,255,255,.92); }
.win-links { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 15px; }
.win a { color: #fff; }
.win a:hover { color: var(--w2); }
.win-btn { display: inline-block; background: #fff; color: var(--w1) !important; font-weight: 700; text-decoration: none;
  border-radius: 99px; padding: 6px 15px; }
.win-btn:hover { background: var(--w2); }
.win-src { margin: 10px 0 0; font-size: 12.5px; color: rgba(255,255,255,.8); }
.wins-wrap { margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.wins-wrap .win { margin: 0; }
.wins-wrap .win .win-h { font-size: clamp(22px, 2.5vw, 28px); }
.win-ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 18px; padding: 9px 12px;
  background: #fff; border: 1px solid var(--rule); border-radius: 10px; font-size: 15px; }
.win-ribbon-k { margin: 0; font: 800 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.win-ribbon ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; min-width: 0; }
.win-ribbon li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.win-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: var(--w1); color: var(--w2); box-shadow: inset 0 0 0 2px var(--w2); }
.win-ribbon a { text-decoration: none; color: var(--ink); }
.win-ribbon a:hover strong { text-decoration: underline; }
.win-ribbon a span { color: var(--muted); }
.win-more { font-size: 14px; font-weight: 600; color: var(--navy) !important; }
@media (max-width: 480px) {
  .win { grid-template-columns: 62px 1fr; }
  .win-mark svg { width: 34px; height: 34px; }
  .win-body { padding: 12px 14px 17px; }
  .win-ribbon li { flex-basis: 100%; }
}

/* Team page co-op note (Oct. 2, 2026) */
.tm-coop{margin-top:16px}
.tm-coop-list{margin:8px 0 0 18px;padding:0}
.tm-coop-list li{margin:4px 0}

/* ===== Phone fixes (Oct. 1, 2026) =====
   Mostly screens 600px and narrower. Pairs with static/mobile.js (section menu fades). */

/* 1. Overflow bugs: wide widgets pushed whole stories off the side of the screen */
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.layout > *, article.story, .body { min-width: 0; }
.cc-seg { flex-wrap: wrap; max-width: 100%; border-radius: 12px; }
.mw-ctl > *, .cc-ctl > * { min-width: 0; max-width: 100%; }
.cw-chart, .mw { overflow-x: clip; }
.page code, .body code, .page a, .body a { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  /* 2. Shorter header so news shows on the first screen (logo stays 240px per brand rule) */
  .topbar { font-size: 12px; }
  .topbar .wrap { padding-top: 6px; padding-bottom: 6px; }
  .launch-note { font-size: 13px; line-height: 1.4; }
  .launch-note .wrap { padding-top: 6px; padding-bottom: 6px; }
  .masthead { padding: 12px 0 10px; }
  .tagline { display: none; }

  /* 3. Section menu: fade at the edges so readers can tell it scrolls */
  nav.main ul { padding: 0 8px; scroll-padding: 0 40px; }
  nav.main a { padding: 12px 10px; font-size: 15px; }
  nav.main::before, nav.main::after { content: ""; position: absolute; top: 0; bottom: 0; width: 32px; pointer-events: none; z-index: 1; transition: opacity .2s; }
  nav.main::before { left: 0; background: linear-gradient(to right, #fff 20%, rgba(255,255,255,0)); opacity: 0; }
  nav.main::after { right: 0; background: linear-gradient(to left, #fff 20%, rgba(255,255,255,0)); }
  nav.main.scrolled::before { opacity: 1; }
  nav.main.at-end::after { opacity: 0; }

  /* 4. Type sized for a phone */
  .dek { font-size: 17px; }
  .card h3 { font-size: 20px; }
  .lead { padding-bottom: 20px; margin-bottom: 20px; }
  .layout { padding-top: 20px; padding-bottom: 36px; }
  .page { padding: 20px 0 40px; }
  .section-title { margin-bottom: 12px; }
  aside .box { padding: 16px; }

  /* 5. Bigger tap targets */
  .chip { font-size: 13px; padding: 6px 12px; }
  .chips { gap: 8px; }
  .topic-jump a { padding: 10px 13px; }
  .town-strip a { padding: 9px 14px; }
  .kicker a { display: inline-block; padding: 4px 0; }
  footer ul { gap: 4px 20px; }
  footer ul a { display: inline-block; padding: 8px 0; }
  .meet a, .mini-ev a, .mini-ob a { display: inline-block; padding: 2px 0; }
  .cc-signup .checks label { min-height: 36px; }
  .sc-monthbar button { padding: 10px 14px; }
  .chips-f button { padding: 9px 13px; }
  .share-btn { padding: 11px; }

  /* 6. iPhone home bar clearance */
  footer { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .estimate { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* 7. Events page: 500+ events made phones render a page over 140,000px tall.
      Let the browser skip drawing days that are off screen. */
@media (max-width: 900px) {
  .ev-results .day { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
}


/* ===== Site menu (Oct. 2, 2026). Built from data/nav.json; rules in docs/NAVIGATION.md. ===== */
.topbar .util { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
nav.main.menu .menu-row { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; align-items: stretch; position: relative; }
nav.main.menu ul { list-style: none; margin: 0; padding: 0; }
nav.main.menu ul.desk { display: flex; gap: 2px; align-items: stretch; flex-wrap: nowrap; overflow: visible; width: 100%; }
nav.main.menu .desk > li { position: relative; display: flex; }
nav.main.menu .desk a, nav.main.menu summary { display: block; padding: 11px 9px; white-space: nowrap; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); cursor: pointer; }
nav.main.menu summary { list-style: none; }
nav.main.menu summary::-webkit-details-marker { display: none; }
nav.main.menu .dd > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
nav.main.menu .dd[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
nav.main.menu .desk a:hover, nav.main.menu .desk a.on, nav.main.menu summary:hover,
nav.main.menu .dd.on > summary, nav.main.menu .dd[open] > summary { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--teal); }
nav.main.menu summary:focus-visible, nav.main.menu a:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
nav.main.menu .dd-panel { position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--teal); box-shadow: 0 8px 24px rgba(21,57,91,.12); padding: 8px 0; z-index: 20; }
nav.main.menu .dd-head { margin: 4px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5A6672; }
nav.main.menu .dd-panel ul { display: block; width: auto; overflow: visible; }
nav.main.menu .dd-panel li { display: block; }
nav.main.menu .dd-panel a { padding: 8px 16px; font-weight: 500; box-shadow: none; }
nav.main.menu .dd-panel a:hover, nav.main.menu .dd-panel a[aria-current] { background: #F4EFE6; color: var(--navy); box-shadow: none; }
nav.main.menu .desk li.season { margin-left: auto; align-items: center; }
nav.main.menu .desk li.season a { padding: 5px 12px; margin: 6px 0; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14px; box-shadow: none; }
nav.main.menu .desk li.season a:hover, nav.main.menu .desk li.season a[aria-current] { background: var(--teal-deep); color: #fff; box-shadow: none; }
nav.main.menu details.mob, nav.main.menu ul.mob-towns { display: none; }
nav.main.menu::before, nav.main.menu::after { display: none; }
@media (max-width: 1240px) and (min-width: 1101px) { nav.main.menu .desk a, nav.main.menu summary { padding: 11px 7px; } }

/* Phones and tablets (under 1100 px, editor, Oct. 5, 2026): Menu button, then Home and town shortcuts that scroll sideways */
@media (max-width: 1100px) {
  nav.main.menu .menu-row { padding: 0 8px; gap: 4px; }
  nav.main.menu ul.desk { display: none; }
  nav.main.menu details.mob { display: block; flex: none; }
  nav.main.menu details.mob > summary { padding: 12px 12px 12px 10px; }
  nav.main.menu details.mob > summary::before { content: ""; display: inline-block; width: 16px; height: 2px; margin-right: 8px; vertical-align: middle; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  nav.main.menu details.mob[open] > summary { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--teal); }
  nav.main.menu ul.mob-towns { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; border-left: 1px solid var(--rule); padding-left: 4px; }
  nav.main.menu ul.mob-towns::-webkit-scrollbar { display: none; }
  nav.main.menu ul.mob-towns a { display: block; padding: 12px 9px; white-space: nowrap; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); }
  nav.main.menu ul.mob-towns a.on { color: var(--teal-deep); box-shadow: inset 0 -3px 0 var(--teal); }
  nav.main.menu .mob-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px double var(--rule); box-shadow: 0 10px 24px rgba(21,57,91,.14); padding: 8px 16px 16px; max-height: calc(100vh - 60px); overflow-y: auto; z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
  nav.main.menu .mob-season { grid-column: 1 / -1; justify-self: start; margin: 6px 0 4px; padding: 6px 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none; }
  nav.main.menu .mob-head { margin: 10px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5A6672; }
  nav.main.menu .mob-head a { color: var(--ink); font-size: 16px; letter-spacing: 0; text-transform: none; text-decoration: none; }
  nav.main.menu .mob-group ul { display: block; overflow: visible; width: auto; }
  nav.main.menu .mob-group li { display: block; }
  nav.main.menu .mob-group a { display: block; padding: 7px 0; color: var(--navy); text-decoration: none; font-weight: 500; }
  nav.main.menu .mob-group a[aria-current] { color: var(--teal-deep); font-weight: 700; }
  nav.main.menu .mob-util { grid-column: 1 / -1; border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 4px; }
  nav.main.menu .mob-util ul { display: flex; flex-wrap: wrap; gap: 0 18px; }
}
@media (max-width: 600px) {
  .topbar .util a:nth-child(n+3) { display: none; } /* tip and member links stay in the Menu panel on phones */
  .topbar .util { gap: 12px; }
}
@media (max-width: 400px) {
  .topbar .wrap > span:first-child { display: none; } /* the date gives way to Listen and the email link */
  .topbar .wrap { justify-content: flex-end; }
  nav.main.menu .mob-panel { grid-template-columns: 1fr; }
}

/* Skip link: hidden until a keyboard user tabs to it, then jumps past the menu to the story (WCAG 2.4.1). */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.25); padding: 10px 16px; border-radius: 0 0 6px 6px; font-weight: 700; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 0; outline: 3px solid var(--teal); outline-offset: 2px; }
main:focus { outline: none; }

/* Weather and tides box (homepage aside, Oct. 3, 2026; static/weather-widget.js) */
#wx-box .wx-fc { list-style: none; margin: 0 0 14px; padding: 0; }
#wx-box .wx-fc li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
#wx-box .wx-fc li:last-child { border-bottom: 0; }
#wx-box .wx-n { font-weight: 700; }
#wx-box .wx-t { font-weight: 700; font-size: 18px; text-align: right; }
#wx-box .wx-s { grid-column: 1 / -1; font-size: 14px; color: #444; }
#wx-box .wx-h { font-size: 16px; margin: 6px 0 8px; }
#wx-box .wx-sel { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
#wx-box .wx-sel button { font: inherit; font-size: 13px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; color: #12324a; cursor: pointer; width: auto; margin: 0; }
#wx-box .wx-sel button[aria-pressed="true"] { background: #12324a; color: #fff; border-color: #12324a; }
#wx-box .wx-td { width: 100%; border-collapse: collapse; font-size: 14px; }
#wx-box .wx-td th { text-align: left; vertical-align: top; padding: 4px 8px 4px 0; white-space: nowrap; }
#wx-box .wx-td td { padding: 4px 0; }
#wx-box .wx-td span { display: inline-block; margin: 0 8px 4px 0; }
#wx-box .wx-hi { font-weight: 700; }
#wx-box .wx-alert { background: #fff4e5; border-left: 4px solid #b35c00; padding: 8px 10px; font-size: 14px; }
#wx-box .wx-src { margin: 10px 0 0; color: #555; }

/* Daily Brief player: under the lead story on phones and tablets, in the sidebar on desktop (editor, Oct. 3, 2026) */
.brief-phone { display: none; }
@media (max-width: 900px) {
  .brief-phone { display: block; margin: 20px 0 6px; }
  .brief-phone .box { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 16px; }
  .brief-phone .box h2 { font-size: 20px; margin: 0 0 10px; }
  .brief-aside { display: none; }
}

/* Share buttons inside Daily Brief players (Oct. 3, 2026) */
.box .brief-share { margin: 10px 0 0; flex-wrap: wrap; gap: 6px; }
.box .brief-share .share-btn span { display: none; }
.box .brief-share .share-btn { padding: 8px; }

/* Editor notes (preview only): long file paths wrap instead of widening the page on phones. Oct. 5, 2026 */
.editor{overflow-wrap:anywhere}
