/* Patients body (the hero is styled only from patients-hero.css).
   Rhythm: roles strip (canvas) › 1. the file: one headline, then one bold reading (the lab value over its chart)
   beside the two other things the file holds › 2. register: its own headline, the form, how it works › 3. Doctors
   (the one big photo) beside the partner panel › one-door photo band (immersive) › footer.
   Sections 1–3 are the page's one butter field. Every section shares one 7 / 5 column line: the lede of each split
   head starts exactly where the right-hand column below it starts. */

/* ---------- 0. Roles strip ----------
   Fills the rest of the first screen under the hero with two lines of moving type that run in opposite directions:
   who the door is for (read by screen readers), and an echo of what is behind it (decorative, hidden without motion). */
.pt-roles {
  display: grid; align-content: center; row-gap: var(--space-2);
  min-height: clamp(112px, calc(100svh - var(--page-hero-h)), 300px);
  padding-block: var(--space-5);
}
.pt-roles .marquee-group { --marquee-gap: var(--space-8); }
.pt-roles li {
  display: inline-flex; align-items: center; gap: var(--space-8);
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink);
}
.pt-roles li::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-400); box-shadow: 0 0 0 4px var(--teal-50);
}
.pt-roles-echo li { font-style: italic; color: var(--accent-em); }
.pt-roles-echo li::before { background: var(--line-2); box-shadow: none; }
.pt-roles-echo { --marquee-dur: 62s; }
.pt-roles-echo.is-running .marquee-track { animation-direction: reverse; }
.pt-roles-echo:not(.is-running) { display: none; }   /* no JS / reduced motion: only the real list, wrapped */

/* ---------- Shared: the 7 / 5 line and the split head ----------
   The headline takes the sturdier 400 cut: at 57–72px the 300 hairlines read thin beside the white cards. */
.pt-file-section, .pt-reg-section, .pt-doors-section {
  --pt-cols: minmax(0, 7fr) minmax(0, 5fr);
  --fw-display-2: var(--fw-title);
}
.pt-head {
  display: grid; grid-template-columns: var(--pt-cols); column-gap: var(--grid-gap);
  align-items: end;
}
.pt-head .display-2 { max-width: 15ch; letter-spacing: var(--tracking-display); }
.pt-head > .lede { margin-top: 0; max-width: 40ch; padding-bottom: 0.35em; }

/* ---------- 1. The file: one bold reading beside the two other things it holds ----------
   ≥ 981: the lab card spans two rows on the left; the pain map and imaging cards stack on the right, their left
   edge on the lede's line. Each side card is copy on the left and a picture that runs to the card's own edges. */
.pt-file {
  display: grid;
  grid-template-columns: var(--pt-cols);
  grid-template-rows: auto auto;
  gap: var(--grid-gap);
}
.pt-lab {
  grid-row: span 2;
  display: flex; flex-direction: column;
  padding: 0 var(--panel-pad) var(--panel-pad);
  border-radius: var(--r-lg);
  background: var(--surface);
  container-type: inline-size;
  --reticle-inset: 10px; --reticle-len: 18px;
}
.pt-lab-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5);
  min-height: 72px; padding-top: var(--space-2);
  border-bottom: 1px solid var(--line-2);
  font-size: var(--fs-small); line-height: 1.3;
}
.pt-file-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: var(--fw-ui); color: var(--ink); }
.pt-file-meta { color: var(--ink-3); }

/* the name, then the value at a size nothing else on the page reaches, then the chart under it */
.pt-lab-name {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px var(--space-4);
  padding-top: var(--space-6);
}
.pt-lab-name p { display: contents; }
.pt-lab-name p > span { grid-column: 1 / -1; color: var(--ink-3); font-size: var(--fs-card); line-height: 1.4; }
.pt-lab-name > .finding { grid-column: 2; grid-row: 1; }
.pt-lab-name b {
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink);
}
.pt-lab-finding { min-height: 36px; padding-inline: 12px 16px; font-size: var(--fs-card); }

