/* Additions for the generated pages (scripts/pages.py); everything else is style.css. */
.office-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin: 12px 0; position: relative; z-index: 0; }
/* Section tabs: stay under the sticky header while the page scrolls. */
.tabs { position: sticky; top: 68px; z-index: 900; display: flex; gap: 4px; overflow-x: auto; margin: 18px 0 0; padding: 8px 0;
  background: #fff; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tabs a:hover, .tabs a.on { background: var(--soft-2); color: var(--ink); }
.panel[id], #nearby { scroll-margin-top: 130px; }
.about p { margin: 0; font-size: 16px; }
details.more summary { cursor: pointer; color: var(--blue); font-weight: 600; margin-top: 10px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " ▾"; }
details.more[open] summary { display: none; }
details.more p { margin-top: 10px; }
/* Podiatrists on a clinic page: photo or initials, name, their details in words; a link to the id opens the rest (pages.js). */
article.doc { display: grid; grid-template-columns: 80px 1fr; gap: 18px; border-top: 1px solid var(--line); padding: 18px 0;
  scroll-margin-top: 130px; }
article.doc:last-child { padding-bottom: 0; }
.doc-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--soft-2); }
.doc-photo.initials { display: grid; place-items: center; font-weight: 800; font-size: 24px; color: var(--ink-2); }
.doc-body h3 { font-size: 18px; margin: 0; color: var(--blue); }
.doc-body p { margin: 6px 0 0; }
details.doc-more { margin-top: 10px; }
details.doc-more summary { cursor: pointer; color: var(--blue); font-weight: 600; }
table.facts-table { margin: 10px 0; }
table.facts-table, table.src-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.facts-table th, table.facts-table td, table.src-table th, table.src-table td { text-align: left; vertical-align: top;
  padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.facts-table th { width: 40%; font-weight: 600; color: var(--ink-2); }
table.src-table thead th { font-weight: 700; color: var(--ink); background: var(--soft); }
table.src-table tbody th { font-weight: 600; white-space: nowrap; }
table.src-table td:last-child { white-space: nowrap; }
.panel h3 { font-size: 16px; margin: 16px 0 4px; }
details.sources { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
details.sources summary { cursor: pointer; color: var(--blue); font-weight: 600; }
details.sources table { margin-top: 8px; }
@media (max-width: 640px) {
  article.doc { grid-template-columns: 56px 1fr; gap: 12px; }
  .doc-photo { width: 56px; height: 56px; }
  .doc-photo.initials { font-size: 18px; }
  table.src-table, table.src-table tbody, table.src-table tr, table.src-table th, table.src-table td { display: block; width: auto; }
  table.src-table thead { display: none; }
  table.src-table tbody th { padding-bottom: 0; border: 0; }
  table.src-table td { border: 0; padding-top: 2px; padding-bottom: 2px; }
  table.src-table tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
}
table.hours { border-collapse: collapse; font-size: 14px; }
table.hours th { text-align: left; font-weight: 600; padding: 3px 18px 3px 0; }
table.hours td { padding: 3px 0; }
#nearby { margin-top: 40px; }
table.hours { width: auto; }
table.hours td { white-space: nowrap; }
dl.checked { display: grid; grid-template-columns: auto auto; gap: 4px 14px; font-size: 14px; margin: 8px 0; }
dl.checked dt { color: var(--muted); }
dl.checked dd { margin: 0; font-weight: 600; }
/* Photos (pages.py PHOTO_SOURCES says which kinds are shown; pipeline.py label picks and describes them) */
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img { overflow: hidden; }
.card .card-photo { height: 170px; border-radius: var(--r) var(--r) 0 0; }
.region-h { font-size: 20px; margin: 28px 0 10px; }
/* Icons (icons.svg) and links to other sites, which are buttons that pages.js opens (Koray, 2026-11-10). */
.i { width: 1.15em; height: 1.15em; vertical-align: -.22em; flex: none; }
.i-sm { width: .85em; height: .85em; vertical-align: -.08em; margin-left: 2px; }
button.ext { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-align: left; }
button.ext:hover { text-decoration: underline; }
button.ext:focus-visible, .tablist [role=tab]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.logo-mark svg { width: 24px; height: 24px; }
/* Breadcrumb list */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.crumbs ol > li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }
/* A breadcrumb step's menu: the other states, or the nearest cities (Koray, 2026-12-01). A <details>, so no script. */
.crumbs ol > li { display: inline-flex; align-items: center; gap: 2px; position: relative; }
.crumb-menu summary { list-style: none; cursor: pointer; display: inline-flex; padding: 2px; border-radius: 6px; color: var(--muted); }
.crumb-menu summary::-webkit-details-marker { display: none; }
.crumb-menu summary .i { width: 16px; height: 16px; }
.crumb-menu summary:hover, .crumb-menu[open] summary { color: var(--blue); background: var(--blue-soft); }
.crumb-menu ul { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 200px; max-height: 320px; overflow: auto;
  margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 0 10px 30px rgba(8, 15, 30, .12); }
.crumb-menu ul a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--ink); white-space: nowrap; }
.crumb-menu ul a:hover { background: var(--soft); color: var(--blue); }
/* The state page's smaller cities, each at /podiatrists/<state>/#<city>. */
.towns .town { scroll-margin-top: 130px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.towns .town:target h3 { color: var(--blue); }
.towns h3 { font-size: 17px; margin: 0 0 6px; }
.towns ul { margin: 0; padding-left: 18px; }
.towns li { margin: 4px 0; }
/* Clinic page: one full-width column; the call button sits in the stat row; contact and sources close the page. */
.clinic .panel p, .clinic #nearby > p { max-width: 78ch; }
.statbar .call { justify-content: center; align-items: flex-start; gap: 6px; }
.statbar .call .btn { font-size: 15px; font-weight: 700; padding: 11px 20px; }
.statbar span .i { color: var(--blue); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pair > .panel:only-child { grid-column: 1 / -1; }
.pair .panel p { margin: 10px 0; }
.pair .panel p .i { color: var(--blue); margin-right: 4px; }
/* Services, insurance, languages and hours as tabs (pages.js shows one at a time; without it all show). */
.tablist { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 12px 0 4px; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tablist [role=tab] { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: none; border: 0;
  border-bottom: 3px solid transparent; padding: 10px 14px; font: 700 15px Nunito, sans-serif; color: var(--muted); cursor: pointer; }
.tablist [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--coral); }
.tablist [role=tab] .i { color: var(--blue); }
.tabpanel { scroll-margin-top: 130px; }
.tabpanel .tab-h { font-size: 17px; margin: 14px 0 6px; }
.panel h4 { font-size: 15px; margin: 16px 0 6px; }
.src-one { margin-top: 8px; }
/* Reviews: the quote, then who and when (<cite>, <time>) */
figure.review { margin: 0; padding: 16px 0; border-top: 1px solid var(--line); }
figure.review blockquote { margin: 0; font-size: 16px; }
figure.review blockquote p { margin: 0; }
figure.review cite { font-style: normal; font-weight: 700; color: var(--ink-2); }
figure.review .stars { color: var(--star); letter-spacing: 1px; }
/* Photo captions from their labels */
.loc .i { color: var(--blue); }
@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr; gap: 0; }
  .statbar .call { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); flex-direction: row; align-items: center; flex-wrap: wrap; }
  .statbar.s1 .call, .statbar.s0 .call { grid-column: auto; padding-top: 0; border-top: 0; }
}
/* The longer name: on a phone the header's search button is its icon alone. */
@media (max-width: 480px) {
  .header-cta .btn-dark span { display: none; }
  .header-cta .btn-dark { padding: 9px 11px; }
  .logo { font-size: 16px; gap: 6px; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-ico { color: var(--blue); margin-right: 8px; vertical-align: -.15em; }
.top { display: flex; flex-direction: column; }
/* On a phone the stat row and its call button come before the photos (Koray, 2026-11-10: the call button higher). */
@media (max-width: 640px) { .top .statbar { order: -1; margin-bottom: 4px; } }
/* Review summary: a short list with icons (review_summary_html) */
ul.tldr { list-style: none; margin: 8px 0 14px; padding: 14px 16px; background: var(--soft); border-radius: 12px; display: grid; gap: 8px; }
ul.tldr li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
ul.tldr .i { color: var(--blue); margin-top: 3px; }
/* Clinic photos (pages.py gallery). Desktop: the main photo at full height in its own shape (never cropped unless it is
   very wide), the others filling the space left, in a column or a 2x2 grid. Phone: a row to swipe, each photo in its own
   shape, the next one peeking in. Captions show on hover or keyboard focus. */
.photos { display: flex; gap: 8px; margin: 18px 0; height: 400px; }
.photos .ph { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--soft-2); min-height: 0; min-width: 0; }
.photos .ph img { display: block; transition: transform .35s ease; }
.photos .ph-main { flex: 0 1 auto; height: 100%; border-radius: 18px 6px 6px 18px; }
.photos.n1 .ph-main { border-radius: 18px; }
.photos .ph-main img { height: 100%; width: auto; max-width: min(64vw, 780px); object-fit: cover; }
.photos.n1 .ph-main img { max-width: 100%; }
.photos.none { height: 260px; }
.photos.none .ph-main img { width: auto; max-width: 100%; }
.photos.none figcaption { opacity: 1; }
.photos .ph-side { flex: 1 1 0; min-width: 200px; display: grid; gap: 8px; grid-template-rows: 1fr 1fr; }
.photos.n2 .ph-side { grid-template-rows: 1fr; }
.photos.n5 .ph-side { grid-template-columns: 1fr 1fr; }
.photos .ph-side img { width: 100%; height: 100%; object-fit: cover; }
.photos figcaption { position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px; color: #fff; font-size: 14px; line-height: 1.35;
  background: linear-gradient(transparent, rgba(8, 15, 30, .75)); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.photos .ph:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) {
  .photos .ph:hover img { transform: scale(1.03); }
  .photos .ph:hover figcaption, .photos .ph:focus-visible figcaption { opacity: 1; }
}
@media (max-width: 640px) {
  .photos { height: 250px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 14px -16px; padding: 0 16px; scrollbar-width: none; }
  .photos::-webkit-scrollbar { display: none; }
  .photos .ph-side { display: contents; }
  .photos .ph, .photos .ph-main { flex: 0 0 auto; height: 100%; border-radius: 14px; scroll-snap-align: center; }
  .photos .ph img, .photos .ph-main img, .photos .ph-side img { height: 100%; width: auto; max-width: calc(100vw - 48px); object-fit: cover; }
}
/* Stat box: the short label and the number in the call button are for phones only. */
.statbar .lbl-s, .statbar .call-num { display: none; }
.statbar .call .btn span { color: inherit; letter-spacing: 0; font-size: inherit; }
@media (max-width: 640px) {
  .statbar, .statbar.s1, .statbar.s2, .statbar.s3 { gap: 0; padding: 14px 0 0; }
  .statbar.s1 { grid-template-columns: 1fr; } .statbar.s2 { grid-template-columns: repeat(2, 1fr); }
  .statbar.s3 { grid-template-columns: repeat(3, 1fr); }
  .statbar .st { position: relative; align-items: center; text-align: center; padding: 0 6px; border-right: 1px solid var(--line); }
  .statbar .st:last-child, .statbar .st:has(+ .call) { border-right: 0; }
  .statbar b { font-size: 24px; line-height: 1.2; }
  .statbar .lbl { display: none; }
  .statbar .lbl-s { display: block; font-size: 14px; letter-spacing: 0; color: var(--muted); }
  /* the whole stat is the link to its section */
  .statbar .st small { position: static; }
  .statbar .st small a { position: absolute; inset: 0; font-size: 0; }
  .statbar .call { grid-column: 1 / -1; margin-top: 14px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
  .statbar .call .btn { width: 100%; padding: 13px 16px; font-size: 16px; }
  .statbar .call small, .statbar .call-what { display: none; }
  .statbar .call-num { display: inline; color: inherit; letter-spacing: 0; font-size: inherit; }
  .statbar > .st:not(:last-child):not(:has(+ .call)) { border-right: 1px solid var(--line); }
  .statbar:not(:has(.call)) { padding-bottom: 14px; }
}
/* Lists: cards past the current limit (pages.js load more) */
#real-results .card.over { display: none; }
.load-more { display: block; margin: 20px auto 0; }
/* City and state pages: statistics tiles, FAQ, review samples */
/* "<City> at a glance": four facts, same order and shape on every page; 4 across on desktop, 2x2 on phones.
   (Not .stats: the agency's home-page stat bar owns that class.) */
.area-stats { margin-top: 18px; padding: 22px 26px 18px; }
.area-stats .h2-sm { margin: 0 0 16px; }
.glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.glance .stat { padding: 0 20px; border-left: 1px solid var(--line); min-width: 0; }
.glance .stat:first-child { padding-left: 0; border-left: 0; }
.glance dt { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.glance dd { margin: 0; }
.glance b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.glance span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.glance .na b { font-size: 18px; font-weight: 700; color: var(--muted); line-height: 1.1; padding: 6px 0 4px; }
.area-stats sup { font-size: 11px; font-weight: 700; color: var(--blue); vertical-align: super; line-height: 0; margin-left: 2px; }
.stat-more { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.stat-more summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); width: fit-content; }
.stat-note { margin: 10px 0 0; font-size: 15px; color: var(--ink-2); }
.stat-src { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.stat-src + .stat-src { margin-top: 2px; }
.stat-src > span { margin-right: 14px; }
.stat-src > .src { white-space: nowrap; }
.stat-src > span sup { margin: 0 3px 0 0; }
@media (max-width: 640px) {
  .area-stats { padding: 18px 18px 14px; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .glance .stat { padding: 0 0 0 16px; }
  .glance .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .glance b { font-size: 24px; }
}
.area-voice ul { list-style: none; padding: 0; margin: 8px 0 6px; display: grid; gap: 6px; }
.area-voice li b { font-variant-numeric: tabular-nums; margin-right: 4px; }
.area-faq .faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.area-faq .faq summary { cursor: pointer; font-weight: 700; }
.area-faq .faq p { margin: 8px 0 0; max-width: 78ch; }
#area-reviews figure.review, #area-reviews p { max-width: 78ch; }
/* The wordmark's teal on the dark footer is a lighter tint, for contrast (4.0:1 before). */
.site-footer .logo b { color: #6fd6cf; }
/* Podiatrist Near Me's take (opinion box) */
.opinion { background: var(--blue-soft); border-color: #cfe9e7; }
.opinion > p:first-of-type { font-size: 17px; line-height: 1.6; max-width: 72ch; margin: 8px 0 10px; color: var(--ink); }
/* Reviews: who wrote it (profile photo or initials), stars and date, then the quote */
figure.review figcaption { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 14px; color: var(--muted); }
figure.review .rev-photo { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: var(--soft-2); }
figure.review .rev-photo.initials { display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--ink-2); }
figure.review .rev-who { display: flex; flex-direction: column; line-height: 1.3; }
figure.review .rev-meta { font-size: 14px; color: var(--muted); }
figure.review .rev-link { margin: 6px 0 0; font-size: 14px; }
/* Home: "Get to the right care faster" as tabs with clinics (services down the side on desktop, a row on phones) */
.care-tabs { display: grid; grid-template-columns: 260px 1fr; gap: 28px; margin-top: 24px; }
.care-list { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--line); margin: 0; padding-right: 12px; gap: 2px; }
.care-list [role=tab] { justify-content: space-between; border-bottom: 0; border-left: 3px solid transparent; border-radius: 0 8px 8px 0;
  padding: 11px 12px; font-size: 15px; text-align: left; }
.care-list [role=tab][aria-selected=true] { border-left-color: var(--coral); background: var(--soft); }
.care-list [role=tab] small { font-size: 14px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.care-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 4px 0 16px; flex-wrap: wrap; }
.care-head h3 { margin: 0; font-size: 22px; }
.care-head a { color: var(--blue); font-weight: 600; font-size: 15px; }
@media (max-width: 900px) {
  .care-tabs { grid-template-columns: 1fr; gap: 16px; }
  .care-list { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; overflow-x: auto; }
  .care-list [role=tab] { border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; gap: 8px; }
  .care-list [role=tab][aria-selected=true] { border-bottom-color: var(--coral); background: none; }
}
/* Home: "Podiatrists near you": map left, the clinics in view right; on phones the map, then a row to swipe */
.near { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; margin-top: 20px; }
.near-map { height: 480px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.near-side { display: flex; flex-direction: column; min-width: 0; }
.near-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.near-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.near-list a { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.near-list a:hover { border-color: var(--blue); }
.near-list img, .near-initials { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--soft-2); }
.near-initials { display: grid; place-items: center; font-weight: 800; color: var(--ink-2); }
.near-list b { display: block; font-size: 15px; line-height: 1.3; }
.near-list a > span > span { display: block; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .near { grid-template-columns: 1fr; }
  .near-map { height: 320px; }
  .near-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; max-height: none; padding-bottom: 4px; }
  .near-list li { flex: 0 0 82%; scroll-snap-align: start; }
}
/* Statistics page: every city in one table that sorts by any column */
.city-stats { margin-top: 24px; }
.table-scroll { overflow-x: auto; margin-top: 10px; }
table.sortable { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.sortable th, table.sortable td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.sortable th:first-child, table.sortable td:first-child { text-align: left; }
table.sortable tbody th { font-weight: 600; text-align: left; }
table.sortable thead th { position: sticky; top: 0; background: #fff; }
table.sortable thead button { background: none; border: 0; padding: 0; font: 700 14px Nunito, sans-serif; color: var(--ink-2); cursor: pointer; }
table.sortable thead button[aria-sort]::after { content: " ↓"; color: var(--blue); }
table.sortable thead button[aria-sort=ascending]::after { content: " ↑"; }
/* Cards: a clinic without a photo gets its initials on a brand tile the size of a photo; a name several clinics share
   gets its street under it */
.card .card-photo .mono { color: var(--blue); opacity: 1; }
.card .card-photo:has(> .mono) { background: linear-gradient(135deg, var(--blue-soft), #f3faf9); }
.card h3 .card-sub { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 2px; }
/* Hero: "Use my location" leads the Try row, in teal like the map's button */
.try .try-locate { display: inline-flex; align-items: center; gap: 6px; background: var(--blue); color: #fff; border: 0;
  border-radius: 999px; padding: 6px 13px; font: 600 14px Nunito, sans-serif; cursor: pointer; }
.try .try-locate:hover { background: #096a70; }
.try .try-locate:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* The directory pop-up on the home page (pages.py directory_modal; Koray, 2026-11-12): /#podiatrists opens it. */
.dir-modal { width: min(880px, calc(100vw - 32px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--r);
  background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(8, 15, 30, .28); overflow: hidden; }
.dir-modal[open], .dir-modal:target { display: flex; flex-direction: column; }
.dir-modal:target:not([open]) { position: fixed; inset: 7vh 0 auto; margin: 0 auto; z-index: 2000; }  /* without JavaScript */
.dir-modal::backdrop { background: rgba(8, 15, 30, .55); backdrop-filter: blur(2px); }
html:has(.dir-modal[open]) { overflow: hidden; }
.dir-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 28px 8px; }
.dir-head h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 4px; }
.dir-head p { margin: 0; }
.dir-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft);
  color: var(--ink); }
.dir-close:hover { background: var(--soft-2); }
.dir-close .i { width: 20px; height: 20px; }
.dir-find { display: flex; align-items: center; gap: 10px; margin: 12px 28px 4px; padding: 0 16px; height: 48px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--muted); }
.dir-find:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-soft); }
.dir-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 600 16px Nunito, sans-serif; color: var(--ink); }
.dir-find input::placeholder { color: var(--muted); }
.dir-body { overflow-y: auto; padding: 8px 28px 28px; overscroll-behavior: contain; }
.dir-state h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 16px 0 4px; font-size: 20px; }
.dir-state h3 a:hover { color: var(--blue); }
.dir-state h3 span { font-size: 14px; font-weight: 600; color: var(--muted); }
.dir-sub { margin: 14px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.dir-cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 6px; }
.dir-cities a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; }
.dir-cities a:hover, .dir-cities a:focus-visible { background: var(--blue-soft); color: var(--blue); }
.dir-cities small { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dir-top a { background: var(--soft); }
.dir-empty { margin: 24px 0 0; }
@media (max-width: 640px) {
  .dir-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .dir-modal:target:not([open]) { inset: 0; }
  .dir-head { padding: 18px 16px 4px; }
  .dir-find { margin: 10px 16px 4px; }
  .dir-body { padding: 4px 16px 24px; }
  .dir-cities { grid-template-columns: 1fr 1fr; }
}
.dir-results { margin: 8px 0 4px; }
.dir-clinics { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dir-clinics a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); }
.dir-clinics a:hover, .dir-clinics a:focus-visible { background: var(--blue-soft); }
.dir-clinics b { display: block; font-size: 15px; line-height: 1.3; }
.dir-pic { flex: none; width: 48px; height: 48px; border-radius: 10px; overflow: hidden; background: var(--soft-2); display: grid; place-items: center; }
.dir-pic img { width: 100%; height: 100%; object-fit: cover; }
.dir-pic .mono { font-weight: 800; font-size: 15px; color: var(--blue); }
.dir-more { margin: 8px 10px 0; }

