/* Renuvey public website: shared styles. Source of truth: BRAND-GUIDELINES.md */

/* Tokens: BRAND-GUIDELINES.md, Colour system, Layout and interface style */
:root {
  --amber: #f28c28;            /* Satvik Orange */
  --amber-deep: #9a4514;       /* Deep Satvik */
  --clay: #c65d2e;             /* Clay Orange */
  --amber-wash: #fff0d9;       /* Kesar Wash */
  --ink: #19130e;
  --ink-soft: #6f6a61;         /* Muted Ink */
  --canvas: #eeeae4;           /* Warm Canvas */
  --surface: #fcfaf6;          /* Soft Surface */
  --white: #ffffff;
  --border: #d8d4cc;           /* Warm Border */
  --success: #2f7a5c;
  --info: #356f8a;
  --caution: #8a5a00;
  --critical: #c83b32;
  --glass-dark: rgba(25, 19, 14, 0.86);
  --glass-regular: rgba(255, 255, 255, 0.74);
  --shadow-soft: 0 10px 30px rgba(25, 19, 14, 0.07);
  --shadow-glass: 0 18px 54px rgba(25, 19, 14, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  --radius-xl: 2.25rem;
  --radius-lg: 1.5rem;
  --radius-md: 1.125rem;
  --content: 90rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* Anything marked hidden stays hidden, whatever its layout style */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 16%, rgba(242, 140, 40, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 36%, rgba(198, 93, 46, 0.09), transparent 30rem),
    var(--canvas);
  background-attachment: fixed;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
button, a, input, select { font: inherit; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { color: var(--ink); background: #f7b64a; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 4px; border-radius: 0.35rem; }

/* Custom icons: 32 px grid, fixed 1.9 px rounded strokes at every size, translucent Satvik Orange forms */
.ic { display: block; flex: 0 0 auto; width: 1.5rem; height: 1.5rem; color: var(--ink); --icon-accent: rgba(242, 140, 40, 0.42); }
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed; z-index: 100; top: 0.75rem; left: 0.75rem;
  padding: 0.75rem 1rem; color: var(--white); background: var(--ink);
  border-radius: 999px; transform: translateY(-180%); transition: transform 180ms var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }

/* Top bar: floating Ink glass navigation pill */
.topbar-wrap { position: sticky; z-index: 50; top: 0; padding: 0.75rem 0; pointer-events: none; }
.topbar {
  position: relative;
  display: flex; min-height: 4rem; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  color: var(--white); background: var(--glass-dark);
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(28px) saturate(165%); -webkit-backdrop-filter: blur(28px) saturate(165%);
  pointer-events: auto;
}
.brand-lockup { display: inline-flex; align-items: center; min-height: 3rem; padding-right: 1rem; text-decoration: none; }
.topbar-wordmark { width: 7.25rem; height: auto; }   /* 116 px: well above the 88 px digital minimum */
.topnav { display: flex; align-items: center; gap: 0.15rem; }
.topnav a {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1rem;
  color: rgba(255, 255, 255, 0.74); border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.topnav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.topnav a.nav-cta { color: var(--ink); background: var(--amber); font-weight: 600; margin-left: 0.35rem; }
.topnav a.nav-cta:hover { background: #f59a3f; }
.menu-button {
  display: none; min-width: 3rem; min-height: 3rem; padding: 0 1rem;
  align-items: center; gap: 0.5rem;
  color: var(--white); background: rgba(255, 255, 255, 0.1);
  border: 0; border-radius: 999px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}

main { padding-bottom: 1rem; }

/* Shared type and controls */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
}
.eyebrow::before { width: 0.55rem; height: 0.55rem; background: var(--ink); border-radius: 50%; content: ""; }

.button {
  display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.6rem 1.25rem; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.button-primary { color: var(--white); background: var(--ink); }
.button-primary:hover { background: #2c231b; }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--border); }
.button-secondary:hover { background: var(--white); }
.button-accent { color: var(--ink); background: var(--amber); }
.button-accent:hover { background: #f59a3f; }

.section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 1.5rem; }
.section-dark .text-link { color: #ffc45a; }
.card-action { align-self: flex-start; margin-top: auto; }
.button-small { min-height: 2.75rem; padding: 0.45rem 1rem; font-size: 0.88rem; }
.section-dark .button-secondary { color: var(--white); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
.section-dark .button-secondary:hover { background: rgba(255, 255, 255, 0.14); }
.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem;
  color: var(--amber-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
.text-link .icon { width: 1rem; height: 1rem; }

/* Hero: studio portrait on the Satvik Orange cyclorama */
.hero { padding: 0.25rem 0 0.9rem; }
.hero-art {
  position: relative; overflow: hidden;
  display: flex; width: 100%; min-height: clamp(32rem, 42vw, 40rem);
  align-items: stretch;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(247, 182, 74, 0.72) 0%, rgba(245, 160, 60, 0.6) 30%, rgba(242, 140, 40, 0.3) 46%, transparent 62%),
    url("/assets/renuvey-orange-studio-plate-v1.png") center / cover no-repeat;
  background-color: var(--amber);
  box-shadow: var(--shadow-soft);
}
.hero-art::after {
  position: absolute; inset: 0; opacity: 0.17; pointer-events: none; content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.hero-figure {
  position: absolute; right: 4%; bottom: 0; width: 64%; height: auto; pointer-events: none;
}
.hero-man { z-index: 1; }
.hero-woman { z-index: 2; }

.hero-copy {
  position: relative; z-index: 3; align-self: center;
  width: min(36rem, 46%);
}
.hero-copy h1 {
  margin-top: 1rem;
  font-size: clamp(2.3rem, 3.5vw, 3.5rem);
  font-weight: 600; letter-spacing: -0.06em; line-height: 0.95;
}
.hero-lede { margin-top: 1rem; max-width: 30rem; font-size: clamp(1rem, 1.2vw, 1.12rem); font-weight: 500; line-height: 1.45; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero search: the city field first, the action on the same line */
.hero-search {
  display: flex; align-items: center; gap: 0.4rem;
  max-width: 34rem; margin-top: 1.75rem; padding: 0.4rem;
  background: var(--white); border-radius: 999px;
  box-shadow: 0 14px 36px rgba(61, 22, 4, 0.22);
}
.hero-search:focus-within { outline: 3px solid var(--info); outline-offset: 3px; }
.search-field { display: flex; flex: 1 1 auto; align-items: center; gap: 0.5rem; min-width: 0; padding-left: 0.85rem; cursor: text; }
.search-field .ic { width: 1.6rem; height: 1.6rem; --icon-accent: rgba(242, 140, 40, 0.5); }
.search-field input {
  flex: 1 1 auto; min-width: 0; min-height: 3.25rem;
  color: var(--ink); background: transparent; border: 0; outline: none; font-size: 1.05rem;
}
.search-field input::placeholder { color: var(--ink-soft); }
.hero-search .button { min-height: 3.25rem; padding: 0.6rem 1.5rem; font-size: 1rem; white-space: nowrap; }

.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin-top: 0.85rem; font-size: 0.95rem; font-weight: 500; }
.quick-links span { font-weight: 600; }
.quick-links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.quick-links a:hover { text-decoration-thickness: 2px; }

.proof-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: 0.92rem; font-weight: 600; }
.proof-row li { display: inline-flex; align-items: center; gap: 0.4rem; }
.proof-row .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.4; }


/* Sections */
.section {
  margin: 0.9rem 0;
  padding: clamp(2rem, 5vw, 5.5rem);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.section-dark { color: var(--white); background: var(--ink); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.65fr);
  gap: 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-kicker {
  display: block; margin-bottom: 1rem;
  color: var(--amber-deep); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.section-dark .section-kicker { color: #ffc45a; }
.section-head h2 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5.4vw, 5.5rem);
  font-weight: 500; letter-spacing: -0.06em; line-height: 0.95;
}
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.7); }

.grid { display: grid; gap: 0.9rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.panel {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.panel h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.035em; line-height: 1.2; }
.panel p { color: var(--ink-soft); }
.panel-amber { background: var(--amber-wash); border-color: #f2d78c; }
.panel-ink { color: var(--white); background: var(--ink); border-color: var(--ink); }
.panel-ink p { color: rgba(255, 255, 255, 0.7); }
.panel-ink .text-link { color: #ffc45a; }
.panel-label {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.75rem;
  color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.panel-icon { display: block; width: 3.5rem; height: 3.5rem; margin-left: -0.3rem; }
.panel-icon .ic { --icon-accent: rgba(242, 140, 40, 0.5); }
.panel-icon .ic { width: 100%; height: 100%; }
.panel-amber .panel-icon .ic { --icon-accent: rgba(242, 140, 40, 0.62); }

/* Knowledgebase topic cards */
.topic {
  display: flex; flex-direction: column; gap: 0.6rem; min-height: 13.5rem;
  padding: 1.5rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.topic:hover { transform: translateY(-2px); border-color: #c9c2b6; box-shadow: var(--shadow-soft); }
.topic h3 { margin-top: 1.25rem; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; }
.topic p { color: var(--ink-soft); font-size: 0.92rem; }
.topic-all { color: var(--white); background: var(--ink); border-color: var(--ink); }
.topic-all p { color: rgba(255, 255, 255, 0.7); }
.topic-cta {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.75rem;
  color: var(--amber-deep); font-size: 0.92rem; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
}
.topic-cta .icon { width: 1rem; height: 1rem; transition: transform 200ms var(--ease); }
.topic:hover .topic-cta .icon, .topic:focus-visible .topic-cta .icon { transform: translateX(3px); }
.topic:hover .topic-cta { text-decoration-thickness: 2px; }
.topic-all .topic-cta { color: #ffc45a; }
.topic-all .panel-icon .ic { color: var(--white); --icon-accent: rgba(242, 140, 40, 0.75); }

/* Blog cards: same click cue as topic cards */
.post {
  display: flex; flex-direction: column; gap: 0.6rem;
  padding: 0.75rem 0.75rem 1.5rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg); text-decoration: none;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.post:hover { transform: translateY(-2px); border-color: #c9c2b6; box-shadow: var(--shadow-soft); }
.post:hover .topic-cta .icon, .post:focus-visible .topic-cta .icon { transform: translateX(3px); }
.post:hover .topic-cta { text-decoration-thickness: 2px; }
.post > :not(.post-media) { margin-inline: 0.75rem; }
.post-media {
  display: grid; place-items: center; aspect-ratio: 16 / 9; margin-bottom: 0.6rem;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.7), transparent 55%), var(--amber-wash);
  border-radius: calc(var(--radius-lg) - 0.5rem);
}
.post-media.is-warm { background: linear-gradient(135deg, var(--amber) 0%, #f7b64a 58%, var(--amber-wash) 100%); }
.post-media .ic { width: 4.5rem; height: 4.5rem; --icon-accent: rgba(242, 140, 40, 0.5); }
.post-media.is-warm .ic { --icon-accent: rgba(255, 255, 255, 0.6); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; color: var(--ink-soft); font-size: 0.82rem; }
.post-tag { padding: 0.2rem 0.6rem; color: var(--amber-deep); background: var(--amber-wash); border-radius: 999px; font-weight: 700; font-size: 0.75rem; }
.post h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; }
.post p { color: var(--ink-soft); font-size: 0.95rem; }

/* Comparison preview */
.compare-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 0.9rem; align-items: stretch; }
.compare-card { padding: clamp(1.25rem, 2.6vw, 2rem); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-card h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.035em; margin-bottom: 1.25rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 0.9rem 0.75rem 0.9rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-size: 0.85rem; font-weight: 700; border-bottom: 2px solid var(--ink); }
.compare-table tbody th { width: 34%; color: var(--ink-soft); font-weight: 500; }
.compare-table td { font-weight: 500; }
.compare-note { margin-top: 1rem; color: var(--ink-soft); font-size: 0.85rem; }
.boundary-card {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  background: color-mix(in srgb, var(--info) 8%, var(--white));
  border: 1px solid color-mix(in srgb, var(--info) 28%, transparent);
  border-radius: var(--radius-lg);
}
.boundary-card .ic { width: 2.5rem; height: 2.5rem; color: var(--info); --icon-accent: rgba(53, 111, 138, 0.2); }
.boundary-card h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; }
.boundary-card p { color: var(--ink-soft); }
.boundary-card .card-action { margin-top: auto; }

/* Campaign interludes */
.campaign-interlude {
  position: relative; min-height: 46rem; margin: 0.9rem 0; overflow: hidden;
  display: grid; align-items: center; justify-items: end;
  padding: clamp(1rem, 5vw, 5rem);
  background: var(--ink); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft);
}
.campaign-interlude > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.campaign-interlude::after {
  position: absolute; inset: 0; pointer-events: none; content: "";
  background: linear-gradient(90deg, transparent 40%, rgba(25, 19, 14, 0.18) 100%);
}
.campaign-interlude.closing::after { background: linear-gradient(90deg, rgba(25, 19, 14, 0.08), transparent 40%, rgba(25, 19, 14, 0.22) 100%); }
.campaign-app-panel {
  position: relative; z-index: 2;
  width: min(30rem, 100%);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.84); border-radius: 2rem;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(30px) saturate(125%); -webkit-backdrop-filter: blur(30px) saturate(125%);
}
.campaign-app-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem; }
.campaign-app-top img { width: 5.5rem; height: auto; }
.campaign-app-chip { padding: 0.45rem 0.75rem; color: var(--ink); background: var(--amber); border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.campaign-app-panel h2 { max-width: 11ch; margin-bottom: 0.8rem; font-size: clamp(2.4rem, 4.4vw, 4.4rem); font-weight: 600; letter-spacing: -0.06em; line-height: 0.95; }
.campaign-app-panel > p { color: rgba(25, 19, 14, 0.74); }
.campaign-app-status { display: grid; gap: 0.55rem; margin-top: 1.75rem; }
.campaign-status-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 1rem;
  font-size: 0.88rem;
}
.campaign-status-row span { color: rgba(25, 19, 14, 0.7); }
.campaign-status-row strong { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.campaign-status-row.ai { display: grid; gap: 0.15rem; background: var(--amber-wash); border-color: transparent; }
.campaign-status-row.ai small { color: var(--amber-deep); font-size: 0.72rem; font-weight: 700; }
.campaign-status-row.ai strong { text-align: left; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.campaign-footnote { margin-top: 0.9rem; color: rgba(25, 19, 14, 0.7); font-size: 0.8rem; }

/* Directory section */
/* Directory: type of care beside a state and city listing */
.care-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0.9rem; align-items: stretch; }
.care-side { display: grid; gap: 0.9rem; align-content: start; position: sticky; top: 6rem; align-self: start; }
.care-main { display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.specialist-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.specialist-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem;
  color: var(--white); text-decoration: none; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 1.1rem; font-weight: 500; letter-spacing: -0.02em;
}
.specialist-list li:last-child a { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.specialist-list a .desc { color: rgba(255, 255, 255, 0.7); font-size: 0.85rem; font-weight: 500; letter-spacing: 0; text-align: right; }
.specialist-list a:hover .link-name { color: #ffc45a; }
/* Directory links follow the text-link rule: underlined anchor text */
.link-name, .state h3 a, .state ul a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}
.specialist-list a:hover .link-name, .state h3 a:hover, .state ul a:hover { text-decoration-color: currentColor; }
.label-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.label-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.75rem; }
.label-list .ic { grid-row: span 2; width: 1.6rem; height: 1.6rem; }
.label-list strong { font-weight: 600; }
.label-list p { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.label-verified .ic { color: #6cc49b; --icon-accent: rgba(108, 196, 155, 0.28); }
.label-claimed .ic { color: #86bdd6; --icon-accent: rgba(134, 189, 214, 0.28); }
.label-unclaimed .ic { color: rgba(255, 255, 255, 0.7); }
.dark-card { padding: clamp(1.5rem, 2.6vw, 2.2rem); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-lg); }
.dark-card h3 { margin-bottom: 1.25rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; }
.dark-card .note { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

.state-browse { padding: clamp(1.5rem, 2.6vw, 2.2rem); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-lg); }
.state-browse-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1.5rem; }
.state-browse-head h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; }
.state-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.state h3 { padding-bottom: 0.5rem; margin-bottom: 0.35rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.95rem; font-weight: 600; }
.state h3 a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--white); }
.state h3 a:hover { color: #ffc45a; }
.state ul { display: flex; flex-wrap: wrap; gap: 0 1rem; margin: 0; padding: 0; list-style: none; }
.state ul a { display: inline-flex; align-items: center; min-height: 2.75rem; color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; }
.state ul a:hover { color: var(--white); }

/* Standards */
.principles { display: grid; counter-reset: principle; }
.principle {
  counter-increment: principle;
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(14rem, 0.8fr);
  gap: 1.25rem; align-items: start; padding: 1.6rem 0; border-top: 1px solid var(--border);
}
.principle:last-child { border-bottom: 1px solid var(--border); }
.principle::before {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  color: var(--ink); background: var(--amber-wash); border-radius: 50%;
  font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums;
  content: counter(principle, decimal-leading-zero);
}
.principle h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.2; }
.principle p { color: var(--ink-soft); }

/* Footer */
.footer {
  margin: 0.9rem 0 1rem; padding: clamp(2rem, 5vw, 5rem);
  color: var(--white); background: var(--ink); border-radius: var(--radius-xl);
}
.footer-top { display: grid; grid-template-columns: minmax(14rem, 1fr) repeat(4, minmax(0, 0.6fr)); gap: 2rem; }
.footer-wordmark { width: 7.5rem; height: auto; margin-bottom: 1rem; }
.footer-intro { max-width: 20rem; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }
.footer h2 { margin-bottom: 0.75rem; color: rgba(255, 255, 255, 0.6); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.footer ul a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--white); text-decoration: none; font-size: 0.95rem; }
.footer ul a:hover { color: #ffc45a; }
.footer-legal {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7); font-size: 0.85rem;
}
.footer-legal p + p { margin-top: 0.5rem; }
.footer-legal strong { color: var(--white); font-weight: 600; }

/* Motion: 180–280 ms, gentle easing */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 68rem) {
  .topnav { display: none; }
  .menu-button { display: inline-flex; }
  .topbar.is-open .topnav {
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
    display: grid; gap: 0.25rem; padding: 0.75rem;
    background: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-glass);
  }
  .topbar.is-open .topnav a.nav-cta { margin: 0.25rem 0 0; justify-content: center; }
  .hero-copy { width: min(34rem, 52%); }
  .section-head { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-head p { max-width: 42rem; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-body, .care-layout { grid-template-columns: 1fr; }
  .care-side { position: static; }
  .state-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .campaign-interlude { min-height: 42rem; }
}

@media (max-width: 62rem) {
  .topbar { padding-left: 1.5rem; }
  .shell { width: min(calc(100% - 1rem), var(--content)); }
  .topbar-wrap { padding-top: 0.45rem; }
  .hero-art, .section, .footer, .campaign-interlude { border-radius: 1.55rem; }
  .hero-art {
    display: block; min-height: 0; aspect-ratio: auto;
    padding: calc(56.25% + 1.25rem) 1.25rem 1.25rem;
    background-position: center top; background-size: 100% auto;
  }
  .hero-art::after { height: 56.25%; }
  .hero-figure { top: 0; right: auto; bottom: auto; left: 0; width: 100%; }
  .hero-copy { width: 100%; }
  .hero-copy h1 { max-width: 14ch; }
  .grid-3 { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 3rem minmax(0, 1fr); }
  .principle > div:last-child { grid-column: 2; }
  .campaign-interlude { min-height: 0; padding: 0; display: block; background: var(--ink); }
  .campaign-interlude > img { position: relative; height: auto; aspect-ratio: 4 / 3; object-position: 34% center; }
  .campaign-interlude.closing > img { object-position: 30% center; }
  .campaign-interlude::after { display: none; }
  .campaign-app-panel { width: auto; margin: -3rem 0.75rem 0.75rem; background: rgba(255, 255, 255, 0.96); }
}

@media (max-width: 40rem) {
  .specialist-list a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.15rem; padding: 0.75rem 0; }
  .specialist-list a .desc { text-align: left; }
  .state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .footer-top { grid-template-columns: 1fr; }
  .topic { min-height: 0; padding: 1.1rem; }
  .topic p { display: none; }
  .cta-more { display: none; }
  .topic-cta { white-space: nowrap; }
  .topic h3 { font-size: 1rem; margin-top: 0.75rem; }
  .hero-search { flex-wrap: wrap; border-radius: 1.5rem; }
  .hero-search .button { flex: 1 1 100%; }
  .footer-legal { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--ink); }
  .campaign-app-panel { background: rgba(255, 255, 255, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: var(--ink); }
  .campaign-app-panel { background: rgba(255, 255, 255, 0.97); }
}

/* ---------- Navigation: current section ---------- */
.topnav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, 0.14); }

/* ---------- Knowledgebase article ---------- */
.article-head { display: grid; gap: 1.25rem; }
.article-head .section-kicker { margin-bottom: 0; }
.article-head h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  font-weight: 500; letter-spacing: -0.06em; line-height: 0.95;
}

.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--border); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

.short-answer {
  max-width: 46rem; padding: 1.4rem 1.5rem;
  background: var(--amber-wash); border-radius: var(--radius-lg);
}
.short-answer strong { display: block; margin-bottom: 0.4rem; color: var(--amber-deep); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.short-answer p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; line-height: 1.5; }

.review-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.review-meta div { display: grid; gap: 0.15rem; }
.review-meta dt { color: var(--ink-soft); font-size: 0.78rem; font-weight: 600; }
.review-meta dd { margin: 0; font-size: 0.95rem; font-weight: 600; }
.review-meta a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 0.2em; }
.review-status dd { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.2rem 0.65rem; color: var(--caution); background: var(--amber-wash); border-radius: 999px; }
.review-status .icon { width: 1rem; height: 1rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 0.9rem; align-items: start; margin: 0.9rem 0; }
.article-layout .section { margin: 0; }
.article-aside { position: sticky; top: 6rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; min-width: 0; }

