/* Karma Health: rules Oxygen breakpoints cannot express (touch pointer, reduced motion, print, keyframes). Loaded after Oxygen selectors. */
@keyframes kh-split-fallback { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (pointer: coarse) {
  .kh-btn--sm, .kh-chip, .kh-search button, .kh-footer-social a, .kh-icon-link, .kh-menu-toggle { min-height: 44px; min-width: 44px; }
  .kh-header-actions .kh-btn, .kh-select-wrap select { min-height: 44px; }
  .kh-footer-bottom a, .kh-footer-list a { min-width: 44px; }
  .kh-brand { padding-block: 4px; }
  .kh-footer-list a, .kh-footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Drawer and mega-menu links must stay block-level on touch screens, or they run together on one line (client iPhone report, 19 Nov). */
  .kh-drawer .kh-drawer-group a, .kh-mega-col a.kh-mega-link { display: flex; align-items: center; min-height: 44px; }
  .kh-footer-list { gap: 0; }
  .kh-footer-contact .kh-big { display: inline-flex; align-items: center; min-height: 44px; }
  .kh-link-arrow, .kh-breadcrumb a, .kh-p-card h3 a, .kh-quote-card .kh-more, .kh-footer-contact address a, .kh-prose a, .kh-contact-us a { position: relative; }
  .kh-link-arrow::before, .kh-breadcrumb a::before, .kh-quote-card .kh-more::before, .kh-prose a::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); }
  .kh-header-actions .kh-btn { min-height: 44px; }
}
@media print {
  .kh-site-header, .kh-site-footer, .kh-cta-band, .kh-drawer { display: none !important; }
  body { background: var(--c-on-dark); }
  .kh-tl-fill { transform: none !important; }
}
/* Declarations Oxygen's CSS importer cannot store (single-side border colours, outline, max() inside spacing shorthands).
   Kept here verbatim from karma.css; min-width wrappers reproduce the source cascade where smaller breakpoints override them. */
.kh-site-header.kh-is-scrolled { border-bottom-color: var(--c-line); }
.kh-mega-col a.kh-mega-link:hover { border-bottom-color: var(--c-line); }
.kh-versus-col--new li { border-bottom-color: rgba(255,255,255,0.14); }
.kh-toc a:hover, .kh-toc a.kh-is-active { border-left-color: var(--c-gold-600); }
.kh-search input { outline: none; }
.kh-field input:focus, .kh-field textarea:focus { outline: none; }
@media (min-width: 1025px) { .kh-hero-media { margin-right: calc(-1 * max(var(--gutter), (100vw - var(--maxw)) / 2 + var(--gutter))); } }
@media (min-width: 768px) { .kh-split-bleed .kh-split-bleed-copy { padding: var(--section) clamp(1.5rem, 1rem + 4vw, 6rem) var(--section) max(var(--gutter), (100vw - var(--maxw)) / 2 + var(--gutter)); } }
/* Oxygen editor canvas only (html.kh-builder is set by the head script inside the builder iframe):
   show content that visitors reveal by interaction, so editors can see and edit it. Never applies on the live site. */
.kh-builder span[hidden] { display: inline !important; }
.kh-builder div[hidden] { display: flex !important; }
.kh-builder body.single-oxygen_header .kh-mega { position: static; visibility: visible; opacity: 1; transform: none; }
.kh-builder body.single-oxygen_header .kh-drawer { position: static; visibility: visible; opacity: 1; }
/* Oxygen's importer turns a lone row-gap/column-gap into the gap shorthand (both axes). Restore the source's single-axis gaps.
   Source: .hero-meta { row-gap: 1.4rem } (no column gap); .tl-step desktop { column-gap: clamp(...) } (no row gap). */
.kh-hero-meta { column-gap: 0; }
@media (min-width: 1024px) { .kh-tl-step { row-gap: 0; } }
/* Blog loops: the bound excerpt is wrapped (wpautop <p> inside a div holder), so the source's excerpt <p> becomes :last-child and loses
   its 1em bottom margin to the global p:last-child reset. In the source a link follows it, so the margin stands. Restore it. */
.kh-post-feature-body > div > p:last-child, .kh-post-card-body > div > p:last-child { margin-bottom: 1em; }

/* Corporate Health draft (page 670): logo strip wraps on tablet/phone, drop column rules */
@media (max-width: 1023px) { .kh-corp-logo { border-left: 0; } }