/* The Features page (pages.py features_page; Koray's Figma, 2026-11-12). Sections alternate white and soft; each opens with
   an eyebrow, a question as the heading and a one-sentence answer with a teal rule. */
.btn-amber { background: var(--star); color: var(--ink); font-weight: 700; }
.btn-amber:hover { background: #e59a12; }
.ft-sec { padding: 80px 0; scroll-margin-top: 120px; }
.ft-sec.soft { background: var(--soft); }
.ft-in { max-width: 1120px; }
.ft-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.ft-h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 18px; }
.ft-answer { margin: 0 0 24px; padding: 2px 0 2px 18px; border-left: 4px solid var(--blue); font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 900px; }
.ft-lead { font-size: 17px; color: var(--muted); margin: 0 0 20px; }
.ft-note { margin: 24px 0 0; font-size: 17px; }
.ft-sec p a, .ft-hero p a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
:root { --blue-ink: #08656b; }
.ft-k { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }

/* hero */
.ft-hero { background: var(--soft); padding: 28px 0 56px; text-align: center; }
.ft-hero .crumbs ol { justify-content: center; }
.ft-pill-top { display: inline-block; margin: 18px 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); font-size: 14px; font-weight: 700; }
.ft-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.08; max-width: 900px; margin: 0 auto 16px; letter-spacing: -.02em; }
.ft-hero-lead { max-width: 760px; margin: 0 auto 26px; font-size: 18px; color: var(--muted); }
.ft-search .search-ico { display: grid; place-items: center; color: var(--muted); }
.ft-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 44px; text-align: left; }
.ft-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; }
.ft-tile-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.ft-tile-top b { font-size: clamp(28px, 2.6vw, 36px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.ft-tile .ft-q { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.ft-checked { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* (i) notes: hover, keyboard focus or a tap shows them */
.tip { position: relative; display: inline-flex; flex: none; }
.tip-btn { position: relative; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: help; }
.tip-btn::before { content: ""; position: absolute; inset: -9px; }
.tip-btn:hover, .tip-btn:focus-visible { color: var(--blue); background: var(--blue-soft); outline: none; }
.tip-btn .i { width: 18px; height: 18px; }
.tip-box { position: absolute; z-index: 50; top: calc(100% + 8px); right: -8px; width: min(300px, calc(100vw - 24px)); padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: #e6e9f0; font-size: 13px; font-weight: 500; line-height: 1.45; text-align: left; text-transform: none; letter-spacing: 0;
  box-shadow: 0 12px 32px rgba(8, 15, 30, .25); display: none; transform: translateX(var(--dx, 0px)); pointer-events: none; }
@keyframes tip-in { from { opacity: 0; transform: translate(var(--dx, 0px), -4px); } }
.tip-box b { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--star); }
.tip:hover .tip-box, .tip.open .tip-box, .tip-btn:focus-visible + .tip-box { display: block; animation: tip-in .15s ease-out; }
@media (prefers-reduced-motion: reduce) { .tip-box { animation: none !important; } }

/* on this page */
.ft-toc { top: 68px; margin: 0; padding: 10px max(24px, calc((100% - 1120px) / 2)); align-items: center; }
.ft-toc-k { flex: none; margin-right: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ft-toc a { background: var(--soft); }
.ft-toc a.on { background: var(--ink); color: #fff; }

/* what it does */
.ft-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ft-facts > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 22px;
  box-shadow: 0 8px 24px rgba(8, 15, 30, .05); }
.ft-facts .ft-ico { margin-bottom: 16px; }
.ft-facts b { display: block; margin-top: 6px; font-size: 17px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.ft-facts > div:nth-child(5n+2) .ft-ico, .ft-card:nth-child(4n+2) .ft-ico { background: #fff1ec; color: #d9482a; }
.ft-facts > div:nth-child(5n+3) .ft-ico, .ft-card:nth-child(4n+3) .ft-ico { background: #fff3d8; color: #a86300; }
.ft-facts > div:nth-child(5n+4) .ft-ico, .ft-card:nth-child(4n) .ft-ico { background: var(--green-soft); color: #11833c; }
.ft-facts > div:nth-child(5n) .ft-ico { background: var(--soft-2); color: var(--ink-2); }

/* segmented filters and tabs */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.ft-sec:not(.soft) .seg { background: var(--soft); }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 700 14px Nunito, sans-serif; color: var(--ink-2); cursor: pointer; }
.seg button:hover { background: var(--soft-2); }
.seg button[aria-pressed=true], .seg button[aria-selected=true] { background: var(--ink); color: #fff; }

/* feature cards */
.ft-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ft-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.ft-card-head { display: flex; align-items: center; gap: 16px; margin: 0 0 12px; }
.ft-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); }
.ft-ico .i { width: 26px; height: 26px; }
.ft-card h3 { font-size: 19px; margin: 0; line-height: 1.3; }
.ft-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 800; }
.ft-card > p { margin: 0 0 14px; color: var(--ink-2); }
.ft-fig { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: var(--r-sm); background: var(--soft); }
.ft-fig b { font-size: 22px; font-weight: 900; color: var(--blue); font-variant-numeric: tabular-nums; }
.ft-fig span:not(.tip):not(.tip-box) { flex: 1; font-size: 14px; color: var(--ink-2); }
.ft-src-line { margin: 12px 0 0 !important; font-size: 13px; font-weight: 700; color: var(--muted) !important; }

/* tables and bars */
.ft-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; font-variant-numeric: tabular-nums; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.ft-table th, .ft-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.ft-table thead th { background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ft-table tbody tr:nth-child(even) { background: var(--soft); }
.ft-table tbody tr:last-child th, .ft-table tbody tr:last-child td { border-bottom: 0; }
.ft-table tbody th { font-weight: 700; }
.ft-table tbody th a { color: var(--ink); }
.ft-table tbody th a:hover { color: var(--blue); }
.ft-table tr.total { background: var(--blue-soft) !important; font-weight: 800; }
.ft-chart { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.ft-chart figcaption b { display: block; font-size: 17px; }
.ft-bars { display: grid; gap: 8px; margin-top: 16px; }
.ft-bar { position: relative; display: grid; grid-template-columns: minmax(130px, 220px) 1fr minmax(96px, auto); align-items: center; gap: 12px; padding: 2px 6px; border-radius: 8px; }
.ft-bar:hover, .ft-bar:focus-visible { background: var(--soft); outline: none; }
.ft-bar-k { text-align: right; font-size: 14px; color: var(--ink-2); }
.ft-track { height: 22px; border-radius: 6px; background: none; }
.ft-track span { display: block; height: 100%; min-width: 6px; border-radius: 6px; background: #ccd2de; }
.ft-bar.hi .ft-track span, #cov-bars .ft-track span { background: var(--blue); }
.ft-bar-v { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ft-bar-v small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ft-bar .tip-box { top: auto; bottom: calc(100% + 4px); left: 30%; right: auto; }
.ft-bar:hover .tip-box, .ft-bar:focus-visible .tip-box { display: block; animation: tip-in .15s ease-out; }
.ft-sec .seg + [role=tabpanel], .ft-sec [role=tabpanel] { outline: none; }

/* sources, confirmation, steps */
.ft-five { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ft-src { background: var(--soft); border-radius: var(--r); padding: 18px; }
.ft-date { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff3d8; color: #8a5a00; font-size: 12px; font-weight: 800; }
.ft-src h3 { font-size: 17px; margin: 12px 0 6px; }
.ft-src p { margin: 0; font-size: 14px; color: var(--muted); }
.ft-ok { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--blue-soft); }
.ft-ok .i { flex: none; color: var(--blue); }
.ft-or { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; gap: 10px; }
.ft-or div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.ft-or b { display: block; color: var(--blue); font-size: 16px; margin-bottom: 4px; }
.ft-or span { font-size: 14px; color: var(--ink-2); }
.ft-or .ft-or-k { align-self: center; font-size: 13px; font-weight: 800; color: var(--muted); }
.ft-pill { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 14px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.ft-pill .i { color: #9fe3dd; }
.ft-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ft-steps li { background: var(--soft); border-radius: var(--r); padding: 22px; }
.ft-step-n { display: block; font-size: 30px; font-weight: 900; color: var(--blue); margin-bottom: 14px; }
.ft-steps li:last-child .ft-step-n { color: #a86300; }  /* the amber of the icon tiles: --star was 1.9:1 on the soft panel */
.ft-steps h3 { margin: 0 0 6px; }
.ft-steps p { margin: 0; font-size: 15px; color: var(--muted); }

/* FAQ */
.ft-faq { display: grid; gap: 12px; max-width: 980px; }
.ft-faq details { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.ft-faq details[open] { background: var(--soft); }
.ft-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; }
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 600; line-height: 1; color: var(--blue); }
.ft-faq details[open] summary::after { content: "–"; }
.ft-faq details p { margin: 0; padding: 0 22px 18px; color: var(--ink-2); }

@media (max-width: 1080px) {
  .ft-tiles { grid-template-columns: repeat(3, 1fr); }
  .ft-five, .ft-facts { grid-template-columns: repeat(3, 1fr); }
  .ft-or { grid-template-columns: 1fr 1fr; }
  .ft-or .ft-or-k { display: none; }
  .ft-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .ft-sec { padding: 56px 0; }
  .ft-hero { padding-bottom: 40px; }
  .ft-tiles, .ft-five, .ft-facts, .ft-or { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ft-tile { padding: 14px; }
  .ft-cards, .ft-steps { grid-template-columns: 1fr; }
  .ft-bar { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .ft-bar-k { text-align: left; grid-column: 1 / -1; }
  .ft-table th, .ft-table td { padding: 10px 12px; }
  .ft-toc-k { display: none; }
  .seg button, .ft-toc a, .try a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Home page (the Features design, 2026-11-12): figures under the hero, clinics by service near you, recent profiles. */
.ft-stats { position: relative; z-index: 3; margin-top: -64px; }
.ft-stats .ft-tiles { margin-top: 0; }
.ft-stats .ft-tile { box-shadow: 0 12px 32px rgba(8, 15, 30, .08); }
.ft-stats .ft-checked { text-align: center; }
.ft .hero { padding-bottom: 120px; }
.ft #near-you .near { margin-top: 8px; }
.svc-where { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.svc-zip input { width: 9.5em; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font: 600 16px Nunito, sans-serif; color: var(--ink); background: var(--soft); }
.svc-zip input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px var(--blue-soft); }
.svc-where .btn { min-height: 44px; }
.svc-near .near-list { max-height: none; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fresh .card { position: relative; }
.fresh .card .card-photo { height: 210px; }
.fresh .card-img > img { object-fit: cover !important; }  /* the agency's cards letterbox photos; these fill the frame */
.fresh-date { align-self: flex-start; width: fit-content; display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: #11833c; font-size: 13px; font-weight: 800; }
.fresh-date .i { width: 14px; height: 14px; }
@media (max-width: 720px) {
  .ft-stats { margin-top: -48px; }
  .svc-near .near-list { display: grid; grid-template-columns: 1fr; }
  .svc-near .near-list li { flex: none; }
}

/* Photos come as <picture> (AVIF, with WebP for older browsers): the wrapper takes no box, so the image sits where it did. */
picture { display: contents; }
.card-img > picture > img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: 100%;
  max-height: 100%; object-fit: contain !important; image-orientation: from-image; }
.fresh .card-img > picture > img { object-fit: cover !important; }

/* VA clinics: only veterans enrolled in VA health care can go (Ben, 2026-11-16). */
.badge.va { background: #e8edf7; color: #1f3a6e; }
.card-body > .badge.va { margin: 0 0 6px; font-size: 13px; width: fit-content; align-self: flex-start; }
.va-note { display: flex; gap: 10px; align-items: flex-start; background: #e8edf7; color: #1f3a6e; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.va-note .i { flex: none; margin-top: 3px; }
.va-note .ext { margin-left: 6px; }
/* Home page: the link from the features section to the Features page (Koray, 2026-11-17). */
.ft-more { margin: 22px 0 0; }
/* Text contrast (2026-11-18): green and teal text on their soft backgrounds measured 3.0:1 and 4.2:1, under WCAG's
   4.5:1 for text. These darker shades pass (4.9:1 and 5.1:1); the brand colours stay for dots, icons and fills. */
.badge.ok, .open-now.is-open, .fresh-date { color: #127a3f; }
.ft-facts > div:nth-child(5n+4) .ft-ico, .ft-card:nth-child(4n) .ft-ico { color: #127a3f; }
.badge.blue { color: #08707a; }

/* "Report a change" on clinic pages */
.report summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.report-form { display: grid; gap: .75rem; margin-top: .75rem; max-width: 36rem; }
.report-form label { display: grid; gap: .25rem; font-weight: 500; }
.report-form select, .report-form textarea { font: inherit; padding: .5rem; border: 1px solid #cbd5e1; border-radius: 8px; width: 100%; box-sizing: border-box; }
.report-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-form button { justify-self: start; }
.report-status:empty { display: none; }

/* Cookie notice (analytics.js): only for visitors who must opt in. Low profile: a small card in the corner. */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 2000; max-width: 380px; display: grid; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); font-size: 14px; line-height: 1.45; }
.consent p { margin: 0; color: #334155; }
.consent div { display: flex; gap: 8px; }
.consent .btn { padding: 8px 16px; font-size: 14px; }
.consent .consent-no { background: #f1f5f9; color: #0f172a; border: 1px solid #cbd5e1; }
@media (max-width: 480px) { .consent { left: 8px; right: 8px; bottom: 8px; max-width: none; } }