.toc { padding: 1.5rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.toc h2 { margin-bottom: 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: flex; align-items: center; min-height: 2.6rem; color: var(--ink); font-size: 0.92rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--border); }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 0.2em; }

.aside-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; min-width: 0; padding: 1.5rem; background: var(--amber-wash); border: 1px solid #f2d78c; border-radius: var(--radius-lg); }
.aside-cta strong { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.aside-cta p { color: var(--ink-soft); font-size: 0.92rem; }
.aside-cta .button { margin-top: 0.4rem; }
.editorial-photo { aspect-ratio: 4 / 3; min-width: 0; overflow: hidden; margin: 0 0 0.4rem; border-radius: var(--radius-md); }
.editorial-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Readable article text */
.prose { max-width: none; }
.prose > section { max-width: 44rem; }
.prose > section + section { margin-top: 3rem; }
.prose h2 { margin-bottom: 1rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; scroll-margin-top: 6.5rem; }
.prose p, .prose li { font-size: 1.06rem; line-height: 1.65; }
.prose p + p { margin-top: 1rem; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose a:not(.button):not(.text-link) { color: var(--amber-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.prose a:not(.button):not(.text-link):hover { text-decoration-thickness: 2px; }
.prose sup { margin-left: 0.1rem; font-size: 0.7em; line-height: 0; }
.prose sup a { font-weight: 700; text-decoration: none; }
.definition { padding: 1rem 1.2rem; background: var(--canvas); border-radius: var(--radius-md); }

.effect-list { display: grid; gap: 0.75rem; margin: 1.25rem 0 !important; padding: 0 !important; list-style: none; }
.effect-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; margin: 0 !important; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.effect-list .ic { width: 2.5rem; height: 2.5rem; --icon-accent: rgba(242, 140, 40, 0.5); }

.urgent-note {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; margin: 1.25rem 0;
  padding: 1.1rem 1.25rem; color: var(--critical);
  background: color-mix(in srgb, var(--critical) 7%, var(--white));
  border: 1px solid color-mix(in srgb, var(--critical) 35%, transparent);
  border-left-width: 4px; border-radius: var(--radius-md);
}
.urgent-note .icon { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; }
.urgent-note strong { display: block; font-weight: 700; }
.urgent-note p { color: var(--ink); }

.question-list { counter-reset: q; padding: 0 !important; list-style: none; }
.question-list li { counter-increment: q; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; align-items: start; padding: 0.75rem 0; border-top: 1px solid var(--border); margin: 0 !important; }
.question-list li:last-child { border-bottom: 1px solid var(--border); }
.question-list li::before { content: counter(q); display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--amber-wash); border-radius: 50%; font-size: 0.85rem; font-weight: 700; }

.article-boundary { max-width: 44rem; margin-top: 3rem; }
.article-boundary h2 { margin: 0; font-size: 1.4rem; line-height: 1.25; }
.article-boundary .section-actions { margin-top: 0.5rem; }

.sources { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.sources h2 { font-size: 1.3rem; }
.sources li { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); scroll-margin-top: 6.5rem; }
.sources li:target { color: var(--ink); background: var(--amber-wash); border-radius: 0.4rem; }
.to-verify { color: var(--caution); font-weight: 600; }
.sources-note { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 68rem) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .article-aside { grid-template-columns: minmax(0, 1fr); }
  .article-head h1 { font-size: 2.4rem; }
  .breadcrumb li[aria-current="page"] { display: none; }
  .prose p, .prose li { font-size: 1rem; }
}

/* ---------- Comparison page ---------- */
.compare-at-glance { padding: clamp(1.5rem, 4vw, 3.5rem); }
.glance-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.glance-head h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; }
.glance-head p { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); }
.table-scroll:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.glance-table { min-width: 40rem; font-size: 1rem; }
.glance-table thead th { padding-top: 0; font-size: 1.05rem; font-weight: 700; }
.glance-table thead th:not(:first-child) { width: 37%; }
.glance-table tbody th { width: 26%; }
.glance-table tbody th a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--border); text-underline-offset: 0.22em; }
.glance-table tbody th a:hover { text-decoration-color: currentColor; }
.glance-table tbody tr:last-child td { font-weight: 700; }
.glance-table tbody tr:hover { background: var(--surface); }
.prose > section { scroll-margin-top: 6.5rem; }
@media (max-width: 40rem) {
  /* Comparison table: each row becomes a stacked card, so no column is hidden */
  .table-scroll { overflow: visible; }
  .glance-table { min-width: 0; }
  .glance-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .glance-table, .glance-table tbody, .glance-table tr, .glance-table th, .glance-table td { display: block; width: auto !important; }
  .glance-table tbody tr { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
  .glance-table tbody th, .glance-table tbody td { padding: 0; border: 0; }
  .glance-table tbody th { margin-bottom: 0.5rem; }
  .glance-table tbody td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.3rem 0; font-size: 0.95rem; }
  .glance-table tbody td::before { content: attr(data-label); color: var(--ink-soft); font-weight: 600; font-size: 0.85rem; }
  .glance-table tbody tr:hover { background: none; }
}

