:root{--accent:#0a6c86;--accent-ink:#085c72;--accent-soft:#e6f0f3;--accent-ink-dark:#91bdc9;--accent-soft-dark:#0e2c35}
/* FL Boat Ramps: mobile-first stylesheet (360 px up), part 1. Accent variables are prepended and layout.css (part 2)
   appended at build time into one /assets/style.css. */
:root {
  --bg: #f4f8fa; --surface: #fff; --text: #10191f; --muted: #46545e; --line: #d5dee4;
  --ok: #17663a; --warn: #8a4b00; --bad: #a3231b;
  --radius: 14px; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1418; --surface: #162026; --text: #eaf1f4; --muted: #b0bec6; --line: #2c3a42;
    --ok: #6fd39b; --warn: #f2b45c; --bad: #ff8f86; --accent-ink: var(--accent-ink-dark); --accent-soft: var(--accent-soft-dark); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--font); color: var(--text); background: var(--bg); overflow-wrap: anywhere; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
h2 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; z-index: 20; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* header: logo row + nav row on phones, one row from 640 px, sticky on desktop */
.site-header { position: relative; z-index: 1000; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; min-height: 52px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--text); font-weight: 750; text-decoration: none; white-space: nowrap; }
.logo .mark { color: var(--accent); flex: none; }
.header-nav { order: 3; flex: 1 0 100%; display: flex; justify-content: space-between; gap: 2px; border-top: 1px solid var(--line); }
.header-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 10px; font-weight: 650; text-decoration: none; }
.header-nav a:first-child { padding-left: 0; }
.header-nav a:hover { background: var(--accent-soft); }
.hide-sm, .hide-md { display: none !important; }

/* buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 12px;
  text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }
.btn-sm { min-height: 40px; padding: 0 14px; }
.btn-lg { min-height: 56px; font-size: 1.1rem; width: 100%; }
.btn-ghost { color: var(--accent-ink); background: transparent; border-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 650; background: var(--accent-soft); color: var(--text); }
.pill, .chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; text-decoration: none; cursor: pointer; }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.count { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow-wrap: normal; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .8rem; font-weight: 700; background: var(--accent); color: #fff; }
.badge-temp_closed, .badge-unclear { background: var(--warn); }
.badge-closed { background: var(--bad); }

/* layout pieces */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 12px 0 0; font-size: .9rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
.crumbs [aria-current], .crumbs [aria-current] ~ *, .crumbs span[aria-hidden]:nth-last-child(2) { display: none; }
.glance { padding-left: 20px; margin: 0 0 16px; }
.glance li { margin: 4px 0; }
.page-head { padding: 14px 0 4px; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 70ch; }
.section { margin: 32px 0; }
.hero { padding: 28px 0 8px; }
.hero .btn-lg { margin: 8px 0 4px; }
.stats { font-weight: 650; }
.search-bar { display: flex; gap: 8px; margin: 14px 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; }
input, select, textarea { font: inherit; color: var(--text); min-height: 48px; width: 100%; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
textarea { min-height: 100px; }
.field { display: flex; flex-direction: column; gap: 4px; margin: 12px 0; }
.field label { font-weight: 650; }
.form-card { display: grid; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--line); }
.price { font-size: 2rem; font-weight: 800; margin: 0 0 8px; }
.prose { max-width: 72ch; }

