/* Franklin & Southampton Unfiltered — public site styles
   Palette: Blackwater (river teal), Tannin (river-water brown), Centerline gold, Field paper.
   Type: Bricolage Grotesque (headings + interface), Source Serif 4 (long-form reading). */

:root {
  --river: #0F3B3A;
  --river-deep: #0A2B2A;
  --river-soft: #E4EEEC;
  --tannin: #8A4B1C;
  --gold: #E3A72F;
  --gold-soft: #FBF1DA;
  --paper: #F6F7F4;
  --surface: #FFFFFF;
  --ink: #16232A;
  --muted: #55636A;
  --line: #DCE2DF;
  --line-strong: #C3CCC8;
  --danger: #B91C1C;
  --success: #1F7A45;

  --lvl-info: #1F5F8B;
  --lvl-notice: #46575F;
  --lvl-watch: #9A6512;
  --lvl-warning: #B4400C;
  --lvl-emergency: #B91C1C;

  --font-ui: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-read: "Source Serif 4", Georgia, "Times New Roman", serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 1px 2px rgba(15, 59, 58, .06), 0 4px 16px rgba(15, 59, 58, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.55 var(--font-ui); text-rendering: optimizeLegibility;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--river); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--tannin); }
h1, h2, h3, h4 { font-family: var(--font-ui); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; display: inline-block; vertical-align: -.15em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Alerts ---------- */
.alerts { position: relative; z-index: 40; }
.alert-bar { color: #fff; background: var(--lvl-notice); }
.alert-bar .wrap { display: flex; gap: 12px; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.alert-bar__level { font-weight: 800; font-size: .78rem; letter-spacing: .04em; padding: 3px 8px; border-radius: 4px; background: rgba(255,255,255,.18); white-space: nowrap; margin-top: 2px; }
.alert-bar__body { flex: 1; min-width: 0; }
.alert-bar__body strong { font-weight: 750; }
.alert-bar__body p { margin: 2px 0 0; opacity: .92; font-size: .95rem; }
.alert-bar a { color: #fff; font-weight: 700; }
.alert-bar__close { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; opacity: .8; }
.alert-bar__close:hover { opacity: 1; }
.alert-bar--info { background: var(--lvl-info); }
.alert-bar--watch { background: var(--lvl-watch); }
.alert-bar--warning { background: var(--lvl-warning); }
.alert-bar--emergency { background: var(--lvl-emergency); }
.alert-bar--emergency .alert-bar__level { background: #fff; color: var(--lvl-emergency); }

/* ---------- Header / masthead ---------- */
.utility { background: var(--river-deep); color: #CFE0DD; font-size: .86rem; }
.utility .wrap { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.utility__date { white-space: nowrap; }
.utility__weather { display: inline-flex; align-items: center; gap: 6px; color: #CFE0DD; text-decoration: none; white-space: nowrap; }
.utility__weather:hover { color: #fff; }
.utility__spacer { flex: 1; }
.utility__social { display: flex; gap: 4px; }
.utility__social a { color: #CFE0DD; display: inline-flex; padding: 6px; border-radius: 50%; }
.utility__social a:hover { color: #fff; background: rgba(255,255,255,.08); }

.masthead { background: var(--river); color: #fff; position: relative; }
.masthead .wrap { display: flex; align-items: center; gap: 20px; padding-top: 22px; padding-bottom: 26px; }
.brand { color: #fff; text-decoration: none; display: block; min-width: 0; }
.brand:hover { color: #fff; }
.brand__logo { max-height: 64px; width: auto; }
.brand__name { display: block; font-weight: 800; font-size: clamp(1.45rem, .9rem + 2.6vw, 2.6rem); line-height: 1; letter-spacing: -.025em; font-stretch: 85%; }
.brand__tagline { display: block; margin-top: 8px; color: #B9D2CE; font-size: clamp(.78rem, .7rem + .3vw, .95rem); letter-spacing: .01em; }
.masthead__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; flex: none; }
/* The centerline: the brand's one signature element — a road stripe running under the masthead. */
.centerline { height: 6px; background: var(--river); position: relative; }
.centerline::after {
  content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 74px);
}

.nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.nav .wrap { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; -webkit-overflow-scrolling: touch; }
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a { display: block; padding: 15px 12px 13px; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav__list a:hover { color: var(--river); border-bottom-color: var(--line-strong); }
.nav__list a[aria-current="page"] { color: var(--river); border-bottom-color: var(--gold); }
.nav__search { position: relative; flex: none; }
.nav__search-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink); }
.nav__search-toggle:hover { background: var(--river-soft); }

.searchbox { position: relative; }
.searchbox input[type="search"] {
  width: 100%; padding: 12px 14px 12px 42px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.searchbox input[type="search"]:focus { border-color: var(--river); outline: none; box-shadow: 0 0 0 3px rgba(227,167,47,.45); }
.searchbox > .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-panel { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 0; }
.search-panel[hidden] { display: none; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 6px; z-index: 50; max-height: 60vh; overflow: auto; }
.suggest[hidden] { display: none; }
.suggest a { display: grid; grid-template-columns: 74px 1fr; gap: 2px 10px; padding: 9px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--river-soft); }
.suggest__type { grid-row: span 2; font-size: .75rem; font-weight: 700; color: var(--tannin); padding-top: 2px; }
.suggest__meta { font-size: .82rem; color: var(--muted); }

.ticker { background: var(--gold-soft); border-bottom: 1px solid #EBD9A6; }
.ticker .wrap { display: flex; gap: 12px; align-items: center; padding-top: 9px; padding-bottom: 9px; overflow: hidden; }
.ticker__label { background: var(--danger); color: #fff; font-weight: 800; font-size: .76rem; padding: 3px 9px; border-radius: 4px; flex: none; }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.ticker li { white-space: nowrap; }
.ticker a { color: var(--ink); font-weight: 650; text-decoration: none; }
.ticker a:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.1;
  background: var(--river); color: #fff; transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--river-deep); color: #fff; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #F0B843; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--river); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--river-soft); color: var(--river); }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--on-dark:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--facebook { background: #1877F2; color: #fff; }
.btn--facebook:hover { background: #0F64D2; color: #fff; }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Layout ---------- */
main { display: block; }
.section { padding: clamp(28px, 4vw, 48px) 0; }
.section + .section { padding-top: 0; }
.section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.section__head h2 { margin: 0; }
.section__more { margin-left: auto; font-weight: 700; white-space: nowrap; font-size: .95rem; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.with-rail { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .with-rail { grid-template-columns: minmax(0, 1fr) 320px; } }
.rail > * + * { margin-top: 28px; }
.page-head { padding: clamp(24px, 4vw, 44px) 0 12px; }
.page-head p.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding-top: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* ---------- Kicker labels & badges ---------- */
.kicker { display: inline-block; font-size: .8rem; font-weight: 750; color: var(--cat, var(--tannin)); text-decoration: none; margin-bottom: 6px; }
a.kicker:hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: var(--river-soft); color: var(--river); line-height: 1.3; }
.badge--gold { background: var(--gold-soft); color: #7A5310; }
.badge--danger { background: #FDE8E8; color: var(--danger); }
.badge--success { background: #E2F3E8; color: var(--success); }
.badge--muted { background: #ECEFEE; color: var(--muted); }
.badge--solid { background: var(--river); color: #fff; }

/* ---------- Story cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.card__media { aspect-ratio: 16 / 10; background: var(--river-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--placeholder { display: grid; place-items: center; color: var(--river); background: linear-gradient(135deg, var(--river-soft), #F2F5F3); }
.card__media--placeholder .icon { width: 42px; height: 42px; opacity: .35; }
.card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.1rem; font-weight: 720; margin: 0 0 6px; line-height: 1.25; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__title a:hover { color: var(--river); }
.card__excerpt { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.card__meta { margin-top: auto; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card .kicker, .card .badge { position: relative; z-index: 1; }

/* Lead story block */
.lead { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .lead { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.lead__main { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--river-deep); color: #fff; min-height: 340px; display: flex; }
.lead__main picture, .lead__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead__main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,43,42,0) 25%, rgba(10,43,42,.88) 78%); z-index: 1; }
.lead__main-body { position: relative; z-index: 2; align-self: flex-end; padding: clamp(20px, 3vw, 32px); max-width: 720px; }
.lead__main .kicker { color: var(--ink); background: var(--gold); padding: 3px 9px; border-radius: 4px; }
.lead__main h2 { font-size: clamp(1.5rem, 1rem + 2.2vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.lead__main h2 a { color: #fff; text-decoration: none; }
.lead__main h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lead__main p { color: #DCE9E6; margin-bottom: 8px; }
.lead__main .card__meta { color: #B9D2CE; }
.lead__side { display: flex; flex-direction: column; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px; }
.lead-item { position: relative; display: grid; grid-template-columns: 1fr 96px; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.lead-item:last-child { border-bottom: 0; }
.lead-item h3 { font-size: 1.02rem; margin: 0 0 4px; }
.lead-item h3 a { color: var(--ink); text-decoration: none; }
.lead-item h3 a::after { content: ""; position: absolute; inset: 0; }
.lead-item h3 a:hover { color: var(--river); }
.lead-item__img { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; background: var(--river-soft); }
.lead-item__img img { width: 100%; height: 100%; object-fit: cover; }

/* List rows (compact stories) */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { position: relative; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows a { color: var(--ink); text-decoration: none; font-weight: 650; }
.rows a:hover { color: var(--river); text-decoration: underline; }
.rows .meta { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; font-weight: 400; }

/* Trending (a genuine ranking, so it's numbered) */
.trending { counter-reset: t; list-style: none; margin: 0; padding: 0; }
.trending li { counter-increment: t; display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trending li::before { content: counter(t); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--gold); font-stretch: 85%; }
.trending a { color: var(--ink); font-weight: 650; text-decoration: none; }
.trending a:hover { color: var(--river); text-decoration: underline; }

/* Boxes in rails */
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.box > h2, .box > h3 { font-size: 1.1rem; margin-bottom: 10px; }
.box--river { background: var(--river); color: #fff; border-color: var(--river); }
.box--river a:not(.btn) { color: #fff; }

/* ---------- Events ---------- */
.date-chip { flex: none; width: 58px; text-align: center; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); line-height: 1; }
.date-chip__m { display: block; background: var(--river); color: #fff; font-size: .72rem; font-weight: 750; padding: 5px 0 4px; }
.date-chip__d { display: block; font-size: 1.55rem; font-weight: 800; padding: 6px 0 2px; font-stretch: 85%; }
.date-chip__w { display: block; font-size: .7rem; color: var(--muted); padding-bottom: 6px; }
.event-row { position: relative; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.event-row:last-child { border-bottom: 0; }
.event-row h3 { font-size: 1.02rem; margin: 0 0 3px; }
.event-row h3 a { color: var(--ink); text-decoration: none; }
.event-row h3 a::after { content: ""; position: absolute; inset: 0; }
.event-row h3 a:hover { color: var(--river); }
.event-row .meta { font-size: .86rem; color: var(--muted); }
.event-card .card__media { aspect-ratio: 16 / 9; position: relative; }
.event-card .date-chip { position: absolute; top: 12px; left: 12px; z-index: 1; box-shadow: var(--shadow); }
.cancelled-tag { position: absolute; top: 12px; right: 12px; z-index: 1; }

.mini-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mini-cal__day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 6px; min-height: 76px; font-size: .78rem; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); }
.mini-cal__day.is-today { border-color: var(--river); box-shadow: inset 0 0 0 1px var(--river); }
.mini-cal__num { font-weight: 800; font-size: .95rem; }
.mini-cal__dow { color: var(--muted); font-size: .7rem; }
.mini-cal__dot { display: block; background: var(--river-soft); color: var(--river); border-radius: 4px; padding: 2px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mini-cal__day:hover { border-color: var(--river); }
@media (max-width: 640px) {
  .mini-cal { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .mini-cal__day { scroll-snap-align: start; }
}

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; }
.tabs a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; background: var(--surface); }
.tabs a:hover { border-color: var(--river); color: var(--river); }
.tabs a[aria-current="true"], .tabs a[aria-current="page"] { background: var(--river); border-color: var(--river); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.toolbar select { padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); }

.calendar { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.calendar th { font-size: .8rem; color: var(--muted); font-weight: 700; padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.calendar td { vertical-align: top; height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar td:last-child { border-right: 0; }
.calendar tr:last-child td { border-bottom: 0; }
.calendar .is-other { background: #FAFBFA; color: #9AA5A8; }
.calendar .is-today { background: var(--gold-soft); }
.calendar__num { font-weight: 800; font-size: .9rem; display: block; margin-bottom: 4px; }
.calendar__ev { display: block; font-size: .76rem; line-height: 1.25; padding: 3px 5px; border-radius: 4px; background: var(--river-soft); color: var(--river); text-decoration: none; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.calendar__ev:hover { background: var(--river); color: #fff; }
.calendar__ev.is-cancelled { text-decoration: line-through; opacity: .7; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav h2 { margin: 0; min-width: 9ch; }
@media (max-width: 760px) {
  .calendar thead { display: none; }
  .calendar, .calendar tbody, .calendar tr, .calendar td { display: block; width: 100%; height: auto; border-right: 0; }
  .calendar td.is-empty { display: none; }
  .calendar td { padding: 10px 12px; }
  .calendar td.is-other { display: none; }
  .calendar__num::after { content: attr(data-dow); font-weight: 400; color: var(--muted); margin-left: 8px; }
}

/* ---------- Article / detail pages ---------- */
.article-head { padding: 20px 0 8px; max-width: 820px; }
.article-head h1 { margin-bottom: 14px; }
.article-head .lede { font-size: 1.2rem; color: var(--muted); font-family: var(--font-read); line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--muted); align-items: center; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 16px 0 22px; }
.byline strong { color: var(--ink); }
.figure { margin: 0 0 22px; }
.figure img { border-radius: var(--r-md); width: 100%; }
.figure figcaption { font-size: .84rem; color: var(--muted); padding-top: 8px; }
.credit { font-style: normal; color: var(--muted); }
.prose { font-family: var(--font-read); font-size: 1.14rem; line-height: 1.72; max-width: 68ch; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-ui); margin-top: 1.6em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--gold); color: #2E3D44; font-style: italic; }
.prose img { border-radius: var(--r-sm); margin: 1em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.prose a { color: var(--river); text-decoration-thickness: 1.5px; }

.source-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--river); margin: 0 0 22px; max-width: 68ch; }
.source-box--shared { border-left-color: var(--tannin); }
.source-box--community { border-left-color: var(--gold); }
.source-box--sponsored { border-left-color: var(--gold); background: var(--gold-soft); }
.source-box .icon { width: 22px; height: 22px; color: var(--tannin); margin-top: 2px; }
.source-box p { margin: 0; }
.source-box__label { font-weight: 750; display: block; }
.update-note { background: var(--gold-soft); border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 22px; max-width: 68ch; font-size: .96rem; }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 22px 0; }
.share__label { font-weight: 700; margin-right: 4px; font-size: .92rem; }
.share a, .share button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 650; font-size: .9rem; cursor: pointer; }
.share a:hover, .share button:hover { border-color: var(--river); color: var(--river); }
.share .share--native { background: var(--river); color: #fff; border-color: var(--river); }
.share .share--native[hidden] { display: none; }

.discuss { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 20px 22px; background: var(--river); color: #fff; border-radius: var(--r-lg); margin: 28px 0; max-width: 820px; }
.discuss p { margin: 0; flex: 1 1 260px; color: #DCE9E6; }
.discuss strong { color: #fff; display: block; font-size: 1.1rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0; }
.tags a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--river-soft); color: var(--river); text-decoration: none; font-size: .86rem; font-weight: 600; }
.tags a:hover { background: var(--river); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 18px 0 26px; }
.gallery a { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--river-soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 20, 20, .92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 84vh; width: auto; border-radius: var(--r-sm); }
.lightbox figcaption { color: #DCE9E6; text-align: center; padding-top: 10px; font-size: .9rem; }
.lightbox__close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.facts li:last-child { border-bottom: 0; }
.facts .icon { color: var(--river); width: 20px; height: 20px; margin-top: 2px; }
.facts strong { display: block; font-size: .8rem; color: var(--muted); font-weight: 650; }
.map-embed { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--river-soft); }
.notice { padding: 14px 16px; border-radius: var(--r-md); margin: 0 0 20px; font-weight: 600; }
.notice--danger { background: #FDE8E8; color: var(--danger); }
.notice--muted { background: #ECEFEE; color: var(--muted); }

/* ---------- Businesses ---------- */
.biz-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.biz-card--featured { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.biz-card__logo { width: 64px; height: 64px; border-radius: var(--r-sm); background: var(--river-soft); display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--river); font-size: 1.4rem; }
.biz-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.biz-card h3 a { color: var(--ink); text-decoration: none; }
.biz-card h3 a::after { content: ""; position: absolute; inset: 0; }
.biz-card h3 a:hover { color: var(--river); }
.biz-card .meta { font-size: .86rem; color: var(--muted); }
.biz-card .badge { position: relative; z-index: 1; }
.biz-cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.biz-cats a { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.biz-cats a:hover, .biz-cats a[aria-current="page"] { border-color: var(--river); color: var(--river); }
.biz-cats .count { color: var(--muted); font-weight: 400; }
.biz-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--river); aspect-ratio: 3 / 1; min-height: 140px; margin-top: 16px; }
.biz-hero picture, .biz-hero img { width: 100%; height: 100%; object-fit: cover; }
.biz-head { display: flex; gap: 18px; align-items: flex-end; margin: -46px 0 0 22px; position: relative; flex-wrap: wrap; }
.biz-head--plain { margin: 22px 0 0; }
.biz-head__logo { width: 104px; height: 104px; border-radius: var(--r-md); background: var(--surface); border: 4px solid var(--surface); box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: var(--river); }
.biz-head__logo img { width: 100%; height: 100%; object-fit: cover; }
.hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.hours th { text-align: left; font-weight: 600; padding: 6px 0; color: var(--muted); }
.hours td { text-align: right; padding: 6px 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--river); font-weight: 750; }
.offer { background: var(--gold-soft); border: 1px dashed #D7B060; border-radius: var(--r-md); padding: 14px 16px; }

/* ---------- Jobs, pets, yard sales ---------- */
.job-row { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.job-row + .job-row { margin-top: 10px; }
.job-row h3 { margin: 0 0 3px; font-size: 1.06rem; }
.job-row h3 a { color: var(--ink); text-decoration: none; }
.job-row h3 a::after { content: ""; position: absolute; inset: 0; }
.job-row h3 a:hover { color: var(--river); }
.job-row .meta { font-size: .88rem; color: var(--muted); }
.job-row__main { flex: 1 1 260px; }
.pet-card .card__media { aspect-ratio: 1; }
.pet-status { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: .8rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pet-status--lost { background: var(--danger); color: #fff; }
.pet-status--found { background: var(--lvl-info); color: #fff; }
.pet-status--adoption { background: var(--river); color: #fff; }
.pet-status--resolved { background: var(--success); color: #fff; }
.resolved-banner { background: var(--success); color: #fff; padding: 14px 18px; border-radius: var(--r-md); font-weight: 750; margin-bottom: 18px; font-size: 1.1rem; }

/* ---------- Ads ---------- */
.ad { margin: 0 auto; text-align: center; }
.ad__label { display: block; font-size: .7rem; letter-spacing: .03em; color: var(--muted); margin-bottom: 5px; text-align: left; }
.ad a { display: block; text-decoration: none; color: var(--ink); }
.ad img { margin: 0 auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
.ad__text { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 650; text-align: left; }
.ad__caption { display: block; font-size: .86rem; color: var(--muted); padding-top: 6px; }
.ad--banner { max-width: 970px; padding-top: 12px; padding-bottom: 12px; }
.ad--rail { max-width: 320px; }
.ad--inline { max-width: 728px; margin: 28px 0; }
.ad--mobile { display: none; }
@media (max-width: 760px) { .ad--mobile { display: block; padding: 0 var(--gutter); margin-bottom: 24px; } }

/* ---------- Join community ---------- */
.join { background: var(--river); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 5vw, 56px); position: relative; overflow: hidden; }
.join::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 4px; opacity: .9;
  background: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 74px);
}
.join h2 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.5rem); font-weight: 800; max-width: 18ch; }
.join p { color: #DCE9E6; font-size: 1.08rem; max-width: 56ch; }
.join__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-bottom: 18px; }
.join__grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .join__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.join__how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.join__how li { background: rgba(255,255,255,.07); border-radius: var(--r-md); padding: 14px 16px; }
.join__how strong { display: block; color: var(--gold); }

/* ---------- Weather ---------- */
.weather { display: flex; gap: 14px; align-items: center; }
.weather__temp { font-size: 2.6rem; font-weight: 800; line-height: 1; font-stretch: 85%; }
.weather__now { font-weight: 650; }
.weather__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: .84rem; }
.weather__list li { background: var(--paper); border-radius: var(--r-sm); padding: 8px; }

/* ---------- Forms ---------- */
.form { max-width: 760px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { font-weight: 750; font-size: 1.1rem; margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 16px; }
.field label, .field .label { display: block; font-weight: 650; margin-bottom: 6px; }
.field .hint { display: block; font-size: .86rem; color: var(--muted); margin-top: 5px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="date"],
.field input[type="time"], .field input[type="number"], .field input[type="password"], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: #fff; min-height: 46px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--river); outline: none; box-shadow: 0 0 0 3px rgba(227,167,47,.45); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--river); flex: none; }
.req { color: var(--danger); }
.type-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.type-picker label { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; background: #fff; }
.type-picker input { accent-color: var(--river); }
.type-picker label:has(input:checked) { border-color: var(--river); background: var(--river-soft); }
.type-fields[hidden] { display: none; }
.flash { padding: 13px 16px; border-radius: var(--r-md); margin: 16px 0; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; }
.flash--success { background: #E2F3E8; color: #14532D; }
.flash--error { background: #FDE8E8; color: #7F1D1D; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0 8px; list-style: none; padding: 0; }
.pager a, .pager span { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 650; }
.pager a:hover { border-color: var(--river); color: var(--river); }
.pager [aria-current="page"] { background: var(--river); border-color: var(--river); color: #fff; }
.pager .gap { border: 0; background: none; min-width: 20px; }

.empty { text-align: center; padding: 36px 18px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-md); color: var(--muted); }
.empty p { margin-bottom: 14px; }

/* ---------- Advertise page ---------- */
.ad-hero { background: var(--river); color: #fff; padding: clamp(32px, 6vw, 72px) 0; }
.ad-hero h1 { max-width: 20ch; }
.ad-hero p { color: #DCE9E6; font-size: 1.15rem; max-width: 60ch; }
.offer-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.offer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.offer-card .icon { width: 30px; height: 30px; color: var(--tannin); margin-bottom: 10px; }
.offer-card h3 { font-size: 1.15rem; }
.offer-card p { color: var(--muted); margin: 0; }
.levels { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.level { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; }
.level--top { border: 2px solid var(--gold); }
.level h3 { font-size: 1.3rem; margin-bottom: 4px; }
.level__price { font-size: 1.05rem; color: var(--tannin); font-weight: 700; margin-bottom: 12px; }
.level ul { padding-left: 1.1em; margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--river-deep); color: #B9D2CE; margin-top: clamp(36px, 6vw, 72px); padding: 0 0 28px; font-size: .94rem; }
.site-footer .centerline { background: var(--river-deep); }
.site-footer a { color: #DCE9E6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); padding-top: 40px; }
.footer-grid h2 { font-size: .95rem; color: #fff; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand .brand__name { font-size: 1.5rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .84rem; }
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.newsletter input[type="email"] { flex: 1 1 200px; min-height: 44px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; }
.newsletter input[type="email"]::placeholder { color: #9FBAB5; }
.newsletter .check { font-size: .82rem; flex-basis: 100%; color: #B9D2CE; }

/* ---------- Mobile adjustments ---------- */
@media (max-width: 760px) {
  .utility__date { display: none; }
  .masthead .wrap { padding-top: 16px; padding-bottom: 18px; }
  .masthead__actions .btn span { display: none; }
  .masthead__actions .btn { padding: 10px 12px; }
  .lead__main { min-height: 300px; }
  .lead-item { grid-template-columns: 1fr 80px; }
  .section__head { flex-wrap: wrap; }
  .prose { font-size: 1.08rem; }
  .biz-head { margin-left: 12px; }
}
@media (max-width: 480px) {
  .masthead__actions .btn--gold { display: none; }
}

@media print {
  .utility, .nav, .alerts, .ticker, .share, .discuss, .ad, .site-footer, .join, .rail { display: none !important; }
  body { background: #fff; }
  .masthead { background: #fff; color: #000; }
  .brand, .brand:hover { color: #000; }
}

/* Detail pages: the key facts box (when/where/contact/apply) is printed twice —
   right under the headline on phones, and in the sidebar on wider screens. */
.facts-mobile { display: none; }
@media (max-width: 979px) {
  .facts-mobile { display: block; margin-bottom: 22px; }
  .facts-desktop { display: none; }
}
