/* EKM Psychiatry public site — "Ivory & Champagne" (rewritten clean 2026-10-23).
   Modern luxury, soft for mental health: warm ivory ombre (deeper at the top, lighter below), crisp modern type,
   champagne metallic accents, glossy ink pill buttons, frosted floating header. No boxes, no arches.
   Fonts self-hosted (SIL OFL). No outside requests. */
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #1F1A17;
  --ink-2: #4E453E;
  --ink-3: #6B6058;
  --line: rgba(31, 26, 23, .1);
  --champ: #7A5E3F;                 /* champagne accent text (AA on ivory) */
  --champ-grad: linear-gradient(100deg, #8C6D49 0%, #C9A97F 38%, #E9D6B7 50%, #B8956A 64%, #8C6D49 100%);
  --ivory-top: #EDE4D6; --ivory-mid: #F4EFE7; --ivory-low: #FAF8F4;
  --glass: rgba(255, 255, 255, .62);
  --deep: #1C1714; --deep-ink: #F5EFE6; --deep-soft: #CFC5B8; --deep-line: rgba(245, 239, 230, .12);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgba(31, 26, 23, .04), 0 12px 32px rgba(31, 26, 23, .08);
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ivory-low); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font: 300 17px/1.7 var(--sans); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  background:
    radial-gradient(80% 520px at 50% 0%, rgba(255, 255, 255, .45), transparent 70%),
    linear-gradient(180deg, var(--ivory-top) 0%, var(--ivory-mid) 900px, var(--ivory-low) 1800px, var(--ivory-low) 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(154, 123, 85, .5); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .25s; }
a:hover { color: var(--champ); }
strong, b { font-weight: 500; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 3px; border-radius: 6px; }
::selection { background: #E9D6B7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
@media (min-width: 760px) { .wrap { padding: 0 44px; } }

/* ── Type ─────────────────────────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--sans); font-weight: 400; color: var(--ink); margin: 0 0 .45em; }
h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.06; letter-spacing: -.035em; margin-top: 1.2em; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 500; margin-top: 1.4em; }
h1 em, h2 em, .footer-line em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  color: var(--champ); background: var(--champ-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-right: .05em;
}
h1 .h1-sub { display: block; margin-top: .3em; font: italic 400 clamp(1.3rem, 2.2vw, 1.8rem)/1.2 var(--serif); letter-spacing: 0; color: var(--ink-3); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.eyebrow, .label, .team-group {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 1.2em;
  font: 500 .72rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--champ);
}
.eyebrow::before, .team-group::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--champ-grad); flex: none; }
.prose { max-width: 46em; }
.note { border-left: 2px solid #D9C3A2; padding: 4px 0 4px 18px; margin: 24px 0; color: var(--ink-2); }
.small-note, .source, .hint, .form-privacy, .form-alt { font-size: .86rem; color: var(--ink-3); }
ul.clean { list-style: none; padding: 0; margin: 0 0 1em; }
ul.clean li { position: relative; padding-left: 18px; margin: .35em 0; }
ul.clean li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: #C9A97F; }

/* ── Header: floating frosted bar ─────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px;
  max-width: calc(var(--wrap) - 24px); padding: 0 10px 0 22px !important;
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 8px 30px rgba(31, 26, 23, .07);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.brand span { font: 500 .98rem/1 var(--sans); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: 10px 14px; border-radius: 999px; font: 400 .9rem/1 var(--sans); color: var(--ink-2); text-decoration: none; transition: background .25s, color .25s; }
.nav a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .8); }
.nav .cta a { margin-left: 8px; }
.nav-mobile { display: none; }
@media (max-width: 1020px) {
  .nav-desktop { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 14px; border-radius: 999px; font: 500 .85rem/1 var(--sans); color: var(--ink); }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile .bars { width: 18px; height: 7px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
  .nav-mobile[open] .bars { height: 1.5px; border-bottom: 0; }
  .nav-mobile .sheet { position: fixed; left: 12px; right: 12px; top: 84px; bottom: 12px; overflow-y: auto; z-index: 60; padding: 28px 24px;
    background: rgba(250, 248, 244, .96); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-radius: 28px; box-shadow: 0 24px 60px rgba(31, 26, 23, .16); }
  .nav-mobile .sheet ul { list-style: none; margin: 0 0 24px; padding: 0; }
  .nav-mobile .sheet li a { display: block; padding: 12px 0; font: 400 1.6rem/1.15 var(--sans); letter-spacing: -.03em; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .nav-mobile .sheet-cta { margin: 0 0 16px; }
  .nav-mobile .sheet-contact { font-size: .95rem; color: var(--ink-2); }
}

/* ── Buttons ──────────────────────────────────────────────────────────────────────────────── */
.btn, button.btn, .nav .cta a, .lp-link {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  padding: 14px 24px; border-radius: 999px; font: 500 .95rem/1 var(--sans); letter-spacing: -.005em;
  color: #fff !important; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 50%), var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 22px rgba(31, 26, 23, .2);
  position: relative; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s;
}
.nav .cta a { padding: 12px 20px; font-size: .9rem; }
.btn::after, .lp-link::after { content: "→"; font-weight: 400; transition: transform .3s var(--ease); }
.btn:hover, .nav .cta a:hover, .lp-link:hover { color: #fff; transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 28px rgba(31, 26, 23, .26); background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 50%), var(--ink); }
.btn:hover::after, .lp-link:hover::after { transform: translateX(3px); }
.btn::before, .nav .cta a::before, .lp-link::before { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); }
.btn:hover::before, .nav .cta a:hover::before, .lp-link:hover::before { left: 130%; }
.btn.ghost { color: var(--ink) !important; background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(31, 26, 23, .06); }
.btn.ghost:hover { color: var(--ink) !important; background: #fff; }
.btn.ghost::before { display: none; }
.btn[disabled] { opacity: .55; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .btn::before, .nav .cta a::before, .lp-link::before { display: none; } }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 28px 0 0; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); text-decoration: none; }
.textlink::after { content: "→"; transition: transform .3s var(--ease); }
.textlink:hover { color: var(--champ); }
.textlink:hover::after { transform: translateX(3px); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── Page headers ─────────────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.hero h1 { max-width: 15em; }
.hero > .wrap > p:not(.lead):not(.eyebrow):not(.small-note) { color: var(--ink-2); max-width: 40em; }
.section { padding: clamp(40px, 5vw, 72px) 0; }
.section .wrap > h2:first-child, .section .prose > h2:first-child { margin-top: 0; }
.cols { display: grid; gap: 32px 48px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cols > * { min-width: 0; }
.cols h3 { margin-top: 0; font: 500 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--champ); }
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 7fr; } }
.split > * { min-width: 0; }
.grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { padding: 22px 0 0; border-top: 1px solid var(--line); }
.card h3 { margin-top: 0; }
.card .role { font: 500 .72rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--champ); margin: 0 0 .6em; }

/* Bio pages */
.hero-person .wrap { display: grid; gap: 28px 64px; }
@media (min-width: 900px) {
  .hero-person .wrap { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .hero-person .portrait { grid-column: 2; grid-row: 1 / span 6; }
  .hero-person .wrap > :not(.portrait) { grid-column: 1; }
}
.portrait { width: 100%; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }

/* Index lists (conditions, plans, specialties) */
.tags { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.tags li { border-bottom: 1px solid var(--line); padding: 16px 0; font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.3 var(--sans); letter-spacing: -.015em; }
.tags a { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.tags a::after { content: "→"; color: var(--champ); transition: transform .3s var(--ease); }
.tags a:hover { color: var(--champ); }
.tags a:hover::after { transform: translateX(4px); }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--line); }
ol.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: italic 400 1.3rem/1.4 var(--serif); color: var(--champ); }
ol.steps strong { display: block; font-weight: 500; margin-bottom: 2px; }

/* ── Team ─────────────────────────────────────────────────────────────────────────────────── */
.team-group { display: flex; justify-content: center; margin: 0 0 28px; }
.team-group::before { display: none; }
.people + .team-group { margin-top: clamp(56px, 7vw, 88px); }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.people-staff { grid-template-columns: repeat(2, minmax(0, calc((100% - 64px) / 3))); justify-content: center; }
.people a, .people .person { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--ink); }
.people img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; margin: 0 0 20px; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s; }
.people a:hover img { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31, 26, 23, .05), 0 22px 48px rgba(31, 26, 23, .14); }
.people h3 { margin: 0 0 4px; font-size: 1.45rem; font-weight: 500; letter-spacing: -.025em; }
.people .creds { margin: 0 0 10px; font: 500 .72rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--champ); }
.people p:not(.creds) { margin: 0; font-size: .95rem; line-height: 1.65; color: var(--ink-2); max-width: 30em; }
.people .kind { display: none; }
.people a::after { content: "Read bio →"; margin-top: 14px; font-weight: 500; font-size: .9rem; color: var(--ink); }
.people a:hover::after { color: var(--champ); }
@media (max-width: 900px) { .people, .people-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people, .people-staff { grid-template-columns: 1fr; } .people img { max-width: 340px; } }

/* ── Footer ───────────────────────────────────────────────────────────────────────────────── */
.site-footer { margin-top: clamp(40px, 5vw, 72px); background: var(--deep); color: var(--deep-ink); padding: clamp(48px, 6vw, 80px) 0 32px; font-size: .95rem;
  background-image: radial-gradient(60% 400px at 50% 0%, rgba(201, 169, 127, .14), transparent 70%); }
.site-footer a { color: var(--deep-ink); text-decoration: none; }
.site-footer a:hover { color: #E9D6B7; }
.footer-statement { text-align: center; margin: 0 0 clamp(40px, 5vw, 64px); }
.footer-logo { width: 72px; margin: 0 auto 20px; }
.footer-line { font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.2 var(--sans); letter-spacing: -.03em; max-width: 22em; margin: 0 auto 22px; color: var(--deep-ink); }
.footer-line em { background: linear-gradient(100deg, #D9BE96, #F3E3C8 50%, #CDAF84); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #E9D6B7; }
.site-footer .textlink.light { color: var(--deep-ink); }
.site-footer .cols { border-top: 1px solid var(--deep-line); padding-top: 36px; }
.site-footer .cols h3 { color: #D9BE96; margin: 0 0 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer p { color: var(--deep-soft); }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--deep-line); margin-top: 36px; padding-top: 22px; font-size: .78rem; color: var(--deep-soft); }

/* ── Home ─────────────────────────────────────────────────────────────────────────────────── */
.lp-hero { text-align: center; display: flex; align-items: center; min-height: calc(100svh - 84px - 120px); padding: 12px 0 20px; }
.lp-hero .wrap { width: 100%; }
.lp-logo { width: auto; height: clamp(260px, calc(100svh - 84px - 120px - 210px), 620px); margin: 0 auto 18px; filter: drop-shadow(0 18px 40px rgba(140, 109, 73, .18)); }
.lp-tagline { font: 400 clamp(1.3rem, 2.2vw, 1.8rem)/1.35 var(--sans); letter-spacing: -.025em; max-width: 26em; margin: 0 auto 22px; color: var(--ink); }
.lp-tagline em { font-family: var(--serif); font-style: italic; color: var(--champ); }
.lp-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin: 0; }
.lp-phone { font-weight: 500; color: var(--ink); text-decoration: none; }
.lp-tag { margin: 18px 0 0; font: 500 .72rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.lp-quick { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1000px; margin: 0 auto; padding: 0 22px 24px; }
.lp-quick a { display: block; text-align: center; padding: 18px 10px; text-decoration: none; color: var(--ink); }
.lp-quick strong { display: block; font: 500 1rem/1.3 var(--sans); letter-spacing: -.01em; }
.lp-quick strong::after { content: " →"; color: var(--champ); }
.lp-quick span { font-size: .88rem; color: var(--ink-3); }
.lp-quick a:hover strong { color: var(--champ); }
@media (max-width: 760px) { .lp-quick { grid-template-columns: 1fr 1fr; } .lp-hero { min-height: 0; } .lp-logo { height: auto; width: min(72vw, 300px); } }

/* ── Forms ────────────────────────────────────────────────────────────────────────────────── */
.request-form { margin: 40px 0 0; }
.request-form .form-title { font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--sans); letter-spacing: -.03em; margin: 0 0 8px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px 20px; margin-top: 24px; }
@media (min-width: 760px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .wide { grid-column: 1 / -1; } }
.form-grid.single { grid-template-columns: 1fr; }
.form-grid .field, .form-grid fieldset { margin: 0; min-width: 0; }
.form-grid fieldset { border: 0; padding: 0; }
.form-grid label:not(.check), .form-grid legend { display: block; padding: 0; margin: 0 0 7px; font: 500 .82rem/1.3 var(--sans); color: var(--ink-2); }
.form-grid .req { color: var(--champ); }
.form-grid .opt { font-weight: 300; color: var(--ink-3); }
.form-grid input[type=text], .form-grid input[type=email], .form-grid input[type=tel], .form-grid input[type=date], .form-grid select, .form-grid textarea {
  width: 100%; font: 400 1rem/1.3 var(--sans); color: var(--ink); padding: 14px 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .85);
  box-shadow: inset 0 0 0 1px rgba(31, 26, 23, .08), 0 1px 2px rgba(31, 26, 23, .03); appearance: none; -webkit-appearance: none; transition: box-shadow .2s;
}
.form-grid select { background: rgba(255, 255, 255, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239A7B55'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 38px; }
.form-grid textarea { resize: vertical; min-height: 120px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--champ), 0 0 0 4px rgba(201, 169, 127, .25); }
.form-grid input[type=file] { font: 300 .92rem/1.4 var(--sans); }
.form-grid label.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; margin: 0 0 6px; }
.form-grid label.check input { accent-color: var(--ink); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .7); }
.form-status.error { color: #8E2A17; background: rgba(232, 160, 140, .18); }
.form-status ul { margin: 8px 0 0; padding-left: 1.1em; }

/* ── Contact ──────────────────────────────────────────────────────────────────────────────── */
.contact-aside { align-self: start; }
@media (min-width: 900px) { .contact-aside { position: sticky; top: 110px; } }
.contact-big { display: inline-block; font: 400 clamp(2rem, 3.4vw, 2.8rem)/1.1 var(--sans); letter-spacing: -.04em; color: var(--ink); text-decoration: none; margin: 0 0 22px; }
.contact-big:hover { color: var(--champ); }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font: 500 .72rem/2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--champ); }
.contact-list dd { margin: 0; }
.contact-crisis { margin: 22px 0 0; font-size: .86rem; color: var(--ink-3); }
#message .request-form { margin-top: 0; }

/* ── Client Documents index ───────────────────────────────────────────────────────────────── */
.doc-section { border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.doc-section:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { list-style: none; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 1.4rem; align-items: center; gap: 14px; padding: 24px 0; cursor: pointer; }
.doc summary::-webkit-details-marker { display: none; }
.doc-num { font: italic 400 1.3rem/1 var(--serif); color: var(--champ); }
.doc-head { display: block; min-width: 0; }
.doc-title { margin: 0 0 4px; font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--sans); letter-spacing: -.03em; transition: color .25s; }
.doc-sub { display: block; font-size: .85rem; color: var(--ink-3); }
.doc summary:hover .doc-title { color: var(--champ); }
.doc-open { position: relative; width: 16px; height: 16px; justify-self: end; }
.doc-open::before, .doc-open::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.doc-open::after { transform: rotate(90deg); }
.doc[open] .doc-open::after { transform: rotate(0); }
.doc-body { padding: 0 0 48px calc(3.4rem + 14px); }
.doc-body > h3 { font: 500 .74rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--champ); margin: 2.2em 0 1em; }
@media (max-width: 700px) { .doc summary { grid-template-columns: 2.4rem minmax(0, 1fr) 1.2rem; } .doc-body { padding-left: 0; } }
.client-documents-end { height: 24px; }
.back-top { font-size: .9rem; margin-top: 20px; }

