/* Shared design system for the three referral sites.
   Per-site accent colours are injected as CSS custom properties from site.config.json. */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --sand: #f2ebe0;
  --sand-deep: #e6dccd;
  --ink: #1f2a2e;
  --ink-soft: #46545a;
  --line: #ddd3c4;
  --accent: #2f6f73;        /* overridden per site */
  --accent-deep: #1d4e52;   /* overridden per site */
  --accent-tint: #e4efee;   /* overridden per site */
  --focus: #b4541f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(31, 42, 46, .06), 0 8px 24px rgba(31, 42, 46, .06);
  --max: 72rem;
  --measure: 40rem;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); margin: .2em 0 .4em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 .4rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: .4rem; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: .5rem; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.measure { max-width: var(--measure); }

/* Preview banner */
.preview-banner { background: #3a3326; color: #fbf3e2; font-size: .875rem; text-align: center; padding: .45rem 1rem; }
.preview-banner strong { letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; margin-right: .4rem; }

/* Header */
.site-header { background: rgba(251, 248, 243, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.2) blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-size: 1.28rem; font-weight: 600; }
.brand-name .mark { display: inline-block; width: .7em; height: .7em; border-radius: 50% 50% 50% 8%; background: var(--accent); margin-right: .45em; transform: translateY(-.05em) rotate(-12deg); }
.brand-tag { font-size: .78rem; color: var(--ink-soft); margin-top: .15rem; }
.nav-toggle { display: none; align-items: center; gap: .5rem; font: inherit; font-size: .95rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; cursor: pointer; }
.nav-toggle-bars { width: 1.05rem; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .5rem .75rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.site-nav a:hover { background: var(--sand); }
.site-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent-deep); font-weight: 600; }
.site-nav .nav-cta a { background: var(--accent); color: #fff; font-weight: 600; }
.site-nav .nav-cta a:hover { background: var(--accent-deep); }
.site-nav .nav-cta a[aria-current="page"] { background: var(--accent-deep); color: #fff; }
@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; }
  .site-nav a { border-radius: var(--radius-sm); padding: .7rem .9rem; }
  .header-inner { position: relative; flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; }
}

/* Breadcrumb */
.breadcrumb { font-size: .88rem; color: var(--ink-soft); padding-top: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); }

/* Hero */
.hero { padding: 3.5rem 0 3rem; background:
  radial-gradient(60rem 22rem at 85% -10%, var(--accent-tint), transparent 70%),
  linear-gradient(180deg, var(--bg), var(--bg)); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent-deep); margin: 0; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.2rem; box-shadow: var(--shadow); }
.hero-card h2 { font-size: 1.2rem; margin: 0 0 .7rem; }
.hero-card ul { padding-left: 1.1rem; margin-bottom: .6rem; }
.hero-card .small { margin: 0; }
.page-head { padding: 1rem 0 2.2rem; border-bottom: 1px solid var(--line); }
.page-head .lede { margin-bottom: 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 2rem; } .hero { padding: 2.5rem 0 2.2rem; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 .5rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 1rem; border: 2px solid var(--accent); transition: background .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--accent-deep); }
.btn-secondary:hover { background: var(--accent-tint); color: var(--accent-deep); }
.ext::after { content: "↗"; font-size: .85em; }
.small { font-size: .9rem; color: var(--ink-soft); }

/* Content */
main { display: block; }
.section { padding: 3rem 0; }
.section.alt { background: var(--sand); border-block: 1px solid var(--sand-deep); }
.prose { max-width: var(--measure); }
.prose > h2:first-child { margin-top: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3.5rem; padding: 2.5rem 0 3.5rem; }
.content-grid aside { position: sticky; top: 6rem; align-self: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; gap: 2rem; } .content-grid aside { position: static; } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1rem; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: .4rem; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding: 1.1rem 1.2rem 1rem 3.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent-deep); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.steps strong { display: block; }
.note { background: var(--accent-tint); border-left: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }
.crisis { background: #fff4ec; border: 1px solid #f0cdb3; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .95rem; }
.crisis p { margin: 0; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.25rem; }
.aside-box h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.aside-box ul { padding-left: 1.1rem; margin-bottom: .4rem; font-size: .95rem; }
.aside-box .btn { width: 100%; justify-content: center; margin-top: .4rem; }
.sources { font-size: .92rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2.5rem; }
.sources h2 { font-size: 1.05rem; margin: 0 0 .5rem; font-family: var(--font-body); font-weight: 700; }
.sources ol { padding-left: 1.2rem; }
table.compare { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: .95rem; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: .75rem .85rem; border-bottom: 1px solid var(--line); }
table.compare th { background: var(--sand); font-weight: 700; }
.table-scroll { overflow-x: auto; }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .2rem 1.1rem; margin-bottom: .7rem; }
details.faq summary { cursor: pointer; font-weight: 600; padding: .8rem 0; list-style-position: outside; }
details.faq[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.cta-band { background: var(--accent-deep); color: #f4f8f7; border-radius: var(--radius); padding: 2rem; margin: 3rem 0 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: #dfeceb; }
.cta-band .btn-primary { background: #fff; color: var(--accent-deep); border-color: #fff; }
.cta-band .btn-primary:hover { background: var(--accent-tint); color: var(--accent-deep); }
@media (max-width: 700px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #1f2a2e; color: #d7dedd; padding: 3rem 0 2rem; margin-top: 3rem; font-size: .93rem; }
.site-footer a { color: #f1f6f5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-legal { border-top: 1px solid #3a474c; margin-top: 2rem; padding-top: 1.2rem; color: #aab6b5; font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
/* Full-bleed band inside a centred wrapper, without horizontal overflow */
.section.bleed { background: var(--sand); box-shadow: 0 0 0 100vmax var(--sand); clip-path: inset(0 -100vmax); border: 0; }
code { font-size: .9em; background: var(--sand); padding: .1em .35em; border-radius: 4px; word-break: break-word; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* v0.2: clear provider/payment journeys and site-specific identities, without imagery or tracking */
.identity-panel { padding: 1.6rem; background: var(--accent-tint); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 2rem; }
.identity-panel h2 { margin-top: .4rem; }
.identity-panel p:last-child { margin-bottom: 0; }
.example-panel { padding: 1.2rem 1.5rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.related-links { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .95rem; }
.brand { max-width: 29rem; flex: 0 1 auto; }
.site-nav a { white-space: nowrap; }
.site-nav { flex-shrink: 0; }
.site-wpb-emdr .hero-card { border-top: 5px solid var(--accent); }
.site-delray-emdr .hero { background: linear-gradient(115deg, #fbf8f3 55%, #e5eee7); }
.site-delray-emdr .hero-card { border-radius: 1.8rem .6rem 1.8rem .6rem; }
.site-delray-emdr .brand-name .mark { border-radius: 50% 8% 50% 8%; }
.site-boca-anxiety .hero { background: linear-gradient(145deg, #f5f7fa, #fbf8f3 70%); }
.site-boca-anxiety .hero-card { border-left: 4px solid var(--accent); }
.site-boca-anxiety .brand-name .mark { border-radius: 4px; transform: rotate(45deg); }
@media (max-width: 1060px) and (min-width: 861px) {
 .header-inner { flex-wrap: wrap; padding-block: .7rem; } .site-nav { width: 100%; }
}
@media (max-width: 860px) { .brand { max-width: calc(100% - 6.5rem); } .brand-name { font-size: 1.15rem; } .brand-tag { font-size: .7rem; } }