/* Image placeholder: marks where approved photography goes */
.img-placeholder {
  display: grid; align-content: center; justify-items: center; gap: 0.35rem;
  aspect-ratio: 4 / 3; min-width: 0; min-height: 0; overflow: hidden; margin: 0 0 0.4rem; padding: 1rem;
  text-align: center; color: var(--ink-soft);
  background: repeating-linear-gradient(135deg, rgba(242, 140, 40, 0.08) 0 12px, transparent 12px 24px), var(--white);
  border: 1.5px dashed #e3b98a; border-radius: var(--radius-md);
}
.img-placeholder span { color: var(--amber-deep); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.img-placeholder small { font-size: 0.78rem; line-height: 1.4; }

/* ---------- Directory: city results ---------- */
.dir-lede { max-width: 44rem; color: var(--ink-soft); font-size: 1.1rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.filter-search { flex: 1 1 18rem; max-width: 26rem; padding: 0 0.85rem; background: var(--white); border: 1px solid var(--border); border-radius: 999px; }
.filter-search:focus-within { outline: 3px solid var(--info); outline-offset: 2px; }
.filter-search input { flex: 1 1 auto; min-width: 0; min-height: 3rem; color: var(--ink); background: transparent; border: 0; outline: none; font-size: 1rem; }
.chip-group { display: inline-flex; gap: 0.35rem; margin: 0; padding: 0.3rem; background: var(--canvas); border: 0; border-radius: 999px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; font-size: 0.92rem; font-weight: 600; transition: background 180ms var(--ease), color 180ms var(--ease); }
.chip input:checked + span { color: var(--white); background: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--info); outline-offset: 2px; }
.chip-toggle span { background: var(--white); border: 1px solid var(--border); }
.chip-toggle input:checked + span { border-color: var(--ink); }
.chip-toggle span::before { content: ""; width: 1rem; height: 1rem; margin-right: 0.5rem; border: 1.5px solid currentColor; border-radius: 0.3rem; }
.chip-toggle input:checked + span::before { background: var(--amber); border-color: var(--amber); box-shadow: inset 0 0 0 2px var(--ink); }

.results { padding: clamp(1.25rem, 3vw, 2.5rem); }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; }
.results-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.04em; }
.results-head p { color: var(--ink-soft); font-size: 0.92rem; }
.sample-note { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 1.25rem; padding: 0.7rem 1rem; color: var(--caution); background: var(--amber-wash); border-radius: var(--radius-md); font-size: 0.9rem; font-weight: 600; }
.sample-note .icon { width: 1.1rem; height: 1.1rem; }