/* ── Questionnaires ───────────────────────────────────────────────────────────────────────── */
.screener fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 18px 0; }
.screener legend { padding: 0; float: left; width: 100%; margin-bottom: 10px; font-weight: 400; }
.screener legend + .opts { clear: both; }
.screener .qn { font: italic 400 1.05rem/1 var(--serif); color: var(--champ); margin-right: 8px; }
.screener .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.screener label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .65); cursor: pointer; font-size: .92rem; transition: background .2s; }
.screener label:hover { background: #fff; }
.screener label:has(input:checked) { background: var(--ink); color: #fff; }
.screener input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.screener-intro { font: italic 400 1.3rem/1.4 var(--serif); color: var(--ink-2); }
.screener-result { padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, .75); font: 400 1.2rem/1.5 var(--sans); letter-spacing: -.01em; }
.screener-result.warn { background: rgba(232, 160, 140, .2); }
.crisis { background: rgba(232, 160, 140, .2); border-radius: 16px; padding: 16px 20px; margin: 18px 0; color: #4A1A10; }

/* ── Legal / NPP ──────────────────────────────────────────────────────────────────────────── */
.legal-notice { border-top: 1px solid var(--line); padding: 24px 0 28px; font-size: .8rem; line-height: 1.6; color: var(--ink-3); }
.legal-notice .prose { max-width: 64em; }
.legal-notice h2.eyebrow { margin: 0 0 1em; }
.legal-notice p, .legal-notice ul { margin: 0 0 .5em; }
.legal-notice strong { color: var(--ink); }
.npp h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.npp .draft-banner { background: rgba(232, 160, 140, .2); color: #6B1E11; padding: 14px 18px; border-radius: 14px; margin: 0 0 28px; font-weight: 500; }
@media print { .site-header, .site-footer, .no-print, .skip { display: none !important; } body { background: #fff; } }

/* ── Patient portal (js/portal.js) ────────────────────────────────────────────────────────── */
.portal-form { max-width: 30rem; margin-top: 28px; }
.portal-split { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 960px) { .portal-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 96px; align-items: center; } }
.portal-pitch h1 { font: italic 400 clamp(3rem, 5.8vw, 4.8rem)/1.02 var(--serif) !important; letter-spacing: -.01em !important; margin: .2em 0 .4em; }
.portal-inside { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); max-width: 28rem; }
.portal-inside li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.portal-inside li span { color: var(--ink-3); font-size: .88rem; }
.portal-signin h2 { font: 400 1.9rem/1.15 var(--sans); letter-spacing: -.03em; margin: 0 0 8px; }
.portal-signin-lead { margin: 0; color: var(--ink-2); }
.portal-signin .portal-form { max-width: none; }
.portal-signin .portal-demo-note { margin: 20px 0 0; }
.portal-help { font-size: .88rem; color: var(--ink-3); margin: 28px 0 0; line-height: 1.75; }
.portal-gate .form-status:empty { display: none; }
.portal-form input[name=code] { font-size: 1.6rem !important; letter-spacing: .4em; max-width: 12ch; }
.portal-step { font: 500 .72rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--champ); margin: 0 0 6px; }
.portal-gate .form-status { max-width: 30rem; }
.portal-crisis { font-size: .86rem; color: var(--ink-3); }
.portal-demo-note { border-left: 2px solid #D9C3A2; padding: 4px 0 4px 14px; font-size: .9rem; color: var(--ink-2); max-width: 36rem; }
.portal-home { padding: 48px 0 88px; }
.portal-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; margin-bottom: 40px; }
.portal-top .eyebrow { margin: 0; }
.portal-bar-actions { display: flex; align-items: baseline; gap: 18px; margin: 0; font-size: .88rem; color: var(--ink-3); }
.portal-screen :focus { outline: none; }
.portal-home .portal-demo-note { margin: -16px 0 32px; }
/* shared pieces */
.portal-go, .portal-backlink { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.portal-go:hover, .portal-backlink:hover { color: var(--champ); }
a.portal-go { text-decoration: none; }
.portal-go-arrow::after { content: " →"; color: var(--champ); }
button.textlink { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; cursor: pointer; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.portal-back { margin: 0 0 22px; font-size: .9rem; }
.portal-backlink { color: var(--ink-3); }
.portal-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 0 0 .25em; }
.portal-lead { max-width: 42rem; margin: 0 0 8px; }
.portal-label { font: 700 .76rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--champ); margin: 0 0 6px; }
.portal-sub, .portal-note { font-size: .88rem; color: var(--ink-3); margin: 4px 0 0; }
.portal-soon { margin: 28px 0 0; padding-left: 14px; border-left: 2px solid #D9C3A2; color: var(--ink-2); max-width: 40rem; }
.portal-emergency { font-size: .86rem; color: var(--ink-3); margin: 10px 0 0; max-width: 42rem; }
.portal-tools + .portal-emergency { margin-top: 40px; }
.portal-cta { margin: 26px 0 0; }
.portal-list { list-style: none; margin: 0 0 40px; padding: 0; max-width: 52rem; }
.portal-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 24px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.portal-list li > div { min-width: 0; }
.portal-item, .portal-list .portal-go { font-size: 1.08rem; letter-spacing: -.01em; }
.portal-meta { font-size: .86rem; color: var(--ink-3); white-space: nowrap; }
.portal-meta.flag { color: var(--champ); font-weight: 500; font-size: .95rem; }
.portal-screen > .portal-list, .portal-screen > div > .portal-list { margin-top: 32px; }
/* home (layout C) */
.portal-overview { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .portal-overview { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 80px; } }
.portal-hello { font-size: clamp(2.6rem, 5.4vw, 4.2rem); margin: 0; }
.portal-overview .lead { margin-top: 20px; max-width: 30rem; }
.portal-next-label { margin-top: 44px; }
.portal-when { font: italic 400 clamp(2.5rem, 4.8vw, 3.9rem)/1.02 var(--serif); color: var(--ink); margin: 12px 0 16px; }
.portal-overview .portal-label { margin-top: 6px; }
.portal-overview .portal-list { margin-bottom: 36px; }
.portal-overview .portal-groups .portal-list, .portal-overview > div > .portal-list { margin-bottom: 0; }
.portal-groups section { margin-top: 56px; padding-top: 22px; border-top: 1.5px solid var(--ink); }
.portal-groups section .portal-label { margin: 0 0 4px; }
.portal-overview .portal-list li:last-child { border-bottom: 0; }
.portal-groups .portal-list li { padding: 13px 0; }
.portal-groups .portal-sub { font-size: .82rem; margin-top: 2px; }
.portal-latest { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 46rem; }
.portal-latest blockquote { margin: 12px 0 18px; font: 400 1.25rem/1.55 var(--sans); letter-spacing: -.01em; color: var(--ink); }
/* messages */
.portal-convo { list-style: none; margin: 36px 0 0; padding: 0; max-width: 46rem; }
.portal-convo li { padding: 20px 0; border-top: 1px solid var(--line); }
.portal-convo li.me { padding-left: 18%; }
.portal-convo li.them { padding-left: 18px; padding-right: 18%; border-left: 2px solid #D9C3A2; }
.portal-who { font: 500 .74rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--champ); margin: 0 0 8px; }
.portal-convo li.me .portal-who { color: var(--ink-3); }
.portal-body { margin: 0; font-size: 1.05rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-msgform { max-width: 46rem; margin-top: 28px; padding-top: 6px; border-top: 1px solid var(--line); }
.portal-sendrow { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 600px) { .portal-convo li.me { padding-left: 0; } .portal-convo li.them { padding-right: 0; } }
/* messages: one ongoing chat (owner decision 2026-10-23: Apple-style bubbles, chat only) */
.chat { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; background: rgba(255, 255, 255, .55); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); border-radius: 22px; box-shadow: 0 30px 80px -30px rgba(60, 45, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .9); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid rgba(31, 26, 23, .06); background: rgba(255, 255, 255, .4); }
.chat-logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(31, 26, 23, .08); flex: none; }
.chat-logo img { width: 28px; height: auto; }
.chat-name { font: 600 1rem/1.2 var(--sans) !important; letter-spacing: -.01em !important; margin: 0 !important; }
.chat-status { margin: 2px 0 0; font-size: .78rem; color: #5F7A5B; }
.chat-status::before { content: "● "; }
.chat-stream { list-style: none; margin: 0; padding: 20px 28px; display: flex; flex-direction: column; gap: 6px; min-height: 420px; max-height: min(62vh, 640px); overflow-y: auto; }
.chat-day { align-self: center; font-size: .74rem; color: var(--ink-3); margin: 12px 0 6px; text-align: center; }
.chat-who { font-size: .74rem; color: var(--ink-3); margin: 8px 0 0 14px; }
.chat-msg { max-width: min(62%, 30rem); padding: 10px 15px; border-radius: 20px; font-size: .97rem; line-height: 1.45; animation: chat-in .28s var(--ease); }
.chat-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.them { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(31, 26, 23, .06); }
.chat-msg.me { align-self: flex-end; background: linear-gradient(160deg, #C8A576, #9C7A50); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 20px -10px rgba(156, 122, 80, .8); }
.chat-msg.pending { opacity: .7; }
.chat-msg.failed { background: #fff; color: #8A2A1A; box-shadow: inset 0 0 0 1.5px #C9826F; }
.chat-receipt { align-self: flex-end; font-size: .72rem; color: var(--ink-3); margin-top: 1px; }
.chat-compose { display: flex; align-items: flex-end; gap: 12px; padding: 14px 20px 18px; border-top: 1px solid rgba(31, 26, 23, .05); }
.chat-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; padding: 11px 18px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px rgba(31, 26, 23, .1); font: 400 .97rem/1.4 var(--sans); color: var(--ink); }
.chat-compose textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px #B08A5B, 0 0 0 4px rgba(201, 169, 127, .22); }
.chat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: linear-gradient(145deg, #D2B48A, #9C7A50); color: #fff; font: 600 1.15rem/1 var(--sans); cursor: pointer; box-shadow: 0 6px 16px -6px rgba(156, 122, 80, .8); transition: transform .2s var(--ease); }
.chat-send:hover { transform: translateY(-1px); }
.chat-send:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.chat-send:disabled { opacity: .5; cursor: default; transform: none; }
.chat-wrap.compact { margin-top: 48px; }
.chat-wrap.compact .chat { max-width: none; }
.chat-wrap.compact .chat-stream { min-height: 360px; max-height: 520px; padding: 16px 20px; }
@media (min-width: 900px) {
  .portal-overview > div:first-child { display: flex; flex-direction: column; }
  .chat-wrap.compact { flex: 1; display: flex; flex-direction: column; }
  .chat-wrap.compact .chat { flex: 1; min-height: 0; }
  .chat-wrap.compact .chat-stream { flex: 1 1 0; max-height: none; }
}
.chat-wrap.compact .chat-note { text-align: left; margin-left: 4px; }
.chat-wrap.compact .chat-msg { max-width: 78%; }
.portal-quick { margin-top: 56px; padding-top: 22px; border-top: 1.5px solid var(--ink); max-width: 34rem; }
.portal-quick .portal-label { margin: 0 0 4px; }
.portal-quick .portal-list li:last-child { border-bottom: 0; }
.chat-safety { margin: 0; padding: 10px 20px; border-top: 1px solid rgba(31, 26, 23, .05); background: rgba(232, 160, 140, .14); color: #7A2716; font-size: .86rem; font-weight: 600; line-height: 1.4; }
.form-status.chat-sent { color: #7A2716; font-weight: 600; }
.chat-note { text-align: center; font-size: .8rem; color: var(--ink-3); margin: 16px auto 0; max-width: 820px; }
.chat + .form-status { max-width: 820px; margin: 12px auto 0; }
@keyframes chat-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .chat-msg { animation: none; } }
@media (max-width: 600px) { .chat { border-radius: 18px; } .chat-stream { padding: 16px; max-height: 60svh; } .chat-msg { max-width: 82%; } }
.portal-profile { display: grid; grid-template-columns: 1fr; gap: 0 72px; margin-top: 40px; max-width: 64rem; }
@media (min-width: 900px) { .portal-profile { grid-template-columns: 1fr 1fr; } }
.portal-profile section { border-top: 1.5px solid var(--ink); padding: 20px 0 36px; }
.portal-dl { display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: 10px 24px; margin: 14px 0 0; }
.portal-dl dt { font-size: .86rem; color: var(--ink-3); }
.portal-dl dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.portal-change { margin: 18px 0 0; font-size: .92rem; }
.portal-balance { margin-top: 32px; }
.portal-balance + .portal-list { margin-top: 40px; }
.portal-profile .portal-dl + .portal-sub { margin-top: 16px; font-size: .92rem; }
/* learn & practice library */
.portal-tools-2 { max-width: 64rem; }
@media (min-width: 960px) { .portal-tools-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.portal-search { margin-top: 28px; }
.portal-search input[type=search] { font: inherit; }
.portal-libgroups section { margin-top: 40px; max-width: 52rem; }
.portal-libgroups .portal-list { border-top: 1.5px solid var(--ink); margin-top: 8px; }
.portal-libgroups .portal-list li { padding: 15px 0; }
.portal-libgroups .portal-meta { font-size: .8rem; }
.portal-plan { margin: 28px 0 8px; padding: 18px 0 6px 20px; border-left: 2px solid #D9C3A2; max-width: 46rem; }
.portal-plan-from { font: 700 .76rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--champ); margin: 0 0 4px; }
.portal-plan .portal-dl { grid-template-columns: 7rem 1fr; }
.portal-plan .portal-sub { margin-top: 14px; }
.portal-feedback { margin: 20px 0 0; padding: 16px 0 4px 20px; border-left: 2px solid var(--ink); max-width: 46rem; }
.portal-feedback p { margin: 4px 0 0; }
.portal-steps { list-style: none; margin: 8px 0 32px; padding: 0; max-width: 44rem; }
.portal-steps li { padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.portal-worksheet { max-width: 46rem; margin-top: 8px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.portal-partial { margin: 0 0 4px; }
.portal-repeat { display: grid; gap: 10px; }
.portal-repeat textarea { width: 100%; }
.portal-range label.portal-ns { display: flex !important; justify-content: flex-start; align-items: center; gap: 10px; margin-top: 8px !important; font-size: .86rem !important; }
.portal-review { margin: 36px 0 0; max-width: 44rem; }
.portal-review p { margin: 4px 0 0; font-size: 1.05rem; }
.portal-more { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--line); max-width: 46rem; }
.portal-sources { list-style: none; margin: 6px 0 10px; padding: 0; font-size: .88rem; }
.portal-sources li { padding: 4px 0; color: var(--ink-3); }
.portal-safety { margin-top: 32px; max-width: 46rem; }
.portal-help-urgent, .portal-help-routine { margin-top: 36px; padding-top: 20px; border-top: 1.5px solid var(--ink); max-width: 44rem; }
.portal-help-urgent p, .portal-help-routine p { margin: 6px 0 0; font-size: 1.05rem; }
/* tools */
.portal-tools { display: grid; grid-template-columns: 1fr; gap: 40px 64px; margin-top: 48px; }
@media (min-width: 960px) { .portal-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.portal-gsub { margin: 0 0 16px; }
.portal-toollist { border-top: 1px solid var(--line); margin: 0; }
.portal-toollist li { display: block; padding: 17px 0; }
.portal-toollist .portal-go { font-size: 1.12rem; }
.portal-narrow { max-width: 34rem; }
/* Update my information: one form, one section per item on file (owner 2026-11-09) */
.pp-upd { border: 0; border-top: 1.5px solid var(--ink); margin: 28px 0 0; padding: 18px 0 0; min-width: 0; }
.pp-upd:first-child { margin-top: 8px; }
.form-grid .pp-upd > legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; }
.pp-upd > legend + * { clear: both; }
.pp-upd-onfile { margin: 0 0 4px; }
.portal-wide { max-width: 46rem; }
.portal-assigned { margin-top: 48px; max-width: 46rem; }
.portal-assigned .portal-toollist { margin-bottom: 14px; }
.portal-assigned + .portal-tools { margin-top: 56px; }
.portal-article { max-width: 40rem; margin-top: 24px; font-size: 1.08rem; line-height: 1.7; }
.portal-screen > .portal-label { margin-top: 0; }
.portal-screen > .portal-lead + .portal-label, .portal-screen > .portal-list + .portal-label, .portal-screen > .portal-note + .portal-label { margin-top: 44px; }
.portal-screen > .portal-label + .portal-list { margin-top: 0; border-top: 1px solid var(--line); }
.portal-assigned .portal-toollist li { display: flex; }
.portal-logform .portal-sendrow { max-width: 46rem; }
.form-grid input[type=time] { font: inherit; }
.portal-clock { font: italic 400 clamp(5rem, 13vw, 9rem)/1 var(--serif); color: var(--ink); margin: 36px 0 6px; font-variant-numeric: tabular-nums; }
.portal-ctl { display: flex; gap: 32px; align-items: baseline; margin: 22px 0 28px; }
.portal-checks { list-style: none; margin: 18px 0 24px; padding: 0; max-width: 40rem; }
.portal-checks li { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.portal-checks li > span, .portal-checks li > label { flex: 1; }
.portal-checks input[type=checkbox], .portal-top3 input[type=checkbox] { accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.portal-checks input:checked + label { text-decoration: line-through; color: var(--ink-3); }
.portal-x { font-size: .82rem; color: var(--ink-3); }
.portal-adder { display: flex; align-items: flex-end; gap: 24px; max-width: 40rem; }
.portal-adder .form-grid { flex: 1; }
.portal-top3 { display: flex; align-items: center; gap: 14px; }
.portal-top3 .field { flex: 1; }
.portal-sort { display: grid; grid-template-columns: 1fr; gap: 8px 48px; }
@media (min-width: 900px) { .portal-sort { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.portal-sort .portal-checks li { flex-wrap: wrap; }
.portal-range label { display: flex !important; justify-content: space-between; }
.portal-range input[type=range] { width: 100%; accent-color: var(--champ); margin: 6px 0 0; }
.portal-val { font: italic 400 1.3rem/1 var(--serif); color: var(--ink); }
.portal-ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); margin: 2px 0 0; }
.portal-logform .form-status { max-width: 34rem; }
.portal-tablewrap { overflow-x: auto; margin-top: 24px; max-width: 46rem; }
.portal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.portal-table th, .portal-table td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.portal-table thead th { font: 500 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--champ); }
.portal-table td { position: relative; min-width: 72px; }
.portal-bar { display: inline-block; height: 2px; background: #D9C3A2; vertical-align: middle; max-width: 48px; margin-right: 8px; }
.portal-num { font-variant-numeric: tabular-nums; }
.portal-table td { white-space: nowrap; }
@media (max-width: 600px) { .portal-bar { display: none; } .portal-table td { min-width: 0; } }
.portal-sort { margin-top: 32px; }
.portal-guide { list-style: none; margin: 32px 0 0; padding: 0; max-width: 44rem; }
.portal-guide li { padding: 20px 0; border-top: 1px solid var(--line); }
.portal-guide h2 { font: 400 1.25rem/1.3 var(--sans); letter-spacing: -.015em; margin: 0 0 6px; }
.portal-guide p { margin: 0; color: var(--ink-2); }

/* ── Scroll reveal (JS on, motion allowed) ────────────────────────────────────────────────── */
.js main > section:not(:first-child) > .wrap { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js main > section.in > .wrap { opacity: 1; transform: none; }
.contact-aside .eyebrow, #message .eyebrow { display: flex; }
.form-grid label.check .req { display: none; }

/* ── NO pills, NO boxes anywhere (Erin, repeated and final): every button is a text link with a fine underline and an
      arrow; fields are underline-only; questionnaire answers are plain radio choices. ── */
.btn, button.btn, .btn.ghost, .nav .cta a, .lp-link {
  background: none !important; box-shadow: none !important; border-radius: 0 !important; transform: none !important;
  padding: 6px 0 !important; color: var(--ink) !important; font: 500 .95rem/1.2 var(--sans) !important;
  border-bottom: 1.5px solid var(--ink) !important; overflow: visible;
}
.btn::before, .nav .cta a::before, .lp-link::before { display: none !important; }
.btn:hover, .btn.ghost:hover, .nav .cta a:hover, .lp-link:hover { color: var(--champ) !important; border-bottom-color: var(--champ) !important; background: none !important; transform: none !important; }
.btn.ghost { border-bottom-color: rgba(31, 26, 23, .3) !important; }
.btn-row { gap: 14px 32px; }
.nav .cta a { margin-left: 12px; padding: 4px 0 !important; font-size: .9rem !important; }
.nav a { border-radius: 0; }
.nav a:hover, .nav a[aria-current="page"] { background: none; color: var(--ink); text-decoration: underline; text-decoration-color: var(--champ); text-underline-offset: 6px; }
/* header: no pill-shaped bar either — a full-width frosted strip with a hairline */
.site-header { padding: 0; background: rgba(250, 247, 242, .72); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); border-bottom: 1px solid var(--line); }
.site-header .wrap { background: none !important; box-shadow: none !important; border-radius: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; max-width: var(--wrap); padding: 0 22px !important; min-height: 72px; }
@media (min-width: 760px) { .site-header .wrap { padding: 0 44px !important; } }
.nav-mobile summary { border-radius: 0; }
/* fields: underline only */
.form-grid input[type=text], .form-grid input[type=email], .form-grid input[type=tel], .form-grid input[type=date], .form-grid select, .form-grid textarea {
  background-color: transparent !important; border-radius: 0 !important; box-shadow: none !important; padding: 10px 0 !important; border-bottom: 1px solid rgba(31, 26, 23, .3) !important; }
.form-grid select { background-position: right 2px center !important; padding-right: 24px !important; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { box-shadow: none !important; border-bottom: 1.5px solid var(--champ) !important; }
.form-status { background: none; border-radius: 0; padding: 12px 0; border-top: 1px solid var(--line); }
.form-status.error { background: none; border-top-color: #B8432C; }
/* questionnaire answers: plain choices */
.screener label { background: none !important; border-radius: 0; padding: 6px 0; margin-right: 18px; }
.screener label:has(input:checked) { background: none !important; color: var(--ink); text-decoration: underline; text-decoration-color: var(--champ); text-underline-offset: 5px; }
.screener-result, .crisis, .npp .draft-banner { border-radius: 0 !important; background: none !important; padding: 16px 0 16px 18px; border-left: 2px solid var(--champ); }
.screener-result.warn, .crisis, .npp .draft-banner { border-left-color: #B8432C; }
.skip { border-radius: 0; }
/* Ombre (Erin): clearly deeper sand at the top fading to soft ivory at the bottom of every page. */
body { background: linear-gradient(180deg, #DCCDB6 0%, #E7DCCB 30%, #F1EBE1 65%, #F9F6F1 100%) !important; }
/* Logo: far less shine — no glow, muted highlight. */
.lp-logo { filter: saturate(.75) contrast(.9) brightness(.97) !important; }
.lp-hero { background: none !important; }
/* Less shine on the italic accents too: solid warm champagne (the bright highlight hid letters). */
h1 em, h2 em, .lp-tagline em { background: none !important; -webkit-text-fill-color: currentColor !important; color: #8A6C4A !important; }
.footer-line em { background: none !important; -webkit-text-fill-color: currentColor !important; color: #DCC4A2 !important; }
/* Header blends into the top of the ombre. */
.site-header { background: rgba(220, 205, 182, .7) !important; border-bottom-color: rgba(31, 26, 23, .08) !important; }
/* Header (Erin): centred logo, three links each side, evenly spread. */
@media (min-width: 1021px) {
  .site-header .wrap { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(32px, 4vw, 64px); min-height: 84px; }
  .site-header .brand { grid-column: 2; grid-row: 1; flex-direction: column; gap: 6px; padding: 10px 0 8px; }
  .site-header .brand img { height: 36px; }
  .site-header .brand span { font: 500 .62rem/1 var(--sans); letter-spacing: .4em; margin-right: -.4em; text-transform: uppercase; }
  .nav-left { grid-column: 1; grid-row: 1; }
  .nav-right { grid-column: 3; grid-row: 1; }
  .nav-left .nav, .nav-right .nav { display: flex; justify-content: space-between; gap: 0 16px; }
  .nav a { padding: 10px 0; white-space: nowrap; }
  .nav .cta a { margin-left: 0; }
}
/* Colours chosen by Erin in the colour picker (2026-10-23): "Mushroom" — #D3C8BC at the top fading to #F7F4F0. */
body { background: linear-gradient(180deg, #D3C8BC 0%, #F7F4F0 100%) !important; }
html { background: #F7F4F0 !important; }
.site-header { background: rgba(211, 200, 188, .72) !important; }
h1 em, h2 em, .lp-tagline em { color: #7E6650 !important; }
/* Final choice (Erin 2026-10-23): "Linen" — #EFE8DD at the top fading to white. */
body { background: linear-gradient(180deg, #EFE8DD 0%, #FFFFFF 100%) !important; }
html { background: #FFFFFF !important; }
.site-header { background: rgba(239, 232, 221, .72) !important; }
/* Home (Erin: "too much space"): hero sizes to its content — no stretching on tall screens — and the quick links and
   footer follow straight after. */
.lp-hero { min-height: 0 !important; display: block; padding: 20px 0 8px !important; }
.lp-logo { height: clamp(240px, 46vh, 500px) !important; }
.lp-quick { padding-top: 18px !important; padding-bottom: 8px !important; }
main.lp + .site-footer, .lp ~ .site-footer { margin-top: 32px; }
/* Compact footer (Erin: "wasted space"): brand + Schedule on one line, four columns, legal line. */
.site-footer { margin-top: 0 !important; padding: 36px 0 24px !important; font-size: .9rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand .footer-logo { width: auto; height: 30px; margin: 0; }
.footer-brand span { font: 500 .62rem/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; }
.site-footer .cols { padding-top: 24px !important; gap: 20px 40px; }
.site-footer .cols h3 { margin-bottom: .7em !important; }
.site-footer li { margin: 0 0 4px; }
.site-footer .cols p { margin: 0 0 .5em; }
.site-footer .legal { margin-top: 24px !important; padding-top: 16px !important; }

/* ── Footer colour: Charcoal (Erin, option 3) ── */
.site-footer { background: #2A2C2E !important; background-image: none !important; color: #F3F1EC !important; }
.site-footer a, .site-footer .textlink.light, .footer-brand span { color: #F3F1EC !important; }
.site-footer p, .site-footer .legal { color: #C9C5BE !important; }
.site-footer .cols h3 { color: #D8C3A3 !important; }
.site-footer .cols, .site-footer .legal { border-color: rgba(243, 241, 236, .14) !important; }

/* ── High-tech, professional pass (Erin 2026-10-23: "this is a tech company") ──
   Precise, product-grade UI: a tighter type scale, technical micro-labels, crisp 1px hairlines, generous but
   disciplined fields, and an animated focus line. Still no boxes or pills. */
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.05em; font-weight: 400; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); letter-spacing: -.04em; font-weight: 400; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.section .cols > div > h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 0; }
.eyebrow, .label, .team-group, .cols h3, .contact-list dt, .portal-step {
  font: 500 .68rem/1.3 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: .12em !important; text-transform: uppercase; }
.eyebrow::before { width: 6px; height: 6px; border-radius: 0; background: var(--champ); }
/* forms: no duplicate headings; precise labels; crisp fields */
.cols .request-form .form-title, .cols .request-form > .eyebrow { display: none; }
.request-form { margin-top: 24px; padding-top: 0; }
.request-form .form-title { font: 400 clamp(1.4rem, 2vw, 1.7rem)/1.2 var(--sans) !important; letter-spacing: -.03em; text-transform: none !important; color: var(--ink) !important; }
.form-privacy { font-size: .82rem; }
.form-grid { gap: 22px 28px; margin-top: 22px; }
.form-grid label:not(.check), .form-grid legend {
  font: 500 .66rem/1.3 ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace !important; letter-spacing: .1em !important;
  text-transform: uppercase !important; color: var(--ink-3) !important; margin-bottom: 2px !important; }
.form-grid .req { color: var(--champ) !important; }
.form-grid .opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.form-grid input[type=text], .form-grid input[type=email], .form-grid input[type=tel], .form-grid input[type=date], .form-grid select, .form-grid textarea {
  font: 400 1rem/1.4 var(--sans) !important; padding: 10px 0 9px !important; border-bottom: 1px solid rgba(31, 26, 23, .22) !important;
  background-image: linear-gradient(var(--ink), var(--ink)) !important; background-repeat: no-repeat !important; background-size: 0% 1.5px !important;
  background-position: 0 100% !important; transition: background-size .45s var(--ease), border-color .3s !important; }
.form-grid select { background-image: linear-gradient(var(--ink), var(--ink)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%231F1A17'/%3E%3C/svg%3E") !important;
  background-size: 0% 1.5px, 10px 6px !important; background-position: 0 100%, right 2px center !important; }
.form-grid input:focus, .form-grid textarea:focus { background-size: 100% 1.5px !important; border-bottom-color: transparent !important; }
.form-grid select:focus { background-size: 100% 1.5px, 10px 6px !important; border-bottom-color: transparent !important; }
.form-grid textarea { min-height: 96px; }
.form-grid ::placeholder { color: rgba(31, 26, 23, .35); }
@media (prefers-reduced-motion: reduce) { .form-grid input, .form-grid select, .form-grid textarea { transition: none !important; } }
/* Breathing room between the last section and the charcoal footer (Erin). */
.site-footer { margin-top: clamp(56px, 7vw, 96px) !important; }
/* Centre brand on one line (Erin): icon beside the wordmark, so the logo and every menu word share one centre line. */
@media (min-width: 1021px) {
  .site-header .brand { flex-direction: row !important; align-items: center; gap: 10px; padding: 0 !important; }
  .site-header .brand img { height: 30px !important; }
  .site-header .brand span { line-height: 1 !important; }
  .site-header .wrap { min-height: 72px !important; align-items: center !important; }
  .nav a { line-height: 1 !important; padding: 8px 0 !important; }
}
/* Logo stacked (icon with "EKM PSYCHIATRY" under it), and the menu words line up with the middle of the icon:
   the wordmark hangs below the icon without shifting the centre line. */
@media (min-width: 1021px) {
  .site-header .wrap { min-height: 92px !important; }
  .site-header .brand { position: relative; flex-direction: column !important; gap: 0 !important; padding: 0 0 16px !important; }
  .site-header .brand img { height: 38px !important; }
  .site-header .brand span { position: absolute; left: 50%; top: calc(100% - 12px); transform: translateX(-50%); white-space: nowrap;
    font-size: .58rem !important; letter-spacing: .4em !important; margin-right: 0 !important; padding-left: .4em; }
  .nav-left, .nav-right { align-self: center; margin-bottom: 16px; }
}
/* "Just make it centred" (Erin): the stacked logo is one block, centred in the bar both ways; the menu words sit on the
   bar's centre line; even gaps either side of the logo. */
@media (min-width: 1021px) {
  .site-header .wrap { min-height: 0 !important; padding-top: 14px !important; padding-bottom: 14px !important; align-items: center !important; }
  .site-header .brand { padding: 0 !important; gap: 7px !important; }
  .site-header .brand img { height: 34px !important; }
  .site-header .brand span { position: static; transform: none; padding-left: .4em; font-size: .58rem !important; }
  .nav-left, .nav-right { margin-bottom: 0; align-self: center; }
}
/* "EKM PSYCHIATRY" sits on the same line as the menu words; the icon sits above it. */
@media (min-width: 1021px) {
  .site-header .wrap { padding-top: 48px !important; padding-bottom: 18px !important; }
  .site-header .brand { position: relative; display: block !important; padding: 0 !important; }
  .site-header .brand img { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); height: 32px !important; margin: 0; }
  .site-header .brand span { display: block; position: static; transform: none; font-size: .62rem !important; line-height: 1 !important; }
}
/* Even spacing (Erin): every gap in the menu is the same width — between links and on both sides of the logo —
   with the logo dead centre. Each side hugs the logo instead of stretching to the page edges. */
@media (min-width: 1021px) {
  .site-header .wrap { column-gap: 44px !important; }
  .nav-left { justify-self: end !important; }
  .nav-right { justify-self: start !important; }
  .nav-left .nav, .nav-right .nav { justify-content: flex-start !important; gap: 0 44px !important; }
  .nav .cta a { font-weight: 400 !important; }
}
@media (min-width: 1021px) {
  .nav .cta a { border-bottom: 0 !important; padding: 8px 0 !important; text-decoration: underline; text-decoration-color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 6px; color: var(--ink) !important; }
}
@media (min-width: 1021px) { .nav .cta a { display: inline-block !important; line-height: 1 !important; padding: 8px 0 !important; } }
/* Header logo: just the hands-and-brain icon, centred, on the same centre line as the menu words (Erin). */
@media (min-width: 1021px) {
  .site-header .wrap { padding-top: 14px !important; padding-bottom: 14px !important; }
  .site-header .brand { display: flex !important; align-items: center; justify-content: center; }
  .site-header .brand img { position: static !important; transform: none !important; height: 44px !important; }
  .site-header .brand span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
}
/* No numbered markers anywhere (Erin): drop 01/02… on documents, patient-portal sections and step lists. */
.doc-num { display: none !important; }
.doc summary { grid-template-columns: minmax(0, 1fr) 1.4rem !important; }
.doc-body { padding-left: 0 !important; }
ol.steps li { padding-left: 0 !important; }
ol.steps li::before { display: none !important; }
/* Footer top line: brand and Schedule link in the same type, size and centre line (Erin: "not lined up"). */
.footer-brand { gap: 12px; }
.footer-brand .footer-logo { height: 28px; }
.footer-brand span { font: 400 1rem/1 var(--sans) !important; letter-spacing: -.01em !important; text-transform: none !important; }
.footer-top .textlink { font: 400 1rem/1 var(--sans) !important; padding: 0 !important; }

/* ── Forms: "soft floating" fields (Erin chose C, 2026-10-23). Each field is a soft white panel with its label inside,
      no hard outline; a gentle ring when you type. Buttons stay underlined text links. ── */
.form-grid { gap: 14px 16px !important; }
.form-grid .field:has(> input:not([type=checkbox]):not([type=file]):not([type=hidden])),
.form-grid .field:has(> select), .form-grid .field:has(> textarea) {
  position: relative; background: rgba(255, 255, 255, .78); border-radius: 14px; padding: 10px 16px 8px;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 23, .06), 0 1px 2px rgba(31, 26, 23, .03); transition: box-shadow .25s, background .25s; }
.form-grid .field:focus-within { background: #fff; box-shadow: inset 0 0 0 1px rgba(31, 26, 23, .18), 0 0 0 4px rgba(201, 169, 127, .22); }
.form-grid .field > label:not(.check) {
  font: 500 .74rem/1.3 var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-3) !important; margin: 0 0 2px !important; }
.form-grid .field > input:not([type=checkbox]):not([type=file]), .form-grid .field > select, .form-grid .field > textarea {
  border: 0 !important; border-bottom: 0 !important; background-color: transparent !important; background-image: none !important; box-shadow: none !important;
  padding: 2px 0 4px !important; font: 400 1rem/1.4 var(--sans) !important; color: var(--ink) !important; outline: none; }
.form-grid .field > select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B6058'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-size: 10px 6px !important; background-position: right 0 center !important; padding-right: 22px !important; }
.form-grid .field > textarea { min-height: 88px; resize: vertical; }
.form-grid fieldset legend { font: 500 .8rem/1.3 var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-2) !important; }
.form-grid .field > input[type=file] { margin-top: 4px; }
/* Clean labels everywhere (no typewriter look). */
.eyebrow, .label, .team-group, .cols h3, .contact-list dt, .portal-step {
  font: 500 .7rem/1.3 var(--sans) !important; letter-spacing: .16em !important; }
/* File picker styled to match (text link look, no grey system button). */
.form-grid input[type=file] { font: 400 .92rem var(--sans); color: var(--ink-2); }
.form-grid input[type=file]::file-selector-button { font: 500 .92rem var(--sans); color: var(--ink); background: none; border: 0;
  border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 4px 0; margin-right: 14px; cursor: pointer; }
.form-grid input[type=file]::file-selector-button:hover { color: var(--champ); border-bottom-color: var(--champ); }

/* ── Contact page v3: centred and focused. Quiet info strip, then one calm form column. ── */
.contact-hero { text-align: center; padding-bottom: 8px !important; }
.contact-hero .eyebrow { justify-content: center; }
.contact-hero h1, .contact-hero .lead { margin-left: auto; margin-right: auto; }
.contact-stack { max-width: 760px; margin: 0 auto; }
.contact-strip { list-style: none; margin: 0 0 40px; padding: 18px 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 14px 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-strip li { display: grid; gap: 2px; min-width: 0; }
.cs-k { font: 500 .68rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--champ); }
.cs-v { font: 400 .98rem/1.4 var(--sans); color: var(--ink); text-decoration: none; }
a.cs-v:hover { color: var(--champ); }
@media (max-width: 760px) { .contact-strip { grid-template-columns: 1fr 1fr; } }
.contact-stack #message .eyebrow { display: none; }
.contact-stack #message .form-title { text-align: left; }

/* Client Documents: an index of links; each document has its own page with details and the form. */
.doc-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.doc-index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.doc-index a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.2rem; color: var(--champ); transition: transform .3s var(--ease); }
.doc-index a:hover::after { transform: translateX(4px); }
.doc-index a:hover .doc-title { color: var(--champ); }
.doc-index .doc-title { grid-column: 1; }
.doc-index .doc-sub { grid-column: 1; }
.back-link { margin: 0 0 18px; font-size: .9rem; }
.back-link a { text-decoration: none; color: var(--ink-3); }
.back-link a:hover { color: var(--champ); }
/* Condition pages: back link sits higher, with more room before the eyebrow; the title does not move. */
.back-link.cond-back { margin: -28px 0 46px; }
.doc-page .wrap > h3 { font: 500 .7rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--champ); margin: 2.4em 0 1em; }
.doc-page .wrap > .prose:first-child > p:first-child { font-size: 1.1rem; color: var(--ink-2); }
.doc-page .request-form { max-width: 820px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

/* More noticeable ombre (Erin): deeper linen at the top fading to white. */
body { background: linear-gradient(180deg, #E6DACA 0%, #EFE7DB 30%, #F7F3EC 65%, #FFFFFF 100%) !important; }
.site-header { background: rgba(230, 218, 202, .78) !important; }
/* Menu spread across the full width (Erin): seven equal slots, each item centred in its slot, logo in the middle slot. */
@media (min-width: 1021px) {
  .site-header .wrap { grid-template-columns: 3fr 1fr 3fr !important; column-gap: 0 !important; }
  .nav-left, .nav-right { justify-self: stretch !important; }
  .nav-left .nav, .nav-right .nav { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 0 !important; }
  .nav-left .nav li, .nav-right .nav li { text-align: center; }
  .site-header .brand { justify-self: center; }
}
@media (min-width: 1021px) { .site-header .wrap { max-width: 1440px !important; } }
/* Final colours (Erin 2026-10-23): "Pearl" — #E6E1DA at the top fading to white. */
body { background: linear-gradient(180deg, #E6E1DA 0%, #FFFFFF 100%) !important; }
html { background: #FFFFFF !important; }
.site-header { background: rgba(230, 225, 218, .8) !important; }
/* Home: logo block and quick links centred vertically between the menu and the footer (equal space above and below). */
main.lp { min-height: calc(100svh - var(--hdr, 73px)); display: flex; flex-direction: column; justify-content: center; padding-block: 28px; }
main.lp .lp-hero { padding: 0 !important; }
main.lp .lp-quick { padding-bottom: 0 !important; }
main.lp + .site-footer { margin-top: 0 !important; }
main.lp > * { width: 100%; }
main.lp .lp-quick { max-width: 1000px; align-self: center; }
/* Home page only: no small logo in the menu (the big logo is right below it). The centre slot stays, so the six links
   keep their even spacing. */
body.home .site-header .brand img { visibility: hidden; }
@media (max-width: 1020px) { body.home .site-header .brand span { visibility: hidden; } }
/* Home: fixed, modest spacing instead of stretching to fill tall screens (Erin: too much empty space). */
main.lp { min-height: 0 !important; display: block !important; padding: 48px 0 !important; }
main.lp + .site-footer { margin-top: 0 !important; }
/* Home menu: no empty centre slot — the six links share the full width in six equal slots. */
@media (min-width: 1021px) {
  body.home .site-header .wrap { display: flex !important; }
  body.home .site-header .brand { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.home .nav-left, body.home .nav-right { flex: 1 1 0; }
}
/* Short pages: the footer always reaches the bottom of the window (no white strip under it). */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .site-header, body > .site-footer { flex-shrink: 0; }
html { background: #2A2C2E !important; }
html { background: #FFFFFF !important; }
body { background-color: #F3F0EB !important; }
/* Smaller team photos (Erin). */
.people img { max-width: 220px !important; margin-left: auto; margin-right: auto; }
.portrait { max-width: 260px !important; }
@media (max-width: 560px) { .people img { max-width: 200px !important; } }
/* Logo recoloured to a soft, even gold (Erin: "more gold, less shiny") — no extra filters. */
.lp-logo { filter: none !important; }
/* Logo shown exactly as designed (Erin's original rose-gold), no filters. */
.lp-logo, .site-header .brand img, .footer-logo { filter: none !important; }
/* Home quick links spread wider (Erin). */
main.lp .lp-quick { max-width: 1200px !important; }

/* ── Pearl luxe (Erin 2026-10-24, option B): the staff portal's 2030 look on the website — moving colour behind a
      floating glass menu bar, fonts unchanged. No cards: links stay open text. ── */

:root {
  --bg-0:#E7E2DA; --bg-1:#F3EFE9; --bg-2:#FCFBF9;
  --glass:rgba(255,255,255,.56); --glass-hi:rgba(255,255,255,.94); --glass-edge:rgba(255,255,255,.8); --shade:rgba(70,52,32,.22); --well:rgba(26,21,17,.05);
  --accent:#8A6A44; --accent-soft:rgba(184,149,95,.16);
  --orb-a:rgba(255,255,255,.95); --orb-b:rgba(222,190,146,.6); --orb-c:rgba(214,206,222,.75); --orb-d:rgba(200,214,226,.6);
  --wash-a:rgba(230,205,170,.55); --wash-b:rgba(210,214,226,.6); --wash-c:rgba(232,214,214,.55);
  --spring:cubic-bezier(.34,1.56,.64,1);
}
html { background: var(--bg-2) !important; }
body { color: var(--ink) !important; background:
    radial-gradient(70vw 60vh at 0% 0%, var(--wash-a), transparent 70%),
    radial-gradient(60vw 55vh at 100% 18%, var(--wash-b), transparent 70%),
    radial-gradient(80vw 60vh at 30% 100%, var(--wash-c), transparent 70%),
    linear-gradient(160deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-2) 100%) fixed !important; }
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(64px); }
.ambient i:nth-child(1) { width: 64vw; height: 64vw; left: -16vw; top: -30vw; background: radial-gradient(circle, var(--orb-a), transparent 66%); animation: lx1 26s var(--ease) infinite alternate; }
.ambient i:nth-child(2) { width: 48vw; height: 48vw; right: -12vw; top: -10vw; background: radial-gradient(circle, var(--orb-b), transparent 66%); animation: lx2 32s var(--ease) infinite alternate; }
.ambient i:nth-child(3) { width: 58vw; height: 58vw; left: 24vw; top: 46vh; background: radial-gradient(circle, var(--orb-c), transparent 66%); animation: lx3 38s var(--ease) infinite alternate; }
.ambient i:nth-child(4) { width: 40vw; height: 40vw; right: 4vw; top: 58vh; background: radial-gradient(circle, var(--orb-d), transparent 66%); animation: lx2 30s var(--ease) infinite alternate-reverse; }
@keyframes lx1 { to { transform: translate(9vw, 7vh) scale(1.08); } }
@keyframes lx2 { to { transform: translate(-8vw, 10vh) scale(.94); } }
@keyframes lx3 { to { transform: translate(-10vw, -8vh) scale(1.1); } }
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header .wrap { background: var(--glass) !important; -webkit-backdrop-filter: blur(28px) saturate(170%) !important; backdrop-filter: blur(28px) saturate(170%) !important;
  box-shadow: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-edge), 0 1px 1px rgba(0,0,0,.03), 0 28px 56px -30px var(--shade) !important; }
/* floating glass bar */
.site-header { position: sticky; top: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 14px 16px 0; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.site-header .wrap { border-radius: 22px !important; min-height: 68px !important; max-width: 1360px !important; }
.site-header .nav a, .site-header .menu-word { color: var(--ink-2) !important; }
.site-header .nav a[aria-current="page"] { color: var(--ink) !important; }
/* hero */
.lp-logo { filter: drop-shadow(0 24px 48px var(--shade)) !important; }
.lp-tag { letter-spacing: .32em !important; color: var(--ink-3) !important; }
.lp-phone { color: var(--ink) !important; }
main.lp .lp-hero, main.lp .lp-quick { animation: lxrise .8s var(--ease) both; }
main.lp .lp-quick { animation-delay: .12s; }
@keyframes lxrise { from { opacity: .001; transform: translateY(14px); } }
/* B: open (no cards) */
.lp-quick a { border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .ambient i, main.lp .lp-hero, main.lp .lp-quick { animation: none !important; } }

/* No purple (Erin): the moving colour stays warm — champagne, ivory and soft stone only. */
:root { --orb-c: rgba(228, 214, 194, .62); --orb-d: rgba(238, 230, 216, .6); --wash-b: rgba(236, 224, 206, .6); --wash-c: rgba(241, 233, 221, .55); }
/* Subtler, linen (Erin): low-saturation greige-ivory, no yellow; the drifting light is faint. */
:root { --bg-0: #E9E5DF; --bg-1: #F3F0EB; --bg-2: #FBFAF8;
  --wash-a: rgba(226, 220, 212, .45); --wash-b: rgba(232, 228, 222, .40); --wash-c: rgba(236, 232, 226, .40);
  --orb-a: rgba(255, 255, 255, .70); --orb-b: rgba(222, 215, 205, .35); --orb-c: rgba(228, 223, 216, .35); --orb-d: rgba(236, 232, 226, .35); }
/* Home: never let the centred hero slide up under the floating menu bar on short windows (Erin's screenshot). */
main.lp { justify-content: safe center !important; min-height: calc(100svh - 96px) !important; }
.lp-logo { height: clamp(200px, calc(100svh - 96px - 440px), 560px) !important; }
/* Menu bar: nearly solid so nothing (like the home logo) ever shows through it while scrolling (Erin). */
.site-header .wrap { background: rgba(250, 249, 247, .94) !important; }
.site-header { z-index: 30 !important; }
.site-header { background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-0) 60%, rgba(233, 229, 223, 0) 100%) !important; padding-bottom: 10px !important; }
/* Home logo back to its big size (Erin): fills the space between the bar and the tagline. */
.lp-logo { height: clamp(300px, calc(100svh - 360px), 660px) !important; }
@media (max-width: 760px) { .lp-logo { height: auto !important; width: min(80vw, 340px) !important; } }
/* Headline font: Italiana, the staff portal's display face (Erin picked it from six options, 2026-10-24). Self-hosted. */
@font-face { font-family: "Italiana"; src: url("/fonts/italiana-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root { --hero: "Italiana", "Instrument Serif", Georgia, serif; }
h1, .portal-pitch h1 { font: 400 clamp(2.6rem, 5.6vw, 4.6rem)/1.04 var(--hero) !important; letter-spacing: .01em !important; }
h1 em, h2 em { font-family: var(--hero) !important; font-style: normal !important; color: var(--accent) !important; }
.lp-tagline { font: 400 clamp(1.9rem, 3.4vw, 3rem)/1.12 var(--hero) !important; letter-spacing: .03em !important; color: var(--ink) !important; max-width: 22em; }
.lp-tagline em { font-family: var(--hero) !important; font-style: normal !important; color: var(--accent) !important; }
.lp-quick strong { font: 400 1.6rem/1.1 var(--hero) !important; letter-spacing: .02em; }
.portal-hello, .portal-title, .portal-when, .chat-name { font-family: var(--hero) !important; letter-spacing: .01em !important; font-style: normal !important; }
.chat-name { font-size: 1.25rem !important; }
@media (max-width: 760px) { .lp-quick strong { font-size: 1.3rem !important; } }
/* Accent words keep the elegant italic (Erin: "Italiana, but with the cursive too"). */
h1 em, h2 em, .lp-tagline em { font-family: var(--serif) !important; font-style: italic !important; letter-spacing: -.01em !important; color: var(--accent) !important; }
/* App-like page changes: pages cross-fade and rise into place instead of blinking; the menu bar stays put.
   Browsers without support simply load the page as before. Off for reduced motion. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-bar; }
::view-transition-old(root) { animation: 220ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
/* Questionnaires: one question at a time (js/screener.js adds .stepper). */
.screener.stepper fieldset[data-item], .screener.stepper fieldset[data-gate] { display: none; }
.screener.stepper fieldset.is-current { display: block; border-top: 0; padding-top: 4px; animation: lxrise .35s var(--ease) both; }
.screener.stepper.done fieldset.is-current, .screener.stepper.done .sc-nav, .screener.stepper.done .sc-head { display: none; }
.screener.stepper .qn { display: none; }
.screener.stepper legend { font: 400 clamp(1.3rem, 2.2vw, 1.6rem)/1.3 var(--sans); letter-spacing: -.015em; margin-bottom: 16px; }
.screener.stepper .opts { flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.screener.stepper label { display: flex !important; width: 100%; margin: 0 !important; padding: 15px 2px !important; border-bottom: 1px solid var(--line); font-size: 1.02rem !important; transition: color .2s var(--ease), padding .25s var(--ease); }
.screener.stepper label:hover { color: var(--champ); padding-left: 8px !important; }
.screener.stepper label:has(input:checked) { color: var(--champ) !important; text-decoration: none !important; font-weight: 500; }
.screener.stepper .btn-row [data-score] { display: none; }
.sc-head { margin: 6px 0 22px; }
.sc-count { margin: 0 0 8px; font: 700 .74rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--champ); }
.sc-progress { height: 2px; background: var(--line); }
.sc-progress i { display: block; height: 100%; width: 0; background: var(--champ); transition: width .45s var(--ease); }
.sc-nav { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 6px; }
.sc-nav .sc-back[hidden] { display: inline-block !important; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .screener.stepper fieldset.is-current { animation: none; } .sc-progress i { transition: none; } }
/* Insurance checker */
.plan-check { max-width: 34rem; margin: 6px 0 22px; }
.plan-answer { margin: 12px 0 0; min-height: 1.5em; font-size: 1.05rem; }
.plan-answer.yes { color: var(--ink); padding-left: 14px; border-left: 2px solid var(--champ); }
.plan-answer.no { color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--line); }
[data-plan-list] li { transition: opacity .25s var(--ease), color .25s var(--ease); }
[data-plan-list] li.dim { opacity: .28; }
[data-plan-list] li.hit { color: var(--champ); font-weight: 500; }
form.stepped .sc-head { margin-top: 18px; }
form.stepped .form-grid > [hidden] { display: none !important; }
form.stepped .sc-nav { max-width: none; }
form.stepped .btn-row.is-off, form.stepped .sc-next.is-off { display: none !important; }
form.stepped .sc-back.is-off { visibility: hidden; }
form.stepped .sc-nav .btn-row { margin: 0; }
/* Team → bio: the person's photo glides from the team grid into place on their bio page (and back). */
img[src="/images/erin-moran.jpg"] { view-transition-name: p-erin; }
img[src="/images/alissa-boyer.jpg"] { view-transition-name: p-alissa; }
img[src="/images/danielle-bellis.jpg"] { view-transition-name: p-danielle; }
img[src="/images/katie-green.jpg"] { view-transition-name: p-katieg; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }
/* Phone menu: a full-screen frosted panel with large links that rise in one after another. */
@media (max-width: 1020px) {
  .nav-mobile .sheet { left: 16px !important; right: 16px !important; top: 96px !important; bottom: 16px !important; border-radius: 22px !important; padding: 18px 26px 26px !important;
    background: rgba(250, 249, 247, .9) !important; -webkit-backdrop-filter: blur(28px) saturate(170%) !important; backdrop-filter: blur(28px) saturate(170%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94), inset 0 0 0 1px rgba(255, 255, 255, .8), 0 28px 56px -30px rgba(70, 52, 32, .22) !important; }
  .nav-mobile .sheet li a { font: 400 2rem/1.1 var(--hero, var(--sans)) !important; letter-spacing: .01em !important; padding: 14px 0 !important; }
  .nav-mobile[open] .sheet { animation: lxrise .45s var(--ease) both; }
  .nav-mobile[open] .sheet li { animation: lxrise .5s var(--ease) both; }
  .nav-mobile[open] .sheet li:nth-child(2) { animation-delay: .04s; } .nav-mobile[open] .sheet li:nth-child(3) { animation-delay: .08s; }
  .nav-mobile[open] .sheet li:nth-child(4) { animation-delay: .12s; } .nav-mobile[open] .sheet li:nth-child(5) { animation-delay: .16s; }
  .nav-mobile[open] .sheet li:nth-child(6) { animation-delay: .20s; } .nav-mobile[open] .sheet li:nth-child(7) { animation-delay: .24s; }
  .nav-mobile[open] .sheet li:nth-child(8) { animation-delay: .28s; }
}
@media (prefers-reduced-motion: reduce) { .nav-mobile[open] .sheet, .nav-mobile[open] .sheet li { animation: none !important; } ::view-transition-group(*) { animation: none; } }
@media (max-width: 1020px) {
  .site-header .wrap:has(.nav-mobile[open]) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(250, 249, 247, .98) !important; }
}
@media (max-width: 1020px) { .nav-mobile .sheet { background: rgba(250, 249, 247, .985) !important; } }
@media (max-width: 1020px) { .nav-mobile .sheet { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #FAF9F7 !important; } }
/* Site search */
.site-header .wrap { position: relative; }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink-2); cursor: pointer; border-radius: 0; }
.search-btn:hover { color: var(--champ); }
@media (max-width: 1020px) { .search-btn { right: 104px; } }
.search-dlg { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 640px); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 22px; color: var(--ink);
  background: rgba(252, 251, 249, .97); box-shadow: inset 0 1px 0 #fff, 0 40px 90px -30px rgba(40, 30, 20, .45); overflow: hidden; }
.search-dlg[open] { display: flex; flex-direction: column; animation: lxrise .3s var(--ease) both; }
.search-dlg::backdrop { background: rgba(30, 26, 22, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.search-box input { flex: 1; border: 0; background: none; font: 400 1.15rem/1.3 var(--sans); color: var(--ink); outline: none; }
.search-close { border: 0; background: none; font: 600 .72rem/1 var(--sans); letter-spacing: .1em; color: var(--ink-3); cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results a { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.search-results li.on a { background: rgba(122, 94, 63, .08); }
.search-results strong { display: block; font: 500 1.02rem/1.3 var(--sans); }
.sr-group { display: block; font: 700 .66rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--champ); margin-bottom: 2px; }
.sr-desc { display: block; font-size: .86rem; color: var(--ink-3); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-none { padding: 18px 14px; color: var(--ink-3); }
.search-foot { margin: 0; padding: 10px 20px 14px; font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.search-box svg { flex: none; display: block; color: var(--ink-3); }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
/* "Message us" text-message conversation (contact page) */
form.chatified .form-privacy { margin-bottom: 18px; }
.msg-chat { max-width: none; margin: 0 0 12px; }
.msg-chat .chat-stream { min-height: 300px; max-height: min(60vh, 560px); padding: 20px 20px 12px; }
.msg-chat .chat-msg { max-width: min(80%, 30rem); }
.msg-chat .chat-msg.still { animation: none; }
.msg-chat .chat-msg.editable { cursor: pointer; }
.msg-chat .chat-msg.editable:hover, .msg-chat .chat-msg.editable:focus-visible { filter: brightness(1.06); outline: none; box-shadow: 0 0 0 3px rgba(201, 169, 127, .35); }
.chat-msg.typing { display: flex; gap: 4px; padding: 14px 16px; }
.chat-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .4; animation: chat-dot 1s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; } .chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 100% { opacity: .25; transform: none; } 40% { opacity: .8; transform: translateY(-3px); } }
.chat-summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .9rem; }
.chat-summary dt { color: var(--ink-3); } .chat-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-dock { padding: 4px 16px 16px; }
.chat-dock .chat-compose { padding: 8px 0 0; border: 0; }
.chat-dock .chat-compose input { flex: 1; min-height: 44px; padding: 11px 18px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px rgba(31, 26, 23, .1); font: 400 .97rem/1.4 var(--sans); color: var(--ink); }
.chat-dock .chat-compose input:focus { outline: none; box-shadow: inset 0 0 0 1.5px #B08A5B, 0 0 0 4px rgba(201, 169, 127, .22); }
.chat-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 8px; }
.chat-chip { border: 0; border-radius: 18px; padding: 9px 15px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1.5px rgba(31, 26, 23, .35); color: var(--ink); font: 500 .92rem/1.2 var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.chat-chip:hover, .chat-chip:focus-visible, .chat-chip.on { background: #2A2420; color: #fff; outline: none; }
.chat-err { margin: 6px 4px 0; font-size: .86rem; color: #8A2A1A; min-height: 1em; }
.chat-err:empty { display: none; }
.chat-dock .field { margin-top: 10px; }
.chat-dock .btn-row { margin-top: 14px; }
form.chatified .form-grid { display: none !important; }
.msg-chat .chat-summary { max-width: min(92%, 30rem); }
.chat-summary dl { display: block; }
.chat-summary dt { font: 700 .66rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
.chat-summary dt:first-child { margin-top: 0; }
form.chatified .btn-row.is-off { display: none !important; }

/* ── Dark mode: black and gold (Erin, 2026-10-24: "black and gold, not silver"). Follows the visitor's device setting. ── */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #F4EEE4; --ink-2: #D8CFC1; --ink-3: #ADA392; --line: rgba(212, 175, 106, .2);
    --champ: #CBAA86; --accent: #C4A27E; --accent-soft: rgba(196, 162, 126, .14);
    --champ-grad: linear-gradient(100deg, #A9823F 0%, #D4B794 38%, #F6E3B4 50%, #B8936C 64%, #A9823F 100%);
    --ivory-top: #0A0908; --ivory-mid: #0D0C0A; --ivory-low: #0A0908;
    --bg-0: #070605; --bg-1: #0D0B09; --bg-2: #12100D;
    --glass: rgba(24, 21, 17, .72); --glass-hi: rgba(196, 162, 126, .16); --glass-edge: rgba(196, 162, 126, .14); --shade: rgba(0, 0, 0, .7); --well: rgba(255, 255, 255, .04);
    --wash-a: rgba(201, 158, 82, .10); --wash-b: rgba(120, 92, 48, .08); --wash-c: rgba(201, 158, 82, .06);
    --orb-a: rgba(196, 162, 126, .10); --orb-b: rgba(160, 120, 60, .10); --orb-c: rgba(196, 162, 126, .06); --orb-d: rgba(120, 90, 45, .08);
    --deep: #040403; --deep-ink: #F4EEE4; --deep-soft: #B8AD9B; --deep-line: rgba(196, 162, 126, .18);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .5);
  }
  html { background: var(--bg-1) !important; }
  ::selection { background: rgba(196, 162, 126, .45); color: #fff; }
  .site-header { background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-0) 60%, rgba(7, 6, 5, 0) 100%) !important; }
  .site-header .wrap { background: rgba(18, 16, 13, .94) !important; box-shadow: inset 0 0 0 1px rgba(196, 162, 126, .18), 0 28px 56px -30px #000 !important; }
  .site-header .nav a[aria-current="page"], .site-header .nav a:hover { color: var(--champ) !important; background: none !important; }
  @media (max-width: 1020px) { .nav-mobile .sheet { background: #0A0908 !important; } }
  .site-footer { border-top: 1px solid rgba(196, 162, 126, .22); }
  .btn.ghost { border-bottom-color: rgba(244, 238, 228, .35) !important; }
  .skip { background: #12100D; }
  /* 988 crisis notice: light ink + a brighter red rule on the dark page (was dark brown #4A1A10, unreadable). */
  .crisis { color: var(--ink); border-left-color: #E07A62 !important; }
  /* Light surfaces become warm black panels with a fine gold edge. */
  .form-grid .field, .form-grid input, .form-grid select, .form-grid textarea, .form-status, .screener label, .screener-result,
  .chat, .chat-head, .chat-msg.them, .chat-msg.failed, .chat-compose textarea, .chat-dock .chat-compose input, .chat-logo, .search-dlg {
    background-color: #17140F !important; color: var(--ink) !important; }
  .form-grid .field { box-shadow: inset 0 0 0 1px rgba(196, 162, 126, .16) !important; }
  .form-grid .field:focus-within { background: #1D1913 !important; box-shadow: inset 0 0 0 1px rgba(196, 162, 126, .5), 0 0 0 4px rgba(196, 162, 126, .14) !important; }
  .form-grid input, .form-grid select, .form-grid textarea { background-color: transparent !important; }
  .chat { box-shadow: inset 0 0 0 1px rgba(196, 162, 126, .16), 0 30px 80px -30px #000 !important; }
  .chat-msg.them { box-shadow: inset 0 0 0 1px rgba(196, 162, 126, .12) !important; }
  .chat-msg.me, .chat-send, .chat-chip:hover, .chat-chip:focus-visible, .chat-chip.on { background: #EDE7DD !important; color: #15120F !important; box-shadow: none !important; }
  .chat-chip { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px rgba(244, 238, 228, .4) !important; }
  .chat-msg.failed { color: #F0A493 !important; }
  .chat-err { color: #F0A493; }
  .chat-compose textarea, .chat-dock .chat-compose input { box-shadow: inset 0 0 0 1px rgba(196, 162, 126, .25) !important; }
  .search-dlg { box-shadow: inset 0 0 0 1px rgba(196, 162, 126, .22), 0 40px 90px -30px #000 !important; }
  .search-dlg::backdrop { background: rgba(0, 0, 0, .6); }
  .search-results li.on a { background: rgba(196, 162, 126, .12); }
  .lp-logo { filter: drop-shadow(0 0 40px rgba(196, 162, 126, .18)) !important; }
  .npp .draft-banner { color: #F0A493; }
}
/* Chat bubbles: soft charcoal, no gold (Erin, 2026-10-24: "i dont really like the gold"). */
.chat-msg.me { background: #2A2420; color: #fff; box-shadow: 0 8px 20px -12px rgba(31, 26, 23, .6); }
.chat-send { background: #2A2420; box-shadow: 0 6px 16px -8px rgba(31, 26, 23, .6); }
.msg-chat .chat-msg.editable:hover, .msg-chat .chat-msg.editable:focus-visible { box-shadow: 0 0 0 3px rgba(31, 26, 23, .2); }
/* Insurance: billing question or superbill, as one text conversation (Erin picked "text-message style", 2026-10-24). */
.chat-group { max-width: 760px; }
.chat-group > h2 { margin-top: 0; }
.chat-group form.chat-off { display: none !important; }
.chat-grouped form .eyebrow, .chat-grouped form .form-title, .chat-grouped form .form-privacy { display: none; }
.chat-picker .form-privacy { margin-bottom: 18px; }
.chat-picker .chat-stream { min-height: 0; }

/* ── Document request forms, higher tech (Erin, 2026-10-24): glass panel, named progress, tap-to-choose answers,
      live checkmarks, drag-and-drop attachments, review before sending. Logic in js/site.js. ── */
form.lux-form { position: relative; padding: clamp(22px, 3.4vw, 40px); border-radius: 26px; background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 40px 80px -40px rgba(60, 45, 30, .35); }
form.lux-form .eyebrow { margin-top: 0; }
.lux-steps { margin: 20px 0 26px !important; }
.lux-steps .sc-count { color: var(--ink-3); letter-spacing: .14em; }
.lux-track { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.lux-track li { flex: 1; min-width: 0; }
.lux-seg { width: 100%; display: block; padding: 0; border: 0; background: none; text-align: left; cursor: default; color: var(--ink-3); font: 500 .76rem/1.3 var(--sans); }
.lux-seg i { display: block; height: 4px; border-radius: 0; background: var(--line); margin-bottom: 8px; position: relative; overflow: hidden; }
.lux-seg i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.lux-seg.done i::after, .lux-seg.now i::after { transform: scaleX(1); }
.lux-seg.now { color: var(--ink); }
.lux-seg.done { cursor: pointer; color: var(--ink-2); }
.lux-seg.done:hover span { text-decoration: underline; }
.lux-seg span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .lux-seg span { display: none; } }
.lux-in-fwd { animation: lux-fwd .45s var(--ease) both; }
.lux-in-back { animation: lux-back .45s var(--ease) both; }
@keyframes lux-fwd { from { opacity: 0; transform: translateX(24px); } }
@keyframes lux-back { from { opacity: 0; transform: translateX(-24px); } }
/* live checkmark on valid fields */
form.lux-form .form-grid .field { position: relative; transition: box-shadow .25s, background .25s; }
form.lux-form .field.is-ok::after { content: "✓"; position: absolute; right: 16px; top: 12px; font: 600 .82rem/1 var(--sans); color: #4E7A4A; animation: lxrise .3s var(--ease) both; }
form.lux-form .field.is-ok:has(input[type=date])::after { right: 50px; }
form.lux-form .field.is-bad { box-shadow: inset 0 0 0 1.5px #B8432C !important; }
form.lux-form .field:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 5px rgba(31, 26, 23, .06) !important; }
/* tap-to-choose answers */
.is-replaced { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.tap-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tap-choices button { border: 0; border-radius: 18px; padding: 9px 15px; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1.5px rgba(31, 26, 23, .22);
  color: var(--ink); font: 500 .92rem/1.2 var(--sans); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.tap-choices button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tap-choices button.on { background: #2A2420; color: #fff; box-shadow: none; }
.tap-choices button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.form-grid .field:has(.tap-choices) { grid-column: 1 / -1; }
/* drag-and-drop attachments */
.drop-zone { margin-top: 8px; padding: 22px; border-radius: 16px; text-align: center; background: rgba(255, 255, 255, .5);
  box-shadow: inset 0 0 0 1.5px rgba(31, 26, 23, .18); transition: background .2s, box-shadow .2s; }
.drop-zone.over { background: rgba(255, 255, 255, .95); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 6px rgba(31, 26, 23, .06); }
.drop-zone .dz-main { margin: 0; }
.drop-zone .hint { margin: 6px 0 0; }
.dz-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.drop-zone.has-files .dz-list { margin-top: 14px; border-top: 1px solid var(--line); }
.dz-list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); animation: lxrise .3s var(--ease) both; }
.dz-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-size { font-size: .84rem; color: var(--ink-3); }
/* review before sending */
.lux-review { grid-column: 1 / -1; padding: 4px 0 8px; }
.lux-review-title { margin: 0 0 10px; font: 700 .74rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.lux-review dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 32%) 1fr; border-top: 1px solid var(--line); }
.lux-review dt, .lux-review dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lux-review dt { color: var(--ink-3); font-size: .88rem; padding-right: 14px; }
.lux-review dd { display: flex; gap: 12px; justify-content: space-between; overflow-wrap: anywhere; white-space: pre-wrap; }
.lux-edit { flex: none; font-size: .82rem !important; }
@media (max-width: 600px) { .lux-review dl { grid-template-columns: 1fr; } .lux-review dt { border-bottom: 0; padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .lux-in-fwd, .lux-in-back, .lux-seg i::after { animation: none !important; transition: none !important; } }
@media (prefers-color-scheme: dark) {
  form.lux-form { background: rgba(20, 17, 14, .7); box-shadow: inset 0 0 0 1px rgba(196, 162, 126, .16), 0 40px 80px -40px #000; }
  .lux-seg i::after { background: var(--champ); }
  .tap-choices button { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(244, 238, 228, .35); }
  .tap-choices button.on { background: #EDE7DD; color: #15120F; }
  .drop-zone { background: #17140F; box-shadow: inset 0 0 0 1.5px rgba(196, 162, 126, .25); }
  .drop-zone.over { background: #1D1913; box-shadow: inset 0 0 0 2px var(--champ); }
  form.lux-form .field.is-ok::after { color: #8CC08A; }
  form.lux-form .field:focus-within { box-shadow: inset 0 0 0 1.5px var(--champ), 0 0 0 5px rgba(196, 162, 126, .1) !important; }
}
/* Short phone screens (e.g. iPhone Duo folded, 466×678): the menu fits without scrolling. */
@media (max-width: 1020px) and (max-height: 760px) {
  .nav-mobile .sheet li a { font-size: 1.5rem !important; padding: 9px 0 !important; }
  .nav-mobile .sheet { padding-top: 10px !important; }
}
/* Practice team: one person since Katie Lehnig was removed (Erin, 2026-10-25), so centre a single card. */
.people-staff:has(> li:only-child) { grid-template-columns: minmax(0, 360px) !important; justify-content: center; }
/* Team page: four people in two rows of two (Erin, 2026-10-25). */
.people.people-grid2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 56px 64px; }
@media (max-width: 560px) { .people.people-grid2 { grid-template-columns: 1fr; } }

/* ── Patient portal: the EKM OS home-page LOOK (Erin, 2026-10-25: "just the design", not its content). Same screens and
      content as before; frosted glass panels, Italiana display type, wide-spaced labels. Linen by default; navy-slate
      glass when the patient's device is in dark mode. ── */
.portal-screen { --pglass: rgba(255, 255, 255, .52); --pglass-edge: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .6);
  --pglass-shadow: 0 30px 70px -40px rgba(60, 45, 30, .35); }
.portal-screen .portal-label { font: 600 .74rem/1.3 var(--sans) !important; letter-spacing: .3em !important; text-transform: uppercase; color: var(--ink-2) !important; }
.portal-screen .portal-hello { font: 400 clamp(2.8rem, 6vw, 4.8rem)/1 var(--hero) !important; letter-spacing: .03em !important; }
.portal-screen .portal-title { font: 400 clamp(2.4rem, 5vw, 3.8rem)/1.05 var(--hero) !important; letter-spacing: .02em !important; }
.portal-screen .portal-when { font: 400 clamp(2.2rem, 4.4vw, 3.4rem)/1.05 var(--hero) !important; letter-spacing: .02em; }
.portal-screen .portal-next-label { letter-spacing: .3em; }
/* glass panels: the next-visit box, the to-do list, "Your portal" groups and "Need something?" on home; every top-level list
   and the profile/billing blocks on the inner screens */
.portal-overview > div:first-child > div:has(.portal-when),
.portal-overview .portal-quick,
.portal-overview > div:last-child,
.portal-screen > .portal-list, .portal-screen > ul.portal-list, .portal-screen > .portal-dl, .portal-screen > section,
.portal-screen > div:has(> .portal-list:only-child),
.portal-screen .portal-profile > section {
  padding: clamp(20px, 2.6vw, 32px) clamp(20px, 2.6vw, 34px); border-radius: 26px; background: var(--pglass);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--pglass-edge), var(--pglass-shadow); }
.portal-overview > div:first-child > div:has(.portal-when) { margin-top: 28px; }
.portal-overview .portal-quick { margin-top: 28px; border-top: 0 !important; max-width: none; }
.portal-overview > div:first-child > div:has(.portal-when) > :first-child { margin-top: 0; }
.portal-overview > div:last-child .portal-groups section:first-child { margin-top: 28px; }
.portal-screen > div:has(> .portal-list:only-child) .portal-list li:last-child,
.portal-screen > .portal-list li:last-child, .portal-overview .portal-quick .portal-list li:last-child { border-bottom: 0; }
.portal-screen > * + .portal-list, .portal-screen > * + section { margin-top: 24px; }
.portal-screen .portal-profile { gap: 24px; }
.portal-screen .portal-profile > section { border-top: 0; }
@media (prefers-color-scheme: dark) {
  body[data-section="patient-portal"] { --bg-0: #1B2433; --bg-1: #273042; --bg-2: #3A4252; --ink: #F3F4F7; --ink-2: #CDD2DC; --ink-3: #A3AABA;
    --line: rgba(255, 255, 255, .1); --accent: #B9C6E4; --champ: #C9D3EA;
    --wash-a: rgba(120, 140, 180, .18); --wash-b: rgba(90, 100, 130, .2); --wash-c: rgba(150, 160, 185, .12);
    --orb-a: rgba(140, 155, 190, .14); --orb-b: rgba(90, 105, 140, .14); --orb-c: rgba(120, 130, 160, .1); --orb-d: rgba(80, 90, 120, .12); }
  html:has(body[data-section="patient-portal"]) { background: #1B2433 !important; }
  body[data-section="patient-portal"] .site-header { background: linear-gradient(180deg, #1B2433 0%, #1B2433 60%, rgba(27, 36, 51, 0) 100%) !important; }
  body[data-section="patient-portal"] .site-header .wrap { background: rgba(40, 48, 64, .92) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 28px 56px -30px #000 !important; }
  .portal-screen { --pglass: rgba(48, 56, 74, .62); --pglass-edge: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .07); --pglass-shadow: 0 30px 70px -40px #000; }
  body[data-section="patient-portal"] .portal-groups section { border-top-color: rgba(255, 255, 255, .55); }
}

/* ── Patient portal glass, more transparent and high tech (Erin, 2026-10-25): see-through frosted panels with a lit edge,
      a sheen that follows the pointer, brighter drifting light behind them, and panels that rise in. ── */
body[data-section="patient-portal"] { --orb-a: rgba(255, 255, 255, .95); --orb-b: rgba(222, 196, 160, .55); --orb-c: rgba(206, 214, 222, .55); --orb-d: rgba(232, 214, 190, .55);
  --wash-a: rgba(226, 206, 178, .5); --wash-b: rgba(214, 220, 226, .45); --wash-c: rgba(236, 222, 204, .45); }
body[data-section="patient-portal"] .ambient i { filter: blur(54px); }
:is(.portal-overview > div:first-child > div:has(.portal-when), .portal-overview .portal-quick, .portal-overview > div:last-child,
    .portal-screen > .portal-list, .portal-screen > .portal-dl, .portal-screen > section, .portal-screen > div:has(> .portal-list:only-child),
    .portal-screen .portal-profile > section) {
  position: relative; isolation: isolate;
  background: linear-gradient(140deg, rgba(255, 255, 255, .46) 0%, rgba(255, 255, 255, .16) 55%, rgba(255, 255, 255, .26) 100%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(185%) brightness(1.04); backdrop-filter: blur(30px) saturate(185%) brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 1px 2px rgba(60, 45, 30, .05), 0 34px 80px -42px rgba(60, 45, 30, .45) !important;
  animation: glass-rise .7s var(--ease) both;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
/* lit edge: a 1px gradient border, bright top-left fading to clear */
:is(.portal-overview > div:first-child > div:has(.portal-when), .portal-overview .portal-quick, .portal-overview > div:last-child,
    .portal-screen > .portal-list, .portal-screen > .portal-dl, .portal-screen > section, .portal-screen > div:has(> .portal-list:only-child),
    .portal-screen .portal-profile > section)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 40%, rgba(255, 255, 255, .05) 70%, rgba(255, 255, 255, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
/* sheen that follows the pointer (position set by js/portal.js) */
:is(.portal-overview > div:first-child > div:has(.portal-when), .portal-overview .portal-quick, .portal-overview > div:last-child,
    .portal-screen > .portal-list, .portal-screen > .portal-dl, .portal-screen > section, .portal-screen > div:has(> .portal-list:only-child),
    .portal-screen .portal-profile > section)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .55), transparent 60%);
}
:is(.portal-overview > div:first-child > div:has(.portal-when), .portal-overview .portal-quick, .portal-overview > div:last-child,
    .portal-screen > .portal-list, .portal-screen > .portal-dl, .portal-screen > section, .portal-screen > div:has(> .portal-list:only-child),
    .portal-screen .portal-profile > section):hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(60, 45, 30, .05), 0 40px 90px -40px rgba(60, 45, 30, .55) !important; }
:is(.portal-overview > div:first-child > div:has(.portal-when), .portal-overview .portal-quick, .portal-overview > div:last-child,
    .portal-screen > .portal-list, .portal-screen > .portal-dl, .portal-screen > section, .portal-screen > div:has(> .portal-list:only-child),
    .portal-screen .portal-profile > section):hover::after { opacity: 1; }
.portal-overview > div:last-child { animation-delay: .08s; }
.portal-overview .portal-quick { animation-delay: .14s; }
.portal-screen .portal-profile > section:nth-child(2) { animation-delay: .05s; } .portal-screen .portal-profile > section:nth-child(3) { animation-delay: .1s; }
.portal-screen .portal-profile > section:nth-child(4) { animation-delay: .15s; } .portal-screen .portal-profile > section:nth-child(n+5) { animation-delay: .2s; }
@keyframes glass-rise { from { opacity: 0; transform: translateY(16px) scale(.985); } }
/* rows light up under the pointer */
.portal-screen .portal-list li { position: relative; transition: background .25s var(--ease); }
.portal-screen .portal-list li:has(.portal-go:hover, a:hover) { background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45) 30%, rgba(255, 255, 255, 0)); }
@media (prefers-reduced-motion: reduce) {
  .portal-screen *, .portal-overview > div { animation: none !important; transition: none !important; }
  :is(.portal-overview > div, .portal-screen > section, .portal-screen .portal-profile > section):hover { transform: none !important; }
}
@media (prefers-color-scheme: dark) {
  body[data-section="patient-portal"] { --orb-a: rgba(150, 170, 215, .3); --orb-b: rgba(110, 130, 180, .3); --orb-c: rgba(170, 180, 210, .22); --orb-d: rgba(90, 110, 160, .28);
    --wash-a: rgba(120, 140, 190, .3); --wash-b: rgba(90, 105, 150, .3); --wash-c: rgba(150, 165, 200, .2); }
  :is(.portal-overview > div:first-child > div:has(.portal-when), .portal-overview .portal-quick, .portal-overview > div:last-child,
      .portal-screen > .portal-list, .portal-screen > .portal-dl, .portal-screen > section, .portal-screen > div:has(> .portal-list:only-child),
      .portal-screen .portal-profile > section) {
    background: linear-gradient(140deg, rgba(120, 135, 170, .26) 0%, rgba(50, 60, 82, .2) 55%, rgba(80, 92, 120, .24) 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 34px 80px -42px #000 !important; }
  :is(.portal-overview > div:first-child > div:has(.portal-when), .portal-overview .portal-quick, .portal-overview > div:last-child,
      .portal-screen > .portal-list, .portal-screen > .portal-dl, .portal-screen > section, .portal-screen > div:has(> .portal-list:only-child),
      .portal-screen .portal-profile > section)::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, 0) 70%, rgba(185, 198, 228, .35)); }
  :is(.portal-overview > div:first-child > div:has(.portal-when), .portal-overview .portal-quick, .portal-overview > div:last-child,
      .portal-screen > .portal-list, .portal-screen > .portal-dl, .portal-screen > section, .portal-screen > div:has(> .portal-list:only-child),
      .portal-screen .portal-profile > section)::after {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(185, 198, 228, .16), transparent 60%); }
  :is(.portal-overview > div:first-child > div:has(.portal-when), .portal-overview .portal-quick, .portal-overview > div:last-child,
      .portal-screen > .portal-list, .portal-screen > .portal-dl, .portal-screen > section, .portal-screen > div:has(> .portal-list:only-child),
      .portal-screen .portal-profile > section):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 40px 90px -40px #000 !important; }
  .portal-screen .portal-list li:has(.portal-go:hover, a:hover) { background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(185, 198, 228, .1) 30%, rgba(255, 255, 255, 0)); }
}

/* ── Portal sign-in, card look (Erin, 2026-11-05: her mock-up, "dont use this background but make it similar"): a frosted
      card with a lit gold edge, the label above a rounded email box, a gold pill button, a "Secure & private" divider and
      icons on the three portal features. Background: our own drifting light plus a faint fading grid and a soft gold halo
      behind the card — no light streaks or watermark. Linen in light mode, deep navy in dark mode. ── */
body[data-section="patient-portal"] .portal-gate {
  --g-gold: #84612B; --g-gold-soft: rgba(169, 130, 74, .35); --g-card: linear-gradient(150deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
  --g-card-shadow: 0 40px 90px -46px rgba(60, 45, 30, .5); --g-field: rgba(255, 255, 255, .7); --g-grid: rgba(120, 95, 60, .07);
  --g-btn: linear-gradient(100deg, #C9A46A 0%, #E8CF9C 45%, #D9B57A 70%, #B98F55 100%); --g-btn-ink: #2A2017; --g-halo: rgba(214, 178, 118, .28);
  position: relative; isolation: isolate; }
body[data-section="patient-portal"] .portal-gate::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--g-grid) 1px, transparent 1px), linear-gradient(90deg, var(--g-grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 62% 45%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 65% at 62% 45%, #000 0%, transparent 72%); }
body[data-section="patient-portal"] .portal-gate::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: min(780px, 70vw); aspect-ratio: 1; right: 2%; top: 50%;
  transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, var(--g-halo), transparent 62%); filter: blur(20px);
  animation: g-breathe 9s ease-in-out infinite alternate; }
@keyframes g-breathe { from { opacity: .7; transform: translateY(-50%) scale(.96); } to { opacity: 1; transform: translateY(-50%) scale(1.04); } }

@media (min-width: 960px) { body[data-section="patient-portal"] .portal-gate .portal-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; } }
/* left: eyebrow, headline, features with icons */
.portal-gate .portal-pitch .eyebrow { color: var(--g-gold) !important; letter-spacing: .32em !important; }
.portal-gate .portal-pitch .eyebrow::before { background: var(--g-gold) !important; }
.portal-gate .portal-inside { max-width: 30rem; }
.portal-gate .portal-inside li { display: grid !important; grid-template-columns: 26px 1fr auto; align-items: center; gap: 18px; padding: 18px 0 !important; }
.portal-gate .portal-inside b { font-weight: 400; font-size: 1.12rem; color: var(--ink); }
.portal-gate .portal-inside li span { font: italic 400 1.05rem/1 "Instrument Serif", Georgia, serif !important; color: var(--g-gold) !important; }
.portal-gate .pi-ico { width: 24px; height: 24px; fill: none; stroke: var(--g-gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* right: the card */
body[data-section="patient-portal"] .portal-gate .portal-signin {
  position: relative; isolation: isolate; padding: clamp(28px, 3.4vw, 46px) clamp(24px, 3.4vw, 48px); border-radius: 30px;
  background: var(--g-card); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--g-card-shadow); animation: glass-rise .7s var(--ease) both; }
/* lit edge: gold at the top, fading down the sides */
body[data-section="patient-portal"] .portal-gate .portal-signin::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--g-gold-soft), rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, .04) 75%, var(--g-gold-soft));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
/* a short line of light along the top edge */
body[data-section="patient-portal"] .portal-gate .portal-signin::after {
  content: ""; position: absolute; top: -1px; left: 22%; right: 22%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--g-gold) 50%, transparent); box-shadow: 0 0 18px 2px var(--g-gold-soft); }
.portal-gate .portal-signin h2 { font: 400 clamp(2.6rem, 4vw, 3.4rem)/1 var(--hero) !important; letter-spacing: .01em !important; margin: 0 0 12px !important; }
.portal-gate .portal-signin-lead { font-size: 1.06rem; }

/* email box: label above, rounded field with a gold edge */
.portal-gate .form-grid { margin-top: 30px; }
.portal-gate .form-grid .field { padding: 0 !important; background: none !important; box-shadow: none !important; }
body[data-section="patient-portal"] .portal-gate .form-grid .field > label:not(.check) { display: block !important; position: static !important; transform: none !important; text-transform: uppercase !important; font: 600 .72rem/1.3 var(--sans) !important; letter-spacing: .26em !important; color: var(--ink-2) !important; margin: 0 0 10px !important; }
body[data-section="patient-portal"] .portal-gate .form-grid .field > input:not([type=checkbox]):not([type=file]) {
  padding: 16px 18px !important; border: 0 !important; border-radius: 16px !important; background: var(--g-field) !important; background-image: none !important;
  box-shadow: inset 0 0 0 1px var(--g-gold-soft) !important; transition: box-shadow .25s !important; }
body[data-section="patient-portal"] .portal-gate .form-grid .field > input:not([type=checkbox]):not([type=file]):focus { box-shadow: inset 0 0 0 1.5px var(--g-gold), 0 0 0 5px rgba(201, 164, 106, .18) !important; }
body[data-section="patient-portal"] .portal-gate .form-grid .field > input[name=code] { font-size: 1.6rem !important; letter-spacing: .4em; max-width: 12ch; }

/* gold pill button */
.portal-gate .btn-row { margin-top: 22px; }
.portal-gate .btn:not(.ghost) {
  flex: 1 1 100%; justify-content: center; gap: 12px; padding: 17px 28px !important; border-radius: 999px !important; border: 0 !important;
  background: var(--g-btn) !important; color: var(--g-btn-ink) !important; font: 500 1.06rem/1 var(--sans) !important; letter-spacing: 0 !important;
  text-decoration: none !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 34px -14px rgba(169, 130, 74, .65) !important; }
.portal-gate .btn:not(.ghost):hover { color: var(--g-btn-ink) !important; filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 40px -14px rgba(169, 130, 74, .8) !important; }
.portal-gate .btn.ghost { flex: 1 1 100%; justify-content: center; border-radius: 999px !important; padding: 15px 26px !important; }
.portal-gate .form-alt { text-align: center; margin-top: 16px; }

/* "Secure & private" divider */
.portal-secure { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; font: 600 .72rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.portal-secure::before, .portal-secure::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--g-gold-soft)); }
.portal-secure::after { background: linear-gradient(90deg, var(--g-gold-soft), transparent); }
.portal-secure svg { width: 18px; height: 18px; fill: none; stroke: var(--g-gold); stroke-width: 1.5; stroke-linejoin: round; margin-right: -4px; }
.portal-gate .portal-help { margin-top: 20px; color: var(--ink-2); }

@media (prefers-color-scheme: dark) {
  body[data-section="patient-portal"] .portal-gate {
    --g-gold: #C6A47F; --g-gold-soft: rgba(198, 164, 127, .38); --g-card: linear-gradient(150deg, rgba(70, 82, 108, .42), rgba(30, 38, 54, .5));
    --g-card-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85); --g-field: rgba(14, 19, 30, .55); --g-grid: rgba(185, 198, 228, .06);
    --g-btn-ink: #1C160F; --g-halo: rgba(198, 164, 127, .16); }
  body[data-section="patient-portal"] .portal-gate .portal-signin { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--g-card-shadow); }
  body[data-section="patient-portal"] .portal-gate .form-grid .field > input:not([type=checkbox]):not([type=file]) { color: var(--ink) !important; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-section="patient-portal"] .portal-gate::after, body[data-section="patient-portal"] .portal-gate .portal-signin { animation: none !important; }
}

/* ── Patient portal, signed in: an app, not a web page (Erin, 2026-11-05: "when you're actually logged in, we need to
      improve on this significantly"). The sign-in card's look carried inside: gold line icons, frosted cards with a lit
      gold edge, a section tab bar, and a dashboard home (greeting + next visit, quick actions, to-dos, "At a glance").
      Gold accents in both modes (the old silver-blue accent is gone). Links and buttons stay plain text (owner rule:
      no boxes, no pills) — a whole card is clickable through its text link. ── */
body[data-section="patient-portal"] .portal-home {
  --pp-gold: #84612B; --pp-gold-ico: #A9824A; --pp-gold-soft: rgba(169, 130, 74, .32); --pp-ico-bg: rgba(169, 130, 74, .1);
  --pp-card: linear-gradient(150deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .32)); --pp-card-hi: inset 0 1px 0 rgba(255, 255, 255, .85);
  --pp-shadow: 0 36px 80px -46px rgba(60, 45, 30, .5); --pp-line: rgba(31, 26, 23, .1); }
@media (prefers-color-scheme: dark) {
  body[data-section="patient-portal"] { --champ: #C6A47F; --accent: #C6A47F; }
  body[data-section="patient-portal"] .portal-home {
    --pp-gold: #CCAB88; --pp-gold-ico: #C6A47F; --pp-gold-soft: rgba(198, 164, 127, .34); --pp-ico-bg: rgba(198, 164, 127, .1);
    --pp-card: linear-gradient(150deg, rgba(70, 82, 108, .4), rgba(30, 38, 54, .48)); --pp-card-hi: inset 0 1px 0 rgba(255, 255, 255, .1);
    --pp-shadow: 0 46px 90px -44px rgba(0, 0, 0, .85); --pp-line: rgba(255, 255, 255, .09); }
}
.pp-ico { width: 22px; height: 22px; fill: none; stroke: var(--pp-gold-ico); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* top row and tab bar */
body[data-section="patient-portal"] .portal-home { padding-top: 36px; }
body[data-section="patient-portal"] .portal-top { margin-bottom: 18px; }
body[data-section="patient-portal"] .portal-top .eyebrow { color: var(--pp-gold) !important; letter-spacing: .3em; }
body[data-section="patient-portal"] .portal-top .eyebrow::before { background: var(--pp-gold) !important; }
.pp-tabs { display: flex; gap: 4px 30px; margin: 0 0 40px; padding: 0 2px; border-bottom: 1px solid var(--pp-line); overflow-x: auto; scrollbar-width: none; }
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tab { position: relative; display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 14px 0 15px; border: 0; background: none; cursor: pointer;
  font: 400 .95rem/1 var(--sans); color: var(--ink-2); transition: color .2s; }
.pp-tab .pp-ico { width: 19px; height: 19px; opacity: .8; }
.pp-tab:hover { color: var(--ink); }
.pp-tab[aria-current="page"] { color: var(--ink); font-weight: 500; }
.pp-tab[aria-current="page"] .pp-ico { opacity: 1; }
.pp-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--pp-gold-ico); transform: scaleX(0); transition: transform .3s var(--ease); }
.pp-tab[aria-current="page"]::after { transform: scaleX(1); box-shadow: 0 0 12px var(--pp-gold-soft); }
.pp-tab:focus-visible { outline: 2px solid var(--pp-gold-ico); outline-offset: 4px; }

/* shared card: frosted, lit gold edge (the sign-in card's look) */
:is(.pp-next, .pp-card, .pp-tile, .pp-stat) {
  position: relative; isolation: isolate; border-radius: 24px; background: var(--pp-card);
  -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: var(--pp-card-hi), var(--pp-shadow); animation: glass-rise .6s var(--ease) both; }
:is(.pp-next, .pp-card, .pp-tile, .pp-stat)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--pp-gold-soft), rgba(255, 255, 255, .06) 50%, var(--pp-gold-soft));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pp-card { padding: clamp(22px, 2.6vw, 32px); }
.pp-card > .portal-label, .pp-dash .portal-label { color: var(--pp-gold) !important; margin: 0 0 14px !important; }

/* home: greeting + next visit */
.pp-hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: stretch; }
@media (min-width: 960px) { .pp-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; } }
.pp-hero-text { align-self: center; }
.pp-dash .portal-hello { font: 400 clamp(2.6rem, 5.4vw, 4.4rem)/1.02 var(--hero) !important; margin: 0 0 14px !important; }
.pp-hero-sub { margin: 0; font-size: 1.08rem; color: var(--ink-2); max-width: 30rem; }
.pp-next { padding: clamp(24px, 2.8vw, 34px); }
.pp-next::after { content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--pp-gold-ico) 50%, transparent); box-shadow: 0 0 18px 2px var(--pp-gold-soft); }
.pp-next-label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 .72rem/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--pp-gold); }
.pp-next-label .pp-ico { width: 20px; height: 20px; }
.pp-next-when { margin: 0 0 10px; font: 400 clamp(2rem, 3.4vw, 2.7rem)/1.08 var(--hero); color: var(--ink); }
.pp-next-sub { margin: 0; color: var(--ink-2); font-size: .95rem; }
.pp-next-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 22px 0 0; }

/* quick actions */
.pp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 28px; }
.pp-tile, .pp-stat { display: flex; align-items: flex-start; gap: 14px; padding: 20px 20px 22px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.pp-tile { flex-direction: column; gap: 16px; }
.pp-tile:hover, .pp-stat:hover { transform: translateY(-3px); box-shadow: var(--pp-card-hi), 0 44px 90px -40px rgba(0, 0, 0, .5); }
.pp-tile-ico { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--pp-ico-bg); box-shadow: inset 0 0 0 1px var(--pp-gold-soft); }
.pp-tile-text { min-width: 0; }
.pp-tile-link { display: block; padding: 0; border: 0; background: none; font: 500 1.02rem/1.3 var(--sans); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.pp-tile-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pp-tile-link:focus-visible { outline: none; }
.pp-tile:has(.pp-tile-link:focus-visible), .pp-stat:has(.pp-tile-link:focus-visible) { box-shadow: var(--pp-card-hi), 0 0 0 2px var(--pp-gold-ico), var(--pp-shadow); }
.pp-tile-sub { margin: 4px 0 0; font-size: .84rem; line-height: 1.4; color: var(--ink-3); }

/* to do + at a glance */
.pp-cols { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 960px) { .pp-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.pp-todo .portal-list { margin: 0; }
.pp-todo .portal-list li { padding: 14px 0; border-bottom-color: var(--pp-line); }
.pp-todo .portal-list li:last-child { border-bottom: 0; }
.pp-todo-main { display: flex; align-items: center; gap: 12px; }
.pp-todo-main .portal-go { font-size: 1rem; }
.pp-todo .portal-meta.flag { color: var(--pp-gold) !important; font-size: .9rem; }
.pp-empty { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; color: var(--ink-2); }
.pp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pp-stat { align-items: center; padding: 14px 16px; border-radius: 18px; animation: none; background: rgba(255, 255, 255, .22); }
.pp-stat .pp-tile-ico { width: 38px; height: 38px; }
.pp-stat .pp-ico { width: 19px; height: 19px; }
.pp-stat .pp-tile-link { font-size: .95rem; }
.pp-stat-val { display: block; margin-top: 3px; font-size: .82rem; color: var(--ink-3); }
.pp-stat-val:empty { display: none; }
.pp-stat-val.flag { color: var(--pp-gold); font-weight: 600; }
.pp-dash > .portal-emergency { margin-top: 36px; }
@media (prefers-color-scheme: dark) { .pp-stat { background: rgba(255, 255, 255, .04); } }

/* inner screens: gold labels and flags, glass tiles on Learn & practice, readable back link */
body[data-section="patient-portal"] .portal-screen .portal-label { color: var(--pp-gold) !important; }
body[data-section="patient-portal"] .portal-screen .portal-meta.flag { color: var(--pp-gold) !important; }
body[data-section="patient-portal"] .portal-screen .portal-go-arrow::after { color: var(--pp-gold-ico); }
.portal-screen .portal-tools > section { position: relative; isolation: isolate; padding: 24px 26px; border-radius: 22px; background: var(--pp-card);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--pp-card-hi), var(--pp-shadow); }
@media (min-width: 960px) { .portal-screen .portal-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
.portal-screen .portal-tools > section .portal-label { margin-top: 0; }

/* Messages: the chat matches the portal (navy glass in dark mode, linen glass in light), readable safety line */
body[data-section="patient-portal"] .portal-screen .chat { border-radius: 26px; overflow: hidden;
  background: var(--pp-card) !important; -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
  box-shadow: var(--pp-card-hi), inset 0 0 0 1px var(--pp-gold-soft), var(--pp-shadow) !important; }
body[data-section="patient-portal"] .portal-screen .chat-head { background: transparent !important; border-bottom: 1px solid var(--pp-line) !important; }
body[data-section="patient-portal"] .portal-screen .chat-logo { background: var(--pp-ico-bg) !important; box-shadow: inset 0 0 0 1px var(--pp-gold-soft); }
body[data-section="patient-portal"] .portal-screen .chat-safety { background: var(--pp-ico-bg) !important; color: var(--ink) !important; font-weight: 500;
  border-top: 1px solid var(--pp-line) !important; }
body[data-section="patient-portal"] .portal-screen .chat-compose textarea { background-color: rgba(255, 255, 255, .5) !important; box-shadow: inset 0 0 0 1px var(--pp-gold-soft) !important; }
@media (prefers-color-scheme: dark) {
  body[data-section="patient-portal"] .portal-screen .chat-msg.them { background: rgba(255, 255, 255, .07) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08) !important; }
  body[data-section="patient-portal"] .portal-screen .chat-msg.me { background: linear-gradient(135deg, #E9D3A6, #D3B072) !important; color: #1C160F !important; }
  body[data-section="patient-portal"] .portal-screen .chat-send { background: linear-gradient(135deg, #E9D3A6, #D3B072) !important; color: #1C160F !important; }
  body[data-section="patient-portal"] .portal-screen .chat-compose textarea { background-color: rgba(10, 14, 24, .5) !important; }
  body[data-section="patient-portal"] .portal-screen .chat-status { color: #9CC59A; }
}

/* phones: tabs scroll sideways, cards stack */
@media (max-width: 600px) {
  .pp-tabs { gap: 4px 22px; margin-bottom: 28px; }
  .pp-actions { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pp-tile { padding: 16px; gap: 12px; }
  .pp-tile-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) { :is(.pp-next, .pp-card, .pp-tile, .pp-stat) { animation: none !important; transition: none !important; } }
.pp-todo .portal-list li { align-items: center; }
.pp-appts { max-width: 52rem; margin-top: 8px; }
.pp-appts .portal-list { margin: 0 0 8px; }
.pp-appts .portal-list li:last-child { border-bottom: 0; }
.pp-appts .portal-label:not(:first-child) { margin-top: 18px !important; }
@media (max-width: 600px) {
  .pp-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; }
  .pp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pp-stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .pp-actions > .pp-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ── Patient portal as a full app (Erin, 2026-11-05: "do it all and make it modern and high end product"). Signed in, the
      website's menu bar and footer step aside (body.pp-app); the portal has its own sidebar on computers and a bottom tab
      bar on phones, a richer dashboard (latest message, balance, week chart, homework ring), status chips and progress
      steps on inner screens, skeleton loading, numbers that count up, and screens that rise in. ── */
body.pp-app .site-header, body.pp-app .site-footer, body.pp-app .skip-to-portal { display: none !important; }
body.pp-app main.portal { padding: 0 !important; }
body[data-section="patient-portal"] .portal-home { padding: 0 !important; }
.pp-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 1000px) { .pp-shell { grid-template-columns: 268px minmax(0, 1fr); } }
.pp-main { min-width: 0; padding: 28px clamp(16px, 4vw, 56px) 120px; max-width: 1240px; width: 100%; margin: 0 auto; }

/* brand */
.pp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.pp-brand img { width: 34px; height: auto; }
.pp-brand span { display: flex; flex-direction: column; font: 400 1.25rem/1.1 var(--hero); letter-spacing: .02em; }
.pp-brand small { font: 600 .62rem/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--pp-gold); margin-top: 3px; }
.pp-brand-mini { display: none; }
.pp-brand-mini span { font: 600 .7rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--pp-gold); }

/* sidebar (computers) */
.pp-side { display: none; }
@media (min-width: 1000px) {
  .pp-side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 28px; padding: 28px 18px 24px 22px;
    background: var(--pp-card); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
    box-shadow: inset -1px 0 0 var(--pp-line), 20px 0 60px -40px rgba(0, 0, 0, .35); z-index: 5; }
  .pp-side .pp-brand { padding: 4px 8px 22px; border-bottom: 1px solid var(--pp-line); }
  .pp-side .pp-tabs { flex-direction: column; gap: 2px; margin: 0; padding: 0; border: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .pp-side .pp-tab { width: 100%; justify-content: flex-start; gap: 14px; padding: 12px 14px; border-radius: 4px; font-size: .96rem; }
  .pp-side .pp-tab::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; transform: scaleY(0); }
  .pp-side .pp-tab[aria-current="page"]::after { transform: scaleY(1); }
  .pp-side .pp-tab[aria-current="page"] { color: var(--ink); background: linear-gradient(90deg, var(--pp-ico-bg), transparent 85%); }
  .pp-side .pp-tab:hover { background: linear-gradient(90deg, rgba(255, 255, 255, .06), transparent 85%); }
  .pp-side .pp-tab-more { display: none; }
  .pp-side-safety { margin: auto 8px 0; font-size: .78rem; line-height: 1.5; color: var(--ink-3); }
  /* the sidebar's own background replaces the button reset */
  body[data-section="patient-portal"] .portal-top .eyebrow { margin-right: auto; }
}
.pp-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center;
  font: 700 .7rem/1 var(--sans); color: #1C160F; background: linear-gradient(135deg, #EBD3A2, #CDA866); box-shadow: 0 0 14px var(--pp-gold-soft); }

/* phones and tablets: bottom tab bar (Home, Messages, Appointments, Learn, More) */
@media (max-width: 999px) {
  .pp-side { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0 0 env(safe-area-inset-bottom);
    background: var(--pp-card); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: inset 0 1px 0 var(--pp-line), 0 -20px 50px -30px rgba(0, 0, 0, .5); }
  .pp-side .pp-brand, .pp-side-safety { display: none; }
  .pp-side .pp-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; border: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .pp-side .pp-tab { flex-direction: column; justify-content: center; gap: 5px; padding: 10px 2px 9px; font-size: .68rem; position: relative; }
  .pp-side .pp-tab .pp-ico { width: 22px; height: 22px; }
  .pp-side .pp-tab-extra { display: none; }
  .pp-side .pp-tab::after { left: 30%; right: 30%; top: 0; bottom: auto; }
  .pp-side .pp-badge { position: absolute; top: 5px; left: calc(50% + 6px); margin: 0; min-width: 17px; height: 17px; font-size: .62rem; }
  .pp-side .pp-tab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .pp-brand-mini { display: flex; }
  body[data-section="patient-portal"] .portal-top .eyebrow { display: none; }
  .pp-main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
/* GLP-1 program page by page (js/ekm-glp1-patient-shell.js, copied from EKM OS): on phones its Back / Continue bar floats
   ABOVE the portal's bottom tab bar (58px), not under it, and the page leaves room for both. The portal's rise-in transform is
   off for this screen so the fixed bar is placed against the screen, not the section. */
.portal-screen.pp-in > .pp-glp1 { animation: none; }
@media (max-width: 720px) {
  body.pp-app .pp-glp1 .g1s-flowbar, body.pp-app .pp-glp1 .g1s .g1p-step-actions { bottom: calc(58px + 10px + env(safe-area-inset-bottom)); }
  body.pp-app .pp-main:has(.g1s-flowbar, .g1s .g1p-step-actions) { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
}
.pp-side .pp-tab[data-short]::before { content: attr(data-short); }

/* top row: avatar */
body[data-section="patient-portal"] .portal-top { align-items: center; margin-bottom: 26px; }
.pp-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 500 .95rem/1 var(--hero); color: #1C160F;
  background: linear-gradient(135deg, #EBD3A2, #C9A262); box-shadow: 0 0 0 3px var(--pp-ico-bg), 0 8px 18px -8px rgba(0, 0, 0, .5); }
.pp-avatar:empty { display: none; }
.pp-avatar.small { width: 26px; height: 26px; font-size: .8rem; margin-right: 10px; }
.portal-bar-actions { align-items: center !important; }

/* chips, skeletons, big numbers */
.pp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font: 600 .74rem/1 var(--sans); letter-spacing: .02em; white-space: nowrap;
  color: var(--ink-2); background: rgba(127, 127, 127, .12); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .18); }
.pp-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pp-chip--gold { color: var(--pp-gold); background: var(--pp-ico-bg); box-shadow: inset 0 0 0 1px var(--pp-gold-soft); }
.pp-chip--ok { color: #3F7A4A; background: rgba(90, 160, 105, .12); box-shadow: inset 0 0 0 1px rgba(90, 160, 105, .3); }
.pp-chip--muted { color: var(--ink-3); }
@media (prefers-color-scheme: dark) { .pp-chip--ok { color: #9FD3A6; } }
.pp-skel { display: grid; gap: 12px; padding: 6px 0; }
.pp-skel span { height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(127, 127, 127, .1) 0%, rgba(127, 127, 127, .22) 50%, rgba(127, 127, 127, .1) 100%); background-size: 200% 100%; animation: pp-shimmer 1.3s linear infinite; }
.pp-skel span:nth-child(1) { width: 55%; height: 18px; } .pp-skel span:nth-child(2) { width: 90%; } .pp-skel span:nth-child(3) { width: 70%; } .pp-skel span:nth-child(4) { width: 80%; }
@keyframes pp-shimmer { to { background-position: -200% 0; } }
.pp-big { margin: 4px 0 8px; font: 400 clamp(2.4rem, 4vw, 3.2rem)/1 var(--hero); color: var(--ink); font-variant-numeric: tabular-nums; }

/* cards: heading with icon, footer links */
.pp-card-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.pp-card-head .pp-ico { width: 18px; height: 18px; }
.pp-card-head .portal-label { margin: 0 !important; }
.pp-card-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--pp-line); }
.pp-section-label { margin: 34px 0 14px !important; }
.pp-grid3, .pp-grid2 { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 1100px) { .pp-grid3 { grid-template-columns: 1.15fr 1fr .85fr; } .pp-grid2 { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 700px) and (max-width: 1099px) { .pp-grid2 { grid-template-columns: 1fr 1fr; } }
.pp-card { display: flex; flex-direction: column; }
.pp-card .pp-card-foot { margin-top: auto; }
.pp-card > .pp-card-head + * { margin-top: 0; }

/* next visit with a date tile */
.pp-next-row { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.pp-datebox { display: grid; place-items: center; align-content: center; width: 66px; height: 70px; flex: none; border-radius: 16px;
  background: linear-gradient(160deg, var(--pp-ico-bg), transparent); box-shadow: inset 0 0 0 1px var(--pp-gold-soft); }
.pp-datebox span { font: 700 .66rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--pp-gold); }
.pp-datebox b { font: 400 1.9rem/1 var(--hero); color: var(--ink); margin-top: 4px; }
.pp-next .pp-next-when { font: 400 clamp(1.5rem, 2.4vw, 1.9rem)/1.15 var(--hero); margin: 0 0 6px; }

/* to do with ticks */
.pp-tick { width: 20px; height: 20px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--pp-gold-soft); }
.pp-todo .portal-list li { gap: 6px 14px; }
.pp-todo .portal-list li > div { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; }
.pp-todo .pp-todo-main { display: contents; }
.pp-todo .portal-list li > div .portal-sub { grid-column: 2; margin: 2px 0 0; }

/* latest message */
.pp-quote-who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; margin: 0 0 12px; font-size: .84rem; color: var(--ink-3); }
.pp-quote-who .pp-chip { margin-left: 10px; }
.pp-quote { margin: 0; padding: 14px 16px; border-radius: 4px 18px 18px 18px; font: 400 1rem/1.55 var(--sans); color: var(--ink); background: rgba(127, 127, 127, .1);
  box-shadow: inset 0 0 0 1px var(--pp-line); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* week chart */
.pp-legend { display: flex; gap: 22px; margin: 0 0 6px; font-size: .86rem; color: var(--ink-2); }
.pp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pp-legend span::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: currentColor; }
.pp-legend .is-mood { color: var(--pp-gold-ico); } .pp-legend .is-focus { color: #8FA6D6; }
.pp-legend b { color: var(--ink); font-weight: 600; margin-left: 2px; font-variant-numeric: tabular-nums; }
.pp-legend small { color: var(--ink-3); }
.pp-chart { width: 100%; height: auto; display: block; overflow: visible; }
.pp-chart-grid { stroke: var(--pp-line); stroke-width: 1; stroke-dasharray: 3 5; }
.pp-chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pp-draw 1.4s var(--ease) .15s forwards; }
.pp-chart-line.is-mood { stroke: var(--pp-gold-ico); } .pp-chart-line.is-focus { stroke: #8FA6D6; }
.pp-chart-area { opacity: 0; animation: pp-fade .8s ease .9s forwards; }
.pp-chart-area.is-mood { fill: var(--pp-ico-bg); } .pp-chart-area.is-focus { fill: rgba(143, 166, 214, .08); }
.pp-chart-dot { stroke-width: 2; opacity: 0; animation: pp-fade .4s ease 1.2s forwards; }
.pp-chart-dot.is-mood { fill: var(--pp-gold-ico); stroke: var(--pp-gold-soft); } .pp-chart-dot.is-focus { fill: #8FA6D6; stroke: rgba(143, 166, 214, .3); }
.pp-chart-days { display: flex; justify-content: space-between; padding: 4px 10px 0; font-size: .74rem; color: var(--ink-3); }
@keyframes pp-draw { to { stroke-dashoffset: 0; } }
@keyframes pp-fade { to { opacity: 1; } }

/* homework ring */
.pp-ring-row { display: flex; align-items: center; gap: 22px; }
.pp-ring-wrap { position: relative; width: 104px; height: 104px; flex: none; }
.pp-ring { width: 100%; height: 100%; }
.pp-ring-track { fill: none; stroke: var(--pp-line); stroke-width: 7; }
.pp-ring-arc { fill: none; stroke: var(--pp-gold-ico); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease); filter: drop-shadow(0 0 6px var(--pp-gold-soft)); }
.pp-ring-num { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; grid-auto-flow: column; font: 400 2rem/1 var(--hero); color: var(--ink); }
.pp-ring-num small { font: 500 .85rem/1 var(--sans); color: var(--ink-3); align-self: end; margin: 0 0 6px 2px; }
.pp-ring-title { margin: 0 0 4px; font-size: 1.08rem; color: var(--ink); }

/* inner screens: visits, requests with progress steps, documents */
.pp-appts, .pp-reqs, .pp-docs { max-width: 60rem; margin-top: 20px; }
.pp-visits, .pp-reqlist { list-style: none; margin: 0; padding: 0; }
.pp-visit, .pp-reqlist > li { display: flex; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--pp-line); }
.pp-visit:last-child, .pp-reqlist > li:last-child { border-bottom: 0; padding-bottom: 4px; }
.pp-visit:first-child, .pp-reqlist > li:first-child { padding-top: 4px; }
.pp-visit-main, .pp-req-main { flex: 1; min-width: 0; }
.pp-visit-main .portal-item, .pp-req-main .portal-item { margin: 0; display: block; }
.pp-visit-main .portal-sub, .pp-req-main .portal-sub { margin: 3px 0 0; }
.pp-reqlist > li > .pp-tile-ico { align-self: flex-start; }
.pp-row-end { display: flex; align-items: center; gap: 18px; flex: none; }
.pp-steps { display: flex; gap: 0; list-style: none; margin: 14px 0 2px; padding: 0; max-width: 30rem; }
.pp-steps li { position: relative; flex: 1; display: flex; flex-direction: column; gap: 7px; font-size: .74rem; color: var(--ink-3); }
.pp-steps li::before { content: ""; position: absolute; top: 5px; left: 12px; right: 0; height: 2px; background: var(--pp-line); }
.pp-steps li:last-child::before { display: none; }
.pp-steps li.is-on { color: var(--ink-2); }
.pp-steps li.is-on:not(:last-child)::before { background: linear-gradient(90deg, var(--pp-gold-ico), var(--pp-gold-soft)); }
.pp-step-dot { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--pp-line); box-shadow: 0 0 0 3px transparent; }
.pp-steps li.is-on .pp-step-dot { background: var(--pp-gold-ico); }
.pp-steps li[aria-current="step"] .pp-step-dot { box-shadow: 0 0 0 4px var(--pp-ico-bg), 0 0 14px var(--pp-gold-soft); }
.pp-steps.is-declined li:last-child .pp-step-dot { background: var(--ink-3); }
.pp-dl { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: 500 .9rem/1 var(--sans); color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--pp-gold-soft); }
.pp-dl .pp-ico { width: 17px; height: 17px; }
@media (max-width: 640px) {
  .pp-reqlist > li { flex-wrap: wrap; }
  .pp-row-end { width: 100%; padding-left: 60px; justify-content: space-between; }
  .pp-visit .pp-chip { display: none; }
}

/* motion: each screen's blocks rise in, one after another */
.portal-screen.pp-in > *, .portal-screen.pp-in .pp-dash > * { animation: pp-rise .55s var(--ease) both; }
.portal-screen.pp-in .pp-dash > :nth-child(2), .portal-screen.pp-in > :nth-child(2) { animation-delay: .06s; }
.portal-screen.pp-in .pp-dash > :nth-child(3), .portal-screen.pp-in > :nth-child(3) { animation-delay: .12s; }
.portal-screen.pp-in .pp-dash > :nth-child(4), .portal-screen.pp-in > :nth-child(4) { animation-delay: .18s; }
.portal-screen.pp-in .pp-dash > :nth-child(n+5), .portal-screen.pp-in > :nth-child(n+5) { animation-delay: .24s; }
.portal-screen.pp-in .pp-dash { animation: none; }
@keyframes pp-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .portal-screen.pp-in > *, .portal-screen.pp-in .pp-dash > *, .pp-chart-line, .pp-chart-area, .pp-chart-dot, .pp-skel span { animation: none !important; }
  .pp-chart-line { stroke-dashoffset: 0; } .pp-chart-area, .pp-chart-dot { opacity: 1; } .pp-ring-arc { transition: none; }
}
/* numbers in the plain face (Italiana's figures read oddly: "4" and "1") */
.pp-big { font: 300 clamp(2.4rem, 4vw, 3.1rem)/1 var(--sans) !important; letter-spacing: -.03em; }
.pp-datebox b { font: 300 1.8rem/1 var(--sans); letter-spacing: -.02em; }
.pp-ring-num { font: 300 2rem/1 var(--sans); letter-spacing: -.02em; }
.pp-chart-area { animation-name: pp-fade-soft; }
@keyframes pp-fade-soft { to { opacity: .55; } }
.pp-latest .pp-quote { font-weight: 500; -webkit-line-clamp: 2; margin-bottom: 10px; }
.pp-avatar { font: 600 .9rem/1 var(--sans) !important; }
.pp-avatar.small { font-size: .74rem !important; }
.pp-chart-area.is-focus { display: none; }
.pp-chart-area.is-mood { fill: var(--pp-gold-ico); }
@keyframes pp-fade-soft { to { opacity: .08; } }
.pp-appts, .pp-reqs, .pp-docs { max-width: none; }

/* Appointments: upcoming in warm gold, past visits in a cooler, quieter slate (Erin, 2026-11-06) */
.pp-appts--up { background: linear-gradient(150deg, rgba(198, 164, 127, .2), rgba(198, 164, 127, .05) 55%, transparent), var(--pp-card) !important; }
.pp-appts--up::before { background: linear-gradient(180deg, rgba(198, 164, 127, .7), rgba(198, 164, 127, .15) 50%, rgba(198, 164, 127, .45)) !important; }
.pp-appts--up .pp-datebox { background: linear-gradient(160deg, rgba(198, 164, 127, .32), rgba(198, 164, 127, .08)); }
.pp-appts--past { background: linear-gradient(150deg, rgba(140, 150, 170, .14), rgba(110, 120, 140, .06)) !important; box-shadow: var(--pp-card-hi), 0 26px 60px -46px rgba(0, 0, 0, .6) !important; }
.pp-appts--past::before { background: linear-gradient(180deg, rgba(170, 180, 200, .35), rgba(255, 255, 255, .04) 50%, rgba(170, 180, 200, .2)) !important; }
.pp-appts--past .portal-label, .pp-appts--past .pp-datebox span { color: var(--ink-3) !important; }
.pp-appts--past .pp-card-head .pp-ico { stroke: var(--ink-3); }
.pp-appts--past .pp-datebox { background: rgba(140, 150, 170, .1); box-shadow: inset 0 0 0 1px rgba(170, 180, 200, .25); }
.pp-appts--past .pp-datebox b, .pp-appts--past .portal-item { color: var(--ink-2); }

/* Refill: pick several medications from the chart list, each with how much is left */
.pp-medpick { display: grid; gap: 10px; }
.pp-medhead { margin: 0 0 4px !important; color: var(--pp-gold) !important; }
.pp-medlist { display: grid; gap: 10px; }
.pp-med { position: relative; border-radius: 18px; padding: 4px 16px; background: rgba(127, 127, 127, .07); box-shadow: inset 0 0 0 1px var(--pp-line); transition: background .25s, box-shadow .25s; }
.pp-med.is-on { background: var(--pp-ico-bg); box-shadow: inset 0 0 0 1.5px var(--pp-gold-soft), 0 14px 34px -24px rgba(0, 0, 0, .5); }
.pp-med-opt { display: flex !important; align-items: center; gap: 14px; padding: 12px 0 !important; margin: 0 !important; cursor: pointer;
  font: inherit !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink) !important; }
.pp-med-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pp-med-check { width: 22px; height: 22px; flex: none; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--pp-gold-soft); display: grid; place-items: center; transition: background .2s; }
.pp-med-opt input:checked + .pp-med-check { background: var(--pp-gold-ico); box-shadow: none; }
.pp-med-opt input:checked + .pp-med-check::after { content: ""; width: 10px; height: 5px; border: solid #1C160F; border-width: 0 0 2px 2px; transform: translate(0, -1px) rotate(-45deg); }
.pp-med-opt input:focus-visible + .pp-med-check { outline: 2px solid var(--pp-gold-ico); outline-offset: 3px; }
.pp-med-opt input:disabled ~ * { opacity: .5; }
.pp-med-text { display: flex; flex-direction: column; gap: 2px; }
.pp-med-text b { font-weight: 500; font-size: 1.02rem; }
.pp-med-text small { font-size: .84rem; color: var(--ink-3); }
.pp-med .pp-tile-ico { width: 36px; height: 36px; }
.pp-med .pp-tile-ico .pp-ico { width: 18px; height: 18px; }
/* "How much is left?" as three tap targets */
.pp-seg { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px 36px; }
.pp-seg[hidden] { display: none; }
.pp-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pp-seg label { margin: 0 !important; padding: 8px 14px !important; border-radius: 999px; cursor: pointer; font: 500 .84rem/1 var(--sans) !important; letter-spacing: 0 !important;
  text-transform: none !important; color: var(--ink-2) !important; box-shadow: inset 0 0 0 1px var(--pp-line); transition: background .2s, color .2s; }
.pp-seg input:checked + label { background: var(--pp-gold-ico); color: #1C160F !important; box-shadow: none; }
.pp-seg input:focus-visible + label { outline: 2px solid var(--pp-gold-ico); outline-offset: 2px; }
.pp-med-typed { display: grid; gap: 10px; padding: 14px 16px; }
.pp-med-typed .pp-seg { padding-left: 0; }
.pp-med-typed .linkbtn { justify-self: start; }
.pp-medbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin: 4px 0 0; }
.pp-medcount { font-size: .86rem; color: var(--pp-gold); font-weight: 600; }
.pp-outside { margin: 4px 2px 0; }
.pp-medcard { margin: 0 0 24px; }
/* refill picker labels: not the form's small monospace caps */
body[data-section="patient-portal"] .form-grid .pp-med-opt, body[data-section="patient-portal"] .form-grid .pp-seg label {
  font-family: var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; }
body[data-section="patient-portal"] .form-grid .pp-med-opt { font-size: 1rem !important; font-weight: 400 !important; color: var(--ink) !important; }
body[data-section="patient-portal"] .form-grid .pp-seg label { font-size: .84rem !important; font-weight: 500 !important; }
body[data-section="patient-portal"] .form-grid .pp-seg input:checked + label { color: #1C160F !important; }
/* stronger contrast: upcoming glows warm gold, past visits sit back in neutral graphite */
.pp-appts--up { background: linear-gradient(135deg, rgba(222, 186, 120, .34), rgba(190, 150, 85, .14) 45%, rgba(120, 95, 60, .08)), var(--pp-card) !important;
  box-shadow: var(--pp-card-hi), 0 0 0 1px rgba(198, 164, 127, .35), 0 40px 90px -40px rgba(190, 150, 85, .45) !important; }
.pp-appts--past { background: linear-gradient(135deg, rgba(60, 62, 70, .55), rgba(40, 42, 50, .55)) !important; }
.pp-appts--past .pp-chip { color: var(--ink-3); }
@media (prefers-color-scheme: light) {
  .pp-appts--up { background: linear-gradient(135deg, rgba(232, 205, 150, .55), rgba(255, 248, 232, .7)) !important; }
  .pp-appts--past { background: linear-gradient(135deg, rgba(225, 226, 230, .7), rgba(240, 240, 243, .6)) !important; }
}
/* (the older portal glass rule outranks plain class selectors, so these carry the full path) */
body[data-section="patient-portal"] .portal-home .portal-screen > section.pp-card.pp-appts.pp-appts--up {
  background: linear-gradient(135deg, rgba(222, 186, 120, .34), rgba(190, 150, 85, .14) 45%, rgba(120, 95, 60, .08)), linear-gradient(150deg, rgba(70, 82, 108, .4), rgba(30, 38, 54, .48)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(198, 164, 127, .4), 0 40px 90px -40px rgba(190, 150, 85, .45) !important; }
body[data-section="patient-portal"] .portal-home .portal-screen > section.pp-card.pp-appts.pp-appts--past {
  background: linear-gradient(135deg, rgba(58, 60, 68, .62), rgba(36, 38, 46, .62)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 1px rgba(170, 175, 190, .16), 0 24px 60px -44px rgba(0, 0, 0, .7) !important; }
body[data-section="patient-portal"] .portal-home .portal-screen > section.pp-card.pp-appts::before { display: none; }
@media (prefers-color-scheme: light) {
  body[data-section="patient-portal"] .portal-home .portal-screen > section.pp-card.pp-appts.pp-appts--up {
    background: linear-gradient(135deg, rgba(236, 210, 156, .7), rgba(255, 250, 238, .8)) !important; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(169, 130, 74, .35), 0 34px 70px -40px rgba(140, 100, 40, .45) !important; }
  body[data-section="patient-portal"] .portal-home .portal-screen > section.pp-card.pp-appts.pp-appts--past {
    background: linear-gradient(135deg, rgba(226, 227, 232, .8), rgba(244, 244, 247, .7)) !important; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(120, 125, 140, .18), 0 24px 50px -40px rgba(0, 0, 0, .25) !important; }
}
body[data-section="patient-portal"] .portal-home .portal-screen > section.pp-appts--past .portal-label { color: var(--ink-3) !important; }
body[data-section="patient-portal"] .portal-home .portal-screen > section.pp-appts--past .pp-card-head .pp-ico { stroke: var(--ink-3); }

/* Dark mode fixes from the site review (2026-11-06): the open phone menu's top bar stays dark glass (it was hard-coded ivory,
   hiding "EKM Psychiatry"), and form hint text is readable on black (it was dark ink at 35%). */
@media (prefers-color-scheme: dark) {
  @media (max-width: 1020px) {
    .site-header .wrap:has(.nav-mobile[open]) { background: rgba(18, 16, 13, .98) !important; box-shadow: inset 0 0 0 1px rgba(196, 162, 126, .2) !important; }
  }
  .form-grid ::placeholder, .chat-compose textarea::placeholder, .search-box input::placeholder { color: rgba(244, 238, 228, .45) !important; }
}

/* ── Site review fixes (2026-11-06) ── */
/* Menu: only the page you're on is underlined; "Contact & Schedule" carries a gold arrow instead of a permanent underline */
.site-header .nav .cta a { text-decoration: none !important; }
.site-header .nav .cta a::after { content: "\00a0→"; color: var(--champ); }
.site-header .nav .cta a[aria-current="page"], .site-header .nav .cta a:hover { text-decoration: underline !important; text-decoration-color: var(--champ) !important; text-underline-offset: 6px; }

/* Home: who we are, what we treat, insurance and how to start — open columns, no boxes */
.lp-more { padding: 40px 0 72px; }
.lp-more-grid { display: grid; grid-template-columns: 1fr; gap: 44px; border-top: 1px solid var(--line); padding-top: 48px; }
@media (min-width: 900px) { .lp-more-grid { grid-template-columns: 1.25fr 1fr 1fr; gap: 56px; } }
.lp-more h2 { font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1.15 var(--hero); margin: 6px 0 14px; }
.lp-more h2 em { font-style: normal; color: var(--champ); }
.lp-more p { color: var(--ink-2); margin: 0 0 14px; }
.lp-more-gap { margin-top: 30px !important; }
.lp-list { list-style: none; margin: 0 0 16px; padding: 0; }
.lp-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lp-list a { color: var(--ink); text-decoration: none; }
.lp-list a:hover { text-decoration: underline; text-decoration-color: var(--champ); }
.lp-list span { font-size: .86rem; color: var(--ink-3); }
.lp-conditions { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }

/* Contact: becoming a patient in three steps; a note under "Book online" */
.cs-note { display: block; margin-top: 2px; font-size: .78rem; color: var(--ink-3); }
/* Contact: Book online is the page's main action: larger, bolder and gold, still a link (no boxes) (owner 2026-11-10) */
.contact-strip .cs-book { margin-top: 2px; align-self: flex-start; color: var(--champ) !important; border-bottom: 2px solid var(--champ) !important; font: 600 1.2rem/1.2 var(--sans) !important; }
.contact-strip .cs-book:hover { color: var(--ink) !important; border-bottom-color: var(--ink) !important; }
.contact-strip .cs-book + .cs-note { margin-top: 8px; }
.steps3 { list-style: none; counter-reset: s3; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 860px) { .steps3 { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps3 li { counter-increment: s3; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.steps3 li::before { content: counter(s3, decimal-leading-zero); font: 400 1.6rem/1 var(--hero); color: var(--champ); }
.steps3 b { font-weight: 500; font-size: 1.08rem; color: var(--ink); }
.steps3 span { color: var(--ink-2); }
.steps3 a { white-space: nowrap; }

/* Document pages: "Request online ↓" under the title, tighter space before the intro */
.doc-jump { margin: 14px 0 0; }
.doc-jump a { font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--champ); text-underline-offset: 5px; }
.doc-hero { padding-bottom: 0 !important; }
.doc-hero + .doc-page { padding-top: 28px !important; }
.doc-anchor { scroll-margin-top: 110px; }

/* Phones: comfortable tap targets for footer and list links; contact details wrap cleanly */
@media (max-width: 640px) {
  .site-footer li a, .site-footer .legal a { display: inline-block; padding: 10px 0; }
  .site-footer ul li { margin: 0; }
  .doc-page ul a, .prose li a, ul.clean a, .lp-list a { display: inline-block; padding: 8px 0; }
  .contact-strip .cs-v { overflow-wrap: anywhere; }
  .contact-strip li:has(a[href^="mailto:"]) { grid-column: 1 / -1; }
}

/* Passkeys (Erin, 2026-11-07, option A): "Sign in with Face ID or fingerprint" on the sign-in card, the home offer, and
   Profile → Sign-in & security. The sign-in button shares the gold pill exception of the sign-in card (data-pill-ok). */
.pp-pk { margin: 26px 0 0; }
body[data-section="patient-portal"] .portal-gate .pp-pk-btn { width: 100%; justify-content: center; gap: 12px; }
.pp-pk-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pp-pk-btn::after { display: none !important; }
.pp-pk-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 0; font-size: .82rem; color: var(--ink-3); }
.pp-pk-or::before, .pp-pk-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pp-pk:not([hidden]) + .portal-form { margin-top: 6px; }
.pp-pk-offer { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 18px; margin-top: 20px; }
.pp-pk-offer .pp-tile-ico { width: 48px; height: 48px; }
.pp-pk-offer h2 { margin: 2px 0 6px; font: 400 1.5rem/1.2 var(--hero); color: var(--ink); }
.pp-pk-offer p { margin: 0; color: var(--ink-2); }
.pp-pk-offer-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 14px !important; }
.pp-security { margin-top: 24px; }
.pp-sec-note { margin-top: 12px; }
@media (max-width: 600px) { .pp-pk-offer { flex-direction: column !important; } }

/* ── Portal: Documents to sign (EKM Sign signer inside the portal; css/ekm-esign.css is the shared EKM OS copy) ──────────
   One card, not a card inside a card, and the portal's own look: buttons are underlined text (owner rule: no boxes, no
   pills). The "Sign here" / field boxes on the PDF stay: they mark where to type and sign on the form itself. */
.pp-esign { display: block; }
.pp-esign .esp-inner, .pp-esign .esf-doc { max-width: none; width: 100%; margin: 0; }
.pp-esign .esp-card, .pp-esign .esf-doc { background: none; border: 0; border-radius: 0; padding: 0; }
.pp-esign .esp-h { font-family: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--pp-gold); margin: 0 0 14px; }
.pp-esign .esp-item-title { font-weight: 500; font-size: 1.08rem; letter-spacing: -.01em; }
.pp-esign .esf-btn, .pp-esign .esf-btn--primary, .pp-esign .esp-btn--plain, .pp-esign .esf-tab, .pp-esign .esf-tab.is-active {
  background: none !important; border: 0 !important; border-radius: 0 !important; padding: 4px 0 !important; min-height: 44px;
  color: var(--ink) !important; font: inherit; font-size: 1rem; text-decoration: underline; text-decoration-color: var(--pp-gold-soft);
  text-underline-offset: 5px; text-decoration-thickness: 1px; cursor: pointer; }
.pp-esign .esf-btn:hover, .pp-esign .esf-tab:hover { color: var(--pp-gold) !important; }
.pp-esign .esf-btn--primary, .pp-esign .esf-tab.is-active { font-weight: 600; text-decoration-color: var(--pp-gold); text-decoration-thickness: 2px; }
.pp-esign .esf-btn--primary::after { content: " →"; color: var(--pp-gold); }
.pp-esign .esf-btn[disabled] { opacity: .45; cursor: default; }
.pp-esign .esf-actions, .pp-esign .esp-item-acts, .pp-esign .esf-sig-tabs { gap: 22px; }
.pp-esign .esf-link { color: var(--ink); opacity: .7; font-size: .95rem; }
.pp-esign .esp-help { opacity: .8; }
/* The boxes on the PDF are sized to the form's lines: keep the site's large form-input styling off them. */
.pp-esign .esf-ov { min-height: 0 !important; margin: 0 !important; box-shadow: none; }
.pp-esign input.esf-ov { font-size: clamp(9px, 1.25vw, 14px) !important; padding: 0 4px !important; line-height: 1 !important; letter-spacing: 0 !important; border-radius: 2px !important; }
.pp-esign .esf-doc .esf-ov--sign, .pp-esign .esf-doc .esf-ov--auto, .pp-esign .esf-doc .esf-ov--done { font-size: clamp(8px, 1.15vw, 14px) !important; padding: 0 3px !important; line-height: 1; overflow: hidden; white-space: nowrap; }
@media (max-width: 600px) { .pp-esign input.esf-ov--date::-webkit-calendar-picker-indicator { display: none; } }
/* The signer's colours follow the portal's own (light and dark). Its text and lines read --c-*; the PDF page stays white. */
.pp-esign { --c-ink: var(--ink); --c-ink2: var(--ink-2); --c-muted: var(--ink-3); --c-box-border: var(--line); --c-box: rgba(127, 127, 127, .06); --c-bg: rgba(127, 127, 127, .08); color: var(--ink); }
.pp-esign .esf-doc, .pp-esign .esp-body { --esg-ink: var(--ink); --esg-ink2: var(--ink-2); --esg-muted: var(--ink-3); --esg-border: var(--line); --esg-card: transparent; --esg-bg: rgba(127, 127, 127, .08); }
.pp-esign .esp-note, .pp-esign .esp-help, .pp-esign .esf-sub, .pp-esign .esf-consent-text, .pp-esign .esf-status, .pp-esign .esf-label { color: var(--ink-2); }
.pp-esign .esf-typed-preview { color: var(--ink); border-color: var(--ink-2); }
/* Guided signing (owner 2026-11-12, "like DocuSign"): the portal's link-style buttons and transparent cards are right for the
   document list but too easy to miss here, so the guide bar, its Start / Next / Finish button and the "Adopt your signature" dialog
   are solid, in the site's own colours (light and dark). */
.pp-esign { --esf-go-bg: #84612B; --esf-go-ink: #FFFFFF; }
@media (prefers-color-scheme: dark) { .pp-esign { --esf-go-bg: #CCAB88; --esf-go-ink: #1F1A17; } }
.pp-esign .esf-guide { background: var(--ivory-low) !important; color: var(--ink); border-color: var(--esf-go-bg) !important; }
.pp-esign .esf-guide .esf-guide-left { color: var(--ink); }
.pp-esign .esf-guide .esf-guide-go, .pp-esign .esf-adopt-dialog-acts .esf-btn--primary {
  background: var(--esf-go-bg) !important; color: var(--esf-go-ink) !important; border-radius: 999px !important; padding: 10px 26px !important;
  text-decoration: none !important; font-weight: 700; }
.pp-esign .esf-guide .esf-guide-go::after, .pp-esign .esf-adopt-dialog-acts .esf-btn--primary::after { content: none; }
.pp-esign .esf-guide .esf-guide-go.is-finish { background: var(--esg-ok, #2E8B4F) !important; color: #fff !important; }
.pp-esign .esf-adopt.is-dialog { background: var(--ivory-low) !important; color: var(--ink); border: 1px solid var(--line); }
.pp-esign input:not(.esf-ov), .pp-esign .esf-consent-text { background: rgba(127, 127, 127, .08); color: var(--ink); }

/* GLP-1 page: research findings, one hairline row each (no boxes) */
ul.research { list-style: none; padding: 0; margin: 18px 0 8px; }
ul.research li { padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.65; }
ul.research li strong { display: block; margin-bottom: 2px; }

/* Patient portal: "Opening soon" notice while the website is live before the portal (owner 2026-11-09) */
.pp-opening h2 { margin: 0 0 10px; }
.pp-opening p { margin: 0 0 12px; }
.pp-opening .portal-signin-lead { margin-bottom: 22px; }
.portal-secure[hidden] { display: none; }
