/* ===== theme/fonts.css ===== */
/* All three fonts are open source (SIL OFL) and self-hosted from /src/fonts.
   They are variable fonts, so one file covers every weight.
   Manrope and Montserrat are trimmed to Latin characters to keep them small. */

/* Body text */
@font-face{
  font-family:"Raleway";
  src:url("/fonts/Raleway-var.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
}
/* Navigation */
@font-face{
  font-family:"Manrope";
  src:url("/fonts/Manrope-var.woff2") format("woff2");
  font-weight:200 800;font-style:normal;font-display:swap;
}
/* Headings and buttons */
@font-face{
  font-family:"Montserrat";
  src:url("/fonts/Montserrat-var.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:swap;
}


/* ===== theme/tokens.css ===== */
/* All brand and sizing values live here. Change a value here and it changes everywhere. */
:root{
  /* Palette, straight from Wix */
  --yellow:rgb(255,211,0);
  --navy:rgb(50,65,88);
  --grey-light:rgb(237,237,237);
  --grey-dark:rgb(96,96,96);
  --ink:rgb(50,50,50);
  --white:#fff;
  --green:rgb(7,160,28);

  /* Semantic colours. Sections re-map these (see sections.css), e.g. on navy. */
  --color-text:var(--ink);
  --color-bold:var(--navy);
  --color-heading:var(--navy);
  --color-link:var(--green);
  --color-muted:var(--grey-dark);
  --color-bg:var(--white);
  --color-surface:var(--grey-light);

  /* Fonts. Named brand font first, then a sensible fallback. */
  --font-body:"Raleway",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-nav:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-heading:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;   /* code examples */
  --weight-body:300;
  --weight-bold:700;      /* bold text inside paragraphs (Raleway) */
  --weight-nav:300;       /* Manrope Light */
  --weight-heading:600;   /* Montserrat, headings and buttons */
  --weight-heavy:800;     /* extra-bold headings: {.heavy} and box headings */
  --weight-btn:800;

  /* Type scale: 16px on phones, 20px from 900px up */
  --fs-body:1rem;
  --fs-h1:clamp(1.75rem,5vw,2.75rem);
  --fs-h2:clamp(1.4rem,3.5vw,1.95rem);
  --fs-h3:1.2rem;
  --lh-body:1.6;
  --scale-larger:1.15;    /* {.larger} and size=larger */
  --scale-smaller:.85;    /* {.smaller} and size=smaller */

  /* Code examples (dark panel) */
  --code-bg:rgb(30 40 56);
  --code-bar:rgb(22 30 43);
  --code-text:rgb(232 236 242);
  --code-muted:rgb(160 172 190);

  /* Shapes */
  --radius-pill:999px;
  --radius-box:1rem;
  --box-bg:rgb(50 65 88 / .88);   /* navy at 88% opacity, used by the photo hero box */

  /* Layout */
  --wrap:1200px;   /* header, content and hero all share this width */
  --gutter:1.25rem;
  --section-pad:3rem;

  /* Dividers */
  --wave-h:16px;
  --arc-h:20px;
  --tip:28px;

  /* Shades: five steps from light to dark in each scheme. Used by the steps band (steps=)
     and by stacked sections (shade=, or bg=navy-3 and so on). */
  --navy-1:rgb(112,122,138);--navy-2:rgb(96,108,126);--navy-3:rgb(81,94,113);--navy-4:rgb(65,79,101);--navy-5:var(--navy);
  --yellow-1:rgb(255,240,166);--yellow-2:rgb(255,232,115);--yellow-3:rgb(255,224,77);--yellow-4:rgb(255,217,38);--yellow-5:var(--yellow);
  --light-1:rgb(240,240,240);--light-2:rgb(233,233,233);--light-3:rgb(226,226,226);--light-4:rgb(218,218,218);--light-5:rgb(209,209,209);
  --dark-1:rgb(110,110,110);--dark-2:rgb(98,98,98);--dark-3:rgb(86,86,86);--dark-4:rgb(74,74,74);--dark-5:rgb(62,62,62);

  /* Step colours (steps band): navy shades by default */
  --step-1:var(--navy-1);--step-2:var(--navy-2);--step-3:var(--navy-3);--step-4:var(--navy-4);--step-5:var(--navy-5);
}
@media (min-width:700px){:root{--wave-h:30px}}
@media (min-width:900px){:root{--fs-body:1.25rem;--section-pad:4.5rem}}


/* ===== structure/layout.css ===== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:4.5rem}
body{margin:0}
img,svg{max-width:100%}
img{height:auto}
picture{display:contents}   /* Eleventy Image wraps photos in <picture>; this keeps every img style working as before */
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--gutter)}

/* Keep the footer at the bottom of short pages */
body{min-height:100vh;display:flex;flex-direction:column}
main{flex:1 0 auto}


/* ===== theme/typography.css ===== */
body{
  font-family:var(--font-body);
  font-weight:var(--weight-body);
  font-size:var(--fs-body);
  line-height:var(--lh-body);
  color:var(--color-text);
  background:var(--color-bg);
}
p{margin:0 0 1em}
strong,b{font-weight:var(--weight-bold);color:var(--color-bold)}

h1,h2,h3,h4,.h1,.h2,.h3,.h4{
  font-family:var(--font-heading);
  font-weight:var(--weight-heading);
  color:var(--color-heading);
  line-height:1.2;
  margin:0 0 .6em;
  text-wrap:balance;
  text-transform:uppercase;
  letter-spacing:.02em;
}
/* --scale is 1 unless {.larger} / {.smaller} is used (see content.css) */
h1{font-size:calc(var(--fs-h1) * var(--scale,1))}
h2{font-size:calc(var(--fs-h2) * var(--scale,1))}
h3{font-size:calc(var(--fs-h3) * var(--scale,1))}
h4{font-size:calc(var(--fs-body) * var(--scale,1))}

/* Look like a different heading level, Wix-style. The tag (h1, h2...) still tells Google and
   screen readers how important the heading is; the class only changes how it looks.
     # Page title {.h3}        an h1 that looks like an h3
     ### Small heading {.h1}   an h3 that looks like an h1
     A paragraph. {.h2}        plain text styled like an h2 (not a heading for Google)
   The doubled class wins over section-specific heading sizes (boxes, strips, cards). */
.h1.h1{font-size:calc(var(--fs-h1) * var(--scale,1))}
.h2.h2{font-size:calc(var(--fs-h2) * var(--scale,1))}
.h3.h3{font-size:calc(var(--fs-h3) * var(--scale,1))}
.h4.h4{font-size:calc(var(--fs-body) * var(--scale,1))}

/* Extra-bold heading, at any size. Combine with a size class if needed:
     ## Our approach {.heavy}          ### EMDR can help with {.h2 .heavy}
   Box headings are heavy too, but capped at 1.8rem so they fit their box. */
.heavy{font-weight:var(--weight-heavy)}

/* Heading tricks.
   Line break:    # Care that<br>fits your life
   Smaller words: # Care that fits<br><small>your life, your way</small>
   Break only on wide screens (put a space before it): # Care that <br class="desk">fits your life */
h1 small,h2 small,h3 small,h4 small,:is(.h1,.h2,.h3,.h4) small{
  font-size:.6em;
  line-height:1.3;
  letter-spacing:.04em;
}
br.desk{display:none}
@media (min-width:800px){br.desk{display:initial}}

/* More space above a heading that follows text */
:is(p, ul, ol, blockquote) + :is(h1, h2, h3, h4){
  margin-top: 1.75em;
}

a{color:var(--color-link);text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}

:focus-visible{outline:3px solid var(--navy);outline-offset:3px}

/* Highlighted words: write ==word== in markdown.
   Light backgrounds: navy text on a yellow highlighter strip. Dark backgrounds: yellow text. */
mark{
  background:var(--yellow);
  color:var(--navy);
  padding:0 .18em;
  border-radius:.2em;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}
.bg-navy mark,.box-navy mark,.sec-tbanner mark,.ph-box mark,.sec-pagehero mark,.form-photo mark{
  background:none;
  color:var(--yellow);
  padding:0;
}
/* Yellow backgrounds (bg=yellow, shade=yellow bands, yellow boxes and tiles): a navy strip with yellow text */
:is(.bg-yellow,.box-yellow,.tiles-yellow .tile) mark{background:var(--navy);color:var(--yellow)}
.btn mark{color:var(--white)}

/* Tables: | a | b | rows in markdown */
table{width:100%;border-collapse:collapse;margin:0 0 1.5em;font-size:.9em}
th,td{padding:.6em .8em;text-align:left;vertical-align:top;border-bottom:1px solid rgb(0 0 0 / .12)}
th{
  font-family:var(--font-heading);font-weight:var(--weight-heading);color:var(--color-heading);
  font-size:.8em;text-transform:uppercase;letter-spacing:.05em;
  border-bottom-width:2px;
}
:is(.bg-navy,.box-navy) :is(th,td){border-color:rgb(255 255 255 / .2)}
td:first-child code,th:first-child{white-space:nowrap}   /* keep option names like divider= on one line */


/* ===== theme/components.css ===== */
/* Buttons: ends are half circles. In markdown: [Get started](/contact/){.btn} */
.btn,.btn-outline{
  display:inline-block;
  padding:.7em 2em;
  border:2px solid transparent;
  border-radius:var(--radius-pill);
  font-family:var(--font-heading);
  font-weight:var(--weight-btn);
  font-size:1.1rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .15s,color .15s,border-color .15s;
}
.btn{background:var(--yellow);color:var(--navy)}
.btn:hover{background:var(--btn-hover-bg,var(--navy));color:var(--btn-hover-text,var(--yellow))}
.btn-outline{border-color:var(--btn-line,var(--navy));color:var(--btn-line,var(--navy))}
.btn-outline:hover{background:var(--btn-hover-bg,var(--navy));color:var(--btn-hover-text,var(--white));border-color:var(--btn-hover-bg,var(--navy))}

/* On navy (sections, navy/dark shaded bands, navy boxes, heroes) a navy hover would vanish: hover turns white instead,
   and outline buttons are drawn in white. Light boxes and tiles inside a navy band switch back to the defaults. */
:is(.bg-navy,.box-navy,.sec-pagehero,.ph-box,.sec-tbanner,.form-photo,.tiles-navy .tile){--btn-hover-bg:var(--white);--btn-hover-text:var(--navy);--btn-line:var(--white)}
:is(.box:not(.box-navy),.tiles:not(.tiles-navy) .tile){--btn-hover-bg:initial;--btn-hover-text:initial;--btn-line:initial}

/* Profile photos: round, 300px (the same size as the therapist cards). Add {.profile} */
.profile{
  display:block;
  width:min(100%,300px);
  aspect-ratio:1;
  object-fit:cover;
  border-radius:50%;
}

@media (prefers-reduced-motion:reduce){
  .btn,.btn-outline{transition:none}
}

/* Text for screen readers only, e.g. "(opens in a new tab)" on external links */
.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}


/* ===== structure/header.css ===== */
/* Announcement banner: yellow, navy text, uneven arc into the white header (scrolls away) */
.banner{background:var(--yellow);color:var(--navy)}
.banner-inner{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;
  gap:.35rem 1rem;
  padding:1.5rem var(--gutter) 1.35rem;
}
.banner p{margin:0;font-family:var(--font-nav);font-weight:600;font-size:1.5rem;line-height:1.3;text-transform:uppercase;letter-spacing:.04em;color:var(--navy)}
.banner .btn{background:var(--white);color:var(--navy);padding:.5em 1.5em;font-size:1.3rem}
.banner .btn:hover{background:var(--navy);color:var(--yellow)}

/* Header + nav. The bar is full width; its content sits in a --wrap (1200px) box. */
.site-header{
  background:var(--white);
  position:relative;z-index:50;
}
.header-inner{
  max-width:var(--wrap);margin:0 auto;
  padding:.75rem var(--gutter);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
}
@media (min-width:1000px){.header-inner{padding-block:1.4rem}}
.logo img{display:block;height:100px;width:auto}

.site-nav>ul{list-style:none;margin:0;padding:0;display:flex;gap:1.75rem}
.site-nav a{
  display:block;padding:.5rem 0;
  font-family:var(--font-nav);font-weight:var(--weight-nav);font-size:1.3rem;
  text-transform:uppercase;letter-spacing:.06em;
  color:var(--ink);text-decoration:none;
  border-bottom:3px solid transparent;
}
.site-nav a:hover{border-bottom-color:var(--grey-light)}
.site-nav a[aria-current]{border-bottom-color:var(--yellow)}

.nav-btn{display:none}

/* Book Now: yellow pill just right of the menu (last item in the list, so on mobile it ends the menu) */
.nav-cta{display:flex;align-items:center;margin-left:.5rem}
.site-nav .nav-cta .btn{
  display:inline-block;
  padding:.6em 2.6em;
  font-family:var(--font-heading);font-weight:var(--weight-btn);
  font-size:1rem;letter-spacing:.06em;
  color:var(--navy);
  border:2px solid transparent;
}
.site-nav .nav-cta .btn:hover{background:var(--navy);color:var(--yellow);border-color:transparent}

/* Full menu on narrower desktops (1000–1200px): instead of wrapping "About Us" onto two lines, the menu
   text, the gaps and the Book Now padding shrink smoothly, reaching full size at 1200px. The logo never shrinks. */