.results-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.results-main { display: grid; gap: 1.5rem; min-width: 0; }
.listing-list { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.listing article {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start;
  padding: 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.listing article:hover { border-color: #c9c2b6; box-shadow: var(--shadow-soft); }
.listing-avatar { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; color: var(--amber-deep); background: var(--amber-wash); border-radius: 50%; font-size: 0.85rem; font-weight: 700; }
.listing-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.listing h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.03em; }
.listing h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--border); text-underline-offset: 0.22em; }
.listing h3 a:hover { text-decoration-color: currentColor; }
.listing-qual { margin-top: 0.25rem; color: var(--ink-soft); font-size: 0.92rem; }
.listing-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font-size: 0.9rem; }
.listing-facts li { display: flex; align-items: center; gap: 0.4rem; }
.listing-facts .ic { width: 1.2rem; height: 1.2rem; --icon-accent: rgba(242, 140, 40, 0.45); }
.listing-action { align-self: center; }
.label-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.6rem 0.15rem 0.35rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.label-badge .ic { width: 1.1rem; height: 1.1rem; }
.badge-verified { color: var(--success); background: color-mix(in srgb, var(--success) 10%, var(--white)); }
.badge-verified .ic { color: var(--success); --icon-accent: rgba(47, 122, 92, 0.25); }
.badge-claimed { color: var(--info); background: color-mix(in srgb, var(--info) 10%, var(--white)); }
.badge-claimed .ic { color: var(--info); --icon-accent: rgba(53, 111, 138, 0.25); }
.badge-unclaimed { color: var(--ink-soft); background: var(--canvas); }
.badge-unclaimed .ic { color: var(--ink-soft); }

