/* Swami Dental v6: inner-page kit (loaded by every page except the homepage).
   Builds on style.css: same tokens, grounds, hairlines and type. Palette swap
   (html[data-palette="maroon"]) works unchanged because everything here uses
   --garnet / --deep / --*-rgb. */

/* ---------- Page header (replaces the homepage hero) ---------- */
.pg { position: relative; padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); background: var(--deep); border-bottom: 1px solid var(--hair); }
.pg--photo { min-height: min(62vh, 620px); display: grid; align-items: end; padding-top: clamp(120px, 16vw, 200px); }
.pg__media, .pg__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pg__media img { object-fit: cover; filter: brightness(.88) saturate(1.08); }
.pg__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--deep-rgb), .55) 0%, rgba(var(--deep-rgb), .35) 40%, rgba(var(--deep-rgb), .96) 100%); }
.pg__in { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--on-2); }
.crumbs a { color: var(--on-2); text-decoration: none; }
.crumbs a:hover { color: var(--on); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.crumbs li + li::before { content: "·"; margin-right: 10px; color: var(--gold); }
.pg__kicker { font: italic 400 1.2rem/1.3 var(--serif); color: var(--on-2); }
.pg__h { margin: 0; font: 400 clamp(2.4rem, 1.4rem + 3.2vw, 4.6rem)/1.04 var(--serif); letter-spacing: -.02em; text-wrap: balance; max-width: 16ch; }
.pg__h em { font-style: italic; }
.pg__lede { max-width: 56ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--on); }
.pg__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* ---------- Grounds ---------- */
.sec { padding: var(--sec) 0; }
.sec--deep { background: var(--deep); }
.sec--garnet { background: var(--garnet); border-block: 1px solid var(--hair); }
.sec--cream, .sec--shell, .sec--rose { color: var(--ink); }
.sec--cream { background: var(--cream); }
.sec--shell { background: var(--shell); }
.sec--rose { background: var(--rose); }
.sec--cream .lede, .sec--shell .lede, .sec--rose .lede { color: var(--slate); }
.sec--cream :focus-visible, .sec--shell :focus-visible, .sec--rose :focus-visible { outline-color: var(--garnet); }
.sec--cream ::selection, .sec--shell ::selection, .sec--rose ::selection { background: var(--rose); color: var(--ink); }
.sec--tight { padding: clamp(48px, 6vw, 88px) 0; }

/* ---------- Reading column ---------- */
.prose { max-width: 66ch; font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font: 500 clamp(1.6rem, 1.2rem + 1vw, 2.2rem)/1.15 var(--serif); letter-spacing: -.012em; }
.prose h3 { margin-top: 1.8em; font: 500 clamp(1.25rem, 1.1rem + .4vw, 1.5rem)/1.25 var(--serif); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.prose .lead { font: 400 clamp(1.25rem, 1.1rem + .5vw, 1.55rem)/1.45 var(--serif); }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 1px solid var(--gold); font: italic 400 1.2em/1.45 var(--serif); }
.prose blockquote footer { margin-top: .5em; font: 400 .85em/1.4 var(--sans); color: var(--on-2); }
.sec--cream .prose blockquote footer, .sec--shell .prose blockquote footer { color: var(--slate); }
.sec--deep .prose, .sec--garnet .prose { color: var(--on); }
.sec--cream .prose, .sec--shell .prose, .sec--rose .prose { color: var(--ink); }