.pt-lab-read {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-7);
  margin-top: calc(var(--fs-stat) * 0.62);   /* the numerals rise above their 0.78 line box: keep them clear of the name */
}
.pt-lab-value {
  display: flex; align-items: baseline; gap: 0.04em;
  margin-left: -0.04em;
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: calc(var(--fs-stat) * 2.4); line-height: 0.78; letter-spacing: -0.05em;
  font-variant-numeric: lining-nums tabular-nums; color: var(--ink); white-space: nowrap;
}
.pt-lab-value small {
  font-style: italic; font-size: 0.42em; letter-spacing: -0.01em; color: var(--accent-em);
}
.pt-lab-note {
  display: grid; gap: var(--space-1); justify-items: end; text-align: right;
  padding-bottom: 0.2em;
  font-size: var(--fs-card); line-height: 1.4; color: var(--ink-2);
}
.pt-lab-delta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: var(--fs-title); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
}
/* a down arrow on a teal-50 disc: the trend, read at a glance */
.pt-lab-arrow {
  position: relative; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--teal-50);
}
.pt-lab-arrow::after {
  content: ""; position: absolute; inset: 0;
  background: var(--teal-700);
  -webkit-mask: var(--icon-arrow) center / 14px no-repeat; mask: var(--icon-arrow) center / 14px no-repeat;
  rotate: 90deg;
}

/* the chart: wide and quiet. No tick pills: the band is the range, the dot is today */
.pt-lab-chart {
  flex: 1 0 auto; align-content: end;
  margin-top: var(--space-6);
  --chart-h: clamp(140px, 28cqi, 240px); --chart-gutter: 0px;
  gap: var(--space-3);
}
.pt-lab-chart .chart-plot { margin-right: 8px; }
.pt-lab-chart .chart-line { stroke-width: 2.5; }
.pt-lab-chart .chart-dot { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 4px var(--viz-dot-ring), var(--shadow-sm); }
.pt-lab-chart .chart-x { margin-right: 0; font-size: var(--fs-small); color: var(--ink-3); }
.pt-lab-chart .chart-x > span:last-child { color: var(--ink); font-weight: var(--fw-ui); }
/* the range named inside its own band (bottom-left, where the line never runs). Without the drawn plot (no JS) it is
   a plain line of text under the figure. */
.pt-band-label {
  font-size: var(--fs-small); line-height: 1.3; color: var(--teal-800);
}
.pt-band-label b { font-weight: var(--fw-ui); }
.pt-lab-chart:has(.chart-plot) { position: relative; }
.pt-lab-chart:has(.chart-plot) .pt-band-label {
  position: absolute; z-index: 3; left: var(--space-4);
  bottom: calc(1.3 * var(--fs-small) + var(--space-3) + var(--space-3));
}
@media screen and (prefers-reduced-motion: no-preference) {
  html.js .pt-lab-chart:not(.is-drawn) .pt-band-label { opacity: 0; }
  html.js .pt-lab-chart.is-drawn .pt-band-label { transition: opacity var(--dur-3) var(--ease-out) calc(var(--draw-delay, 0ms) + 300ms); }
}

/* the side cards: copy on the left, the picture to the card's edges on the right */
.pt-side {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) 42%;
  min-height: 220px;
  border-radius: var(--r-lg);
  background: var(--surface);
}
.pt-side-text {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5);
  padding: var(--card-pad);
}
.pt-side-name { display: grid; gap: var(--space-2); }
.pt-side-name b {
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -0.015em; color: var(--ink);
}
.pt-side-name span { color: var(--ink-2); font-size: var(--fs-card); line-height: 1.45; max-width: 24ch; }
.pt-side-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pt-side-chips .pill { min-height: 36px; padding: 0 14px; font-size: var(--fs-card); }
.pt-side-chips .finding { min-height: 36px; padding-inline: 12px 16px; font-size: var(--fs-card); }
.pt-side-media { position: relative; overflow: hidden; background: var(--canvas-2); }
.pt-side-media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--photo-pos, center);
}
.pt-side-map .pt-side-media > img { --photo-pos: 50% 58%; }
.pt-side-scan .pt-side-media > img { --photo-pos: 50% 46%; scale: 1.25; }

/* a narrow lab card (phones) lays itself out by its own width */
@container (max-width: 520px) {
  .pt-lab-note { justify-items: start; text-align: left; }
  .pt-lab-value { font-size: calc(var(--fs-stat) * 2.85); }
  .pt-lab-read { margin-top: calc(var(--fs-stat) * 0.74); }
}

/* ---------- 2. Register: its own headline, the form card, how it works ----------
   ≥ 981: headline | lede, then the form card | the three steps (on the lede's line). */