.logo{flex-shrink:0}
@media (min-width:1000px){
  .site-nav>ul>li>a{white-space:nowrap;font-size:clamp(1.05rem,1.75vw,1.3rem)}
  .site-nav>ul{gap:clamp(1rem,6vw - 2.75rem,1.75rem)}
  .site-nav .nav-cta .btn{padding-inline:clamp(1.5em,8.8vw - 4rem,2.6em)}
}
@media (min-width:1000px) and (max-width:1199px){.site-nav>ul>li>a{letter-spacing:.04em}}

/* Dropdowns (one level) */
.has-sub{position:relative;display:flex;align-items:center}
.sub-btn{
  display:block;position:relative;
  width:32px;height:36px;margin-left:.1rem;
  background:none;border:0;cursor:pointer;color:var(--ink);
}
.sub-btn::before{
  content:"";position:absolute;left:50%;top:50%;
  width:.45rem;height:.45rem;
  border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:translate(-50%,-70%) rotate(45deg);
  transition:transform .15s;
}
.sub-btn[aria-expanded="true"]::before{transform:translate(-50%,-30%) rotate(225deg)}

.sub{
  list-style:none;margin:0;padding:.5rem 0;
  position:absolute;top:100%;left:-1rem;z-index:60;
  min-width:15rem;
  background:var(--white);
  border:1px solid var(--grey-light);border-radius:.75rem;
  box-shadow:0 8px 24px rgb(0 0 0 / .12);
  display:none;
}
.has-sub.open>.sub{display:block}
@media (hover:hover) and (min-width:1000px){
  .has-sub:hover>.sub{display:block}
}
.sub a{padding:.6rem 1.25rem;border-bottom:0;white-space:nowrap}
.sub a:hover{background:var(--grey-light)}
.sub a[aria-current]{background:var(--grey-light);box-shadow:inset 4px 0 0 var(--yellow)}

/* Mobile: sticky logo + hamburger, menu drops down inside the bar */
@media (max-width:999px){
  .site-header{position:sticky;top:0;border-bottom:1px solid var(--grey-light)}
  .header-inner{flex-wrap:wrap}

  .nav-btn{display:block;width:44px;height:44px;background:none;border:0;cursor:pointer;position:relative}
  .nav-btn span,.nav-btn span::before,.nav-btn span::after{
    content:"";position:absolute;height:2px;background:var(--ink);
    transition:transform .2s,opacity .2s;
  }
  .nav-btn span{left:10px;right:10px;top:21px}
  .nav-btn span::before{left:0;right:0;top:-7px}
  .nav-btn span::after{left:0;right:0;top:7px}
  .nav-btn[aria-expanded="true"] span{background:transparent}
  .nav-btn[aria-expanded="true"] span::before{transform:translateY(7px) rotate(45deg)}
  .nav-btn[aria-expanded="true"] span::after{transform:translateY(-7px) rotate(-45deg)}

  .site-nav{flex-basis:100%}
  .site-nav>ul{flex-direction:column;gap:0}
  .site-nav{display:none}
  .site-nav.open{display:block;max-height:calc(100dvh - 5rem);overflow-y:auto}

  .has-sub{flex-wrap:wrap}
  .has-sub>a{flex:1}
  .sub-btn{width:44px;height:44px}
  .sub{
    position:static;flex-basis:100%;min-width:0;
    border:0;border-radius:0;box-shadow:none;
    padding:0 0 .25rem 1rem;
    display:none;
  }
  .has-sub.open>.sub{display:block}
  .sub a{white-space:normal;padding:.5rem 0}
  .nav-cta{margin:.5rem 0 1rem}
  .sub a[aria-current]{background:none;box-shadow:none;border-bottom-color:var(--yellow)}
}
@media (prefers-reduced-motion:reduce){
  .nav-btn span,.nav-btn span::before,.nav-btn span::after,.sub-btn::before{transition:none}
}


/* ===== structure/sections.css ===== */
/* Section backgrounds. Each one re-maps the semantic colours so text stays readable. */
.sec{
  position:relative;
  padding-top:var(--section-pad);
  color:var(--color-text);
}
.sec>.wrap{padding-bottom:var(--section-pad)}
.sec>.wrap>:last-child{margin-bottom:0}   /* the last heading/paragraph's own margin would add to the padding */

/* Section spacing: <!-- section pad=small --> for short sections (e.g. a single heading), pad=none for no top/bottom space */
.pad-small{--section-pad:1.75rem}
.pad-none{--section-pad:0px}
@media (min-width:900px){.pad-small{--section-pad:2.5rem}}
/* width=narrow: a comfortable reading width for long text and lists */
.width-narrow>.wrap{max-width:800px}
.sec.sec-join{padding-top:0}   /* follows a section of the same colour (set in page.njk) */
.sec.pt-arc{padding-top:calc(var(--section-pad) + var(--arc-h))}  /* follows an arc-down */

.bg-white{background:var(--white)}
.bg-grey{background:var(--grey-light)}
.bg-yellow{background:var(--yellow)}
.bg-navy{
  background:var(--navy);
  --color-text:var(--white);
  --color-heading:var(--white);
  --color-bold:var(--yellow);
  --color-link:var(--yellow);
}
.bg-navy :focus-visible{outline-color:var(--yellow)}

/* Section types */
.sec-hero{padding-top:calc(var(--section-pad) + 2rem)}
.sec-hero>.wrap{max-width:760px}

/* ---------- Dividers ---------- */
.fill-white path{fill:var(--white)}
.fill-grey path{fill:var(--grey-light)}
.fill-yellow path{fill:var(--yellow)}
.fill-navy path{fill:var(--navy)}

/* Shaded backgrounds: bg=navy-1 … navy-5, yellow-1…5, light-1…5, dark-1…5 (or shade=, which numbers them for you).
   Each shaded section also gets its scheme's base class (bg-navy, bg-yellow or bg-grey) for text colours. */
.bg-navy-1{background:var(--navy-1)} .bg-navy-2{background:var(--navy-2)} .bg-navy-3{background:var(--navy-3)} .bg-navy-4{background:var(--navy-4)} .bg-navy-5{background:var(--navy-5)}
.fill-navy-1 path{fill:var(--navy-1)} .fill-navy-2 path{fill:var(--navy-2)} .fill-navy-3 path{fill:var(--navy-3)} .fill-navy-4 path{fill:var(--navy-4)} .fill-navy-5 path{fill:var(--navy-5)}
.bg-yellow-1{background:var(--yellow-1)} .bg-yellow-2{background:var(--yellow-2)} .bg-yellow-3{background:var(--yellow-3)} .bg-yellow-4{background:var(--yellow-4)} .bg-yellow-5{background:var(--yellow-5)}
.fill-yellow-1 path{fill:var(--yellow-1)} .fill-yellow-2 path{fill:var(--yellow-2)} .fill-yellow-3 path{fill:var(--yellow-3)} .fill-yellow-4 path{fill:var(--yellow-4)} .fill-yellow-5 path{fill:var(--yellow-5)}
.bg-light-1{background:var(--light-1)} .bg-light-2{background:var(--light-2)} .bg-light-3{background:var(--light-3)} .bg-light-4{background:var(--light-4)} .bg-light-5{background:var(--light-5)}
.fill-light-1 path{fill:var(--light-1)} .fill-light-2 path{fill:var(--light-2)} .fill-light-3 path{fill:var(--light-3)} .fill-light-4 path{fill:var(--light-4)} .fill-light-5 path{fill:var(--light-5)}
.bg-dark-1{background:var(--dark-1)} .bg-dark-2{background:var(--dark-2)} .bg-dark-3{background:var(--dark-3)} .bg-dark-4{background:var(--dark-4)} .bg-dark-5{background:var(--dark-5)}
.fill-dark-1 path{fill:var(--dark-1)} .fill-dark-2 path{fill:var(--dark-2)} .fill-dark-3 path{fill:var(--dark-3)} .fill-dark-4 path{fill:var(--dark-4)} .fill-dark-5 path{fill:var(--dark-5)}

.wave,.arc{display:block;width:100%;position:relative;bottom:-1px}   /* 1px overlap hides hairline gaps */
.wave{height:var(--wave-h)}
.arc{height:var(--arc-h)}
.arc-down{position:absolute;left:0;bottom:calc(var(--arc-h) * -1 + 1px);z-index:1}


/* ===== structure/steps.css ===== */
/* Chevron steps. Markdown source is just a numbered list:
   1. **Title** Description
   Options on the section marker:
     steps=yellow | light | dark   colour scheme (default: navy shades)
     numbers=circle                number inside a circle (colour picked to contrast; circle=yellow|navy|white to change) */
.sec-steps{
  --step-text:var(--white);--step-bold:var(--white);
  --step-num:var(--yellow);                          /* plain numbers */
  --circle-bg:var(--yellow);--circle-num:var(--navy); /* numbers=circle */
}
.steps-yellow{
  --step-1:var(--yellow-1);--step-2:var(--yellow-2);--step-3:var(--yellow-3);--step-4:var(--yellow-4);--step-5:var(--yellow-5);
  --step-text:var(--navy);--step-bold:var(--navy);--step-num:var(--navy);
  --circle-bg:var(--navy);--circle-num:var(--yellow);
}
.steps-light{
  --step-1:var(--light-1);--step-2:var(--light-2);--step-3:var(--light-3);--step-4:var(--light-4);--step-5:var(--light-5);
  --step-text:var(--ink);--step-bold:var(--navy);--step-num:var(--navy);
  --circle-bg:var(--navy);--circle-num:var(--white);
}
.steps-dark{
  --step-1:var(--dark-1);--step-2:var(--dark-2);--step-3:var(--dark-3);--step-4:var(--dark-4);--step-5:var(--dark-5);
  --step-text:var(--white);--step-bold:var(--white);--step-num:var(--yellow);
  --circle-bg:var(--yellow);--circle-num:var(--ink);
}
.circle-yellow{--circle-bg:var(--yellow);--circle-num:var(--navy)}
.circle-navy{--circle-bg:var(--navy);--circle-num:var(--yellow)}
.circle-white{--circle-bg:var(--white);--circle-num:var(--navy)}
.sec-steps :is(h2,h3){text-align:center}
.sec-steps ol{
  list-style:none;counter-reset:step;
  display:flex;flex-direction:column;
  margin:2.5rem 0 0;padding:0;
}
.sec-steps li{
  counter-increment:step;
  --color-text:var(--step-text);--color-bold:var(--step-bold);
  color:var(--step-text);
  text-align:center;
  font-size:1rem;
  padding:calc(1.5rem + var(--tip)) 1.25rem calc(1.5rem + var(--tip));
  margin-top:calc(var(--tip) * -1);
  /* notch on top, point on the bottom */
  clip-path:polygon(0 0,50% var(--tip),100% 0,100% calc(100% - var(--tip)),50% 100%,0 calc(100% - var(--tip)));
}
.sec-steps li::before{
  content:counter(step);
  display:block;
  font-family:var(--font-heading);font-weight:var(--weight-heading);
  font-size:3.5rem;line-height:1;
  color:var(--step-num);
}
/* numbers=circle */
.steps-circle li::before{
  display:grid;place-items:center;
  width:3.25rem;height:3.25rem;margin:0 auto .35rem;
  border-radius:50%;
  background:var(--circle-bg);color:var(--circle-num);
  font-size:1.6rem;
}
.sec-steps li strong{display:block;font-size:1.15rem;margin:.4rem 0 .25rem}

.sec-steps li:first-child{
  margin-top:0;padding-top:1.5rem;
  clip-path:polygon(0 0,100% 0,100% calc(100% - var(--tip)),50% 100%,0 calc(100% - var(--tip)));
}
.sec-steps li:last-child{
  padding-bottom:1.5rem;
  clip-path:polygon(0 0,50% var(--tip),100% 0,100% 100%,0 100%);
}
.sec-steps li:first-child:last-child{clip-path:none}

.sec-steps li:nth-child(1){background:var(--step-1)}
.sec-steps li:nth-child(2){background:var(--step-2)}
.sec-steps li:nth-child(3){background:var(--step-3)}
.sec-steps li:nth-child(4){background:var(--step-4)}
.sec-steps li:nth-child(5){background:var(--step-5)}

/* Desktop: horizontal, tips point right */
@media (min-width:900px){
  .sec-steps ol{flex-direction:row}
  .sec-steps li{
    flex:1;margin-top:0;margin-left:calc(var(--tip) * -1);
    padding:2rem calc(var(--tip) + .75rem) 2rem calc(var(--tip) + 1rem);
    clip-path:polygon(0 0,calc(100% - var(--tip)) 0,100% 50%,calc(100% - var(--tip)) 100%,0 100%,var(--tip) 50%);
  }
  .sec-steps li:first-child{
    margin-left:0;padding:2rem calc(var(--tip) + .75rem) 2rem 1.25rem;
    clip-path:polygon(0 0,calc(100% - var(--tip)) 0,100% 50%,calc(100% - var(--tip)) 100%,0 100%);
  }
  .sec-steps li:last-child{
    padding:2rem 1.25rem 2rem calc(var(--tip) + 1rem);
    clip-path:polygon(0 0,100% 0,100% 100%,0 100%,var(--tip) 50%);
  }
  /* Buttons at the end of a step line up along the bottom, however long each step's text is */
  .sec-steps li{display:flex;flex-direction:column}
  .sec-steps li>p:last-child:has(.btn,.btn-outline){margin-top:auto;margin-bottom:0;padding-top:1rem}
  /* steps may shrink below their content's width (instead of pushing the last one off the screen) */
  .sec-steps li{min-width:0}
}
/* Narrow desktops: slimmer step buttons, so labels like "Income Calculator" stay on one line */
@media (min-width:900px) and (max-width:1199px){
  .sec-steps li :is(.btn,.btn-outline){padding-inline:1.4em;font-size:.95em}
}