/* Two-column: reading column + sticky aside */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.aside { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 22px; }
.panel { position: relative; padding: clamp(24px, 2.4vw, 32px); }
.panel::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--hair); pointer-events: none; }
.panel--deep { background: var(--deep); color: var(--on); }
.panel--garnet { background: var(--garnet); color: var(--on); }
.panel--cream { background: var(--cream); color: var(--ink); }
.panel--cream::before { border-color: var(--hair-ink); }
.panel--shell { background: var(--shell); color: var(--ink); }
.panel--shell::before { border-color: var(--hair-ink); }
.panel > * { position: relative; }
.panel__k { font: 600 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.panel__t { margin-top: 8px; font: 500 clamp(1.3rem, 1.1rem + .5vw, 1.6rem)/1.2 var(--serif); }
.panel__p { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.panel .btn { margin-top: 16px; }
.panel--cream .btn--line, .panel--shell .btn--line { --b: var(--deep); color: var(--deep); }
.panel--cream .btn--line:hover, .panel--shell .btn--line:hover { background: var(--deep); color: var(--cream); }
.panel--cream .btn--cream, .panel--shell .btn--cream { background: var(--deep); color: var(--cream); --b: var(--deep); }

/* Fact list (dl) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.facts > div { padding: 14px 0 10px; border-top: 1px solid var(--hair); }
.sec--cream .facts > div, .sec--shell .facts > div, .panel--cream .facts > div { border-top-color: var(--hair-ink); }
.facts dt { margin-bottom: 4px; font: 600 13px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.facts dd { margin: 0; font-size: 16.5px; line-height: 1.45; }
.facts--1 { grid-template-columns: 1fr; }

/* Ruled list (rows with a hairline between) */
.rlist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.rlist > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.sec--cream .rlist, .sec--cream .rlist > li, .sec--shell .rlist, .sec--shell .rlist > li { border-color: var(--hair-ink); }
.rlist__t { font: 500 clamp(1.15rem, 1.05rem + .3vw, 1.35rem)/1.3 var(--serif); }
.rlist__d { grid-column: 1; font-size: 16px; line-height: 1.5; opacity: .85; }
.rlist__x { grid-column: 2; grid-row: 1 / span 2; }

/* Card grid (generic, varied grounds via .panel--*) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 28px); }
.cards .panel { display: grid; align-content: start; min-height: 220px; }

/* Numbered steps as a vertical list (for inner pages) */
.vsteps { margin: 0; padding: 0; list-style: none; counter-reset: v; display: grid; gap: 0; }
.vsteps > li { counter-increment: v; position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 24px; padding: 22px 0; border-top: 1px solid var(--hair); }
.vsteps > li:last-child { border-bottom: 1px solid var(--hair); }
.sec--cream .vsteps > li, .sec--shell .vsteps > li { border-color: var(--hair-ink); }
.vsteps > li::before { content: counter(v); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; font: 500 18px/1 var(--serif); }
.vsteps__t { font: 500 clamp(1.25rem, 1.1rem + .4vw, 1.5rem)/1.25 var(--serif); }
.vsteps__d { margin-top: 6px; font-size: 17px; line-height: 1.55; opacity: .88; max-width: 60ch; }

/* Figure with gold hairline frame */
.fig { position: relative; margin: 0; }
.fig img { display: block; width: 100%; height: auto; }
/* frame sits on the photo only (not around the caption) */
.fig img { outline: 1px solid var(--hair-2); outline-offset: -12px; }
.fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; opacity: .8; }
.fig--4x5 { aspect-ratio: 4 / 5; overflow: hidden; }
.fig--4x5 img, .fig--16x9 img { height: 100%; object-fit: cover; }
.fig--16x9 { aspect-ratio: 16 / 9; overflow: hidden; }

/* Safety line and notes */
.note { font-size: 15px; line-height: 1.55; opacity: .85; max-width: 68ch; }

/* Prev / next page links */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--hair); }
.sec--cream .pager, .sec--shell .pager { border-color: var(--hair-ink); }
.pager a { display: grid; gap: 4px; text-decoration: none; color: inherit; }
.pager a:hover .pager__t { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.pager__k { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pager__t { font: 500 1.2rem/1.3 var(--serif); }
.pager a:last-child { text-align: right; justify-items: end; }

/* Closing CTA band reused from the home: .pre (style.css). A compact version: */
.cta { padding: clamp(56px, 7vw, 96px) 0; background: var(--garnet); border-block: 1px solid var(--hair); }
.cta__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.cta__h { margin: 0; font: 400 clamp(1.8rem, 1.2rem + 1.8vw, 3rem)/1.1 var(--serif); letter-spacing: -.015em; }
.cta__h em { font-style: italic; }
.cta__p { margin-top: 12px; max-width: 56ch; font-size: 17px; line-height: 1.55; color: var(--on-2); }
.cta__act { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1000px) {
  .cols { grid-template-columns: 1fr; }
  .aside { position: static; }
  .cta__in { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pg--photo { min-height: 0; padding-top: 120px; }
  .facts { grid-template-columns: 1fr; }
  .rlist > li { grid-template-columns: 1fr; }
  .rlist__x { grid-column: 1; grid-row: auto; }
  .vsteps > li { grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; justify-items: start; }
}

/* group C: learn */
.ln-main { min-width: 0; }
.ln-main .pager { max-width: 66ch; }
.ln-h2 { margin-top: 0; }
.ln-articles .rlist__t a { color: inherit; text-decoration: none; }
.ln-articles .rlist__t a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.ln-articles .rlist__d, .ln-next .rlist__d { max-width: 62ch; }
.ln-rel { margin: 12px 0 0; padding: 0; list-style: none; }
.ln-rel li { border-top: 1px solid var(--hair-ink); }
.ln-rel a { display: block; min-height: 44px; padding: 10px 0; color: inherit; text-decoration: none; font: 500 1.05rem/1.4 var(--serif); }
.ln-rel a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.ln-main .fig { margin-block: 2.2em; }

/* group A: practice pages */
/* the-family */
.fam-facts { margin-top: 4px; }
.fam-facts > div { border-top-color: var(--hair-ink); }
.fam-facts dt { color: var(--slate); opacity: 1; }
.fam-facts dd { color: var(--ink); }
.fam-rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.fam-rooms .fig { aspect-ratio: auto; }
.fam-rooms .fig img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; }
.fam-rooms figcaption { margin-top: 14px; font-size: 15px; opacity: 1; color: var(--on-2); }
.fam-rooms figcaption b { font-weight: 500; color: var(--on); }
.fam-tour { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: clamp(28px, 3vw, 44px); }
/* visit */
.vis-addr { font: 400 clamp(1.2rem, 1.05rem + .5vw, 1.55rem)/1.45 var(--serif); font-style: normal; }
.vis-route { margin-top: .6em; }
.vis-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.vis-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); max-width: 980px; }
/* first-visit */
.fv-list { margin: 10px 0 0; padding-left: 1.1em; font-size: 16px; line-height: 1.55; }
.fv-list li + li { margin-top: 6px; }
.fv-safety { margin-top: clamp(28px, 3vw, 40px); }
/* technology */
.tec-when { display: inline-flex; align-items: center; min-height: 26px; margin-left: 10px; padding: 0 11px; border: 1px solid rgba(var(--deep-rgb), .45); border-radius: 999px; vertical-align: middle; font: 600 12px/1 var(--sans); letter-spacing: .06em; color: var(--deep); white-space: nowrap; }
.tec-note { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--hair-ink); }
/* pre-consult */
.pcx-chips { margin-top: 20px; }
.pcx-safety { margin-top: 2em; }
@media (max-width: 1000px) {
  .fam-rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fam-rooms { grid-template-columns: 1fr; }
  .vis-photos { grid-template-columns: 1fr; }
  .tec-when { margin-left: 0; margin-top: 8px; display: inline-flex; }
}