/* Membership comparison table (page 418): keep the feature column in view while plans scroll sideways on phones */
@media (max-width: 767px) {
  .kh-matrix-wrap .kh-matrix th:first-child, .kh-matrix-wrap .kh-matrix td:first-child { position: sticky; left: 0; z-index: 1; background: var(--c-surface); box-shadow: 1px 0 0 var(--c-line), 8px 0 12px -10px rgba(20, 47, 46, .25); }
}

/* Corporate Health (page 670): "For approval" tags are reviewer-only; logged-out visitors do not see them */
body:not(.logged-in) .kh-corp-flag { display: none !important; }

/* Legal pages (251, 378, 413): policy lists read as one column at body size */
.kh-marker-list.kh-legal-list { grid-template-columns: minmax(0, 1fr) !important; row-gap: 0.6rem; margin: 0 0 1.25rem; }
.kh-legal-list .kh-run { font-size: var(--fs-body); line-height: 1.6; }

/* Single-column approach box (weight loss, hair loss): full width with a two-column list, so it never reads as half a table */
.kh-versus.kh-versus--single { grid-template-columns: minmax(0, 1fr) !important; max-width: none !important; }
.kh-versus--single .kh-versus-col ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
@media (max-width: 767px) { .kh-versus--single .kh-versus-col ul { grid-template-columns: minmax(0, 1fr); } }

/* Header: keep two-word nav labels (Aesthetics & Wellness) on one line */
.kh-nav-trigger { white-space: nowrap; }

/* Homepage name strips: stop scrolling for visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) { .kh-marquee-track { animation: none !important; flex-wrap: wrap; justify-content: center; width: auto; } .kh-marquee-item[aria-hidden="true"] { display: none; } }

/* Item 13 (20 Nov): landscape photos in portrait frames were cropped by 47-55%.
   Frames now match the photos: 3:2 on desktop/tablet, 4:3 on phones.
   Wrappers holding genuine 4:5 portrait photos carry data-ratio="portrait" and keep 4:5. */
@media (min-width: 768px) {
  .kh-media:not([data-ratio="portrait"]) { aspect-ratio: 3 / 2 !important; height: auto !important; }
  .kh-hero-media { height: auto !important; aspect-ratio: 4 / 3; align-self: center; }
}
@media (max-width: 767px) {
  .kh-media--4x5:not([data-ratio="portrait"]) { aspect-ratio: 4 / 3 !important; height: auto !important; }
}
.kh-media img, .kh-hero-media img { object-fit: cover; }

/* Item 28: visible swipe hint above comparison tables on phones (Membership, T Clinic) */
@media (max-width: 767px) {
  .kh-matrix-wrap::before { content: "Swipe to compare plans \2192"; position: sticky; left: 0; display: block; width: max-content; margin: 0 0 0.6rem; padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--c-gold-100); color: var(--c-gold-700); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.04em; }
}
@media (max-width: 767px) {
  .kh-matrix-wrap .kh-matrix th:first-child, .kh-matrix-wrap .kh-matrix td:first-child { width: 9.5rem; min-width: 9.5rem; max-width: 9.5rem; white-space: normal; }
  .kh-matrix-wrap .kh-matrix th, .kh-matrix-wrap .kh-matrix td { min-width: 6.5rem; }
}

/* 25 Nov: header logo sits in the corner with clear space before the nav (desktop) */
@media (min-width: 1024px) {
  .kh-site-header .kh-header-inner { max-width: none !important; padding-left: clamp(1.25rem, 2.5vw, 3rem) !important; padding-right: clamp(1.25rem, 2.5vw, 3rem) !important; }
  .kh-site-header .kh-brand { margin-right: clamp(1.5rem, 3.5vw, 4rem); flex-shrink: 0; }
}