/* ===== structure/photohero.css ===== */
/* Photo hero: big background image, semi-transparent navy box, round photo on the box's top-right corner.
   Markdown marker: <!-- section type=photohero bg=navy img=/img/hero.jpg photo=/img/therapists/ashley-phillips-card.jpg photo_alt="Ashley Phillips" --> */
.sec-photohero{
  --ph-size:6.5rem;                       /* round photo diameter */
  --ph-pad:1.5rem;                        /* box side padding */
  --ph-box-w:56rem;                       /* box width; set to 100% for full width */
  display:flex;flex-direction:column;
  min-height:clamp(28rem,75vh,44rem);
  padding-top:calc(var(--ph-size) * .45 + 2rem);   /* room for the photo that overhangs the box */
}
@media (min-width:900px){.sec-photohero{--ph-size:15rem;--ph-pad:2.5rem}}

.ph-bg{position:absolute;inset:0;overflow:hidden;z-index:0}
.ph-bg img{
  position:absolute;left:0;top:-25%;
  width:100%;height:150%;object-fit:cover;   /* 25% overshoot top and bottom gives the parallax room to move */
  will-change:transform;
}

.sec-photohero>.wrap{
  position:relative;z-index:1;
  flex:1;display:flex;align-items:center;
  width:100%;padding-bottom:3rem;
}

.ph-box{
  position:relative;
  width:min(100%,var(--ph-box-w));
  padding:2rem var(--ph-pad);
  background:var(--box-bg);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  border-radius:var(--radius-box);
}
@media (min-width:900px){.ph-box{padding-block:2.5rem}}
.ph-box>:last-child{margin-bottom:0}
.ph-box>:is(h1,h2){padding-right:calc(var(--ph-size) + 2.25rem - var(--ph-pad))}   /* heading stops short of the photo's left edge */

.ph-box .ph-photo{
  position:absolute;
  top:calc(var(--ph-size) * -.45);right:1.25rem;
  width:var(--ph-size);height:var(--ph-size);
  border-radius:50%;object-fit:cover;      /* always round, whichever folder the photo is in */
  border:0px solid var(--yellow);
  background:var(--white);
}

/* Shaped edge drawn over the TOP of a section (top=KIND, or the header edge on a hero).
   It is filled with the colour above, so the section below appears to rise or dip into it. */
.arc.edge-top,.wave.edge-top{position:absolute;left:0;top:-1px;bottom:auto;z-index:2}
.sec.top-wave{padding-top:calc(var(--section-pad) + var(--wave-h) * .6)}

/* ---------- Page hero: a short photo band with a navy overlay, for page headings ----------
   <!-- section type=pagehero img=/img/hero-meadow.jpg -->
   Options: overlay=60 (navy strength in %, default 35; 0 with no text)  height=400 (px, or any CSS size)  text=center  divider=...  top=none
   No text under the marker = a photo-only band */
.sec-pagehero{
  --pagehero-h:260px;
  --overlay-alpha:.35;
  display:flex;flex-direction:column;
  min-height:var(--pagehero-h);   /* grows only if the text needs more room (long titles on phones) */
  padding-top:0;
  /* Text sits on the navy overlay, so it is always light, whatever bg= says */
  --color-text:var(--white);
  --color-heading:var(--white);
  --color-bold:var(--yellow);
  --color-link:var(--yellow);
}
.sec-pagehero .ph-bg::after{
  content:"";position:absolute;inset:0;
  background:color-mix(in srgb,var(--navy) calc(var(--overlay-alpha) * 100%),transparent);
}
.sec-pagehero>.wrap{
  position:relative;z-index:1;
  flex:1;display:flex;flex-direction:column;justify-content:center;
  width:100%;padding-block:2rem;
}
/* Photo only (no text under the marker): a plain photo band, 400px tall unless height= says otherwise.
   On phones it shrinks with the screen (never taller than 70% of the screen width) so the photo isn't cropped to a sliver */
.sec-pagehero:not(:has(>.wrap)){--pagehero-h:400px;min-height:min(var(--pagehero-h),70vw)}
/* the bottom divider is normally pushed down by the text; with no text, push it down itself */
.sec-pagehero>:is(.arc,.wave):not(.edge-top){margin-top:auto}
.pagehero-text{max-width:46rem}
.pagehero-text>:first-child{margin-top:0}
.pagehero-text>:last-child{margin-bottom:0}
.pagehero-text h1{margin-bottom:.35em}
.text-center .pagehero-text{margin-inline:auto}


/* ===== structure/content.css ===== */
/* ---------- Columns ----------
   In markdown, every column starts with <!-- col -->. Text above the first marker stays full width.
   Section options: split=40-60 (ratio)  align=center  stack=reverse (right column first on phones) */
.cols{display:grid;grid-template-columns:1fr;gap:2rem}
.col{min-width:0}
.col>:first-child{margin-top:0}
.col>:last-child{margin-bottom:0}
.stack-reverse>.col:last-child{order:-1}
@media (min-width:800px){
  .cols{grid-template-columns:var(--cols,1fr 1fr);gap:3rem}
  .cols-3{grid-template-columns:var(--cols,repeat(3,1fr))}
  .valign-center{align-items:center}
  .stack-reverse>.col:last-child{order:0}
}

/* Columns inside a column: <!-- subcol --> (50/50). Side by side once the column itself is 480px wide
   ; stacked when narrower (phones, and ~800-1050px screens where the column is squeezed). */
.col:has(>.subcols){container-type:inline-size}
.subcols{display:grid;grid-template-columns:1fr;gap:1.5rem;margin:1.5rem 0}
.subcols:first-child{margin-top:0}
.subcols:last-child{margin-bottom:0}
.subcol{min-width:0}
.subcol>:first-child{margin-top:0}
.subcol>:last-child{margin-bottom:0}
@container (min-width:480px){.subcols{grid-template-columns:1fr 1fr;gap:2rem}}

/* ---------- Boxes ----------
   <!-- box -->  ...  <!-- /box -->   plus optional words: navy | yellow | white | list2 */
.box{
  background:var(--grey-light);
  color:var(--color-text);          /* re-reads the colour when a variant (navy) changes it */
  border-radius:var(--radius-box);
  padding:1.75rem 1.75rem 2rem;
  margin:0 0 1.5rem;
}
.box>:first-child{margin-top:0}
.box>:last-child{margin-bottom:0}
.box h3{font-size:calc(clamp(1.4rem,3.5vw,1.8rem) * var(--scale,1));font-weight:var(--weight-heavy)}   /* a touch smaller than an h2 on wide screens, so box titles fit on one line */
.box ul{margin:0 0 1.5rem;padding-left:1.25rem}
.box li{margin:.4em 0}
.box li::marker{color:var(--navy)}
.box .btn,.box .btn-outline{width: 100%}

.box-white{background:var(--white);border:2px solid var(--grey-light)}
.box-yellow{background:var(--yellow)}
.box-yellow .btn{background:var(--navy);color:var(--yellow)}
.box-yellow .btn:hover{background:var(--white);color:var(--navy)}
.box-navy{
  background:var(--navy);
  --color-text:var(--white);--color-heading:var(--white);--color-bold:var(--yellow);--color-link:var(--yellow);
}
.box-navy li::marker{color:var(--yellow)}
.box-navy :focus-visible{outline-color:var(--yellow)}
@media (min-width:700px){.box-list2 ul{columns:2;column-gap:2.5rem}.box-list2 li{break-inside:avoid}}

/* ---------- Image shapes and sizes ----------
   ![Alt](/img/x.jpg){.img-rounded}   shapes: .img-square  .img-rounded  .img-circle
   optional: .ratio-1  .ratio-4-3  .ratio-16-9  .ratio-3-4 (crop to shape)  .img-sm  .img-md  .center */
.img-square,.img-rounded,.img-circle{display:block;width:100%;height:auto}
.img-square{border-radius:0}
.img-rounded{border-radius:var(--radius-box)}
.img-circle{border-radius:50%;aspect-ratio:1;object-fit:cover}
[class*="ratio-"]{object-fit:cover}
.ratio-1{aspect-ratio:1}
.ratio-4-3{aspect-ratio:4/3}
.ratio-16-9{aspect-ratio:16/9}
.ratio-3-4{aspect-ratio:3/4}
.img-sm{max-width:12rem}
.img-md{max-width:22rem}
.center{margin-left:auto;margin-right:auto}

/* ---------- Floating images: text wraps around them ----------
   ![Alt](/img/x.jpg){.float-right .img-rounded}
   The paragraph text goes on the very next line (no blank line), so it starts level with the image.
   Width: about 45% of the text column (max 22rem); add .img-sm for a small one (12rem).
   Phones (under 600px): no wrapping, the image sits full width above the text.
   {.clear} on a heading or paragraph starts it below the image. */
.float-left,.float-right{width:min(45%,22rem);margin-top:.3em;margin-bottom:1rem}
.float-left{float:left;margin-right:1.75rem}
.float-right{float:right;margin-left:1.75rem}
@media (max-width:599px){
  .float-left,.float-right{float:none;width:100%;margin:0 auto 1rem}
}
.clear{clear:both}
/* sections, columns and boxes always end below a floated image (only those that have one) */
:is(.sec>.wrap,.col,.subcol,.box):has(.float-left,.float-right)::after{content:"";display:table;clear:both}

/* ---------- Centring (left-to-right) ----------
   Whole section:  <!-- section text=center -->
   One column:     <!-- col center -->
   One box:        <!-- box center -->
   One line:       ## Heading {.text-center}   or   A paragraph. {.text-center} */
.text-center,.box-center{text-align:center}
:is(.text-center,.box-center) :is(.img-square,.img-rounded,.img-circle,.profile,.video){margin-inline:auto}
/* Lists keep their bullets lined up: the list block is centred, its text stays left-aligned */
:is(.text-center,.box-center) :is(ul,ol):not([class]):not(.sec-steps ol, .icons>ul){width:fit-content;margin-inline:auto;text-align:left}

/* ---------- Right alignment ----------
   Whole section:  <!-- section text=right -->
   One column:     <!-- col right -->
   One box:        <!-- box right -->
   One line:       ## Heading {.text-right}   or   A paragraph. {.text-right} */
.text-right,.box-right{text-align:right}
:is(.text-right,.box-right) :is(.img-square,.img-rounded,.img-circle,.profile,.video,.center){margin-left:auto;margin-right:0}
/* Lists sit against the right edge, but their bullets stay lined up on the left */
:is(.text-right,.box-right) :is(ul,ol):not([class]):not(.sec-steps ol, .icons>ul){width:fit-content;margin-left:auto;margin-right:0;text-align:left}
.text-right .pagehero-text{margin-left:auto}

/* ---------- Left alignment (undoes centring or right alignment inside a centred section) ----------
   One column:     <!-- col left -->
   One box:        <!-- box left -->
   One line:       ## Heading {.text-left}   or   A paragraph. {.text-left} */
.sec .text-left,.sec .box-left{text-align:left}
.sec :is(.text-left,.box-left) :is(.img-square,.img-rounded,.img-circle,.profile,.video,.center){margin-left:0;margin-right:auto}
.sec :is(.text-left,.box-left) :is(ul,ol):not([class]):not(.sec-steps ol, .icons>ul){width:auto;margin-inline:0}

/* ---------- Text colours ----------
   Any heading or paragraph:  ## Heading {.yellow}     A paragraph. {.green}
   A whole section:           <!-- section bg=navy color=yellow -->
   A whole box:               <!-- box navy color=yellow -->
   Colours: navy  yellow  green  ink  grey (dark grey)  grey-light  white
   Headings and bold text inside follow the colour too. Backgrounds are still set with bg= / box words. */
.navy{--c:var(--navy)}
.yellow{--c:var(--yellow)}
.green{--c:var(--green)}
.ink{--c:var(--ink)}
.grey{--c:var(--grey-dark)}
.grey-light{--c:var(--grey-light)}
.white{--c:var(--white)}
:is(.navy,.yellow,.green,.ink,.grey,.grey-light,.white){
  color:var(--c);
  --color-text:var(--c);--color-heading:var(--c);--color-bold:var(--c);
}

/* ---------- Text size ----------
   ## Heading {.larger}   A paragraph. {.smaller}   <!-- section size=larger -->   <!-- box size=smaller -->
   .larger = 125%, .smaller = 75% (--scale-larger / --scale-smaller in tokens.css). Headings scale from their own size (an h2 {.larger} is 125% of an h2). */
.larger{--scale:var(--scale-larger)}     /* amounts are set in tokens.css */
.smaller{--scale:var(--scale-smaller)}
:is(.larger,.smaller):not(h1,h2,h3,h4,.h1,.h2,.h3,.h4){font-size:calc(var(--scale) * 100%)}

/* All capitals: A paragraph. {.caps}   [Word](/x/){.caps}   The source text keeps its own case, so screen readers and Google see it normally */
.caps{text-transform:uppercase;letter-spacing:.04em}

/* A line made only of buttons, under ordinary text, gets more room above it (2.5em instead of 1em).
   Only lines directly in a section or column: buttons in boxes, heroes and therapist cards are untouched,
   and so is a button line that opens its section. */
:is(.sec>.wrap,.col,.subcol)>p:not(:first-child):has(>:is(.btn,.btn-outline)):not(:has(>:not(.btn,.btn-outline))){margin-top:2.5em}

