/* SeniorMedRides. Large, high-legibility type for older readers and caregivers on phones. */
:root {
  --navy: #1B2D6B;
  --navy-deep: #132150;
  --green: #1A9E6E;
  --green-text: #0F7350;  /* AA on white */
  --green-wash: #E3F4EC;
  --ink: #18213A;
  --muted: #4A5675;
  --bg: #F1F4F8;
  --paper: #FFFFFF;
  --line: #D3DAE5;
  --amber: #8A5300;
  --amber-wash: #FCF1DC;
  --focus: #F2B705;
  --radius: 10px;
  font-size: 118.75%; /* 19px base */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  line-height: 1.55;
}
img, svg { display: block; }
a { color: var(--navy); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--green-text); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 720px); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: .5em 1em; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and footer */
.site-head { background: var(--navy); color: #fff; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.brand b { font-weight: 800; color: #8FE0BF; }
.mark { width: 32px; height: 32px; flex: none; }
.site-head nav { display: flex; gap: 20px; }
.site-head nav a { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 0; }
.site-head nav a:hover { text-decoration: underline; color: #fff; }
.crumbs ol { list-style: none; padding: 0; margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.site-foot { background: var(--navy-deep); color: #D9E0F0; margin-top: 72px; padding: 48px 0 24px; font-size: .9rem; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr; }
.foot-brand { display: flex; gap: 10px; align-items: center; font-weight: 800; color: #fff; font-size: 1.05rem; }
.foot-h { font-weight: 800; color: #fff; margin-bottom: .4em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: .3em 0; }
.fine { border-top: 1px solid #2B3B73; padding-top: 18px; margin-top: 32px; color: #AEB8D3; font-size: .8rem; }

/* Hero: the sentence is the search */
.hero { background: var(--navy); color: #fff; padding: 56px 0 64px; }
.finder-line {
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3.6rem); font-weight: 800; line-height: 1.25;
  letter-spacing: -.02em; margin: 0 0 28px; max-width: 22ch;
}
.finder-line > span { margin-right: .25em; }
.sel { display: inline-block; position: relative; margin-right: .25em; }
.sel select {
  appearance: none; -webkit-appearance: none; font: inherit; color: #8FE0BF; background: transparent;
  border: 0; border-bottom: .09em solid #8FE0BF; padding: 0 1.1em 0 0; cursor: pointer; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 7l6 6 6-6' fill='none' stroke='%238FE0BF' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: .6em;
  field-sizing: content;
}
.sel select option { color: var(--ink); background: #fff; font-size: 1rem; }
.sel select:focus-visible { outline: 3px solid var(--focus); }
.go {
  font: inherit; font-weight: 800; font-size: 1.15rem; background: var(--green); color: #fff; border: 0;
  border-radius: var(--radius); padding: 16px 28px; cursor: pointer; min-height: 56px;
}
.go:hover { background: #158A5F; }
.hero-sub { max-width: 46ch; margin: 28px 0 0; color: #D3DBEE; font-size: 1.05rem; }

/* Sections */
.block { padding-top: 64px; }
.cities { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cities a { display: grid; gap: 2px; padding: 22px 22px 24px; background: var(--paper); text-decoration: none; color: var(--ink); height: 100%; }
.cities a:hover { background: var(--green-wash); }
.c-name { font-size: 1.35rem; font-weight: 800; color: var(--navy); }
.c-n { font-weight: 600; color: var(--green-text); }
.c-places { font-size: .85rem; color: var(--muted); }
.cities.slim a { padding: 14px 18px; }

.split { display: grid; gap: 48px; grid-template-columns: 3fr 2fr; }
.kinds { margin: 0; }
.kinds div { padding: 16px 0; border-top: 1px solid var(--line); }
.kinds dt { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.kinds dt svg { width: 28px; height: 28px; fill: currentColor; color: var(--green-text); }
.kinds dd { margin: 6px 0 0 38px; color: var(--muted); }
.howto { background: var(--paper); border-radius: var(--radius); padding: 28px; align-self: start; border: 1px solid var(--line); }
.steps { margin: 0 0 1em; padding-left: 1.3em; }
.steps li { margin-bottom: .8em; }
.em { border-left: 4px solid #C62828; padding-left: 12px; }

.band { background: var(--green-text); color: #fff; margin-top: 72px; padding: 40px 0; }
.band-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { margin-bottom: .25em; }
.band p { margin: 0; color: #DDF3EA; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; text-decoration: none; background: var(--navy); color: #fff; border: 2px solid var(--navy); border-radius: var(--radius); padding: 12px 22px; min-height: 52px; cursor: pointer; }
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn.light { background: #fff; color: var(--green-text); border-color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--paper); color: var(--navy); }
.call { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: #fff; text-decoration: none; font-weight: 800; border-radius: var(--radius); padding: 12px 18px; min-height: 52px; white-space: nowrap; }
.call:hover { background: #158A5F; color: #fff; }
.call svg { width: 20px; height: 20px; fill: currentColor; }

/* Listing pages */
.page-head { padding-top: 28px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.jump { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; min-height: 44px; }
.jump svg { width: 20px; height: 20px; fill: currentColor; color: var(--green-text); }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 28px; align-items: start; }
.aside { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; font-size: .92rem; position: sticky; top: 16px; }
.aside h2 { font-size: 1.15rem; }
.list-h { font-size: 1.2rem; margin-top: 32px; }
.note { color: var(--muted); font-size: .92rem; max-width: 62ch; }

.filters { display: grid; gap: 12px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters legend { font-weight: 800; font-size: .85rem; margin-bottom: 6px; color: var(--muted); width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .88rem; font-weight: 600; min-height: 44px; background: var(--bg); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip svg { width: 20px; height: 20px; fill: currentColor; color: var(--green-text); }
.chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:has(input:checked) svg { color: #8FE0BF; }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.count { margin: 0; font-size: .88rem; color: var(--muted); }

.listings { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--navy); }
.listing { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.listing h3 { margin-bottom: 6px; font-size: 1.2rem; }
.listing h3 a { text-decoration: none; }
.listing h3 a:hover { text-decoration: underline; }
.l-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.l-act .site, .l-act .more { font-size: .85rem; font-weight: 600; }
.area { margin: 6px 0 0; font-size: .9rem; max-width: 60ch; }
.k { font-weight: 800; color: var(--muted); margin-right: 4px; }
.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.badge.ok { background: var(--green-wash); color: var(--green-text); }
.badge.maybe { background: var(--amber-wash); color: var(--amber); }
.badge.reg { background: #E7EBF3; color: var(--muted); }
.mob { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mob li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.mob svg { width: 22px; height: 22px; fill: currentColor; color: var(--green-text); }
.mob.none { display: block; color: var(--muted); font-size: .88rem; font-weight: 400; }

.reg-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--line); columns: 2; column-gap: 32px; }
.reg-row { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.reg-row > a:first-child { font-weight: 600; }
.reg-row .city { grid-row: 2; color: var(--muted); font-size: .82rem; }
.reg-row .tel { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; white-space: nowrap; }
[hidden], .listing.is-hidden, .reg-row.is-hidden { display: none !important; }

/* Provider page */
.provider .where { font-size: .9rem; color: var(--muted); margin-bottom: .4em; }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.facts { margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 800; color: var(--muted); }
.facts dd { margin: 0; }
.source { font-size: .82rem; color: var(--muted); margin-top: 16px; }
.claim-box { margin-top: 36px; padding: 24px; background: var(--green-wash); border-radius: var(--radius); }
.claim-box h2 { font-size: 1.2rem; }
.report { margin-top: 24px; }
.report summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 8px 0; }

/* Forms */
.form, .report form { display: grid; gap: 18px; margin-top: 24px; }
.form label, .report label { display: grid; gap: 6px; font-weight: 600; }
input, select, textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid #9AA6BD; border-radius: 8px; background: var(--paper); color: var(--ink); min-height: 50px; width: 100%; }
textarea { min-height: 120px; }
.checks { border: 1.5px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks legend { font-weight: 800; padding: 0 6px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.checks input { width: 22px; height: 22px; min-height: 0; accent-color: var(--green); }
.form-msg:empty { display: none; }
.form-msg { padding: 12px 16px; border-radius: 8px; background: var(--green-wash); color: var(--green-text); font-weight: 600; }
.form-msg.err { background: #FDE8E8; color: #A11B1B; }
.prose h2 { margin-top: 1.5em; }
.prose p { max-width: 64ch; }

@media (max-width: 900px) {
  .with-aside, .split, .foot-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .reg-list { columns: 1; }
}
@media (max-width: 600px) {
  .site-head nav { gap: 14px; font-size: .9rem; }
  .head-row { min-height: 56px; }
  .jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
  .jump a { white-space: nowrap; }
  .listing { grid-template-columns: 1fr; }
  .l-act { align-items: stretch; flex-direction: row; flex-wrap: wrap; }
  .l-act .call { flex: 1 1 100%; justify-content: center; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .hero { padding: 36px 0 44px; }
  .go { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