.pt-reg {
  display: grid;
  grid-template-columns: var(--pt-cols);
  grid-template-areas: "head head" "card steps";
  column-gap: var(--grid-gap);
  align-items: start;
}
.pt-reg-head { grid-area: head; }
.pt-card { grid-area: card; }
.pt-steps { grid-area: steps; }

.pt-card { display: flex; flex-direction: column; }
/* the landing ring after a role shortcut: a solid accent ring (a translucent teal ring turns olive on butter) */
.pt-card.is-target, .pt-card.is-target-flash { animation: none; box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); }
.pt-form { gap: var(--space-3); }
.pt-form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.pt-form .pt-submit { justify-self: stretch; margin-top: var(--space-2); }
.pt-hint { display: flex; align-items: flex-start; gap: var(--space-2); margin-top: var(--space-2); }
.pt-hint[hidden] { display: none; }
.pt-lock {
  --pt-icon-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='3' y='7' width='10' height='7' rx='2' stroke='%23000' stroke-width='1.5'/%3E%3Cpath d='M5.5 7V5a2.5 2.5 0 0 1 5 0v2' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px;
  background: var(--teal-700);
  -webkit-mask: var(--pt-icon-lock) center / 16px no-repeat; mask: var(--pt-icon-lock) center / 16px no-repeat;
}
/* the received state: a quiet confirmation, not a dead button */
.pt-submit.is-received,
.pt-submit.is-received:disabled { background: var(--teal-50); color: var(--teal-800); }
.pt-submit .pt-check {
  width: 18px; height: 18px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--icon-check) center / 18px no-repeat; mask: var(--icon-check) center / 18px no-repeat;
}
.pt-note { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; max-width: 52ch; }

/* how it works: three numbered, ruled rows */
.pt-steps { list-style: none; border-top: 1px solid var(--line-2); }
.pt-steps > li {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--space-4); align-items: baseline;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--line-2);
}
.pt-step-no {
  font-family: var(--font-display); font-weight: var(--fw-display); font-style: italic;
  font-size: var(--fs-h2); line-height: 0.9; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent-em);
}
.pt-steps p { display: grid; gap: var(--space-1); }
.pt-steps b {
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: var(--fs-title); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
}
.pt-steps p span { color: var(--ink-2); font-size: var(--fs-card); line-height: 1.45; }

/* ---------- 3. Doctors + partners ----------
   Two peers on the lede's line: Doctors is the section's one big picture (the photo runs to the card's edges and
   fades into the night card); Partners is one white panel, its heading and its rows together. */
.pt-doors {
  display: grid;
  grid-template-columns: var(--pt-cols);
  gap: var(--grid-gap);
  align-items: stretch;
}

.pt-doc {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--night-2);
  color: var(--fg);
}
.pt-doc-media {
  position: relative; overflow: hidden;
  flex: 1 1 auto; min-height: clamp(280px, 22vw + 120px, 520px);
  margin-bottom: calc(-1 * var(--space-12));
  background: var(--canvas-2);
}
.pt-doc-media > img {
  position: absolute; left: 0; top: -6%;
  width: 100%; max-width: none; height: 112%;
  object-fit: cover; object-position: var(--photo-pos, 58% 34%);
  filter: sepia(0.22) saturate(0.86) contrast(1.04);   /* the site's warm grade: the stock-cool clinic sits on butter */
}
/* the photo eases into the card's own night face (no visible starting line) */
.pt-doc-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--night-2) 0%, transparent) 46%,
    color-mix(in srgb, var(--night-2) 12%, transparent) 58%,
    color-mix(in srgb, var(--night-2) 38%, transparent) 70%,
    color-mix(in srgb, var(--night-2) 70%, transparent) 82%,
    color-mix(in srgb, var(--night-2) 92%, transparent) 92%,
    var(--night-2) 100%);
}
.pt-doc-text {
  position: relative; z-index: 1;
  display: grid; justify-items: start;
  padding: 0 var(--panel-pad) var(--panel-pad);
}
.pt-doc .tag {
  min-height: 28px; padding: 0 12px; margin-bottom: var(--space-4);
  border-radius: var(--r-pill);
  background: var(--glass-dark); color: var(--fg); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.pt-doc h3 {
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: var(--fs-quote); line-height: 1; letter-spacing: var(--tracking-display-2);
  color: var(--fg);
}
.pt-doc-text > p:not(.tag) { margin-top: var(--space-4); max-width: 44ch; font-size: var(--fs-h4); line-height: 1.5; color: var(--fg-2); }
.pt-doc-actions {
  justify-self: stretch;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6);
  margin-top: var(--space-7); padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
}
/* beside the file: three quiet text links, not a row of chips */
.pt-doc-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--space-5); }
.pt-doc-links a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  color: var(--fg); font-size: var(--fs-card); font-weight: var(--fw-ui); line-height: 1.2;
  text-decoration: underline; text-decoration-color: var(--rule-2); text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color var(--dur-2) var(--ease-out);
}
.pt-doc-links a.pt-ext::after {
  content: ""; width: 10px; height: 10px;
  background: currentColor;
  -webkit-mask: var(--icon-external) center / 10px no-repeat; mask: var(--icon-external) center / 10px no-repeat;
}
.pt-doc-links a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: var(--r-xs); }
@media (hover: hover) {
  .pt-doc-links a:hover { text-decoration-color: currentColor; }
}
.pt-nb { white-space: nowrap; }