/* ---------- Quick links: a list of jump links shown as small pills. Put {.quick-links} on the line after the list ---------- */
ul.quick-links{list-style:none;margin:1.5rem 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem}
ul.quick-links li{margin:0}
ul.quick-links a{
  display:inline-block;padding:.5em 1.2em;
  border:2px solid var(--navy);border-radius:var(--radius-pill);
  color:var(--navy);text-decoration:none;
  font-family:var(--font-heading);font-weight:var(--weight-btn);font-size:.85rem;letter-spacing:.05em;text-transform:uppercase;
  transition:background-color .15s,color .15s;
}
ul.quick-links a:hover{background:var(--navy);color:var(--white)}
@media (prefers-reduced-motion:reduce){ul.quick-links a{transition:none}}
/* "Back to top" after a section: [Back to top ↑](#quick-links){.back-top} */
.back-top{font-size:.9rem}
p:has(>.back-top:only-child){margin-top:1.5rem}

/* An icon in a circle at the top of a column: ![](/img/icons/x.svg){.col-icon} above the ### */
.col-icon{
  display:block;box-sizing:border-box;width:7.5rem;height:7.5rem;margin:0 auto 1.25rem;
  padding:1.8rem;border-radius:50%;object-fit:contain;background:var(--grey-light);
}
.text-left .col-icon,.col.text-left .col-icon{margin-inline:0}
:is(.bg-grey,[class*="bg-light-"]) .col-icon{background:var(--white)}

/* ---------- Spacing helpers: nudge the space above (mt-) or below (mb-) one element ----------
   Markdown: add the class at the end of the line, e.g.  ## A heading {.mb-large}   or   Some text. {.mt-0}
   Fixed rem values, so they're the same on every screen size. */
.mt-0{margin-top:0 !important}
.mt-small{margin-top:1rem !important}       /* 16px */
.mt-medium{margin-top:1.5rem !important}    /* 24px */
.mt-large{margin-top:2.5rem !important}     /* 40px */
.mt-xlarge{margin-top:4rem !important}      /* 64px */
.mb-0{margin-bottom:0 !important}
.mb-small{margin-bottom:1rem !important}
.mb-medium{margin-bottom:1.5rem !important}
.mb-large{margin-bottom:2.5rem !important}
.mb-xlarge{margin-bottom:4rem !important}


/* ===== structure/therapist.css ===== */
/* ---------- Therapist page ---------- */
.sec-tbanner{
  min-height:clamp(12rem,32vh,17rem);
  display:flex;flex-direction:column;text-align:center;
  padding:calc(var(--arc-h) + 1rem) 0 0;
}
.sec-tbanner>.wrap{
  position:relative;z-index:1;width:100%;
  flex:1;display:flex;flex-direction:column;justify-content:center;
  padding-bottom:2rem;
}
.sec-tbanner .ph-bg::after{content:"";position:absolute;inset:0;background:rgb(50 65 88 / .62)}
.sec-tbanner h1{margin:0}
/* the line(s) under the name in the .md file: credentials */
.sec-tbanner>.wrap>p,.tb-cred{
  margin:.6rem 0 0;color:var(--white);
  font-family:var(--font-nav);font-weight:600;font-size:1.1rem;letter-spacing:.06em;text-transform:uppercase;
}

/* Yellow strips: announcement and office hours */
.strip{position:relative;background:var(--yellow);color:var(--navy);text-align:center;padding:1.5rem 0 0}
.strip>.wrap{padding-bottom:1.5rem}
.strip.pt-arc{padding-top:calc(1.5rem + var(--arc-h))}
.strip p{margin:0;color:var(--navy)}
.strip-announce p{font-family:var(--font-nav);font-weight:600;font-size:1.2rem}
.strip-announce a{color:var(--navy);text-decoration-color:var(--navy)}   /* green links are hard to read on yellow */
.strip h2{font-size:1.3rem;margin:0 0 .5rem}
.hours{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem 2.5rem}
.hours li{font-family:var(--font-nav);font-weight:600;font-size:1.05rem}
.strip p.t-status{margin-top:.75rem;font-size:1.05rem}
.t-status a{color:var(--navy);font-weight:700}

/* Headshot + specialties on the left, bio wraps beside it and then runs full width underneath */
.t-profile>.wrap{display:flow-root}
.t-aside{float:left;width:calc(40% - 1.5rem);margin:0 3rem 1.5rem 0}   /* 40/60 with the bio */
.t-photo{display:block;width:100%;height:auto;margin-bottom:1.5rem}
.t-aside .box{margin-bottom:1.5rem}
.t-aside .btn{display:block}
.t-icbc{margin:1rem 0 0;font-size:.95rem;text-align:center}
/* badges: (e.g. EMDRIA) in a row between the photo and the specialties box */
.t-badges{list-style:none;margin:-.25rem 0 1.5rem;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:1rem}
.t-badges li{margin:0}
.t-badges img{display:block;width:96px;height:96px}
.t-bio>:first-child{margin-top:0}
@media (max-width:799px){
  .t-aside{float:none;width:100%;max-width:26rem;margin:0 auto 2rem}
}

/* Therapist cards on the About page */
.sec-therapists>.wrap{text-align:center}
.t-grid{
  --t-photo:300px;                /* headshot size on the cards */
  --t-gap:3rem;
  list-style:none;margin:2.5rem 0 0;padding:0;
  display:flex;flex-wrap:wrap;justify-content:center;gap:3.5rem var(--t-gap);
}
/* two across on wider screens, one on phones; a single therapist sits in the middle */
.t-card{
  flex:0 1 100%;
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
@media (min-width:800px){.t-card{flex-basis:calc((100% - var(--t-gap)) / 2)}}

/* photo with the yellow "Book with / Meet" pill over its lower-right edge */
.t-card-photo{position:relative;width:min(100%,var(--t-photo));margin-bottom:.5rem}
.t-card-photo>a:first-child{display:block}
.t-card img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.t-pill{
  position:absolute;right:-1.25rem;bottom:0.45rem;
  padding:.6em 1.4em;font-size:.95rem;white-space:nowrap;
  box-shadow:0 6px 16px rgb(0 0 0 / .18);
}
@media (max-width:420px){.t-pill{right:0}}   /* keep it on screen beside a full-width photo */

.t-card h3{margin:1rem 0 .25rem;font-size:calc(1.05rem * var(--scale,1))}
.t-card h3 a{color:inherit;text-decoration:none}
.t-card h3 a:hover{text-decoration:underline}
.t-cred{margin:0 0 .75rem;font-size:.95rem;color:var(--grey-dark)}
.t-summary{max-width:34rem;margin:0 0 1.25rem}
.t-summary p{font-size:.95rem;margin:0 0 .8em;line-height:1.35rem;}
.t-summary>:last-child{margin-bottom:0}
.t-card .btn-outline{margin-top:auto; font-size:0.8rem;}

/* Compact therapist list: <!-- section type=therapists view=compact list=... -->
   Photo with a name pill across its lower edge. 4 across, 2 on tablets, 1 on phones; a short last row is centred. */
.t-compact{
  --t-gap:2rem;
  list-style:none;margin:2.5rem 0 0;padding:0;
  display:flex;flex-wrap:wrap;justify-content:center;gap:2.5rem var(--t-gap);
}
.t-compact>li{flex:0 1 100%;display:flex;flex-direction:column;align-items:center;margin:0}
@media (min-width:560px){.t-compact>li{flex-basis:calc((100% - var(--t-gap)) / 2)}}
@media (min-width:900px){.t-compact>li{flex-basis:calc((100% - var(--t-gap) * 3) / 4)}}
.t-compact-photo{display:block;width:min(100%,220px)}
.t-compact img{display:block;width:100%;aspect-ratio:1;object-fit:cover}
.t-compact-pill{
  margin-top:-1.4rem;position:relative;   /* overlaps the bottom of the photo */
  padding:.5em 1.5em;font-size:.95rem;white-space:nowrap;
  box-shadow:0 6px 16px rgb(0 0 0 / .18);
}


/* ===== structure/form.css ===== */
/* ---------- Contact form ---------- */
.form{display:grid;gap:1.1rem}
.form-row{display:grid;gap:1.1rem}
@media (min-width:600px){.form-row{grid-template-columns:1fr 1fr}}
.field{display:grid;gap:.35rem;min-width:0}
.field label,.pills legend{
  font-family:var(--font-nav);font-weight:600;font-size:.95rem;letter-spacing:.04em;text-transform:uppercase;color:var(--navy);
}
.field input,.field textarea{
  width:100%;font:inherit;font-size:1rem;color:var(--ink);
  padding:.8rem 1rem;background:var(--white);
  border:2px solid var(--grey-light);border-radius:.75rem;
}
.field textarea{resize:vertical;min-height:9rem}
.field input:focus-visible,.field textarea:focus-visible{outline:3px solid var(--navy);outline-offset:2px;border-color:var(--navy)}
.field input:user-invalid{border-color:#b3261e}
.field textarea:user-invalid{border-color:#b3261e}

/* Morning / Afternoon / Evening as pill toggles (real radio buttons underneath) */
.pills{border:0;padding:0;margin:0;min-width:0}
.pills legend{padding:0;margin-bottom:.5rem}
.pills .options{display:flex;flex-wrap:wrap;gap:.6rem}
.pills label{position:relative;cursor:pointer}
.pills input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pills span{
  display:inline-block;padding:.55em 1.4em;
  border:2px solid var(--navy);border-radius:var(--radius-pill);
  background:var(--white);color:var(--navy);
  font-family:var(--font-heading);font-weight:var(--weight-heading);font-size:.9rem;letter-spacing:.06em;text-transform:uppercase;
  transition:background-color .15s,color .15s;
}
.pills input:checked+span{background:var(--navy);color:var(--white)}
.pills input:focus-visible+span{outline:3px solid var(--navy);outline-offset:3px}

.cf-turnstile{margin:0 0 1.25rem;min-height:65px}   /* Turnstile spam check, above the Send button */
.form-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem}
.form-note{margin:0;font-size:.9rem;color:var(--grey-dark)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}   /* spam honeypot */
@media (prefers-reduced-motion:reduce){.pills span{transition:none}}

/* Form with a photo: the text sits over a photo (navy wash) to the left of the form.
   Therapist pages (formImage:) and <!-- section type=form img=... --> */
.form-photo{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex;flex-direction:column;justify-content:center;
  min-height:18rem;padding:2.5rem 2rem;border-radius:var(--radius-box);
  --color-text:var(--white);--color-heading:var(--white);--color-bold:var(--white);--color-link:var(--yellow);
  color:var(--white);
}
.form-bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.form-photo::after{content:"";position:absolute;inset:0;z-index:-1;background:rgb(50 65 88 / .62)}
.form-photo h2{color:var(--white)}
.form-photo>:last-child{margin-bottom:0}

/* Income report request (forms.njk → reportForm) */
/* Dropdowns: same box as the text fields, with the browser arrow swapped for a navy chevron */
.field select{
  -webkit-appearance:none;appearance:none;
  width:100%;font:inherit;font-size:1rem;line-height:inherit;color:var(--ink);
  padding:.8rem 2.75rem .8rem 1rem;
  background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23324158' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center / 1rem;
  border:2px solid var(--grey-light);border-radius:.75rem;cursor:pointer;
  transition:border-color .15s;
}
.field select:hover{border-color:var(--navy)}
.field select:focus-visible{outline:3px solid var(--navy);outline-offset:2px;border-color:var(--navy)}
@media (prefers-reduced-motion:reduce){.field select{transition:none}}
.field[hidden]{display:none}
.field-opt{text-transform:none;letter-spacing:0;font-weight:400;color:var(--grey-dark)}
.field-money{position:relative;display:block}
.field-money>span{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:var(--grey-dark)}
.field-money input{padding-left:1.9rem}
.report-drawn{border:0;margin:0;padding:0;min-width:0;display:grid;gap:.6rem}
.report-drawn legend{padding:0;margin-bottom:.5rem;font-family:var(--font-nav);font-weight:600;font-size:.95rem;letter-spacing:.04em;text-transform:uppercase;color:var(--navy)}
@media (min-width:800px){.report-drawn{grid-template-columns:repeat(3,1fr)}}
.report-check{display:flex;gap:.7rem;align-items:flex-start;padding:.9rem 1rem;background:var(--white);border:2px solid var(--grey-light);border-radius:.75rem;cursor:pointer}
.report-check:has(input:checked){border-color:var(--navy)}
.report-check input{margin-top:.25rem;accent-color:var(--navy)}
.report-check span{display:grid;gap:.2rem;color:var(--ink)}
.report-check strong{color:var(--navy);font-size:1rem;line-height:1.3}
.report-check small{color:var(--grey-dark);font-size:.88rem;line-height:1.4}


/* ===== structure/calculator.css ===== */
/* ---------- Income calculator (built by js/income-calculator.js inside <div id="income-calc">) ---------- */
.calc{--ic-gap:1.5rem;display:grid;gap:var(--ic-gap);text-align:left}
.calc:not(.ic-ready){display:block}
.ic-card{background:var(--white);border-radius:var(--radius-box);padding:1.75rem 1.5rem;border:2px solid var(--grey-light)}
.bg-grey .ic-card{border-color:transparent}
.ic-card h2{margin:0 0 1.25rem;font-size:1.35rem}
.ic-card h3{margin:0 0 .35rem;font-size:1.15rem}
.ic-muted{color:var(--grey-dark)}
.ic-hint{margin:.35rem 0 0;font-size:.85rem;color:var(--grey-dark)}

/* sliders */
.ic-sliders{display:grid;gap:1.5rem}
@media (min-width:700px){.ic-sliders{grid-template-columns:repeat(2,1fr);gap:2rem}}
@media (min-width:1100px){.ic-sliders{grid-template-columns:repeat(4,1fr)}}
.ic-slider-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.5rem}
.ic-slider label{font-family:var(--font-nav);font-weight:600;font-size:.95rem;color:var(--navy)}
.ic-slider output{font-family:var(--font-heading);font-weight:var(--weight-heavy);font-size:1.25rem;color:var(--navy);white-space:nowrap}
.ic-slider-small output{font-size:1.05rem}
.ic-slider input[type=range]{
  -webkit-appearance:none;appearance:none;width:100%;height:.5rem;margin:.5rem 0;
  border-radius:var(--radius-pill);background:var(--grey-light);cursor:pointer;
}
.ic-slider input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:1.6rem;height:1.6rem;border-radius:50%;
  background:var(--yellow);border:3px solid var(--navy);box-shadow:0 2px 6px rgb(0 0 0 / .2);
}
.ic-slider input[type=range]::-moz-range-thumb{
  width:1.6rem;height:1.6rem;border-radius:50%;background:var(--yellow);border:3px solid var(--navy);box-shadow:0 2px 6px rgb(0 0 0 / .2);
}
.ic-slider input[type=range]:focus-visible{outline:3px solid var(--navy);outline-offset:4px}
.ic-revenue-total{margin:1.5rem 0 0;padding-top:1.25rem;border-top:2px solid var(--grey-light);font-size:1.1rem}
.ic-revenue-total strong{font-size:1.35rem}