/* Register-only listings. A listing the doctor has not claimed carries the
   fields the public medical register publishes and nothing else. Keep this
   state neutral: no empty rows, no completeness meter, no wording that reads
   as a mark against the doctor. See DIRECTORY-DATA-SOURCING.md, section 4. */
.register-group { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.register-group h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.register-note { max-width: 46rem; margin: 0.35rem 0 1rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; }
.register-group .listing article { background: var(--canvas); }
.listing-register .listing-avatar { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, var(--white)); }
/* Two rows, not three columns: the claim link sits under the body rather than
   competing with it, so an unclaimed entry reads quieter than a claimed one. */
.listing-register article { grid-template-columns: auto minmax(0, 1fr); row-gap: 0.75rem; }
.listing-facts-register { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin-top: 0.6rem; }
.listing-facts-register .ic { --icon-accent: rgba(90, 82, 72, 0.18); }
.listing-provenance { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.82rem; }
.listing-register .listing-action {
  grid-column: 2; justify-self: start; align-self: start;
  padding: 0; color: var(--amber-deep); background: none; border: 0; font-size: 0.88rem; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em;
}
.listing-register .listing-action:hover { color: var(--ink); background: none; }

@media (max-width: 720px) {
  .listing-register .listing-action { grid-column: 1 / -1; justify-self: start; }
}

