/* Pure Home Registry design system. Shared by every directory; --brand / --accent come from the
   directory config (set in the layout). Modern Natural with a clean, evidence-first structure. */
:root {
  --forest: #234A3C;
  --sage: #809780;
  --ivory: #F7F5EF;
  --sand: #D7C8A9;
  --charcoal: #303630;
  --muted: #5A635A;          /* 6.0:1 on ivory */
  --surface: #FFFFFF;
  --line: #E3DDCF;
  --line-strong: #CFC6B2;
  --forest-soft: #E8EFEA;
  --sand-soft: #F1EADB;
  --brand: var(--forest);
  --accent: var(--sand);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(48, 54, 48, .05), 0 4px 16px rgba(48, 54, 48, .05);
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--charcoal); background: var(--ivory); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--charcoal); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 .75rem; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: #18352b; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
img, svg { flex: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { margin: 0 0 .75rem; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.section { padding: 3.5rem 0; }
.section-head { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }

/* Header and navigation */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--charcoal); }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); display: flex; align-items: center; justify-content: center; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.brand-name span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-weight: 500; font-size: .95rem; }
.site-nav a { color: var(--charcoal); text-decoration: none; padding: .6rem 0; }
.site-nav a:hover { color: var(--brand); text-decoration: underline; }

/* Breadcrumbs */
.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 1.5rem; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 .35rem; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .container { padding-top: 2rem; padding-bottom: 3rem; }
.hero-split { display: flex; flex-wrap: wrap; gap: 2.5rem; align-items: center; }
.hero-split > :first-child { flex: 999 1 30rem; min-width: 0; }
.hero-split > :last-child { flex: 1 1 18rem; min-width: 0; }
.stats { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1.25rem 0 0; font-size: .9rem; color: var(--muted); }
.stats strong { color: var(--charcoal); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25; gap: .5rem; min-height: 46px; padding: .5rem 1.3rem; border-radius: 10px; font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #18352b; color: #fff; }
.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Search */
.search { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 40rem; margin-top: 1.5rem; }
.search label { flex-basis: 100%; font-weight: 600; font-size: .95rem; }
.search input[type="search"] { flex: 1 1 16rem; min-height: 50px; padding: 0 1rem; font: inherit; font-size: 1.02rem; color: var(--charcoal); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 10px; }
.search input[type="search"]:focus { border-color: var(--brand); outline: 3px solid rgba(35, 74, 60, .2); outline-offset: 0; }
.results { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; max-width: 40rem; }
.results li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1rem; }
.results a { font-weight: 600; text-decoration: none; }