/* the three results side by side */
.ic-compare{display:grid;gap:var(--ic-gap)}
@media (min-width:960px){.ic-compare{grid-template-columns:repeat(3,1fr)}}
.ic-result{display:flex;flex-direction:column;transition:border-color .2s,box-shadow .2s}
.ic-result.ic-ahead{border-color:var(--yellow);box-shadow:0 0 0 2px var(--yellow)}
.ic-model{font-size:.95rem;color:var(--grey-dark);margin:0 0 1.25rem}
.ic-result .ic-slider{margin-bottom:1rem}
.ic-lines{margin:0 0 1.25rem}
.ic-lines div{display:flex;justify-content:space-between;gap:1rem;padding:.4rem 0;border-bottom:1px solid var(--grey-light)}
.ic-lines dt{margin:0}
.ic-lines dd{margin:0;font-weight:var(--weight-bold);white-space:nowrap}
.ic-income-label{margin:auto 0 .1rem;font-family:var(--font-nav);font-weight:600;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase;color:var(--grey-dark)}
.ic-income{margin:0;font-family:var(--font-heading);font-weight:var(--weight-heavy);font-size:clamp(1.9rem,4vw,2.5rem);line-height:1.1;color:var(--navy)}
.ic-income small{font-size:1rem;font-weight:var(--weight-heading)}
.ic-income-mo{margin:.25rem 0 0;font-size:1.05rem}
.ic-edit{margin:1rem 0 0;font-size:.9rem}
.ic-verdict{margin:0;padding:.9rem 1.25rem;background:var(--yellow);border-radius:1rem;text-align:center;font-family:var(--font-nav);font-weight:600;font-size:1.1rem;line-height:1.4;color:var(--navy)}
.ic-verdict:empty{display:none}

/* expenses */
.ic-group{border-top:2px solid var(--grey-light)}
.ic-group:last-of-type{border-bottom:2px solid var(--grey-light)}
.ic-group summary{
  display:flex;justify-content:space-between;gap:1rem;align-items:center;
  padding:.9rem 0;cursor:pointer;list-style:none;
  font-family:var(--font-heading);font-weight:var(--weight-heading);color:var(--navy);
}
.ic-group summary::-webkit-details-marker{display:none}
.ic-group summary>span:first-child::before{content:"+";display:inline-block;width:1.25rem;font-weight:var(--weight-heavy)}
.ic-group[open] summary>span:first-child::before{content:"−"}
.ic-group-total{font-family:var(--font-body);font-weight:var(--weight-bold);white-space:nowrap}
.ic-group-body{display:grid;gap:.6rem;padding:0 0 1.25rem}
/* matrix: label | amount | three ticks */
.ic-row,.ic-matrix-head,.ic-matrix-total{display:grid;grid-template-columns:minmax(0,1fr) auto 16rem;align-items:center;gap:.5rem 1rem}
.ic-row-label{font-size:.95rem}
.ic-sub{padding-left:1.25rem}
.ic-sub .ic-row-label{color:var(--grey-dark);font-size:.9rem}
.ic-ticks{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}
.ic-tick{font-weight:var(--weight-bold)}
/* who-pays pills: "Covered" (clinic pays, green) and "On You" (you pay, grey) */
.ic-pill{display:inline-block;padding:.15rem .6rem;border-radius:var(--radius-pill);font-family:var(--font-nav);font-weight:600;font-size:.75rem;line-height:1.4;white-space:nowrap}
.ic-pill-covered{background:rgb(7 160 28 / .14);color:rgb(4 110 20)}
.ic-pill-you{background:var(--grey-light);color:var(--navy)}
.ic-matrix-head{padding:.5rem 0;font-family:var(--font-nav);font-weight:600;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;color:var(--navy)}
.ic-matrix-head .ic-tick{color:var(--navy);font-weight:600}
.ic-matrix-total{margin-top:1.25rem;font-weight:var(--weight-bold)}
.ic-matrix-total .ic-row-label{font-size:1.05rem}
.ic-tot{display:grid;color:var(--navy)}
.ic-tot strong{font-size:1.1rem}
.ic-tot-name{display:none}
.ic-calc-value{font-weight:var(--weight-bold);white-space:nowrap;text-align:right}
.ic-input{display:inline-flex;align-items:center;border:2px solid var(--grey-light);border-radius:.6rem;background:var(--white);padding:0 .6rem}
.ic-input:focus-within{border-color:var(--navy)}
.ic-input input{width:6.5rem;border:0;padding:.45rem .25rem;font:inherit;font-size:1rem;text-align:right;background:none;color:var(--ink)}
.ic-input input:focus{outline:none}
.ic-pre,.ic-post{color:var(--grey-dark);font-size:.9rem}
.ic-group-body .ic-sub{grid-template-columns:minmax(0,1fr) auto 16rem}
/* phones: ticks drop under the amount, header becomes per-row labels */
@media (max-width:699px){
  .ic-row,.ic-group-body .ic-sub,.ic-matrix-total{grid-template-columns:minmax(0,1fr) auto}
  .ic-row .ic-ticks{grid-column:1 / -1;font-size:.8rem}
  .ic-row .ic-tick::before{content:attr(data-name);display:block;margin-bottom:.15rem;font-size:.7rem;color:var(--grey-dark)}
  .ic-matrix-head{display:none}
  .ic-matrix-total>span:nth-child(2){display:none}
  .ic-matrix-total .ic-ticks{grid-column:1 / -1}
  .ic-tot-name{display:block;font-size:.75rem;font-weight:600}
}
@media (prefers-reduced-motion:reduce){.ic-result{transition:none}}

/* slider warnings (warn: in income-calculator.js): amber thumb and helper text */
.calc{--ic-warn:rgb(180 83 9)}
.ic-slider.ic-warn .ic-hint{color:var(--ic-warn);font-weight:600}
.ic-slider.ic-warn .ic-hint::before{content:"⚠ "}
.ic-slider.ic-warn output{color:var(--ic-warn)}
.ic-slider.ic-warn input[type=range]{background:rgb(180 83 9 / .25)}
.ic-slider.ic-warn input[type=range]::-webkit-slider-thumb{background:var(--ic-warn);border-color:var(--ic-warn)}
.ic-slider.ic-warn input[type=range]::-moz-range-thumb{background:var(--ic-warn);border-color:var(--ic-warn)}

/* rent: fixed rate, set in site.json (rentPerHour) */
.ic-rent{margin:0 0 1rem;font-size:.95rem}

/* dollar inputs: − / + buttons step $1 / $5 / $10 / $25 depending on the amount */
.ic-money{padding:0 .2rem}
.ic-money input{width:5rem;-moz-appearance:textfield}
.ic-money input::-webkit-inner-spin-button,.ic-money input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.ic-step{
  flex:none;width:1.6rem;height:1.6rem;border:0;border-radius:50%;padding:0;cursor:pointer;
  background:var(--grey-light);color:var(--navy);font:inherit;font-weight:var(--weight-bold);line-height:1;
}
.ic-step:hover{background:var(--navy);color:var(--white)}
.ic-money .ic-pre{margin-left:.35rem}
.ic-money .ic-post{margin-right:.35rem}
.ic-row>.ic-input{justify-self:end}
/* line up sliders in the same row even when labels or helper text wrap differently:
   each slider's label row, track and helper text share the row's three grid tracks */
.ic-sliders .ic-slider{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0}
.ic-sliders .ic-slider-head{align-items:end;align-self:end}
.ic-sliders{row-gap:0}
.ic-sliders .ic-slider .ic-hint{margin-bottom:1.5rem}
.ic-note{margin:.25rem 0 .5rem;padding:.6rem .9rem;background:var(--yellow);color:var(--navy);border-radius:.6rem;font-size:.9rem;line-height:1.45}
.ic-note strong{color:inherit}

/* "Welcome back" banner when saved numbers are restored, and the reset link */
.ic-restored{display:flex;align-items:center;gap:.75rem 1rem;flex-wrap:wrap;padding:.9rem 1rem .9rem 1.25rem;border-radius:var(--radius-box);background:var(--navy);color:var(--white)}
.ic-restored[hidden]{display:none}
.ic-restored p{margin:0;flex:1 1 16rem}
.ic-restored strong{color:var(--yellow)}
.ic-restored button{font:inherit;cursor:pointer;border:0}
.ic-restored-reset{padding:.45rem 1rem;border-radius:var(--radius-pill);background:var(--yellow);color:var(--navy);font-family:var(--font-heading);font-weight:var(--weight-heading)}
.ic-restored-reset:hover{background:var(--white)}
.ic-restored-close{width:2rem;height:2rem;border-radius:50%;background:none;color:var(--white);font-size:1.1rem;line-height:1}
.ic-restored-close:hover{background:rgb(255 255 255 / .15)}
.ic-reset-line{margin:0;text-align:center}
.ic-reset{cursor:pointer;background:none}   /* uses the site .btn-outline pill */
.ic-legend{margin:0 0 1rem;padding-left:1.25rem;display:grid;gap:.3rem}


/* ===== structure/match.css ===== */
/* ---------- Therapist matcher chat (js/therapist-match.js inside <div id="therapist-match">) ---------- */
.tm{
  max-width:46rem;margin:2rem auto 0;text-align:left;
  background:var(--white);border-radius:var(--radius-box);
  box-shadow:0 0 0 2px var(--grey-light);
  display:grid;grid-template-columns:minmax(0,1fr);
}
.tm-log{
  position:relative;display:flex;flex-direction:column;gap:.75rem;
  max-height:min(34rem,70vh);overflow-y:auto;overscroll-behavior:contain;
  padding:1.5rem 1.25rem .75rem;
}
.tm-msg{
  margin:0;max-width:85%;padding:.7rem 1rem;border-radius:1.1rem;
  font-size:1rem;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;
}
.tm-bot{align-self:flex-start;background:var(--grey-light);color:var(--ink);border-bottom-left-radius:.3rem}
.tm-me{align-self:flex-end;background:var(--navy);color:var(--white);border-bottom-right-radius:.3rem}
.tm-typing{letter-spacing:.2em;animation:tm-pulse 1.2s ease-in-out infinite}
@keyframes tm-pulse{50%{opacity:.4}}

.tm-starters{display:flex;flex-wrap:wrap;gap:.5rem;padding:0 1.25rem .75rem}
.tm-starters[hidden]{display:none}
.tm-chip{
  font:inherit;font-family:var(--font-nav);font-weight:600;font-size:.9rem;
  padding:.45em 1em;border-radius:var(--radius-pill);cursor:pointer;
  background:var(--white);color:var(--navy);border:2px solid var(--navy);
}
.tm-chip:hover{background:var(--navy);color:var(--white)}
.tm-chip[aria-pressed="true"]{background:var(--navy);color:var(--white)}
.tm-chip[aria-pressed="true"]::before{content:"✓ "}
.tm-chip[data-other]{border-style:dashed}
.tm-chip-group{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;width:100%}
.tm-chip-label{flex:0 0 4.5rem;font-family:var(--font-nav);font-weight:600;font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--grey-dark)}
.tm-go{font-size:.85rem;padding:.55em 1.4em}
.tm-go:disabled{opacity:.45;cursor:not-allowed}
@media (max-width:480px){.tm-chip-label{flex-basis:100%}}

.tm-form{display:flex;gap:.6rem;align-items:flex-end;padding:.75rem 1.25rem;border-top:2px solid var(--grey-light)}
.tm-form textarea{
  flex:1;min-width:0;resize:none;font:inherit;font-size:1rem;line-height:1.4;color:var(--ink);
  padding:.7rem 1rem;border:2px solid var(--grey-light);border-radius:.75rem;background:var(--white);
}
.tm-form textarea:focus-visible{outline:3px solid var(--navy);outline-offset:2px;border-color:var(--navy)}
.tm-form .btn{flex:none;padding-inline:1.6em}
.tm-busy .tm-send{opacity:.5;cursor:wait}

.tm-foot{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.5rem 1rem;padding:0 1.25rem 1rem}
.tm-note{margin:0;flex:1 1 20rem;font-size:.8rem;line-height:1.45;color:var(--grey-dark)}
.tm-reset{
  font:inherit;font-family:var(--font-nav);font-weight:600;font-size:.85rem;color:var(--navy);
  background:none;border:0;padding:0;text-decoration:underline;cursor:pointer;
}