/* ramp page */
.banner { margin: 12px 0; padding: 14px; border-radius: var(--radius); border: 2px solid var(--bad); background: var(--surface); }
.banner-temp_closed, .banner-unclear { border-color: var(--warn); }
.banner p:last-child { margin: 0; }
.key-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.key-facts div { padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.key-facts div:first-child { grid-column: 1 / -1; }
.key-facts dt { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.key-facts dd { margin: 2px 0 0; font-weight: 700; }
.missing { color: var(--muted); font-weight: 500; font-style: italic; }
.navigate { margin: 16px 0 8px; }
.navigate p { margin: 6px 0 0; }
.check { font-size: .95rem; }
.facts { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.facts th { width: 38%; color: var(--muted); font-weight: 650; font-size: .92rem; }
.fwc-note { margin: 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); }
.fwc-note cite { font-size: .85rem; color: var(--muted); font-style: normal; }
.related { list-style: none; padding: 0; display: grid; gap: 8px; }
.related li { display: flex; flex-direction: column; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.related span { font-size: .8rem; color: var(--muted); font-weight: 700; }
.related a { min-height: 32px; display: inline-flex; align-items: center; }

/* lists and tables */
.ramp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ramp-card { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.rc-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rc-name { font-weight: 700; display: inline-flex; min-height: 32px; align-items: center; }
.dist { white-space: nowrap; font-weight: 700; color: var(--accent-ink); }
.rc-place { margin: 0 0 6px; color: var(--muted); font-size: .92rem; }
.rc-nav { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.link-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.link-grid li { display: flex; align-items: center; gap: 6px; min-height: 44px; border-bottom: 1px solid var(--line); }
.plain-list li, .top-list li { margin: 6px 0; }
.table-wrap { margin: 16px 0; }
.ramps { width: 100%; border-collapse: collapse; }
.ramps caption { text-align: left; font-weight: 750; font-size: 1.15rem; padding: 4px 0 10px; }
.ramps thead { display: block; margin-bottom: 8px; }
.ramps thead tr { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; background: none; border: 0; }
.ramps thead th { display: block; padding: 0; }
.ramps thead .sort { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .9rem; }
.ramps tr { display: block; margin: 0 0 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.ramps th, .ramps td { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; text-align: left; }
.ramps tbody th { font-size: 1.02rem; }
.ramps td::before { content: attr(data-label); color: var(--muted); font-size: .9rem; }
.sort { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 8px 0; cursor: pointer; min-height: 44px; }
th[aria-sort] .sort::after { content: " ↓"; }
th[aria-sort="ascending"] .sort::after { content: " ↑"; }

/* map, sponsor, footer */
.map-wrap { margin: 20px 0; }
.map { position: relative; isolation: isolate; height: 320px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--accent-soft); overflow: hidden; touch-action: pan-y; }
.map-note { padding: 16px; color: var(--muted); }
.sponsor { margin: 28px 0; padding: 14px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.sponsor p { margin: 6px 0; }
.sponsor a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; }
.site-footer { margin-top: 48px; padding: 20px 0 88px; border-top: 1px solid var(--line); background: var(--surface); font-size: .92rem; }
.footer-inner p { margin: 0 0 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-nav a, .footer-inner p a { display: inline-flex; align-items: center; min-height: 44px; }
.install { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1001; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.install[hidden], [hidden] { display: none !important; }
.install span { flex: 1; font-size: .92rem; }
.icon-x { min-width: 44px; min-height: 44px; font-size: 1.5rem; background: none; border: 0; color: var(--text); cursor: pointer; }
.near-tools .filters, .finder .filters { margin: 14px 0; }
@media (min-width: 640px) {
  .hide-sm { display: inline-flex !important; }
  .header-inner { flex-wrap: nowrap; min-height: 60px; }
  .header-nav { order: 0; flex: 0 1 auto; margin-left: auto; border: 0; }
  .header-nav a, .header-nav a:first-child { padding: 0 10px; }
  .crumbs [aria-current], .crumbs span[aria-hidden]:nth-last-child(2) { display: inline; }
  .btn-lg { width: auto; }
  .key-facts { grid-template-columns: repeat(5, 1fr); }
  .key-facts div:first-child { grid-column: auto; }
  .link-grid { grid-template-columns: repeat(3, 1fr); }
  .related { grid-template-columns: repeat(3, 1fr); }
  .map { height: 400px; }
}
@media (min-width: 860px) {
  .ramps thead { display: table-header-group; }
  .ramps thead tr { display: table-row; }
  .ramps thead th { display: table-cell; padding: 0 10px; overflow-wrap: normal; }
  .ramps thead .sort { border: 0; background: none; padding: 8px 0; font-size: 1rem; }
  .ramps tr { display: table-row; background: none; border: 0; }
  .ramps th, .ramps td { display: table-cell; padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .ramps td::before { content: none; }
  .ramps tbody tr:nth-child(odd) { background: var(--surface); }
  .link-grid { grid-template-columns: repeat(4, 1fr); }
  .install { left: auto; max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
/* FL Boat Ramps, part 2 (appended to style.css at build): install button + sheet, finder, map pins and cards,
   and the desktop layout. Kept after the phone/tablet rules so it wins the cascade. */
.hdr-install { order: 2; min-height: 40px; padding: 0 12px; gap: 6px; font-size: .95rem; }
@media (display-mode: standalone) { .hdr-install { display: none !important; } }
.sheet { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1002; max-width: 440px; margin: 0 auto; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.sheet h2 { font-size: 1.15rem; }
.sheet svg { vertical-align: -4px; color: var(--accent-ink); }
.sheet .ih-ios, .sheet.ios .ih-other { display: none; }
.sheet.ios .ih-ios { display: block; }
/* finder: near me / ZIP / search controls + results map and list */
.finder .btn-lg svg, .finder .btn svg { flex: none; }
.finder-bar .small { margin: 6px 0 10px; }
.field-label { display: block; margin: 14px 0 0; font-weight: 650; }
.finder-out { margin: 16px 0 8px; scroll-margin-top: 8px; } /* header scrolls away below 1024 px */
.finder-map { height: clamp(300px, 58vh, 480px); }
.map-off { height: auto; }
.map-legend { margin: 6px 0 14px; }
.num { display: inline-grid; place-items: center; flex: none; min-width: 26px; height: 26px; margin-right: 8px; border-radius: 50%;
  background: var(--accent-ink); color: #fff; font-size: .85rem; font-weight: 800; }
.rc-head .rc-name { flex: 1; }
/* map pins (Leaflet divIcons) and the ramp card popup */
.pin { display: grid !important; place-items: center; border-radius: 50%; font: 800 13px/1 var(--font); color: #fff; }
.pin-dot::before, .pin-self::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.pin-self::before { width: 20px; height: 20px; background: #a3231b; }
.pin-num { background: #c2410c; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.pin-group { background: rgba(10,108,134,.88); border: 3px solid rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin-me { background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(26,115,232,.28); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); }
.leaflet-popup-content { margin: 12px 14px; }
.map-card { font: 15px/1.4 var(--font); }
.map-card .mc-name { display: block; margin: 0 18px 4px 0; font-size: 1.02rem; font-weight: 750; color: var(--accent-ink); }
.map-card p { margin: 4px 0 8px; }
.map-card .chips { gap: 4px; }
.map-card .chip { font-size: .8rem; }
.mc-act { display: flex; gap: 8px; flex-wrap: wrap; }
.map-card .btn { color: #fff; min-height: 40px; padding: 0 12px; }
.map-card .btn-ghost { color: var(--accent-ink); }
.badge-self { background: #a3231b; }
.hero-side h2 { font-size: 1.1rem; }

@media (min-width: 640px) {
  .hdr-install { order: 0; }
  .sheet { top: 76px; bottom: auto; left: auto; right: 24px; width: 400px; }
  .finder-map { height: 440px; }
  .finder-list-col .ramp-list { grid-template-columns: 1fr 1fr; }
  .finder-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 16px; }
  .finder-row .search-bar { flex: 1; margin: 0; }
  .finder-row > .small { order: 3; flex-basis: 100%; }
}
@media (min-width: 1024px) {
  .wrap { max-width: 1240px; padding: 0 32px; }
  .hide-md { display: inline-flex !important; }
  .site-header { position: sticky; top: 0; }
  .header-inner { min-height: 68px; }
  .logo { font-size: 1.15rem; }
  .header-nav a, .header-nav a:first-child { padding: 0 14px; font-size: 1.02rem; }
  .lede { font-size: 1.12rem; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 44px 0 12px; }
  .hero-side { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .wide-grid { grid-template-columns: repeat(6, 1fr); }
  .home-cols, .link-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .home-cols .link-grid, .link-cols .link-grid { grid-template-columns: repeat(2, 1fr); }
  .split.has-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .split.has-map .map-wrap { margin: 8px 0 0; }
  .ramp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .ramp-side .map-wrap { margin-top: 12px; }
  .ramp-side .related { grid-template-columns: 1fr; }
  .ramp-main .key-facts { grid-template-columns: repeat(4, 1fr); }
  .ramp-main .key-facts div:first-child { grid-column: 1 / -1; }
  .finder-out { scroll-margin-top: 84px; } /* sticky header */
  .finder-out { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); gap: 28px; align-items: start; }
  .finder-out[hidden] { display: none; }
  .finder-map-col { position: sticky; top: 84px; }
  .finder-map { height: calc(100vh - 150px); min-height: 460px; max-height: 820px; }
  .finder-list-col .ramp-list { grid-template-columns: 1fr; }
  .finder-row .search-bar { max-width: 640px; }
}