/* Card grids */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card:hover { border-color: var(--line-strong); }
.card h3 a { color: var(--charcoal); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:hover { color: var(--brand); text-decoration: underline; }
.card a:focus-visible::after { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Category card */
.cat-card { display: flex; flex-direction: column; gap: .6rem; height: 100%; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; background: var(--forest-soft); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.cat-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.count { margin-top: auto; padding-top: .6rem; font-size: .88rem; font-weight: 600; color: var(--brand); }

/* Provider card */
.provider-card { display: flex; flex-direction: column; gap: .55rem; height: 100%; }
.chip { display: inline-block; align-self: flex-start; padding: .2rem .65rem; border-radius: 999px; background: var(--forest-soft); color: var(--brand); font-size: .8rem; font-weight: 600; }
.chip-sand { background: var(--sand-soft); color: #5b4a24; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.facts-inline { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; font-size: .9rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--muted); }
.card-foot .go { color: var(--brand); font-weight: 600; }

/* Screening */
.screening { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.tier { border-radius: var(--radius); padding: 1.15rem 1.25rem; border: 1px solid var(--line); background: var(--surface); }
.tier h3 { display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.tier p, .tier ul { margin: 0; font-size: .93rem; color: var(--muted); }
.tier ul { padding-left: 1.1rem; }
.tier-checked { border-top: 4px solid var(--brand); }
.tier-supplied { border-top: 4px solid var(--sand); }
.tier-unverified { border-top: 4px dashed var(--sage); }
.limits { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* Provider profile */
.profile { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
.profile-main { flex: 999 1 32rem; min-width: 0; display: grid; gap: 1.5rem; }
.profile-side { flex: 1 1 17rem; min-width: 0; display: grid; gap: 1rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .65rem 1.25rem; margin: 0; }
.facts dt { font-weight: 600; font-size: .9rem; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; overflow-wrap: anywhere; }
.sources li { padding: .75rem 1rem; background: var(--ivory); border-radius: 10px; font-size: .92rem; }

/* Photography: licensed illustration, credited under the image */
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--sand-soft); object-fit: cover; }
.photo figcaption { margin-top: .4rem; font-size: .72rem; line-height: 1.4; color: var(--muted); }
.photo figcaption a { color: var(--muted); }
/* Compact CC BY credit with a native disclosure for the full text (t599u; keyboard, tap and click via <details>) */
.credit-more { display: inline; }
.credit-more summary { display: inline; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.credit-more summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.credit-more[open] { display: block; }
.credit-more p { margin: .3rem 0 0; }
.hero-home .hero-split { align-items: stretch; }
.hero-home .hero-split > :first-child { align-self: center; }
.hero-home .hero-split > .hero-photo { flex: 0 1 26rem; }
.hero-photo img { aspect-ratio: 4 / 5; }
.hero-aside { display: grid; gap: 1rem; align-self: start; }
.hero-split > .hero-aside { flex: 0 1 24rem; }
@media (max-width: 52rem) { .hero-split > .hero-aside { flex-basis: 100%; } }
.launch { display: flex; gap: .65rem; align-items: baseline; margin: 1.75rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .93rem; color: var(--muted); max-width: 36rem; }
.launch strong { color: var(--charcoal); }
.launch-dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--forest-soft); transform: translateY(-.05rem); }

/* Discovery groups (national navigation) */
.groups, .steps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.group-card { display: flex; flex-direction: column; gap: .55rem; }
.group-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.group-status { margin-top: auto !important; padding-top: .4rem; }
.status-open, .status-planned { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.status-open { background: var(--forest-soft); color: var(--brand); }
.status-planned { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); }
.group-link { font-weight: 600; font-size: .93rem; }
.group-planned { background: transparent; box-shadow: none; border-style: dashed; }
.group-planned .icon-tile { background: var(--sand-soft); color: var(--muted); }
.group-planned h3 { color: var(--muted); }
.group-block + .group-block { margin-top: 2rem; }
.group-title { display: flex; gap: .75rem; align-items: baseline; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin: 0 0 .9rem; }
.group-title .muted { letter-spacing: 0; text-transform: none; font-weight: 500; }
.city-panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(1.25rem, 3vw, 2rem); }
.city-panel .card { box-shadow: none; background: var(--ivory); }
.city-panel .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: .75rem; }
.city-panel .cat-card { padding: 1rem 1.1rem; gap: .35rem; }
.city-panel .icon-tile { width: 36px; height: 36px; border-radius: 10px; margin-bottom: .2rem; }
.city-panel .cat-card h3 { font-size: 1.05rem; margin: 0; }
.city-panel .cat-card p { font-size: .88rem; line-height: 1.5; }
.city-panel .count { padding-top: .4rem; font-size: .84rem; }
.suggest { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; align-items: center; justify-content: space-between; background: var(--forest-soft); border: 1px solid #cfdcd3; border-radius: calc(var(--radius) + 6px); padding: clamp(1.25rem, 3vw, 2rem); }
.suggest > div:first-child { flex: 1 1 28rem; }
.suggest h2 { margin-bottom: .5rem; }
.suggest p.muted { margin: 0; max-width: 40rem; }

/* Sponsored placements (Featured Registry Partners) and editorial highlights: never mixed */
.badge-sponsored { display: inline-block; align-self: flex-start; padding: .2rem .65rem; border-radius: 999px; background: var(--charcoal); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
a.badge-sponsored:hover { color: #fff; text-decoration: underline; }
.sponsored-section { background: var(--sand-soft); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.section-note { margin: -.75rem 0 1.25rem; max-width: 46rem; }
.partner-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.partner-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem; flex: 1; }
/* Premier stands out from Featured (t394u): brand border and tint, larger name, a filled tier badge. */
.partner-card[data-tier="premier"] { border: 2px solid var(--brand); box-shadow: 0 6px 18px rgba(35, 74, 60, .14); background: linear-gradient(180deg, var(--forest-soft), #fff 55%); }
.partner-card[data-tier="premier"] h3 { font-size: 1.3rem; }
.partner-card[data-tier="premier"] .badge-sponsored { background: var(--brand); }
.partner-card[data-tier="featured"] { border: 1px solid var(--sand); }
.partner-top { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.partner-photo { margin: 0; }
.partner-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.partner-photo figcaption { padding: .35rem 1.25rem 0; font-size: .75rem; color: var(--muted); }
.from-business { border-left: 3px solid var(--sand); padding: .1rem 0 .1rem .8rem; font-size: .93rem; }
.from-business p { margin: 0; }
.label { margin: 0 0 .3rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b5a2e; }
.from-business-card { border-top: 4px solid var(--sand); display: grid; gap: .75rem; }
.from-business-card p { margin: 0; }
.from-business-card .partner-photo img { border-radius: 10px; }
.from-business-card .partner-photo figcaption { padding: .35rem 0 0; }
.editorial-card { display: flex; flex-direction: column; gap: .5rem; border-top: 4px solid var(--brand); }
.editorial-card p { margin: 0; }

/* Notices and empty states */
.notice { border-radius: 10px; padding: .85rem 1rem; background: var(--sand-soft); border: 1px solid var(--sand); font-size: .95rem; }
.empty { text-align: center; padding: 2.5rem 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); background: transparent; }
.prose { max-width: 46rem; }
/* A text column inside the page container stays aligned with the page edge; only its line length is limited. */
.container.prose { max-width: 72rem; }
.container.prose > * { max-width: 46rem; }
.prose li { margin-bottom: .4rem; }

/* Footer */
.site-footer { margin-top: 4rem; background: var(--charcoal); color: #DAD8CF; font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.site-footer strong { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: .35rem; }
.site-footer a { color: #F2EFE6; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer p { margin: 0 0 .35rem; max-width: 30rem; }

/* Sample data (development fixtures only) */
.sample-banner { background: #ffe08a; color: #4a3800; text-align: center; font-weight: 700; padding: .5rem 1rem; }
.tag { display: inline-block; margin-left: .5rem; padding: 0 .4rem; border-radius: 4px; font-size: .75rem; font-weight: 700; vertical-align: middle; }
.tag.sample { background: #ffe08a; color: #4a3800; }

@media (max-width: 40rem) {
  .section { padding: 2.5rem 0; }
  .hero .container { padding-bottom: 2.25rem; }
  .facts { grid-template-columns: 1fr; gap: .15rem; }
  .facts dd { margin-bottom: .6rem; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .group-planned { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: center; padding: 1rem 1.25rem; }
  .group-planned .icon-tile { grid-row: span 2; width: 38px; height: 38px; }
  .group-planned h3 { margin: 0; font-size: 1.05rem; }
  .group-planned p { grid-column: 2; }
  .group-planned p.small, .group-planned > p:not(.group-status) { display: none; }
  .group-planned .group-status { padding: 0; }
  .hero-home .hero-split > .hero-photo { flex-basis: 100%; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .card { transition: border-color .15s, background-color .15s; } }
/* Inquiry form (provider pages): the same form on every listing. */
.inquiry-form { display: grid; gap: .7rem; }
.inquiry-form label { display: block; font-weight: 600; font-size: .9rem; }
.inquiry-form input[type="text"], .inquiry-form input[type="email"], .inquiry-form input[type="tel"], .inquiry-form textarea { box-sizing: border-box; width: 100%; margin-top: .25rem; padding: .55rem .7rem; font: inherit; font-size: .95rem; color: var(--charcoal); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 8px; }
.inquiry-form textarea { min-height: 7.5rem; resize: vertical; }
.inquiry-form input:focus, .inquiry-form textarea:focus { border-color: var(--brand); outline: 3px solid rgba(35, 74, 60, .2); outline-offset: 0; }
.inquiry-form .consent { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.inquiry-form .consent input { margin-top: .3rem; }
.inquiry-form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-status:empty { display: none; }