/* Suggested therapists: each card is one link to the therapist's profile */
.tm-cards{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}
.tm-cards li{margin:0}
.tm-card{
  display:flex;gap:1rem;align-items:center;
  padding:1rem;border:2px solid var(--grey-light);border-radius:var(--radius-box);background:var(--white);
  color:var(--ink);text-decoration:none;transition:border-color .15s,box-shadow .15s;
}
.tm-card:hover{border-color:var(--navy);box-shadow:0 4px 14px rgb(0 0 0 / .08)}
.tm-card:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
.tm-card img{flex:none;width:5rem;height:5rem;border-radius:50%;object-fit:cover}
.tm-card-body{min-width:0;display:grid;gap:.3rem}
.tm-card-name{font-family:var(--font-nav);font-weight:700;font-size:1.1rem;line-height:1.25;color:var(--navy)}
.tm-card-name small{
  display:inline-block;vertical-align:middle;margin-left:.4rem;padding:.1em .6em;border-radius:var(--radius-pill);
  background:var(--yellow);color:var(--navy);font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;
}
.tm-reason{font-size:.95rem;line-height:1.45}
.tm-more{font-family:var(--font-nav);font-weight:600;font-size:.85rem;color:var(--navy);text-decoration:underline}
@media (max-width:480px){
  .tm-card{align-items:flex-start}
  .tm-card img{width:4rem;height:4rem}
  .tm-msg{max-width:92%}
}

.tm-crisis{padding:.8rem 1rem;border-radius:.75rem;background:var(--yellow);color:var(--navy);font-size:.95rem}
.tm-crisis p{margin:0}
.tm-crisis a{color:inherit;font-weight:var(--weight-bold)}
@media (prefers-reduced-motion:reduce){.tm-typing{animation:none}}


/* ===== structure/report.css ===== */
/* ---------- Income report preview (js/income-report-page.js) ---------- */
.rp{display:grid;gap:1.5rem;text-align:left}
.rp-form{display:grid;gap:1rem 1.5rem;background:var(--white);border-radius:var(--radius-box);padding:1.5rem}
@media (min-width:800px){.rp-form{grid-template-columns:1fr 1fr}.rp-drawn{grid-column:1 / -1}}
.rp-q{display:grid;gap:.35rem;margin:0;border:0;padding:0;min-width:0}
.rp-q label,.rp-q legend{font-family:var(--font-nav);font-weight:600;font-size:.95rem;color:var(--navy);padding:0}
.rp-opt{font-weight:400;color:var(--grey-dark)}
.rp-q>input,.rp-q select{font:inherit;padding:.5rem .7rem;border:2px solid var(--grey-light);border-radius:.6rem;background:var(--white);color:var(--ink)}
.rp-q .ic-input{justify-self:start}
.rp-drawn{display:grid;gap:.6rem}
@media (min-width:800px){.rp-drawn{grid-template-columns:repeat(3,1fr)}.rp-drawn legend{grid-column:1 / -1}}
.rp-check{display:flex;gap:.6rem;align-items:flex-start;padding:.75rem;border:2px solid var(--grey-light);border-radius:.6rem;cursor:pointer;font-weight:400 !important}
.rp-check:has(input:checked){border-color:var(--navy)}
.rp-check span{display:grid;gap:.2rem}
.rp-check small{color:var(--grey-dark);font-size:.85rem}
.rp-version{margin:0 0 .75rem;display:flex;gap:.75rem;align-items:center;font-family:var(--font-nav);font-weight:600;color:var(--navy)}
.rp-version select{font:inherit;padding:.3em .6em;border:2px solid var(--grey-light);border-radius:.5rem}
.rp-page{border:0;border-top:2px dashed var(--grey-light);margin:2rem 0}
.rp-lead{margin:0;font-family:var(--font-nav);font-weight:600;color:var(--navy)}

.rp-report{background:var(--white);border-radius:var(--radius-box);padding:2rem 1.5rem;max-width:52rem;width:100%;margin:0 auto;box-shadow:0 2px 12px rgb(0 0 0 / .08)}
.rp-head{border-bottom:3px solid var(--yellow);margin-bottom:1.5rem}
.rp-kicker{margin:0;font-family:var(--font-nav);font-weight:600;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--grey-dark)}
.rp-head h2{margin:.2rem 0 .5rem}
.rp-sec{margin:0 0 2rem}
.rp-sec h3{margin:0 0 .75rem;padding-top:.5rem}
.rp-note{font-size:.9rem;color:var(--grey-dark);background:var(--grey-light);padding:.6rem .9rem;border-radius:.6rem}
.rp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.75rem;margin:0 0 1rem}
.rp-stats div{background:var(--grey-light);border-radius:.6rem;padding:.6rem .8rem}
.rp-stats dt{font-size:.8rem;color:var(--grey-dark)}
.rp-stats dd{margin:0;font-weight:var(--weight-bold);color:var(--navy)}
.rp-table{overflow-x:auto;margin:0 0 1rem}
.rp-table table{margin:0;font-size:.85rem}
.rp-table td{text-align:right;white-space:nowrap}
.rp-table thead th{text-align:right}
.rp-table thead th:first-child{text-align:left}
.rp-table tbody th{font-family:var(--font-body);font-weight:400;text-transform:none;letter-spacing:0;font-size:1em;color:var(--ink);white-space:normal}
.rp-strong td,.rp-strong th{font-weight:var(--weight-bold) !important;color:var(--navy) !important}
.rp-small table{font-size:.78rem}
.rp-chart{margin:0 0 1rem}
.rp-chart svg{width:100%;height:auto;display:block}
.rp-chart text{font-size:11px;fill:var(--grey-dark)}
.rp-grid{stroke:var(--grey-light)}
.rp-zero{stroke:var(--grey-dark);stroke-dasharray:4 3}
.rp-chart polyline{fill:none;stroke-width:3}
.rp-chart figcaption{font-size:.85rem;color:var(--grey-dark);margin-top:.25rem}
.rp-key{white-space:nowrap;margin-left:.5rem}
.rp-key::before{content:"";display:inline-block;width:1rem;height:3px;margin-right:.3rem;vertical-align:middle;background:currentColor}
polyline.rp-s0{stroke:var(--navy)} .rp-key.rp-s0{color:var(--navy)}
polyline.rp-s1{stroke:rgb(214 160 0)} .rp-key.rp-s1{color:rgb(150 110 0)}
polyline.rp-s2{stroke:var(--green)} .rp-key.rp-s2{color:var(--green)}
.rp-q[hidden]{display:none}
.rp>*,.rp-sec,.rp-table{min-width:0}
.rp-h{margin:1.25rem 0 .5rem;font-size:1rem;color:var(--navy)}
.rp-foot{margin-top:.35rem}
.rp-foot p{margin:0;font-size:.78rem;color:var(--grey-dark)}
.rp-table td.rp-good{color:var(--green);font-weight:var(--weight-bold)}
.rp-table td.rp-bad{color:rgb(200 30 30);font-weight:var(--weight-bold)}


/* ===== structure/footer.css ===== */
/* Footer: light grey, uneven arc along the top edge */
.site-footer{
  position:relative;
  background:var(--grey-light);
  padding:2rem 0 1.5rem;
  font-size:1rem;
  color:var(--ink);
}
/* the arc sits just above the footer, over the bottom of the last section */
.arc.arc-top{position:absolute;left:0;bottom:auto;top:calc(var(--arc-h) * -1 + 1px)}

.footer-top{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}
.social{display:flex;gap:.25rem;list-style:none;margin:0;padding:0}
.social a,.to-top{
  display:grid;place-items:center;
  width:44px;height:44px;
  border-radius:50%;
  color:var(--navy);
  transition:background-color .15s;
}
.social a:hover,.to-top:hover{background:var(--yellow)}
.to-top .icon{width:28px;height:28px;stroke-width:3}

/* Contact: three columns divided by | */
.footer-contact{display:grid;grid-template-columns:1fr;text-align:center;font-size:1.1rem;}
.footer-contact p{margin:0;padding:.75rem 0}
.footer-contact p+p{border-top:1px solid var(--grey-dark)}
.footer-contact a{color:var(--ink)}
@media (min-width:700px){
  .footer-contact{grid-template-columns:repeat(3,1fr)}
  .footer-contact p{padding:.25rem 1rem}
  .footer-contact p+p{border-top:0;border-left:1px solid var(--grey-dark)}
}

.land{
  max-width:62rem;margin:1.75rem auto 1rem;
  font-size:.9rem;line-height:1.6;text-align:center;color:var(--grey-dark);
}
.legal,.copyright{margin:0 0 .5rem;text-align:center;font-size:.9rem}
.copyright{color:var(--grey-dark)}

@media (prefers-reduced-motion:reduce){
  .social a,.to-top{transition:none}
}


/* ===== structure/video.css ===== */
/* YouTube click-to-play (nothing loads from YouTube until the play button is pressed) */
.video{position:relative;aspect-ratio:16/9;margin:1.5rem 0;background:var(--navy);overflow:hidden}
.video-rounded{border-radius:var(--radius-box)}
/* size=small: a smaller player (400px at most), e.g. a video tucked into a box or list */
.video-small{max-width:25rem}
.text-center .video-small,.col.text-center .video-small{margin-inline:auto}
.video-center{margin-inline:auto}   /* align=center: centred on its own, whatever the text around it does */
.video-small .video-btn{width:3.5rem;height:3.5rem}
.video-small .video-btn::after{border-width:.65rem 0 .65rem 1.05rem}
.video-small .video-label{font-size:.85rem}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.video-play{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.9rem;
  padding:1rem;text-align:center;color:var(--white);text-decoration:none;
}
.video-play img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.4}   /* = a 60% navy wash (the .video background shows through) */
.video-btn{position:relative;width:4.5rem;height:4.5rem;border-radius:50%;background:var(--yellow);transition:transform .15s}
.video-btn::after{
  content:"";position:absolute;left:54%;top:50%;transform:translate(-50%,-50%);
  border-style:solid;border-width:.8rem 0 .8rem 1.3rem;border-color:transparent transparent transparent var(--navy);
}
.video-play:hover .video-btn{transform:scale(1.07)}
.video-label{position:relative;font-family:var(--font-nav);font-weight:600;font-size:1rem;letter-spacing:.04em;text-transform:uppercase}
.video-note{position:relative;font-size:.8rem;opacity:.85}
.video-play:focus-visible{outline:3px solid var(--yellow);outline-offset:-6px}
@media (prefers-reduced-motion:reduce){.video-btn{transition:none}}

/* Video grid: <!-- videos per=4 --> … <!-- /videos -->. Thumbnails only (the title sits underneath, so the
   label over the picture is hidden for sighted visitors but still read by screen readers). */
.video-grid{list-style:none;margin:2rem 0 0;padding:0;display:grid;gap:2rem 1.5rem;grid-template-columns:1fr;text-align:left}
@media (min-width:600px){.video-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1000px){.video-grid{grid-template-columns:repeat(var(--per),1fr)}}
.vg-item{margin:0}
.vg-item .video{margin:0 0 .75rem}
.vg-item .video-label,.vg-item .video-note{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.vg-item .video-btn{width:3.25rem;height:3.25rem}
.vg-item .video-btn::after{border-width:.6rem 0 .6rem .95rem}
.vg-title{margin:0;font-family:var(--font-nav);font-weight:600;font-size:1rem;line-height:1.35;color:var(--navy)}
.vg-len{margin:.2rem 0 0;font-size:.85rem;color:var(--grey-dark)}
.bg-navy .vg-title{color:var(--white)}
.bg-navy .vg-len{color:var(--grey-light)}


/* ===== structure/consent.css ===== */
/* Cookie notice and settings */
.linklike,.cc-link{
  background:none;border:0;padding:0;font:inherit;
  color:var(--color-link);text-decoration:underline;text-underline-offset:.2em;cursor:pointer;
}
.cc-banner{
  position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:100;
  max-width:60rem;margin:0 auto;
  display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.5rem;
  padding:1.1rem 1.4rem calc(1.1rem + env(safe-area-inset-bottom,0px));
  background:var(--white);color:var(--ink);
  border:1px solid var(--grey-light);border-radius:var(--radius-box);
  box-shadow:0 12px 40px rgb(0 0 0 / .18);
  font-size:.95rem;line-height:1.5;
}
.cc-banner[hidden]{display:none}
.cc-text{flex:1 1 22rem;margin:0}
.cc-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem}
.cc-actions .btn,.cc-actions .btn-outline{padding:.55em 1.4em;font-size:.85rem}

.cc-dialog{
  width:min(36rem,calc(100% - 2rem));max-height:calc(100dvh - 2rem);
  padding:0;border:0;border-radius:var(--radius-box);
  color:var(--ink);box-shadow:0 20px 60px rgb(0 0 0 / .35);
}
.cc-dialog::backdrop{background:rgb(50 65 88 / .6)}
.cc-panel{padding:1.75rem}
.cc-panel h2{font-size:1.25rem;margin:0 0 1rem}
.cc-cat{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 0;border-top:1px solid var(--grey-light)}
.cc-cat h3{font-size:.95rem;margin:0 0 .25rem}
.cc-cat p{margin:0;font-size:.9rem;line-height:1.5;color:var(--grey-dark)}
.cc-panel .cc-actions{margin-top:1.25rem}
.cc-none{margin:0;font-size:.9rem;color:var(--grey-dark)}

