/* WeGuide care pathway pages: enhancement layer (hosted on the Webflow asset CDN, linked from page head).
   Native Designer classes (wgcp-native.css) carry the layout and type. This file only holds what Webflow
   classes cannot express: a zero-specificity reset, custom DOM elements (details, summary, figcaption,
   svg, dialog), descendant and state selectors, focus rings, keyframes and reduced motion.
   Breakpoints match Webflow: 991 / 767 / 479. */

/* ---------- Reset (zero specificity, so every native class wins) ---------- */
:where(.wgcp-page), :where(.wgcp-page) *, :where(.wgcp-page) *::before, :where(.wgcp-page) *::after { box-sizing: border-box; }
:where(.wgcp-page) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) { margin: 0; }
:where(.wgcp-page) :where(img) { max-width: 100%; }
:where(.wgcp-page) :where(h1, h2, h3) { text-wrap: balance; }
:where(.wgcp-page) :where(p) { text-wrap: pretty; }
.wgcp-page { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
.wgcp-page [hidden] { display: none !important; }
.wgcp-page strong { font-weight: 500; color: #2c2d73; }
.wgcp-page button { font-family: inherit; }
html:has(.wgcp-page) { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html:has(.wgcp-page) { scroll-behavior: auto; } }

/* ---------- Icons (inline SVG keep their class as an attribute) ---------- */
.wgcp-ico { width: 24px; height: 24px; flex: none; }
.wgcp-ico-chip { width: 23px; height: 23px; flex: none; }
.wgcp-ico-btn { width: 18px; height: 18px; flex: none; }
.wgcp-ico-sm { width: 19px; height: 19px; flex: none; }
.wgcp-ico-xs { width: 14px; height: 14px; flex: none; }
.wgcp-ico-band { width: 32px; height: 32px; flex: none; }
.wgcp-ico-check { width: 20px; height: 20px; flex: none; margin-top: 1px; color: #4935c8; }
@media (min-width: 768px) { .wgcp-ico-chip { width: 28px; height: 28px; } }

/* ---------- Focus ---------- */
.wgcp-page a:focus-visible, .wgcp-page button:focus-visible, .wgcp-page summary:focus-visible,
.wgcp-page input:focus-visible, .wgcp-page textarea:focus-visible, .wgcp-page [tabindex]:focus-visible {
  outline: 3px solid #7660dd; outline-offset: 3px; border-radius: 4px;
}
.wgcp-skip:focus { transform: translateY(0); }

/* ---------- Header: dropdowns and mobile menu ---------- */
.wgcp-nav-drop { position: relative; }
.wgcp-nav-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px;
  color: #20213f; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.wgcp-nav-summary::-webkit-details-marker { display: none; }
.wgcp-nav-summary:hover { color: #4935c8; }
.wgcp-nav-caret { width: 6px; height: 6px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.wgcp-nav-drop[open] .wgcp-nav-caret { transform: rotate(225deg) translateY(-2px); }
.wgcp-nav-menu { min-width: 220px; margin-top: 6px; padding: 10px; border-radius: 8px; background-color: #f4f2fb; }
@media (min-width: 992px) {
  .wgcp-nav { font-size: 13px; gap: 22px; }
  .wgcp-nav-link, .wgcp-nav-summary { font-size: 13px; }
  .wgcp-nav-summary { justify-content: flex-start; }
  .wgcp-nav-menu { position: absolute; top: 43px; left: -18px; z-index: 30; margin-top: 0; border: 1px solid #dedeea;
    background-color: #ffffff; box-shadow: 0 12px 32px rgba(32, 33, 63, .08); }
  .wgcp-btn-dark-sm, .wgcp-btn-outline-sm { min-height: 41px; font-size: 12px; }
}
@media (max-width: 991px) {
  .wgcp-header[data-open] .wgcp-nav { display: flex; max-height: calc(100dvh - 76px); overflow: auto; }
  .wgcp-menu-bar { transition: transform .2s ease; }
  .wgcp-header[data-open] .wgcp-menu-bar:first-child { transform: translateY(3.75px) rotate(45deg); }
  .wgcp-header[data-open] .wgcp-menu-bar:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.wgcp-hero-figure { isolation: isolate; aspect-ratio: 1 / 1.1; }
.wgcp-hero-photo { aspect-ratio: 1; z-index: 1; }
.wgcp-orbit { aspect-ratio: 1; z-index: 2; }
.wgcp-chip { z-index: 3; }
.wgcp-orbit > li:nth-child(1) { left: 50%; top: 0%; }
.wgcp-orbit > li:nth-child(2) { left: 97.55%; top: 34.55%; }
.wgcp-orbit > li:nth-child(3) { left: 79.39%; top: 90.45%; }
.wgcp-orbit > li:nth-child(4) { left: 20.61%; top: 90.45%; }
.wgcp-orbit > li:nth-child(5) { left: 2.45%; top: 34.55%; }
.wgcp-chip-label, .wgcp-chip-sub { white-space: nowrap; }
.wgcp-hero-caption { position: absolute; bottom: 14px; left: 50%; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100% - 32px); padding: 7px 9px; border-radius: 8px; background-color: #ffffff;
  color: #2c2d73; font-size: 11px; line-height: 1.4; text-align: center; transform: translateX(-50%); }
@media (min-width: 992px) { .wgcp-hero-figure { aspect-ratio: auto; } }
@media (min-width: 992px) and (max-width: 1279px) {
  .wgcp-chip { gap: 7px; width: 140px; padding: 10px; }
  .wgcp-chip-icon { width: 34px; height: 34px; }
  .wgcp-chip-label { font-size: 14px; }
}
@media (max-width: 767px) { .wgcp-chip-label { white-space: normal; } }

/* ---------- Companion bento ---------- */
.wgcp-card-wide, .wgcp-card-small { transition: box-shadow .2s ease; }

/* ---------- Tabs, progress track, panels ---------- */
.wgcp-tab[aria-selected="true"] { color: #4935c8; }
.wgcp-tab { -webkit-tap-highlight-color: transparent; }
.wgcp-tab-track { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background-color: #ded8f5; pointer-events: none; }
.wgcp-tab-fill { display: block; width: 100%; height: 100%; background-color: #4935c8; transform: scaleX(0); transform-origin: 0 50%; }
[data-autoplay="paused"] .wgcp-tab-fill { transform: scaleX(1); }
@media (max-width: 767px) {
  .wgcp-tab-track { bottom: 0; }
  .wgcp-tab[aria-selected="true"] { background-color: #f4f2fb; }
  .wgcp-tablist-5 > :last-child { grid-column: span 2; }
}
.wgcp-panel { animation: wgcp-fade .24s ease both; }
.wgcp-panel[data-instant] { animation: none; }
@keyframes wgcp-fade { from { opacity: 0; } to { opacity: 1; } }
.wgcp-photo-frame { isolation: isolate; aspect-ratio: 1; }
.wgcp-slide-media { min-height: 100%; }
@media (max-width: 767px) { .wgcp-slide-media { aspect-ratio: 1; } }
@media (min-width: 768px) { .wgcp-slide-img { position: absolute; inset: 0; } .wgcp-slide-media { aspect-ratio: 1 / 1; } }
.wgcp-overlay { z-index: 2; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@media (min-width: 768px) {
  .wgcp-photo-frame .wgcp-overlay { left: 15%; right: 7%; bottom: 8%; padding: 20px; }
  .wgcp-overlay-title { font-size: 16px; }
}
.wgcp-counter { font-variant-numeric: tabular-nums; }
.wgcp-pill .wgcp-ico-sm, .wgcp-round .wgcp-ico-sm { pointer-events: none; }

/* ---------- Checklist, bullets ---------- */
.wgcp-check, .wgcp-bullet { display: flex; align-items: flex-start; gap: 10px; }
.wgcp-check::before, .wgcp-bullet::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; background-color: #4935c8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Band dividers ---------- */
@media (min-width: 768px) {
  .wgcp-band-tile + .wgcp-band-tile { border-left: 1px solid #626297; }
}
@media (max-width: 767px) {
  .wgcp-band-tile:nth-child(even) { border-left: 1px solid #626297; padding-left: 20px; }
}

/* ---------- FAQ (details/summary are custom elements: styled here) ---------- */
.wgcp-faq-item { border-bottom: 1px solid #dedeea; }
.wgcp-faq-item:first-child { border-top: 1px solid #dedeea; }
.wgcp-faq-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px;
  padding-top: 22px; padding-bottom: 22px; color: #2c2d73; cursor: pointer; list-style: none; }
.wgcp-faq-summary::-webkit-details-marker { display: none; }
.wgcp-faq-summary:hover .wgcp-faq-q { color: #4935c8; }
.wgcp-faq-q { text-wrap: initial; }
.wgcp-faq-plus::before, .wgcp-faq-plus::after { content: ""; position: absolute; top: 9px; left: 3px; width: 14px; height: 1.5px;
  background-color: #4935c8; transition: transform .2s ease; }
.wgcp-faq-plus::after { transform: rotate(90deg); }
.wgcp-faq-item[open] .wgcp-faq-plus::after { transform: rotate(0deg); }

/* ---------- Patient access dialog (built by wgcp.js) ---------- */
.wgcp-dialog { width: calc(100% - 32px); max-width: 520px; max-height: calc(100dvh - 32px); margin: auto; padding: 28px;
  overflow: auto; border: 0; border-radius: 20px; background-color: #ffffff; color: #20213f; font-family: Inter, Arial, sans-serif;
  box-shadow: 0 24px 64px rgba(32, 33, 63, .24); }
.wgcp-dialog::backdrop { background-color: rgba(32, 33, 63, .53); }
@media (min-width: 768px) { .wgcp-dialog { padding: 36px; } }
.wgcp-dialog * { box-sizing: border-box; }
.wgcp-dialog h2, .wgcp-dialog p { margin: 0; }
.wgcp-dialog-eyebrow { margin-bottom: 16px !important; color: #4935c8; font-size: 13px; font-weight: 600; }
.wgcp-dialog form, .wgcp-dialog [data-access-result] { margin-top: 24px; }
.wgcp-dialog label { display: block; margin-bottom: 18px; color: #2c2d73; font-size: 14px; font-weight: 500; }
.wgcp-dialog label span { color: #5b5d72; font-weight: 400; }
.wgcp-dialog input, .wgcp-dialog textarea { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #cfccdd; border-radius: 6px; background: #fff; color: #20213f; font: 400 16px/1.4 Inter, Arial, sans-serif; }
.wgcp-dialog textarea { resize: vertical; }
.wgcp-dialog-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
@media (min-width: 768px) { .wgcp-dialog-actions { flex-direction: row; } }
.wgcp-dialog .wgcp-btn-primary, .wgcp-dialog .wgcp-btn-outline { width: 100%; }
.wgcp-dialog-status { margin-top: 14px !important; color: #5b5d72; font-size: 13px; line-height: 1.5; }
.wgcp-dialog-edit { margin-top: 12px; padding: 0; border: 0; background: none; color: #2c2d73; font: 500 14px/1.4 Inter, Arial, sans-serif;
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer; min-height: 44px; }


/* Dialog content (moved from native: only exists in JS-built markup) */
.wgcp-dialog .wgcp-dialog-close { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0 solid transparent; border-radius: 9999px; background-color: #f4f2fb; color: #2c2d73; text-decoration: none; cursor: pointer; }
.wgcp-dialog .wgcp-dialog-close:hover { background-color: #e5defb; }
.wgcp-dialog .wgcp-dialog-title { margin-top: 0; margin-bottom: 0; padding-right: 40px; color: #2c2d73; font-size: 28px; line-height: 1.2; letter-spacing: -0.035em; font-weight: 600; }
.wgcp-dialog .wgcp-dialog-p { margin-top: 14px; margin-bottom: 0; color: #5b5d72; font-size: 15px; line-height: 1.6; }
.wgcp-dialog .wgcp-form-label { display: block; margin-bottom: 6px; color: #2c2d73; font-size: 14px; line-height: 1.4; font-weight: 500; }
.wgcp-dialog .wgcp-form-input { width: 100%; min-height: 46px; margin-bottom: 18px; padding: 10px 12px; border: 1px solid #cfccdd; border-radius: 6px; background-color: #ffffff; color: #20213f; font-size: 16px; line-height: 1.4; }
.wgcp-dialog .wgcp-form-note { margin-top: 0; margin-bottom: 18px; color: #5b5d72; font-size: 13px; line-height: 1.5; }
.wgcp-dialog .wgcp-form-submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 14px 21px; border: 1px solid #4935c8; border-radius: 5px; background-color: #4935c8; color: #ffffff; font-size: 14px; line-height: 1.4; font-weight: 600; cursor: pointer; }
.wgcp-dialog .wgcp-form-submit:hover { background-color: #352298; }

@media (max-width: 767px) { .wgcp-dialog .wgcp-dialog-title { font-size: 26px; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .wgcp-page *, .wgcp-page *::before, .wgcp-page *::after { animation: none !important; transition: none !important; }
}
@media (hover: none) {
  .wgcp-btn-primary:hover, .wgcp-btn-outline:hover { transform: none; }
}

/* ---------- Webflow current-page links (site CSS paints .w--current) ---------- */
.wgcp-page a.w--current { background-color: transparent; }
.wgcp-page .wgcp-footer-link.w--current, .wgcp-page .wgcp-nav-sub-link.w--current { color: #4935c8; font-weight: 600; }

/* ---------- QA 2026-10-19: chips fit their labels; balanced headings ---------- */
@media (min-width: 768px) { .wgcp-page .wgcp-chip { width: max-content; min-width: clamp(140px, 12vw, 160px); } }
.wgcp-h1, .wgcp-h2, .wgcp-h2-band, .wgcp-h2-closing, .wgcp-h2-problem, .wgcp-h3-panel, .wgcp-h3-slide, .wgcp-band-title, .wgcp-path-title, .wgcp-sol-title { text-wrap: balance; }