.map-placeholder {
  position: sticky; top: 6rem;
  display: grid; align-content: center; justify-items: center; gap: 0.5rem; min-height: 34rem; padding: 2rem;
  text-align: center; color: var(--ink-soft);
  background: repeating-linear-gradient(135deg, rgba(53, 111, 138, 0.06) 0 14px, transparent 14px 28px), var(--white);
  border: 1.5px dashed #a9c3cf; border-radius: var(--radius-lg);
}
.map-placeholder span { color: var(--info); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.map-placeholder small { max-width: 20rem; font-size: 0.88rem; line-height: 1.45; }
.results-empty { margin-top: 1rem; padding: 1.25rem; background: var(--canvas); border-radius: var(--radius-md); }
.results-empty a { color: var(--amber-deep); font-weight: 600; text-decoration: underline; }
.listing[hidden] { display: none; }

.question-list li > span { display: block; }

@media (max-width: 68rem) {
  .results-layout { grid-template-columns: 1fr; }
  .map-placeholder { position: static; min-height: 14rem; order: -1; }
}
@media (max-width: 40rem) {
  .listing article { grid-template-columns: auto minmax(0, 1fr); }
  .listing-action { grid-column: 1 / -1; justify-self: stretch; }
  .listing-facts { grid-template-columns: 1fr; }
  .chip-group { width: 100%; justify-content: space-between; }
  .chip-group .chip { flex: 1 1 0; }
  .chip-group .chip span { width: 100%; justify-content: center; padding: 0 0.5rem; }
}
.topnav a.nav-cta[aria-current="page"] { color: var(--ink); background: var(--amber); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55); }