/* toggle switch (a real checkbox underneath) */
.cc-switch{position:relative;flex:none;width:3rem;height:1.75rem}
.cc-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cc-switch span{position:absolute;inset:0;border-radius:var(--radius-pill);background:var(--grey-dark);transition:background-color .15s}
.cc-switch span::after{
  content:"";position:absolute;top:.2rem;left:.2rem;width:1.35rem;height:1.35rem;
  border-radius:50%;background:var(--white);transition:transform .15s;
}
.cc-switch input:checked+span{background:var(--navy)}
.cc-switch input:checked+span::after{transform:translateX(1.25rem)}
.cc-switch input:disabled{cursor:not-allowed}
.cc-switch input:disabled+span{opacity:.55}
.cc-switch input:focus-visible+span{outline:3px solid var(--navy);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.cc-switch span,.cc-switch span::after{transition:none}}
.cc-actions .cc-link{font-size:.9rem}


/* ===== structure/gallery.css ===== */
/* ---------- Film-strip gallery ----------
   <!-- gallery rounded per=2 ratio=4-3 label="Our clinic" -->  ![Alt](/img/a.jpg "Caption")  ...  <!-- /gallery --> */
.gallery{--per:2;--gap:1rem;position:relative;margin:1.5rem 0}
.gallery-per-1{--per:1}
.gallery-per-2{--per:2}
.gallery-per-3{--per:3}
.gallery-per-4{--per:4}
@media (max-width:899px){.gallery-per-3,.gallery-per-4{--per:2}}
@media (max-width:599px){.gallery-per-2,.gallery-per-3,.gallery-per-4{--per:1}}   /* phones: one at a time */

.gallery-track{
  display:flex;gap:var(--gap);
  list-style:none;margin:0;padding:0;
  overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scrollbar-width:none;
}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-track:focus-visible{outline:3px solid var(--navy);outline-offset:4px}
.gallery-item{
  flex:0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
  min-width:0;scroll-snap-align:start;
}
.gallery-open{display:block;cursor:zoom-in}
.gallery-open:focus-visible{outline:3px solid var(--navy);outline-offset:3px}
.gallery-open img{display:block;width:100%;height:auto;aspect-ratio:var(--ratio,auto);object-fit:cover;transition:opacity .15s}
.gallery-open:hover img{opacity:.92}
.gallery-rounded .gallery-open img{border-radius:var(--radius-box)}
.gallery-circle .gallery-open img{border-radius:50%}

/* chevron buttons (only shown once the script is running) */
.gallery-nav{
  display:none;position:absolute;top:50%;z-index:2;
  width:3rem;height:3rem;padding:0;
  border:0;border-radius:50%;background:var(--yellow);
  box-shadow:0 4px 14px rgb(0 0 0 / .25);cursor:pointer;transform:translateY(-50%);
  transition:opacity .15s;
}
.gallery[data-ready] .gallery-nav{display:block}
.gallery[data-static] .gallery-nav{display:none}
.gallery-prev{left:.6rem}
.gallery-next{right:.6rem}
.gallery-nav::before{
  content:"";position:absolute;top:50%;left:50%;
  width:.75rem;height:.75rem;
  border-right:3px solid var(--navy);border-bottom:3px solid var(--navy);
}
.gallery-prev::before{transform:translate(-30%,-50%) rotate(135deg)}
.gallery-next::before{transform:translate(-70%,-50%) rotate(-45deg)}
.gallery-nav:disabled{opacity:0;pointer-events:none}
.gallery-nav:focus-visible{outline:3px solid var(--navy);outline-offset:3px}

/* ---------- Enlarged view ---------- */
html.lb-open{overflow:hidden}
.lightbox{
  position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;
  border:0;background:transparent;color:var(--white);overflow:hidden;
}
.lightbox::backdrop{background:rgb(20 28 40 / .93)}
.lb-figure{
  height:100%;margin:0;padding:4rem 1rem 1.5rem;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.9rem;
}
.lb-img{
  max-width:min(94vw,1400px);max-height:calc(100dvh - 9rem);
  width:auto;height:auto;object-fit:contain;border-radius:.4rem;
}
.lb-caption{max-width:50rem;margin:0;text-align:center;font-size:1rem;line-height:1.5}
.lb-count{display:block;margin-top:.15rem;font-size:.85rem;opacity:.75}
.lb-text:empty{display:none}

.lb-btn{
  position:absolute;width:3rem;height:3rem;padding:0;
  border:0;border-radius:50%;background:rgb(255 255 255 / .16);color:var(--white);cursor:pointer;
  transition:background-color .15s;
}
.lb-btn:hover{background:rgb(255 255 255 / .3)}
.lb-btn:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.lb-close{top:1rem;right:1rem}
.lb-prev,.lb-next{top:50%;transform:translateY(-50%)}
.lb-prev{left:1rem}
.lb-next{right:1rem}
.lb-single .lb-prev,.lb-single .lb-next{display:none}
.lb-close::before,.lb-close::after{
  content:"";position:absolute;top:50%;left:50%;width:1.4rem;height:2px;background:currentColor;
}
.lb-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.lb-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.lb-prev::before,.lb-next::before{
  content:"";position:absolute;top:50%;left:50%;width:.8rem;height:.8rem;
  border-right:3px solid currentColor;border-bottom:3px solid currentColor;
}
.lb-prev::before{transform:translate(-30%,-50%) rotate(135deg)}
.lb-next::before{transform:translate(-70%,-50%) rotate(-45deg)}
@media (max-width:599px){
  .lb-prev,.lb-next{top:auto;bottom:1rem;transform:none}
  .lb-prev{left:calc(50% - 4rem)}
  .lb-next{right:calc(50% - 4rem)}
  .lb-figure{padding-bottom:5.5rem}
  .lb-img{max-height:calc(100dvh - 12rem)}
}
@media (prefers-reduced-motion:reduce){.gallery-nav,.lb-btn,.gallery-open img{transition:none}}


/* ===== structure/icons.css ===== */
/* ---------- Icon grid ----------
   Markdown:  <!-- icons per=4 -->  - ![](/img/icons/a.png) Label  ...  <!-- /icons -->
   Words: inline (icon left of the label), circle (white circle behind the icon). per= most per row (default 4). */
.icons{--icon:7rem}
@media (min-width:1000px){.icons{--icon:9.5rem}}

/* :not([class]) so this beats the "centre a narrow list" rule of text=center sections: the grid always fills the wrap */
.icons>ul:not([class]){
  list-style:none;margin:2.5rem 0;padding:0;
  width:auto;text-align:center;
  display:grid;gap:2.5rem 1.5rem;
  grid-template-columns:repeat(2,1fr);
}
@media (min-width:700px){.icons>ul:not([class]){grid-template-columns:repeat(min(var(--per),3),1fr)}}
@media (min-width:1000px){.icons>ul:not([class]){grid-template-columns:repeat(var(--per),1fr)}}
/* per=4 never leaves one on its own: 4 across, then 2 x 2, then one per row on phones */
.icons-per-4:not(.icons-inline)>ul:not([class]){grid-template-columns:1fr}
@media (min-width:560px){.icons-per-4:not(.icons-inline)>ul:not([class]){grid-template-columns:repeat(2,1fr)}}
@media (min-width:1000px){.icons-per-4:not(.icons-inline)>ul:not([class]){grid-template-columns:repeat(4,1fr)}}
.icons li{
  margin:0;
  display:flex;flex-direction:column;align-items:center;gap:1rem;
  font-family:var(--font-nav);font-weight:800;font-size:clamp(.9rem,1.45vw,1.3rem);line-height:1.35;
  letter-spacing:.1em;text-transform:uppercase;color:var(--navy);
}
.icons img{width:var(--icon);height:var(--icon);object-fit:contain;flex:none}
.icons-circle img{background:var(--white);border-radius:50%;padding:calc(var(--icon) * .24)}

/* inline: the icon sits left of the label; one per row on phones */
.icons-inline{--icon:5rem}
@media (min-width:1000px){.icons-inline{--icon:6.5rem}}
.icons-inline>ul:not([class]){grid-template-columns:1fr;gap:1.75rem 2rem;text-align:left}
@media (min-width:700px){.icons-inline>ul:not([class]){grid-template-columns:repeat(min(var(--per),2),1fr)}}
@media (min-width:1000px){.icons-inline>ul:not([class]){grid-template-columns:repeat(var(--per),1fr)}}
.icons-inline li{flex-direction:row;gap:1.25rem;font-size:clamp(.85rem,1.2vw,1rem)}

/* A lone item on the last row goes in the middle, not under the first column */
@media (min-width:700px) and (max-width:999px){
  .icons-inline li:last-child:nth-child(odd){grid-column:1/-1;justify-self:center}
}
@media (min-width:1000px){
  .icons-per-3 li:last-child:nth-child(3n+1){grid-column:2}
  .icons-per-5 li:last-child:nth-child(5n+1){grid-column:3}
}


/* ===== structure/tiles.css ===== */
/* ---------- Tiles: rounded cards in a row (the journey-card look, without the flip) ----------
   Markdown:  <!-- tiles per=4 -->  ### Big top line  Text...  ### Next tile ...  <!-- /tiles -->
   Words: white (default) | yellow | grey | navy.  per= most tiles per row on wide screens (2-4). */
.tiles{
  --tile-bg:var(--white);
  list-style:none;margin:2rem 0;padding:0;
  display:grid;gap:1.25rem;
  grid-template-columns:1fr;
}
@media (min-width:600px){.tiles{grid-template-columns:repeat(min(var(--per),2),1fr)}}
@media (min-width:1000px){.tiles{grid-template-columns:repeat(var(--per),1fr)}}
.tile{
  /* own colours, so tiles read the same on any band */
  --color-text:var(--ink);--color-heading:var(--navy);--color-bold:var(--navy);--color-link:var(--green);
  background:var(--tile-bg);color:var(--color-text);
  border-radius:2.5rem;
  padding:2rem 1.5rem;
  margin:0;
  display:flex;flex-direction:column;justify-content:center;
  text-align:center;
}
.tile h3{
  margin:0 0 .5rem;
  font-size:clamp(1.9rem,3.2vw,2.5rem);line-height:1.1;
  text-transform:none;letter-spacing:0;
}
.tile p{margin:0 0 .35rem;font-size:1rem;line-height:1.45}
.tile>:last-child{margin-bottom:0}

.tiles-yellow{--tile-bg:var(--yellow)}
.tiles-grey{--tile-bg:var(--grey-light)}
.tiles-navy .tile{--tile-bg:var(--navy);--color-text:var(--white);--color-heading:var(--yellow);--color-bold:var(--white);--color-link:var(--yellow)}
/* a white band needs a little definition around white tiles */
.bg-white .tiles:not(.tiles-yellow,.tiles-grey,.tiles-navy) .tile{border:2px solid var(--grey-light)}


/* ===== structure/journey.css ===== */
/* ---------- Journey: flip cards that zig-zag down the page ----------
   Markdown:  <!-- journey -->  ### Card title  Back text + [link](/url/)  ...  <!-- /journey -->
   Add "chevrons" (<!-- journey chevrons -->) to join the cards with chevrons instead of dots.
   Phones/tablets: cards stacked, shown "already flipped" (title, text and link together).
   Wide screens with a mouse: cards zig-zag left/right and flip on hover. */
.journey{
  --j-front:var(--white);          /* card colour (and the front, when cards flip) */
  --j-back:var(--navy);            /* back of the card, when cards flip */
  --j-trail:var(--white);          /* the dots / chevrons between cards */
  --j-gap:4.5rem;                  /* space between stacked cards (phones) */
  --j-trail-img:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 44'%3E%3Ccircle cx='7' cy='7' r='6'/%3E%3Ccircle cx='27' cy='21' r='9'/%3E%3Ccircle cx='51' cy='35' r='6'/%3E%3C/svg%3E");
  list-style:none;
  margin:2.5rem auto 0;padding:0;
  max-width:60rem;
  display:flex;flex-direction:column;gap:var(--j-gap);
}
.journey-chevrons{
  --j-trail-img:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 44' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9 2-2 9M21 18l9 2-2 9M39 27l9 2-2 9'/%3E%3C/svg%3E");
}
.j-card{position:relative}

/* the trail between this card and the next (one image, mirrored on every other card) */
.j-card:not(:last-child)::after{
  content:"";position:absolute;
  width:4.5rem;height:3.3rem;
  left:calc(50% - 2.25rem);top:calc(100% + (var(--j-gap) - 3.3rem) / 2);
  background:var(--j-trail);
  -webkit-mask:var(--j-trail-img) center/contain no-repeat;
          mask:var(--j-trail-img) center/contain no-repeat;
}
.j-card:nth-child(even)::after{transform:scaleX(-1)}

/* Stacked (default): one card, title on top */
.j-inner{
  background:var(--j-front);color:var(--navy);
  border-radius:3rem;
  padding:2rem 1.75rem;
  text-align:center;
}
.j-front h3{margin:0 0 .5rem;font-size:clamp(1.3rem,2.4vw,1.6rem);text-transform:none;letter-spacing:0}
.j-back p{margin:0 0 .6rem;font-size:1rem;line-height:1.5}
.j-back>:last-child{margin-bottom:0}
.j-back a{font-weight:var(--weight-bold)}

/* Wide screens: zig-zag. Odd cards on the left, even cards on the right, each just below the last */
@media (min-width:900px){
  .journey{--j-h:11.5rem;gap:0}
  .j-card{width:44%}
  .j-card:nth-child(even){align-self:flex-end}
  .j-inner{min-height:var(--j-h);display:flex;flex-direction:column;justify-content:center;border-radius:var(--radius-pill);padding:1.5rem 3rem}
  /* trail: from this card's bottom corner, across the gap, towards the next card */
  .j-card:not(:last-child)::after{left:calc(100% + 1.5rem);top:calc(100% - 2rem)}
  .j-card:nth-child(even):not(:last-child)::after{left:auto;right:calc(100% + 1.5rem)}
}