/* Partners: one white panel, its heading and its rows together */
.pt-partners {
  display: flex; flex-direction: column; min-width: 0;
  padding: var(--panel-pad);
  border-radius: var(--r-lg);
  background: var(--surface);
  --pt-thumb: 72px;
}
.pt-partners-head { display: grid; gap: var(--space-3); padding-bottom: var(--space-6); border-bottom: 1px solid var(--line-2); }
.pt-partners-head .tag { margin-bottom: var(--space-2); }
.pt-partners-head h3 {
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.02em; color: var(--ink);
}
.pt-partners-head > p { color: var(--ink-2); font-size: var(--fs-card); line-height: 1.5; max-width: 46ch; }

.pt-orgs {
  flex: 1 1 auto;
  list-style: none;
  display: grid; grid-auto-rows: 1fr;
}
.pt-orgs > li { display: flex; min-width: 0; }
.pt-orgs > li + li { border-top: 1px solid var(--line); }
/* the row runs exactly from the thumb's edge to the badge's edge, so its hairline does too; the hover face
   reaches a little past both on its own layer */
.pt-org {
  position: relative; isolation: isolate;
  flex: 1 1 auto;
  display: grid; grid-template-columns: var(--pt-thumb) minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-5);
  min-height: calc(var(--pt-thumb) + var(--space-5));
  padding-block: var(--space-2);
  color: var(--ink);
}
.pt-org::before {
  content: ""; position: absolute; z-index: -1; inset: 1px calc(-1 * var(--space-3));
  border-radius: var(--r-sm);
  background: var(--tint); opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
@media (hover: hover) { .pt-org:hover::before { opacity: 1; } }
.pt-org:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-sm); }
.pt-org:focus-visible::before { opacity: 1; }
.pt-org-text { display: grid; gap: 2px; min-width: 0; }
.pt-org-text b {
  font-family: var(--font-display); font-weight: var(--fw-title);
  font-size: var(--fs-title); line-height: 1.15; letter-spacing: -0.01em;
}
.pt-org-text span { color: var(--ink-2); font-size: var(--fs-card); line-height: 1.4; }
.pt-org > .arrow-badge { --badge-bg: var(--tint); }

/* the thumbs: one family. Every photo is drawn as the same teal duotone (deep teal shadows, pale teal lights),
   so five different shoots read as one set, each crop aimed at the person or object that names the role */
.pt-org-thumb {
  position: relative; isolation: isolate; overflow: hidden;
  width: var(--pt-thumb); aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: var(--teal-100);
}
.pt-org-thumb > img {
  display: block; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--thumb-pos, center);
  scale: var(--thumb-zoom, 1); transform-origin: var(--thumb-pos, center);
  filter: grayscale(1) contrast(1.06) brightness(1.14);
  mix-blend-mode: multiply;
}
.pt-org-thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--teal-800); mix-blend-mode: lighten;
}
.pt-org-clinic { --thumb-pos: 58% 62%; --thumb-zoom: 1.5; }
.pt-org-aid { --thumb-pos: 74% 34%; --thumb-zoom: 1.7; }
.pt-org-admin { --thumb-pos: 22% 46%; --thumb-zoom: 1.8; }
.pt-org-med { --thumb-pos: 30% 50%; --thumb-zoom: 1.9; }
.pt-org-life { --thumb-pos: 44% 42%; --thumb-zoom: 1.7; }
/* anyone else: a plus on the same pale teal face */
.pt-org-plus {
  display: block;
  background:
    linear-gradient(var(--teal-700), var(--teal-700)) center / 20px 2px no-repeat,
    linear-gradient(var(--teal-700), var(--teal-700)) center / 2px 20px no-repeat,
    var(--teal-50);
}
.pt-org-plus::after { content: none; }