/* ---------- Specialist profile ---------- */
.profile-head { display: grid; gap: 1.25rem; }
.profile-head .sample-note { margin: 0; }
.profile-id { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.profile-photo { aspect-ratio: 1; margin: 0; border-radius: 50%; }
.profile-photo small { max-width: 8rem; }
.profile-id h1 { margin-top: 0.6rem; font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.profile-role { margin-top: 0.5rem; color: var(--ink-soft); font-size: 1.05rem; }
.profile-facts { max-width: 36rem; margin-top: 1rem; font-size: 0.98rem; }

.placeholder-text { padding: 1rem 1.2rem; color: var(--ink-soft); background: var(--canvas); border: 1.5px dashed var(--border); border-radius: var(--radius-md); font-style: italic; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 !important; padding: 0 !important; list-style: none; }
.tag-list li { margin: 0 !important; padding: 0.4rem 0.9rem; background: var(--amber-wash); border-radius: 999px; font-size: 0.95rem; font-weight: 500; }
.fact-table { display: grid; margin: 0; }
.fact-table div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--border); }
.fact-table div:last-child { border-bottom: 1px solid var(--border); }
.fact-table dt { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.fact-table dd { margin: 0; font-size: 1rem; }
.fact-table.compact div { grid-template-columns: 7rem minmax(0, 1fr); padding: 0.55rem 0; }
.fact-check { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: 0.5rem; color: var(--success); font-size: 0.85rem; font-weight: 700; }
.fact-check .ic { width: 1.1rem; height: 1.1rem; color: var(--success); --icon-accent: rgba(47, 122, 92, 0.25); }
.clinic-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.clinic-card h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.clinic-card > div > p { margin: 0.25rem 0 0.75rem; color: var(--ink-soft); font-size: 0.95rem; }
.map-small { position: static; min-height: 11rem; padding: 1rem; }
.profile-updated { color: var(--ink-soft); font-size: 0.92rem !important; }

.enquiry-card { padding: 1.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.enquiry-form { display: grid; gap: 1rem; }
.enquiry-form h2, .enquiry-done h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.035em; }
.enquiry-form > p { margin-top: -0.6rem; color: var(--ink-soft); font-size: 0.92rem; }
.field-stack { display: grid; gap: 0.35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-stack label, .field-stack legend { padding: 0; font-size: 0.85rem; font-weight: 600; }
.field-stack legend { margin-bottom: 0.35rem; }
.field-stack input[type="text"], .field-stack input[type="tel"] {
  width: 100%; min-height: 3rem; padding: 0 0.9rem;
  color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 1rem;
}
.field-stack input[aria-invalid="true"] { border-color: var(--critical); }
.field-error { color: var(--critical); font-size: 0.85rem; font-weight: 600; }
.enquiry-form .chip-group { display: flex; }
.enquiry-form .chip { flex: 1 1 0; }
.enquiry-form .chip span { width: 100%; justify-content: center; }
.enquiry-form .button { width: 100%; }
.enquiry-privacy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem; color: var(--ink-soft); font-size: 0.85rem; line-height: 1.45; }
.enquiry-privacy .ic { width: 1.2rem; height: 1.2rem; color: var(--info); --icon-accent: rgba(53, 111, 138, 0.2); }
.enquiry-done { display: grid; gap: 0.75rem; }
.enquiry-done:focus { outline: none; }
.done-icon { width: 3rem; height: 3rem; color: var(--success); --icon-accent: rgba(47, 122, 92, 0.25); }
.enquiry-done > p { color: var(--ink-soft); font-size: 0.95rem; }
.done-boundary { padding: 0.75rem 0.9rem; background: color-mix(in srgb, var(--info) 8%, var(--white)); border-radius: var(--radius-md); }
.done-optional { display: grid; gap: 0.25rem; margin-top: 0.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.done-optional p { color: var(--ink-soft); font-size: 0.9rem; }
.topic .listing-avatar { margin-bottom: 0.25rem; }
.topic .label-badge { justify-self: start; align-self: flex-start; }

@media (max-width: 40rem) {
  .profile-id { grid-template-columns: 1fr; }
  .profile-photo { width: 8rem; }
  .fact-table div { grid-template-columns: 1fr; gap: 0.15rem; }
  .clinic-card { grid-template-columns: 1fr; }
}
.enquiry-done[hidden], .enquiry-form[hidden] { display: none; }

/* Phones and tablets: keep the main action one tap away */
.mobile-cta { display: none; }
@media (max-width: 68rem) {
  .mobile-cta {
    position: fixed; z-index: 40; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.6rem 0.6rem 0.6rem 1.1rem;
    color: var(--white); background: rgba(25, 19, 14, 0.92); border-radius: 999px; box-shadow: var(--shadow-glass);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .mobile-cta span { font-size: 0.9rem; font-weight: 600; line-height: 1.25; }
  .mobile-cta .button { flex: 0 0 auto; }
  .has-mobile-cta .footer { margin-bottom: 5.5rem; }
}

/* ---------- Section hubs ---------- */
.hub-head h1 { max-width: 16ch; }
.hub-head .section-actions { margin-top: 0.25rem; }
.hub-body { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.hub-group { display: grid; gap: 1.25rem; }
.hub-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 2rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.hub-group-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -0.045em; }
.hub-group-head p { color: var(--ink-soft); }
.hub-rules h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 600; letter-spacing: -0.04em; }
.hub-rules .effect-list { max-width: 52rem; }
.hub-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; background: var(--amber-wash); }
.hub-strip h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.15; }
.hub-strip p { margin-top: 0.5rem; max-width: 40rem; color: var(--ink-soft); }
.hub-strip .section-actions { margin-top: 0; }
.hub-search { margin-top: 0.5rem; }
.search-result { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; max-width: 46rem; padding: 1rem 1.2rem; background: var(--amber-wash); border-radius: var(--radius-md); }
.search-result a:not(.button) { color: var(--amber-deep); font-weight: 600; text-decoration: underline; }
.state ul a.is-match { color: #ffc45a; font-weight: 700; }
@media (max-width: 62rem) { .hub-strip { grid-template-columns: 1fr; } }

/* Find care hub: copy and search beside a studio portrait */
.hub-head-image { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: stretch; }
.hub-head-copy { align-content: start; }
.hub-head-image .hub-search { max-width: 100%; }
.hub-photo { position: relative; min-height: 26rem; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--amber); }
.hub-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 30%; }
@media (max-width: 62rem) {
  .hub-head-image { grid-template-columns: 1fr; }
  .hub-photo { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hub-photo img { object-position: 20% 25%; }
}
.img-placeholder.hub-photo { aspect-ratio: auto; margin: 0; overflow: hidden; background: repeating-linear-gradient(135deg, rgba(242, 140, 40, 0.08) 0 12px, transparent 12px 24px), var(--white); }
.img-placeholder.hub-photo small { max-width: 22rem; font-size: 0.9rem; }
@media (max-width: 62rem) { .img-placeholder.hub-photo { aspect-ratio: 4 / 3; } }

/* City listing head: copy beside the photo, filter bar across the full width. */
.dir-head.hub-head-image { align-items: start; }
.dir-head .hub-photo { min-height: 17rem; }
.dir-head .filter-bar { grid-column: 1 / -1; margin-top: 1.25rem; }
@media (max-width: 62rem) {
  /* Keep the breadcrumb first on a directory page: it is navigation, so the
     photo follows the copy rather than leading it. */
  .dir-head .hub-photo { order: 0; min-height: 0; }
}

/* ---------- Policy pages ---------- */
mark.tbd { padding: 0.05rem 0.3rem; color: var(--ink); background: #ffe2a8; border-radius: 0.25rem; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.never-list .ic { color: var(--info); --icon-accent: rgba(53, 111, 138, 0.2); }

/* ---------- For clinicians ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; align-content: start; gap: 0.5rem; padding: 1.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; color: var(--ink); background: var(--amber-wash); border-radius: 50%; font-weight: 700; }
.steps strong { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }
.steps p { color: var(--ink-soft); font-size: 0.95rem; }
.control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.control-grid h3 { margin-bottom: 1rem; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; }
.check-list { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.6rem; font-size: 1rem; }
.check-list li::before { content: ""; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; background: var(--amber-wash); border: 1.5px solid var(--amber); border-radius: 50%; }
.rules-list { max-width: 52rem; }
.claim-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.claim-heading { margin-top: 0.25rem; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1; }
.claim-intro { margin-top: 1rem; max-width: 34rem; color: var(--ink-soft); font-size: 1.05rem; }
.claim-also { display: grid; gap: 0.35rem; max-width: 34rem; margin-top: 2rem; padding: 1.25rem; background: var(--canvas); border-radius: var(--radius-md); }
.claim-also p { color: var(--ink-soft); font-size: 0.95rem; }
.select {
  width: 100%; min-height: 3rem; padding: 0 2.25rem 0 0.9rem; appearance: none;
  color: var(--ink); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319130e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center / 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 1rem;
}
.field-stack input[aria-invalid="true"] { border-color: var(--critical); }
@media (max-width: 68rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim-layout { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .steps, .control-grid { grid-template-columns: 1fr; }
}

/* ---------- Companion ---------- */
.companion-head { align-items: center; }
.proof-dark { color: var(--ink); }
.phone-stage { position: relative; display: grid; place-items: center; min-height: 34rem; padding: 2rem 1rem; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.55), transparent 55%), linear-gradient(140deg, var(--amber), #f7b64a 60%, var(--amber-wash)); border-radius: var(--radius-lg); }
.phone-mock {
  display: grid; align-content: start; gap: 0.55rem; width: min(17rem, 100%); padding: 0.85rem 0.85rem 0.75rem;
  background: #f8f6f2; border: 0.42rem solid #0b0a09; border-radius: 2.4rem; box-shadow: 0 28px 65px rgba(61, 22, 4, 0.34);
  font-size: 0.78rem; line-height: 1.3;
}
.phone-island { justify-self: center; width: 38%; height: 0.75rem; background: var(--ink); border-radius: 999px; }
.phone-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; }
.phone-top strong { font-weight: 700; letter-spacing: -0.02em; }
.phone-sync { color: var(--success); font-size: 0.66rem; font-weight: 700; }
.phone-kicker { color: var(--ink-soft); font-size: 0.68rem; }
.phone-title { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1.05; }
.phone-card { display: grid; gap: 0.15rem; padding: 0.65rem 0.7rem; background: var(--white); border-radius: 0.9rem; }
.phone-card small { color: var(--ink-soft); font-size: 0.64rem; }
.phone-card strong { font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-dark { color: var(--white); background: var(--ink); }
.phone-dark small { color: rgba(255, 255, 255, 0.6); }
.phone-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.phone-ai { background: var(--amber-wash); }
.phone-ai small { color: var(--amber-deep); font-weight: 700; }
.phone-ai span { color: var(--ink-soft); font-size: 0.68rem; }
.phone-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.2rem; margin-top: 0.25rem; padding: 0.25rem; background: var(--ink); border-radius: 999px; }
.phone-nav span { padding: 0.35rem 0; color: rgba(255, 255, 255, 0.7); text-align: center; font-size: 0.6rem; font-weight: 600; border-radius: 999px; }
.phone-nav span.on { color: var(--ink); background: var(--amber); }
.phone-chip { position: absolute; top: 1rem; right: 1rem; padding: 0.35rem 0.7rem; color: var(--ink); background: rgba(255, 255, 255, 0.75); border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.grid-4 .panel .panel-icon { margin-bottom: 0.5rem; }
.data-list { max-width: 48rem; }
.data-list li { font-size: 1.05rem; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: start; font-size: 0.9rem; cursor: pointer; }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: 0.1rem; accent-color: var(--ink); }
@media (max-width: 62rem) { .phone-stage { order: -1; min-height: 0; } }

/* ---------- Contact ---------- */
.field-stack textarea { width: 100%; padding: 0.75rem 0.9rem; color: var(--ink); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); font: inherit; resize: vertical; }
.field-stack textarea[aria-invalid="true"] { border-color: var(--critical); }
.field-hint { color: var(--ink-soft); font-size: 0.85rem; }
.contact-facts { margin-top: 1.5rem; }
.inline-link { color: var(--amber-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.claim-section .urgent-note { margin-top: 0; }
.claim-photo { max-width: 34rem; aspect-ratio: 16 / 10; margin: 1.5rem 0 0; }
.claim-photo small { max-width: 24rem; font-size: 0.88rem; }

/* Early-access sections: studio portrait beside the sign-up form */
.join-photo { position: relative; max-width: 34rem; aspect-ratio: 16 / 10; margin: 1.5rem 0 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--amber); }
.join-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 18% 30%; }