/* Wide screens with a mouse: the card flips on hover (and on keyboard focus of its link) */
@media (min-width:900px) and (hover:hover){
  .j-card{perspective:1400px}
  .j-inner{
    position:relative;display:block;height:var(--j-h);
    background:none;padding:0;
    transform-style:preserve-3d;
    transition:transform .6s cubic-bezier(.3,.7,.3,1);
  }
  .j-face{
    position:absolute;inset:0;
    display:flex;flex-direction:column;justify-content:center;align-items:center;
    border-radius:var(--radius-pill);
    padding:1.25rem 3rem;
    -webkit-backface-visibility:hidden;backface-visibility:hidden;
  }
  .j-front{background:var(--j-front)}
  .j-front h3{margin:0}
  .j-back{
    background:var(--j-back);color:var(--white);
    --color-link:var(--yellow);--color-bold:var(--yellow);
    transform:rotateY(180deg);
  }
  .j-back :focus-visible{outline-color:var(--yellow)}
  .j-back::before{
    content:attr(data-title);margin:0 0 .35rem;
    font-family:var(--font-heading);font-weight:var(--weight-heading);font-size:1.2rem;color:var(--white);
  }
  .j-back p{font-size:.9rem;line-height:1.45;margin-bottom:.4rem}
  .j-card:hover .j-inner,.j-card:focus-within .j-inner{transform:rotateY(180deg)}
}
@media (prefers-reduced-motion:reduce){.j-inner{transition:none}}


/* ===== structure/flipcards.css ===== */
/* ---------- Flip cards: the journey card in a grid, 1-4 across, optionally numbered ----------
   Markdown:  <!-- flipcards per=3 numbered -->  ### Front title  Back text + [link](/url/)  ...  <!-- /flipcards -->
   Touch screens (and no-hover devices): both sides show together, title on top.
   With a mouse: the card flips on hover, or on keyboard focus.
   Both faces sit in the same grid cell, so every card grows to fit its longer side (no fixed heights). */
.flipcards{
  --fc-front:var(--white);         /* front of the card */
  --fc-front-text:var(--navy);
  --fc-back:var(--navy);           /* back of the card */
  --fc-num-bg:var(--yellow);       /* number badge (numbered) */
  --fc-num-text:var(--navy);
  list-style:none;margin:2rem 0;padding:0;
  display:grid;gap:1.25rem;
  grid-template-columns:1fr;
}
@media (min-width:600px){.flipcards{grid-template-columns:repeat(min(var(--per),2),1fr)}}
@media (min-width:1000px){.flipcards{grid-template-columns:repeat(var(--per),1fr)}}
.flipcards[style*="--per:1"]{max-width:40rem;margin-inline:auto}

.flipcards-yellow{--fc-front:var(--yellow)}
.flipcards-grey{--fc-front:var(--grey-light)}
.flipcards-navy{--fc-front:var(--navy);--fc-front-text:var(--yellow);--fc-back:var(--yellow)}
.flipcards-dark-grey{--fc-front:var(--grey-dark);--fc-front-text:var(--white)}
/* a white band needs a little definition around white cards */
.bg-white .flipcards:not(.flipcards-yellow,.flipcards-grey,.flipcards-dark-grey,.flipcards-navy) .fc-front{box-shadow:inset 0 0 0 2px var(--grey-light)}

.fc-card{margin:0;display:flex}
.fc-inner{flex:1;display:grid}
.fc-face{
  grid-area:1/1;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;border-radius:2.5rem;padding:2rem 1.5rem;
}
.fc-front{background:var(--fc-front);color:var(--fc-front-text)}
.fc-front h3{margin:0;font-size:clamp(1.3rem,2.2vw,1.6rem);text-transform:none;letter-spacing:0;color:inherit}
.fc-back p{margin:0 0 .5rem;font-size:1rem;line-height:1.5}
/* An icon on the front (### ![](/img/icons/x.png) Title): 75% of the card's width, never more than 10rem */
.fc-front h3:has(img){align-self:stretch}
.fc-front h3 picture,.fc-front h3 img{display:block;width:75%;max-width:10rem;height:auto;margin:0 auto .75rem}
.fc-front h3 picture img{width:100%;max-width:none;margin:0}
.fc-back>:last-child{margin-bottom:0}
.fc-back a{font-weight:var(--weight-bold)}

.fc-num{
  display:grid;place-items:center;flex:none;
  width:2.6rem;height:2.6rem;margin:0 0 .75rem;border-radius:50%;
  background:var(--fc-num-bg);color:var(--fc-num-text);
  font-family:var(--font-heading);font-weight:var(--weight-heavy);font-size:1.25rem;line-height:1;
}
.flipcards-yellow{--fc-num-bg:var(--navy);--fc-num-text:var(--yellow)}

/* Touch / no hover: one card showing both sides. The front sits on top, the back's text under it. */
@media not (hover:hover){
  .fc-inner{background:var(--fc-front);color:var(--fc-front-text);border-radius:2.5rem;display:flex;flex-direction:column}
  .fc-face{grid-area:auto;background:none;border-radius:0}
  .fc-front{padding-bottom:.25rem}
  .fc-back{padding-top:.5rem;color:var(--ink);--color-bold:var(--navy)}
  :is(.flipcards-navy,.flipcards-dark-grey) .fc-back{color:var(--white);--color-link:var(--yellow);--color-bold:var(--white)}
  .fc-back .fc-num{display:none}
  .bg-white .flipcards:not(.flipcards-yellow,.flipcards-grey,.flipcards-dark-grey,.flipcards-navy) .fc-inner{box-shadow:inset 0 0 0 2px var(--grey-light)}
  .bg-white .flipcards .fc-front{box-shadow:none}
}

/* With a mouse: flip on hover, or when the card (or a link in it) has keyboard focus */
@media (hover:hover){
  .fc-card{perspective:1400px}
  .fc-inner{transform-style:preserve-3d;transition:transform .6s cubic-bezier(.3,.7,.3,1)}
  .fc-face{-webkit-backface-visibility:hidden;backface-visibility:hidden;min-height:11rem}
  .fc-back{
    background:var(--fc-back);color:var(--white);
    --color-link:var(--yellow);--color-bold:var(--yellow);
    transform:rotateY(180deg);
  }
  .flipcards-navy .fc-back{color:var(--navy);--color-link:var(--navy);--color-bold:var(--navy)}
  .fc-back :focus-visible{outline-color:var(--yellow)}
  .flipcards-navy .fc-back :focus-visible{outline-color:var(--navy)}
  .fc-back .fc-num{width:2rem;height:2rem;font-size:1rem;margin-bottom:.5rem}
  .fc-back::before{
    content:attr(data-title);order:0;margin:0 0 .4rem;
    font-family:var(--font-heading);font-weight:var(--weight-heading);font-size:1.15rem;line-height:1.25;color:inherit;
  }
  .fc-back .fc-num{order:-1}
  .fc-back p{font-size:.95rem;line-height:1.45}
  .fc-card:hover .fc-inner,.fc-card:focus-within .fc-inner{transform:rotateY(180deg)}
  .fc-card[tabindex]:focus-visible{outline:none}
  .fc-card[tabindex]:focus-visible .fc-back{outline:3px solid var(--navy);outline-offset:3px}
}
@media (prefers-reduced-motion:reduce){.fc-inner{transition:none}}


/* ===== structure/articles.css ===== */
/* ---------- Reading Room (src/content/articles/) ---------- */
/* Listing cards: <!-- section type=articles --> (max=3 for only the newest few). Up to 3 across. */
/* auto-fit + centred: one or two articles sit in the middle instead of hugging the left edge */
.a-grid{list-style:none;margin:0;padding:0;display:grid;gap:1.75rem;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),23rem));justify-content:center}
.a-card{margin:0;display:flex;flex-direction:column;background:var(--white);border-radius:var(--radius-box);overflow:hidden;text-align:left}
.bg-white .a-card{box-shadow:inset 0 0 0 2px var(--grey-light)}
.a-card-img{display:block}
.a-card-img img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.a-card-body{flex:1;display:flex;flex-direction:column;padding:1.25rem 1.5rem 1.5rem}
.a-card-date{margin:0 0 .35rem;font-family:var(--font-nav);font-size:.85rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--grey-dark)}
.a-card h3{margin:0 0 .6rem;font-size:clamp(1.2rem,1.8vw,1.4rem);line-height:1.25;text-transform:none;letter-spacing:0}
.a-card h3 a{color:var(--navy);text-decoration:none}
.a-card h3 a:hover{text-decoration:underline}
.a-card-sum{margin:0 0 1.25rem;font-size:1rem;line-height:1.55}
.a-card-more{margin-top:auto;align-self:flex-start}

/* Article pages: "Reading Room" above the title, by-line under it (both added by article.njk) */
.article-kicker{margin:0 0 .5rem;font-family:var(--font-nav);font-weight:600;font-size:.95rem;letter-spacing:.08em;text-transform:uppercase}
.article-kicker+h1{margin-top:0}
.article-kicker a{color:inherit;text-decoration:none;border-bottom:2px solid var(--yellow)}
.article-kicker a:hover{border-bottom-color:currentColor}
.article-meta{margin:1rem 0 0;font-size:1rem;opacity:.9}
.article-meta a{color:inherit}


/* ===== structure/faq.css ===== */
/* ---------- FAQ accordion ----------
   Markdown:  <!-- faq -->  ### Question  Answer...  <!-- /faq -->
   Built on <details>/<summary>: opens and closes without JavaScript, and the answers stay readable to search engines. */
.faq{margin:1.5rem 0 2rem;border-top:1px solid color-mix(in srgb,var(--navy) 18%,transparent)}
.faq-item{border-bottom:1px solid color-mix(in srgb,var(--navy) 18%,transparent)}
.faq-item summary{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1.1rem .25rem;
  cursor:pointer;list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary h3{margin:0;font-size:calc(clamp(1rem,2vw,1.2rem) * var(--scale,1));line-height:1.35}
/* plus sign that turns into a minus */
.faq-item summary::after{
  content:"";flex:none;width:1.6rem;height:1.6rem;border-radius:50%;
  background:
    linear-gradient(var(--navy),var(--navy)) center/.75rem 2px no-repeat,
    linear-gradient(var(--navy),var(--navy)) center/2px .75rem no-repeat,
    var(--yellow);
  transition:transform .2s;
}
.faq-item[open] summary::after{
  background:linear-gradient(var(--navy),var(--navy)) center/.75rem 2px no-repeat,var(--yellow);
  transform:rotate(180deg);
}
.faq-item summary:hover h3{text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
.faq-item summary:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.faq-answer{padding:0 .25rem 1.25rem}
.faq-answer>:first-child{margin-top:0}
.faq-answer>:last-child{margin-bottom:0}
.bg-navy .faq,.bg-navy .faq-item{border-color:rgb(255 255 255 / .25)}
@media (prefers-reduced-motion:reduce){.faq-item summary::after{transition:none}}


/* ===== structure/code.css ===== */
/* ---------- Code examples ----------
   Inline:  `<!-- col -->`  in a sentence becomes a small grey chip.
   Block:   a fenced block (three backticks, optionally followed by md / yaml / json / bash)
            becomes a dark panel. code-copy.js adds a label and a Copy button on top. */
code,kbd,pre{font-family:var(--font-mono);text-transform:none;letter-spacing:normal;font-weight:400}

:not(pre)>code{
  font-size:.85em;
  padding:.12em .4em;
  border-radius:.35em;
  background:var(--grey-light);
  color:var(--navy);
  white-space:break-spaces;     /* long markers can wrap on phones */
  overflow-wrap:anywhere;
}
/* on dark backgrounds and on grey ones, keep the chip visible */
:is(.bg-navy,.box-navy,.sec-pagehero,.ph-box,.form-photo) :not(pre)>code{background:rgb(255 255 255 / .14);color:var(--white)}
:is(.bg-grey,.box:not(.box-navy,.box-white,.box-yellow)) :not(pre)>code{background:var(--white)}
.bg-yellow :not(pre)>code,.box-yellow :not(pre)>code{background:rgb(255 255 255 / .55)}

pre{
  margin:0 0 1.25em;
  padding:1rem 1.15rem;
  overflow-x:auto;
  background:var(--code-bg);
  color:var(--code-text);
  border-radius:.6rem;
  font-size:.8em;
  line-height:1.6;
  text-align:left;              /* stays left-aligned inside centred / right-aligned sections */
  tab-size:2;
}
pre code{font-size:inherit;white-space:pre}

/* label + Copy button (added by code-copy.js) */
.code-block{margin:0 0 1.25em;border-radius:.6rem;overflow:hidden;background:var(--code-bg);text-align:left}
.code-block pre{margin:0;border-radius:0}
.code-bar{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:.4rem .6rem .4rem 1.15rem;
  background:var(--code-bar);color:var(--code-muted);
  font-family:var(--font-nav);font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;
}
.code-copy{
  padding:.3em .8em;border:0;border-radius:var(--radius-pill);
  background:rgb(255 255 255 / .1);color:var(--white);
  font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;
  transition:background-color .15s;
}
.code-copy:hover{background:rgb(255 255 255 / .2)}
.code-copy:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.sec>.wrap>.code-block:last-child,.col>.code-block:last-child,.box>.code-block:last-child{margin-bottom:0}
@media (prefers-reduced-motion:reduce){.code-copy{transition:none}}