/* 30 Nov: BioScore service page (B1) */
.kh-bp-wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.kh-bp-eyebrow{font-size:.78rem;letter-spacing:.26em;text-transform:uppercase;color:var(--c-gold-600);font-weight:600;margin:0 0 1rem}
.kh-bp-h1{font-family:var(--f-display);font-weight:400;font-size:var(--fs-hero);line-height:1.02;letter-spacing:-.015em;color:var(--c-ink);margin:0 0 1.4rem}
.kh-bp-h2{font-family:var(--f-display);font-weight:400;font-size:var(--fs-h2);line-height:1.06;color:var(--c-ink);margin:0}
.kh-bp-accent{font-style:italic;color:var(--c-gold-500)}
.kh-bp-lead{font-size:var(--fs-lead);line-height:1.65;color:var(--c-text);max-width:46ch;margin:0 0 2rem}
.kh-bp-btns{display:flex;flex-wrap:wrap;gap:.75rem}
.kh-bp-btns--center{justify-content:center}
.kh-bp-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;padding:.8rem 1.4rem;border-radius:var(--radius);background:var(--c-teal-800);color:#fff;text-decoration:none;font-weight:500;border:1px solid var(--c-teal-800);transition:background .25s,color .25s,border-color .25s}
.kh-bp-btn:hover{background:var(--c-teal-950);border-color:var(--c-teal-950);color:#fff}
.kh-bp-btn--ghost,.kh-bp-btn--outline{background:transparent;color:var(--c-teal-800)}
.kh-bp-btn--ghost:hover,.kh-bp-btn--outline:hover{background:var(--c-teal-800);color:#fff}
.kh-bp-btn--light{background:var(--c-bg);color:var(--c-teal-900);border-color:var(--c-bg)}
.kh-bp-btn--light:hover{background:#fff;color:var(--c-teal-900);border-color:#fff}
.kh-bp-btn--ghost-light{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.kh-bp-btn--ghost-light:hover{background:rgba(255,255,255,.08);border-color:#fff;color:#fff}
.kh-bp-btn--block{width:100%;margin-top:auto}
.kh-bp-hero{padding:clamp(2.5rem,1.5rem + 4vw,5.5rem) 0 clamp(2rem,1rem + 3vw,4rem);background:var(--c-bg)}
.kh-bp-hero__grid{display:grid;grid-template-columns:1fr 1.15fr;gap:clamp(2rem,4vw,4.5rem);align-items:center}
.kh-bp-define{padding:0 0 clamp(2.5rem,1.5rem + 3vw,4.5rem);background:var(--c-bg)}
.kh-bp-define__box{display:grid;grid-template-columns:1fr 1.6fr;gap:clamp(1.5rem,4vw,4rem);align-items:center;background:var(--c-surface);border:1px solid var(--c-line);border-radius:12px;padding:clamp(1.5rem,3vw,2.75rem)}
.kh-bp-define__text p{margin:0 0 .8rem;line-height:1.65}.kh-bp-define__text p:last-child{margin:0}
.kh-bp-define__text strong{color:var(--c-ink)}
.kh-bp-tiers{padding:clamp(2.5rem,1.5rem + 3vw,4.5rem) 0;background:var(--c-bg);scroll-margin-top:calc(var(--header-h) + 1rem)}
.kh-bp-tiers__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.kh-bp-tier{display:flex;flex-direction:column;background:var(--c-surface);border:1px solid var(--c-line);border-radius:12px;padding:clamp(1.4rem,2.5vw,2rem)}
.kh-bp-tier--dark{background:var(--c-teal-900);border-color:var(--c-teal-900);color:rgba(255,255,255,.88)}
.kh-bp-tier__name{font-family:var(--f-display);font-weight:400;font-size:clamp(1.9rem,1.5rem + 1.2vw,2.5rem);color:var(--c-ink);margin:0 0 .5rem}
.kh-bp-tier--dark .kh-bp-tier__name{color:#fff}
.kh-bp-tier__sub{margin:0 0 1.2rem;line-height:1.55;font-size:.98rem}
.kh-bp-tier__price{font-family:var(--f-display);font-size:2.2rem;color:var(--c-ink);margin:0 0 1.2rem;padding-bottom:1.2rem;border-bottom:1px solid var(--c-line)}
.kh-bp-tier--dark .kh-bp-tier__price{color:#fff;border-color:rgba(255,255,255,.18)}
.kh-bp-tier__price span{font-family:var(--f-body);font-size:.95rem;color:var(--c-muted);margin-left:.8rem;padding-left:.8rem;border-left:1px solid var(--c-line-strong)}
.kh-bp-tier--dark .kh-bp-tier__price span{color:rgba(255,255,255,.7);border-color:rgba(255,255,255,.3)}
.kh-bp-list{list-style:none;margin:0 0 1.6rem;padding:0;display:grid;gap:.6rem;font-size:.95rem;line-height:1.5}
.kh-bp-list li{position:relative;padding-left:1.6rem}
.kh-bp-list li::before{content:"";position:absolute;left:0;top:.35em;width:.85em;height:.45em;border-left:1.5px solid var(--c-gold-500);border-bottom:1.5px solid var(--c-gold-500);transform:rotate(-45deg)}
.kh-bp-list li:first-child:last-child::before{display:none}
.kh-bp-glance{padding:clamp(2rem,1rem + 3vw,4rem) 0;background:var(--c-bg)}
.kh-bp-table-wrap{overflow-x:auto;border:1px solid var(--c-line);border-radius:12px;background:var(--c-surface)}
.kh-bp-table{width:100%;border-collapse:collapse;min-width:620px;font-size:.95rem}
.kh-bp-table th,.kh-bp-table td{padding:.8rem 1rem;border-bottom:1px solid var(--c-line);text-align:center}
.kh-bp-table tbody th{text-align:left;font-weight:400;color:var(--c-ink)}
.kh-bp-table thead th{font-family:var(--f-display);font-weight:400;font-size:1.15rem;color:var(--c-ink);background:var(--c-beige)}
.kh-bp-table thead th span{font-family:var(--f-body);font-size:.85rem;color:var(--c-muted)}
.kh-bp-table thead th.is-dark{background:var(--c-teal-900);color:#fff}.kh-bp-table thead th.is-dark span{color:rgba(255,255,255,.75)}
.kh-bp-table td{color:var(--c-muted)}
.kh-bp-table tr:last-child th,.kh-bp-table tr:last-child td{border-bottom:0}
.kh-bp-steps{padding:clamp(2.5rem,1.5rem + 3vw,4.5rem) 0;background:var(--c-bg)}
.kh-bp-steps__grid{display:grid;grid-template-columns:1fr 2.2fr;gap:clamp(1.5rem,4vw,4rem);align-items:center}
.kh-bp-steps__list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.kh-bp-steps__list i{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--c-beige);color:var(--c-gold-700);font-size:1.5rem;margin-bottom:.9rem}
.kh-bp-steps__list h3{font-family:var(--f-display);font-weight:400;font-size:1.35rem;color:var(--c-ink);margin:0 0 .4rem}
.kh-bp-steps__list p{margin:0;font-size:.95rem;line-height:1.55}
.kh-bp-cta{background:var(--c-teal-900);padding:clamp(3rem,2rem + 4vw,5.5rem) 0;text-align:center}
.kh-bp-cta__h{font-family:var(--f-display);font-weight:400;font-size:var(--fs-h1);line-height:1.08;color:#fff;margin:0 0 2rem}
.kh-bp-cta__h em{font-style:italic;color:var(--c-gold-300)}
@media (max-width:1023px){.kh-bp-hero__grid,.kh-bp-define__box,.kh-bp-steps__grid{grid-template-columns:1fr}.kh-bp-tiers__grid{grid-template-columns:1fr;max-width:560px;margin:0 auto}}
@media (max-width:640px){.kh-bp-steps__list{grid-template-columns:1fr}}
.kh-main > .kh-bp-cta{background:var(--c-teal-900)!important;border-top:0!important}
/* 30 Nov: G4 Google reviews badge (mu-plugin kh-google-badge.php) */
.kh-gb{position:fixed;left:16px;bottom:16px;z-index:60;display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .85rem .5rem .6rem;background:var(--c-surface);border:1px solid var(--c-line);border-radius:999px;box-shadow:0 6px 18px rgba(20,47,46,.12);font-family:var(--f-body);font-size:.85rem;color:var(--c-ink);text-decoration:none;line-height:1;transition:transform .2s,box-shadow .2s}
.kh-gb:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(20,47,46,.16);color:var(--c-ink)}
.kh-gb:focus-visible{outline:2px solid var(--c-gold-500);outline-offset:3px}
.kh-gb__g{width:18px;height:18px;flex:none}
.kh-gb__score{font-weight:600}
.kh-gb__stars{position:relative;letter-spacing:1px;color:var(--c-line-strong);font-size:.85rem}
.kh-gb__stars::before{content:"\2605\2605\2605\2605\2605";position:absolute;left:0;top:0;width:var(--r);overflow:hidden;color:#f5b301;white-space:nowrap}
.kh-gb__count{color:var(--c-muted)}
@media (max-width:640px){.kh-gb{left:8px;bottom:8px;font-size:.75rem;padding:.35rem .6rem .35rem .45rem;gap:.35rem;opacity:.96}.kh-gb__stars{display:none}.kh-gb__count{font-size:0}.kh-gb__count::before{content:"(" attr(data-n) ")";font-size:.75rem}}
@media print{.kh-gb{display:none}}

/* 30 Nov: wide "What's included" cards: photo fills the full card height on desktop/tablet (the 3:2 frame rule left a blank strip under it) */
@media (min-width: 768px) {
  .kh-incl-card--wide > .kh-media:not([data-ratio="portrait"]) { aspect-ratio: auto !important; height: 100% !important; min-height: 260px; }
  .kh-incl-card--wide > .kh-media img { width: 100%; height: 100% !important; object-fit: cover; aspect-ratio: auto; }
}