/* group B: treatments */
.tx-prose .vsteps { padding-left: 0; }
.tx-prose .vsteps > li + li { margin-top: 0; }
.tx-prose .vsteps__t, .tx-prose .vsteps__d { margin-top: 0; }
.tx-prose .vsteps__d { margin-top: 6px; }
.tx-prose > section + section { margin-top: 2.6em; }
.tx-prose ul { padding-left: 1.1em; }
.tx-fig { margin-bottom: 2.2em; }
.tx-safety { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--hair-ink); }
.tx-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.tx-acts .btn { margin-top: 16px; }
.tx-rel { margin: 10px 0 0; padding: 0; list-style: none; }
.tx-rel li + li { border-top: 1px solid var(--hair-ink); }
.tx-rel a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; min-height: 56px; padding: 12px 0; color: inherit; text-decoration: none; font: 500 1.1rem/1.3 var(--serif); }
.tx-rel a .i { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--garnet); transition: transform .35s var(--ease); }
.tx-rel a:hover .i { transform: translateX(3px); }
.tx-rel a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.tx-rel__k { display: block; grid-column: 1; font: 600 11px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.tx-faq .pager { border-color: var(--hair-ink); }
.tx-faq .pager a:hover .pager__t { color: var(--deep); }
.tx-grp + .tx-grp { margin-top: clamp(36px, 4vw, 56px); }
.tx-grp__h { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 600 13px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.tx-grp__h .i { width: 20px; height: 20px; color: var(--garnet); }
.tx-index .xrow__s { text-transform: none; letter-spacing: 0; font: 400 15px/1.45 var(--sans); }
.tx-xgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tx-which .rlist__t { max-width: 40ch; }
.tx-which .rlist__d a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.tx-which .rlist__d { opacity: 1; color: var(--on-2); }
.sec--deep .tx-which .pill:hover { background: var(--cream); border-color: var(--cream); color: var(--deep); }
@media (max-width: 1100px) {
  .tx-xgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .tx-xgrid--3 { grid-template-columns: 1fr; }
}
.pcx-ticket { color: var(--on); }

/* kit fix: style.css colours .facts dt/dd for the cream doctors section; on dark grounds inherit */
.sec--deep .facts dt, .sec--garnet .facts dt, .panel--deep .facts dt, .panel--garnet .facts dt { color: var(--on-2); }
.sec--deep .facts dd, .sec--garnet .facts dd, .panel--deep .facts dd, .panel--garnet .facts dd { color: var(--on); }

/* recheck 9 Oct: readable line length for list descriptions; tap size for footer language/palette links */
.rlist__d { max-width: 72ch; }
.foot .lang button, .foot .pal a { min-height: 44px; min-width: 44px; display: inline-grid; place-items: center; }
/* paragraph rhythm inside nested sections/divs of a .prose column */
.prose section > * + *, .prose > div > * + * { margin-top: 1.1em; }
.prose section > h2 + *, .prose section > h3 + * { margin-top: .6em; }
/* phone/tablet menu: keep a way to the Treatments index inside the accordion */
@media (max-width: 1180px) {
  .mega__head { display: block; padding: 0 0 6px; border: 0; }
  .mega__title { display: none; }
  .mega__note { font-size: 0; }
  .mega__note .mega__all { font-size: 16px; display: inline-flex; align-items: center; min-height: 44px; color: var(--on); }
}

/* ---------- Pictures (images round, 10 Oct 2026) ---------- */
/* Page header with a picture on the right (build_v6.py adds .pg--split and .pg__fig) */
.pg--split .pg__in { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-rows: repeat(5, auto) 1fr; column-gap: clamp(32px, 5vw, 88px); }
.pg--split .pg__in > * { grid-column: 1; }
.pg--split .pg__in > .pg__fig { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: stretch; }
.pg__fig { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: rgba(0, 0, 0, .15); }
.pg__fig img { display: block; width: 100%; height: 100%; object-fit: cover; outline: 1px solid var(--hair-2); outline-offset: -12px; }
@media (max-width: 900px) {
  .pg--split .pg__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .pg--split .pg__in > .pg__fig { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
/* Figures in a reading column, and square pictures */
.fig--3x2 { aspect-ratio: 3 / 2; overflow: hidden; }
.fig--3x2 img, .fig--sq img { height: 100%; object-fit: cover; }
.fig--sq { aspect-ratio: 1; overflow: hidden; }
.fig--3x2:has(figcaption), .fig--sq:has(figcaption) { aspect-ratio: auto; overflow: visible; }
.fig--3x2:has(figcaption) img { aspect-ratio: 3 / 2; }
.fig--sq:has(figcaption) img { aspect-ratio: 1; }
.prose .fig { margin-block: 28px 8px; }
.prose .fig--sq { max-width: 420px; }
.aside .fig { margin: 0; }
/* Your first visit: the 'what to bring' still life beside the four panels */
.fv-prac { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.fv-prac .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .fv-prac { grid-template-columns: minmax(0, 1fr); } .fv-prac > .fig { max-width: 480px; } }
@media (max-width: 640px) { .fv-prac .cards { grid-template-columns: minmax(0, 1fr); } }
/* Visit: the door on its own */
.vis-photos--one { grid-template-columns: minmax(0, 460px); }
/* Learn: article rows with a thumbnail */
.rlist--img > li { grid-template-columns: 168px minmax(0, 1fr) auto; column-gap: clamp(18px, 2.4vw, 32px); }
.rlist--img .rlist__img { grid-column: 1; grid-row: 1 / span 2; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.rlist--img .rlist__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rlist--img .rlist__t, .rlist--img .rlist__d { grid-column: 2; }
.rlist--img .rlist__x { grid-column: 3; }
@media (max-width: 700px) {
  .rlist--img > li { grid-template-columns: 96px minmax(0, 1fr); }
  .rlist--img .rlist__img { grid-row: 1 / span 3; align-self: start; }
  .rlist--img .rlist__x { grid-column: 2; grid-row: auto; }
}

/* ---------- One maroon (10 Oct 2026): inner-page grounds match the header's shade ---------- */
.sec--garnet, .panel--garnet, .cta { background: var(--deep); }

/* Treatment template v2: each treatment page is its landing page (client, 13 Oct) */
.tx-local { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 18px; font: 500 15px/1.45 var(--sans); color: var(--on-2); }
.tx-local .i { width: 18px; height: 18px; color: var(--gold); }
.tx-anim { margin: 1.8em 0 0; }
.tx-anim__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.tx-anim__v { display: block; width: 100%; height: 100%; object-fit: cover; }
.tx-anim__btn {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(46, 10, 24, .6); color: #fff; cursor: pointer;
}
.tx-anim__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tx-anim__btn .i { width: 18px; height: 18px; }
.tx-anim figcaption { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.tx-docs__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); margin-top: clamp(28px, 3vw, 44px); }
.dcard--mini { grid-template-columns: 92px minmax(0, 1fr); align-items: start; gap: 18px; }
.dcard--mini .portrait { margin: 0; box-shadow: none; }
.dcard--mini .portrait::before { inset: 6px; }
.dcard--mini .portrait::after { display: none; }
.dcard--mini .portrait__arch { display: none; }
.dcard--mini .portrait__mono { margin-top: 0; font-size: 28px; }
.dcard--mini .dcard__name { margin-bottom: 6px; font-size: 1.22rem; }
.dcard--mini .doc__cred { font-size: 12px; }
.dcard--mini .doc__cred span + span::before { width: 12px; margin: 0 8px; }
.dcard--mini .dcard__meta { margin-top: 6px; font-size: 15px; }
.dcard--mini .dcard__lang { margin-top: 2px; font-size: 14px; }
.tx-docs__more { margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 1000px) { .tx-docs__row { grid-template-columns: 1fr; max-width: 560px; } }
.tx-stories__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(24px, 3vw, 40px); }
.tx-story { aspect-ratio: 16 / 9; background: var(--deep); }
@media (max-width: 700px) { .tx-stories__row { grid-template-columns: 1fr; } }
.tx-find__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: clamp(24px, 3vw, 56px); align-items: end; }
.tx-find__a { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.tx-find__act { display: grid; gap: 16px; justify-items: start; }
@media (max-width: 1000px) { .tx-find__in { grid-template-columns: 1fr; align-items: start; } }

/* Dr. Nikhil's document (14 Oct): expertise list, qualifications, team, regrouped treatments */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(24px, 3vw, 40px); }
.team__g { padding-top: 16px; border-top: 1px solid var(--hair-ink); }
.team dt { font: 600 13px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.team ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.team li { font: 400 1.2rem/1.35 var(--serif); color: var(--ink); }
.team li span { display: block; font: 400 14px/1.4 var(--sans); color: var(--slate); }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.tx-xgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tx-docs__row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
@media (max-width: 1000px) { .tx-docs__row { grid-template-columns: 1fr; } }
.team dd { margin: 0; }

/* Plain headings (15 Oct): a small sentence-case label above a value, panel titles that open a panel, a read time under a title */
.panel__h { font: 600 15px/1.35 var(--sans); }
.panel__h + .panel__t { margin-top: 4px; }
.panel > .panel__t:first-child { margin-top: 0; }
.pg__meta { margin-top: 10px; font-size: 15px; color: var(--on-2); }

/* Plain labels (15 Oct audit): sentence case, and nothing under 13px */
.facts dt, .pager__k, .tx-rel__k, .tx-grp__h, .team dt, .panel__k { text-transform: none; letter-spacing: 0; }
.tx-grp__h, .team dt, .facts dt { font-size: 15px; }
.pager__k { font-size: 14px; }
.tx-rel__k { font-size: 13px; }
/* the two-card group on the Treatments page stacked like the others on phones (it overflowed by 21px) */
@media (max-width: 700px) { .tx-xgrid--2 { grid-template-columns: 1fr; } }
/* breadcrumb links were 21px tall: at least 24px to tap */
.crumbs a { display: inline-block; padding-block: 4px; }