/* ---------- 3b. One door, one file (immersive photo band) ----------
   Full-bleed photo with grain, uncovered by the scan line; the statement runs across the container at display size
   and the three numbers count up beneath it. */
.pt-band { min-height: clamp(680px, 112svh, 1180px); padding-top: calc(var(--section-y) * 2); }
.pt-band-scan { position: absolute; inset: 0; overflow: hidden; }
/* 1px of spare photo either side: a composited, sub-pixel-shifted photo otherwise lets its last column go faint */
.pt-band-scan > img {
  position: absolute; left: -1px; top: -8%;
  width: calc(100% + 2px); max-width: none; height: 116%;
  object-fit: cover; object-position: var(--photo-pos, 4% 22%);   /* desktop: she stands right of the statement */
}
.pt-band .bleed-media::after {
  background:
    linear-gradient(180deg, rgba(var(--photo-ink), 0) 28%, rgba(var(--photo-ink), 0.42) 52%, rgba(var(--photo-ink), 0.82) 100%),
    var(--scrim-left);
}
.pt-band-quote {
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: var(--fs-display-2); line-height: 1.04; letter-spacing: var(--tracking-display-2);
  color: var(--fg);
  text-shadow: var(--fg-shadow, var(--text-shadow-photo));
  text-wrap: balance;
  max-width: 24ch;
}
.pt-band-quote em { font-style: italic; color: var(--fg); }
.pt-stats {
  --stat-cols: 3;
  margin-top: var(--stack);
  padding-top: var(--space-10);
  border-top: 1px solid var(--rule-2);
  column-gap: var(--grid-gap);
}
.pt-stats .stat { gap: var(--space-4); }
.pt-stats .stat + .stat { border-left: 0; padding-left: 0; }
.pt-band .pt-stats .stat-value { font-size: calc(var(--fs-stat) * 1.6); line-height: 0.86; color: var(--fg); }
.pt-stats .stat-label { color: var(--fg-2); font-size: var(--fs-h4); line-height: 1.4; max-width: 24ch; }
.pt-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-7); margin-top: var(--stack); }
.pt-band .link-arrow { color: var(--fg); }

/* ---------- Large desktop: the partner rows carry the same weight as the Doctors card ---------- */
@media (min-width: 981px) {
  .pt-side-name b { font-size: var(--fs-h2); letter-spacing: -0.02em; }
}
@media (min-width: 1280px) {
  .pt-partners { --pt-thumb: 88px; }
}
@media (min-width: 1700px) {
  .pt-partners { --pt-thumb: 96px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  /* the file: the lab card full width, the two side cards side by side under it */
  .pt-file { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-lab { grid-row: auto; grid-column: 1 / -1; }
  .pt-side { grid-template-columns: minmax(0, 1fr) 34%; min-height: 240px; }
  .pt-side-text { padding-right: var(--space-4); }
  .pt-side-chips { flex-wrap: nowrap; gap: 6px; }
  .pt-side-chips .pill { padding: 0 12px; font-size: var(--fs-small); white-space: nowrap; }
  .pt-side-chips .finding { font-size: var(--fs-small); }

  /* register: headline | lede, the form card full width, then the steps as three columns */
  .pt-reg { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "steps"; }
  .pt-steps {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--grid-gap);
    margin-top: var(--stack); border-top: 0;
  }
  .pt-steps > li {
    grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); align-content: start;
    padding-block: var(--space-5) 0;
    border-bottom: 0; border-top: 1px solid var(--line-2);
  }

  /* doors: Doctors, then the partner panel full width with a split head and two columns of rows */
  .pt-doors { grid-template-columns: minmax(0, 1fr); row-gap: var(--stack); }
  .pt-doc-media { flex: 0 0 auto; height: clamp(300px, 40vw + 100px, 440px); min-height: 0; }
  .pt-doc-media > img { --photo-pos: 60% 30%; }
  .pt-partners-head { grid-template-columns: var(--pt-cols); column-gap: var(--grid-gap); align-items: end; }
  .pt-partners-head > p { padding-bottom: 0.2em; }
  .pt-partners { --pt-thumb: 64px; }
  .pt-orgs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
  .pt-org { column-gap: var(--space-4); min-height: calc(var(--pt-thumb) + var(--space-7)); }
  .pt-org > .arrow-badge { width: 36px; height: 36px; }
  .pt-orgs > li + li { border-top: 0; }
  .pt-orgs > li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .pt-band-quote { max-width: none; }
  /* the band: the photo holds the top of the band and fades into the night under the copy, so the copy never sits
     on her head and a 16:9 photo is not blown up to fill a tall portrait band */
  .pt-band { min-height: 0; padding-top: 0; }
  .pt-band .bleed-media { bottom: auto; height: clamp(520px, 30vw + 400px, 700px); }
  .pt-band .bleed-media::after { background: linear-gradient(180deg, rgba(var(--photo-ink), 0) 42%, var(--night) 100%); }
  .pt-band-scan > img { --photo-pos: 50% 18%; }
  .pt-band-content { padding-top: clamp(400px, 30vw + 290px, 560px); }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .pt-head { grid-template-columns: minmax(0, 1fr); }
  .pt-head .display-2 { max-width: 20ch; }
  .pt-head > .lede { margin-top: var(--space-5); padding-bottom: 0; }

  .pt-file { grid-template-columns: minmax(0, 1fr); }
  .pt-lab { padding-inline: var(--space-6); --reticle-inset: 8px; --reticle-len: 14px; }
  .pt-lab-head { min-height: 64px; padding-top: var(--space-3); }
  .pt-lab-chart { --chart-h: 150px; margin-top: var(--space-6); }
  .pt-side { grid-template-columns: minmax(0, 1fr) 36%; min-height: 200px; }
  .pt-side-text { padding: var(--space-6) var(--space-4) var(--space-6) var(--space-6); }

  /* phones: more air between the three butter sections (each opens with its own display-2) */
  .pt-file-section, .pt-reg-section { padding-bottom: calc(var(--section-y) * 1.375); }

  .pt-form-pair { grid-template-columns: minmax(0, 1fr); }
  .pt-steps { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-7); border-top: 1px solid var(--line-2); }
  .pt-steps > li {
    grid-template-columns: 2.75rem minmax(0, 1fr); align-items: baseline;
    padding-block: var(--space-5); border-top: 0; border-bottom: 1px solid var(--line-2);
  }

  .pt-doc-media { height: 300px; margin-bottom: calc(-1 * var(--space-10)); }
  .pt-doc-media > img { --photo-pos: 70% 30%; }
  .pt-doc-text { padding: 0 var(--card-pad) var(--card-pad); }
  .pt-doc-actions { margin-top: var(--space-6); padding-top: var(--space-5); }
  .pt-doc-cta { width: 100%; }
  .pt-partners { padding: var(--space-6) var(--space-4); --pt-thumb: 72px; }
  .pt-partners-head { grid-template-columns: minmax(0, 1fr); padding-bottom: var(--space-5); }
  .pt-orgs { grid-template-columns: minmax(0, 1fr); }
  .pt-orgs > li:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .pt-org { column-gap: var(--space-3); min-height: calc(var(--pt-thumb) + var(--space-5)); }
  /* phones: a bare arrow instead of the disc, so each subtitle keeps to one line beside its 72px thumb */
  .pt-org > .arrow-badge { width: 20px; height: 20px; background: none; color: var(--teal-700); }
  .pt-org:focus-visible > .arrow-badge { background: none; color: var(--teal-700); }

  .pt-roles li { font-size: var(--fs-display-2); }
  .pt-stats { --stat-cols: 1; padding-top: 0; border-top: 0; row-gap: 0; }
  .pt-stats .stat {
    display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center;
    padding-block: var(--space-4);
    border-top: 1px solid var(--rule-2);
  }
  .pt-stats .stat + .stat { border-top: 1px solid var(--rule-2); padding-top: var(--space-4); }
  .pt-band .pt-stats .stat-value { font-size: calc(var(--fs-stat) * 1.45); line-height: 0.9; }
  .pt-stats .stat-label { font-size: var(--fs-card); }
}
