/* ==========================================================================
   Responsive — breakpoint overrides (mobile-first)
   Breakpoints: 320–767 | 768–1023 | 1024–1439 | 1440–1919 | 1920+
   ========================================================================== */

/* ---------- Token overrides by viewport ---------- */
@media (max-width: 1919px) {
  :root { --page-gutter: clamp(40px, 5.5vw, 120px); }
}
@media (max-width: 1023px) {
  :root { --page-gutter: 40px; --section-y: 56px; }
}
@media (max-width: 767px) {
  :root {
    --page-gutter: 22px;
    --section-y: 44px;
    --fs-display: 40px; --lh-display: 39px;
    --fs-h2: 32px;      --lh-h2: 31px;
    --fs-quote: 16px;   --lh-quote: 21px;
    --fs-h3: 32px;      --lh-h3: 35px;
    --fs-body-lg: 16px; --lh-body-lg: 21px;
    --fs-body: 16px;    --lh-body: 21px;
    --header-h: 83px;
  }

  .hero__title { font-size: 36px; line-height: 38px; max-width: 310px; }
}

@media (max-width: 1100px) {
  /* Show hamburger + hide desktop nav on tablet */
  .header__burger {
    display: flex;
    background: var(--primary-navy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
  }
  .header__nav { display: none; }
  .header__login {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--primary-navy);
    border-color: transparent;
    gap: 0;
    font-size: 0;
    line-height: 0;
  }
  .header__login .btn__user-icon {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    font-size: 16px;
    line-height: 1;
    width: 20px;
    height: 20px;
  }
  .header__login .btn__user-icon svg path {
    stroke: currentColor;
    fill: none;
  }
	
  /* Light / solid header on tablet */
  body.header-solid .header .header__burger,
  .header--solid .header__burger,
  .header--light .header__burger,
  body.home .header:not(.header--scrolled) .header__burger {
    background: transparent;
    border: 1.5px solid rgba(32, 58, 85, 0.25);
  }
  body.header-solid .header .header__burger span,
  .header--solid .header__burger span,
  .header--light .header__burger span,
  body.home .header:not(.header--scrolled) .header__burger span{
    background: var(--primary) !important;
  }
  body.header-solid .header .header__login,
  .header--solid .header__login,
  .header--light .header__login {
    background: transparent;
    border: 1.5px solid rgba(32, 58, 85, 0.25);
  }
  body.header-solid .header .header__login .btn__user-icon,
  .header--solid .header__login .btn__user-icon,
  .header--light .header__login .btn__user-icon {
    color: var(--primary);
  }

	body:has(.mobile-menu.is-open) .header {
		background-color: #ffffff;
	}
	body:has(.mobile-menu.is-open) .header__burger {
		border: 1px solid rgb(0 0 0 / 25%);
		box-shadow: 0px 10px 15px 5px rgba(0, 0, 0, 0.08);
	}
	body:has(.mobile-menu.is-open) .logo img {
		filter: brightness(0);
	}
	body:has(.mobile-menu.is-open) .btn--header {
		border: 1px solid rgb(0 0 0 / 25%);
	}
}
@media (max-width: 767px) {
	body:has(.mobile-menu.is-open) .header__login .btn__user-icon {
		color: rgb(0 0 0);
	}
	body:has(.mobile-menu.is-open) .header__burger span {
		background: #000000;
	}
}


/* ---------- Layout shell ---------- */
@media (max-width: 1023px) {
  .footer__top { flex-wrap: wrap; gap: 48px; }
  .footer__brand { width: 100%; }
  .footer__connect { flex-basis: 100%; }

  /* Patient Login icon — cloned from nav btn--primary by app.js */
  .header__nav-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-navy);
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-size: 0;
    line-height: 0;
    color: transparent;
  }
  /* User icon via CSS mask — same person silhouette as btn__user-icon SVG */
  .header__nav-login::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center / contain;
    flex-shrink: 0;
  }
  /* Light / solid header variants */
  body.header-solid .header .header__nav-login,
  .header--solid .header__nav-login,
  .header--light .header__nav-login {
    background: transparent;
    border: 1.5px solid rgba(32, 58, 85, 0.25);
  }
  body.header-solid .header .header__nav-login::after,
  .header--solid .header__nav-login::after,
  .header--light .header__nav-login::after {
    background-color: var(--primary);
  }
}

/* Hide the cloned icon on desktop — nav btn--primary handles that breakpoint */
@media (min-width: 1024px) {
  .header__nav-login { display: none !important; }
}

@media (max-width: 767px) {
  .press__label { display: block; }
  .press__row { gap: 40px; }
  .press__row li { height: 26px; }
  /* Remove edge-fade mask on narrow screens — 6% of 375px ≈ 22px which hides logos */
  .press__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Burger: dark circle matching the reference design */
  .header__burger {
    display: flex;
    background: var(--primary-navy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
  }
  .header__nav { display: none; }
  /* Patient Login: icon-only circle on mobile (matches burger on the right) */
  .header__login {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--primary-navy);
    border-color: transparent;
    gap: 0;
    font-size: 0;
    line-height: 0;
  }
  /* portal icon SVG: white stroke on the dark navy circle */
  .header__login .btn__user-icon {
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    font-size: 16px; /* undo parent font-size: 0 */
    line-height: 1;
    width: 20px;
    height: 20px;
  }
  .header__login .btn__user-icon svg path {
    stroke: currentColor;
    fill: none;
  }
  .header__logo {
    width: 162px;
    height: 55px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .header { padding-block: 20px; }

  .footer { padding-block: 40px 22px; }
  .footer__inner { gap: 30px; }
  .footer__top { flex-direction: column; gap: 30px; }
  .footer__contact li { font-size: var(--fs-body); line-height: 21px; }
  .footer__heading { font-size: var(--fs-body); line-height: 21px; }
  .footer__col a, .footer__connect-text, .footer__disclaimer p { font-size: var(--fs-body); line-height: 21px; }
  .footer__col ul:not(.socials) { gap: 8px; }
  .footer__connect .socials { gap: 12px; flex-direction: row; }
  .footer__copy { text-align: left; font-size: var(--fs-small); line-height: 19px; }

  /* Light / solid header on mobile: outlined circles, dark icons */
  body.header-solid .header .header__burger,
  .header--solid .header__burger,
  .header--light .header__burger {
    background: transparent;
    border: 1.5px solid rgba(32, 58, 85, 0.25);
  }
  body.header-solid .header .header__burger span,
  .header--solid .header__burger span,
  .header--light .header__burger span {
    background: var(--primary) !important;
  }
  body.header-solid .header .header__login,
  .header--solid .header__login,
  .header--light .header__login {
    background: transparent;
    border: 1.5px solid rgba(32, 58, 85, 0.25);
  }
  body.header-solid .header .header__login .btn__user-icon,
  .header--solid .header__login .btn__user-icon,
  .header--light .header__login .btn__user-icon {
    color: var(--primary);
  }
  body.header-solid .header .header__login .btn__user-icon svg path,
  .header--solid .header__login .btn__user-icon svg path,
  .header--light .header__login .btn__user-icon svg path {
    stroke: currentColor;
    fill: none;
  }
}

/* ---------- Header login button — Figma portal icon + label on desktop ---------- */
@media (min-width: 768px) {
  /* Keep left portal icon (broken ring + chevron); hide legacy img lock if present */
  .btn--header .btn__lock { display: none !important; }
  .btn--header .btn__user-icon { display: inline-flex !important; }
  .btn--header::before,
  .btn--header::after { display: none !important; }

  /* Stem: grows left → right, flush against icon, tapers to transparent at icon end */
  .btn--header .btn__user-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(100% + 1px);
    width: 10px;
    height: 1px;
    background: linear-gradient(to right, currentColor 10%, transparent 100%);
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s var(--ease-out);
  }
  .btn--header:hover .btn__user-icon::before {
    transform: translateY(-50%) scaleX(1);
  }
  @media (prefers-reduced-motion: reduce) {
    .btn--header .btn__user-icon::before { transition: none; }
  }
}

/* ---------- Hero ---------- */
@media (min-width: 768px) {
  .hero { min-height: 900px; }
  /* Client QA 2026-07: text block sat too low vs Figma — recenter (drop the
     header-height offset) and lift slightly so the block ends around tie level */
  .hero__content { width: 626px; gap: 22px; padding-top: 0; padding-bottom: 48px; }
  .hero__title { max-width: 626px; }
  .hero__actions { flex-direction: row; gap: 8px; width: auto; }
  .hero__actions .btn { width: auto; }
  .hero .avatars__item { width: 40px; height: 40px; }
  .hero .proof__label { line-height: 18px; }
}

/* ---------- Reasons (mobile / tablet) ---------- */
@media (max-width: 1023px) {
  .reasons__video {
    width: 100%;
    height: 349px;
  }
  .reasons__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% top;
    display: block;
  }
}

/* ---------- Reasons ---------- */
@media (min-width: 1024px) {
  .reasons__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 70px 0;
  }
  .reasons__card {
    width: 100%;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
  }
  .reasons__grid {
    display: grid;
    width: 100%;
    grid-template-columns: min(748px, 65%) 1fr;
    align-items: stretch;
    gap: 36px;
    background: transparent;
    padding: 0;
    border-radius: 0;
  }
  .reasons__panel {
    min-width: 0;
    background: var(--surface-green);
    border-radius: var(--radius-card);
    padding: 58px 64px;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
  }
  .reasons__title { font-size: var(--fs-h2); line-height: var(--lh-h2); }
  .reasons__lead { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); max-width: 443px; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 573px; }
  .chips-outer { flex-direction: row; gap: 12px; max-width: 573px; }
  .chips--col  { display: flex; flex-direction: column; gap: 12px; flex: 1; }
  /* Client QA 2026-07: each chip label on ONE line, size/weight per Figma */
  .chip { font-size: 14px; font-weight: var(--fw-regular); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .reasons__panel .btn { width: auto; margin-top: 8px; }
  .reasons__video {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
  }
  .reasons__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% top;
    display: block;
  }
  .reasons__lines {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-inline: 0;
  }
  .reasons__lines::before,
  .reasons__lines::after { width: min(400px, 21vw); }
}

/* Reasons — tighter padding at 1024–1279px where panel is below 748px */
@media (min-width: 1024px) and (max-width: 1279px) {
  .reasons__panel { padding: 40px 36px; }
  .reasons__grid  { gap: 24px; grid-template-columns: min(600px, 60%) 1fr; }
}

/* ---------- How We Care widget (tmc_care) — mobile fallback ----------
   Force flat stacked layout regardless of cached inline CSS versions. */
@media (max-width: 900px) {
  .flower-section.care,
  [id^="flower-"].flower-section {
    height: auto !important;
  }
  .flower-section.care .flower-pin,
  [id^="flower-"] .flower-pin {
    position: static !important;
    height: auto !important;
  }
  .flower-section.care .petal,
  .flower-section.care .bud-core,
  .flower-section.care .bud-letter[data-letter="E"],
  .flower-section.care .glow-bg {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  /* Legacy track markup safety net */
  [id^="care-"][id$="-track"] {
    height: auto !important;
    min-height: 0 !important;
  }
  [id^="care-"][id$="-track"] > div[id^="care-"] {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }
}

/* ---------- How We Care ---------- */
@media (min-width: 1024px) {
  /* New flower-section layout owns spacing; keep legacy selectors inert */
  .flower-section.care { padding-block: 0; min-height: 0; }
}

/* ---------- Steps ---------- */
@media (min-width: 1024px) {
  /* Client QA 2026-07: airier, more spaced-out like Figma */
  .steps { padding-block: 88px; }
  .steps__head { align-items: center; text-align: center; gap: 20px; margin-bottom: 72px; }
  .steps__head .section-title { text-align: center; }
  .steps__lead { max-width: 738px; margin-inline: auto; font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); text-align: center; }
  .steps__list { flex-direction: row; gap: 56px; }
  .step { flex: 1; gap: 18px; }
  .steps__cta { display: none; }
}

/* ---------- Stories ---------- */
@media (min-width: 1024px) {
  .stories__lead { max-width: 668px; font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); }
  .stories__head { margin-bottom: 64px; }
  .stories__grid { flex-direction: row; align-items: stretch; }
  /* Client QA 2026-07: section read too tall and type too large vs Figma */
  .story--feature { flex: 0 0 794px; min-height: 640px; }
  .story__body { padding: 40px; }
  .story__title { font-size: 26px; line-height: 32px; }
  .stories__col { flex: 1; }
  .story--mini { flex: 1; justify-content: center; }
}
@media (max-width: 1023px) {
  .stories__note .rule { display: none; }
}

/* ---------- Team ---------- */
@media (min-width: 1024px) {
  .team__grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 121px; }
  .team__intro { flex: 0 0 450px; gap: 20px; }
  .team__title { font-size: var(--fs-h2); line-height: var(--lh-h2); }
  .team__copy { font-size: var(--fs-body-lg); line-height: 25px; }
  /* Client QA 2026-07: bullets slightly bolder + smaller per Figma */
  .team__copy ul { padding-left: 27px; }
  .team__copy ul li { font-size: 16px; font-weight: var(--fw-medium); }
  .team__carousel { flex: 1; overflow: hidden; }
  /* Client QA 2026-07: bigger cards, tighter gap; name on one line, title below */
  .team__track { gap: 38px; }
  .member__photo { height: 280px; border-radius: 15.779px 15.779px 0 0; }
}

/* ---------- Press + Quote ---------- */
@media (min-width: 1024px) {
  .press__marquee { margin-bottom: 88px; }
  .press__row { gap: 64px; }
  .press__row li { height: 50px; }
  .quote { padding: 36px; box-shadow: none; background: var(--surface-grey); border-color: var(--border-soft); }
  .quote__avatar { width: 125px; height: 125px; }
  .quote__text { max-width: 1068px; }
}

/* ---------- Ultra-wide (1920+) — exact Figma frame ---------- */
@media (min-width: 1920px) {
  :root { --page-gutter: 260px; }

  /* Widget card wrappers that don't use .container — cap at design max-width and center
     so content never stretches beyond 1400px regardless of Elementor section width */
  .reasons__card,
  .reasons__card-wrap { max-width: 1400px; margin-inline: auto; }
}

/* ---------- Interior pages ---------- */
@media (min-width: 768px) {
  .conditions__grid { grid-template-columns: 1fr 600px; gap: 60px; }
  .conditions__lists { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* ideal-grid fallback — Elementor widget overrides this with inline !important per instance */
  .ideal-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .contact-intro__grid { grid-template-columns: 1fr 1fr; align-items: flex-start; }
  .contact-intro { padding-block: 34px 52px; }
  .location-band__inner { grid-template-columns: 498px 1fr; }
  .location-band--blue .location-band__inner { grid-template-columns: 1fr 498px; }
  .location-band--blue .location-band__media { order: 2; }
  .location-info-grid { grid-template-columns: 1fr 1fr; }
  .team-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .team-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .team-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .team-grid--providers-row4 { grid-template-columns: repeat(2, 1fr); }
  .team__track--grid.team-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .team__track--grid.team-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .team__track--grid.team-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .team__track--grid.team-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .expect-head { flex-direction: row; align-items: center; justify-content: space-between; }
  .expect-cta--mobile { display: none !important; }
}

@media (max-width: 767px) {
  .expect-cta--desktop { display: none !important; }
  .expect-cta--mobile  { align-self: flex-start; }
}
@media (min-width: 1024px) {
  .consult-hero__grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 1fr 1fr; gap: 60px; }
  .service-row--reverse .service-row__media { order: 2; }
  .expect-grid { grid-template-columns: 1fr 600px; gap: 60px; }
  .team-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 40px; justify-items: start; }
  .team-grid--5 { grid-template-columns: repeat(5, 1fr); gap: 32px; justify-items: start; }
  .team-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 80px; }
  .team-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 80px; }
  .team__track--grid.team-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 80px; }
  .team__track--grid.team-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .team__track--grid.team-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .team__track--grid.team-grid--5 { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .team-nav {
    justify-content: space-between;
    overflow-x: visible;
  }
  .team-grid--providers-row4 {
    grid-template-columns: repeat(4, 290px);
    justify-content: space-between;
    justify-items: stretch;
    gap: 40px;
  }
  .team-grid--providers-row3 {
    grid-template-columns: repeat(3, 290px);
    justify-content: center;
    gap: 80px;
  }
  .plan-band { padding-block: 60px 44px; }
  .plan-band__inner { gap: 40px; }
  .plan-band__head { gap: 20px; }
  .plan-band__title {
    font-size: 52px;
    line-height: 56px;
    max-width: 831px;
  }
  .plan-band__lead { max-width: 700px; }
  .plan-carousel { margin-inline: -8px; }
  .plan-carousel__nav { padding-inline: 0; }
  .plan-card { flex-basis: 330px; }
  .consult-hero__title { font-size: 52px; line-height: 56px; }
  .ideal-section__title,
  .approach-section__title,
  .expect-head__title { font-size: 52px; line-height: 56px; }
}
@media (max-width: 767px) {
  .header--page-hero { position: relative; inset: auto; padding-block: 14px; background: var(--primary-navy); }
  .page-hero__content { padding-top: 24px; }
  .section-title--page { font-size: 36px; line-height: 40px; }
  .section-title--hero { font-size: 40px; }
  .plan-band::after { display: none; }
  .plan-carousel__nav { display: none; }
  .plan-carousel__dots { display: flex; }
  .location-band::before,
  .location-band::after { display: none; }
  .chip-nav { font-size: 14px; height: 40px; padding: 0 12px; }

  /* Policy pages — mobile */
  .cancel-methods__grid { grid-template-columns: 1fr; }
  .policy-detail__grid  { grid-template-columns: 1fr; }
  .policy-card          { padding: 28px 22px; }
  .policy-hero          { padding-block: 26px 31px; }
  .policy-detail__image { min-height: 260px; }

  /* Team Grid Static — 2 columns on mobile */
  .tgs-grid { --tgs-cols: 2 !important; grid-template-columns: repeat(2, 1fr) !important; }
}

@media (min-width: 600px) and (max-width: 1023px) {
  /* Team Grid Static — 2 columns on tablet */
  .tgs-grid { --tgs-cols: 2 !important; grid-template-columns: repeat(2, 1fr) !important; }
}

/* ==========================================================================
   Client QA 2026-07 — revision fixes
   ========================================================================== */

/* ---------- Press marquee — mobile (max-width: 767px) ----------
   Gap between logos is too large and the mask hides too much on narrow screens */
@media (max-width: 767px) {
  .press__row { gap: 32px; padding-inline: 12px; }
  .press__row li { height: 44px; min-width: 60px; }
  /* Remove edge fade mask on mobile — it clips too aggressively on small screens */
  .press__marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---------- Stories — horizontal swipe slider on mobile ---------- */
@media (max-width: 1023px) {
  .stories__grid {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 4px;
  }
  .stories__grid::-webkit-scrollbar { display: none; }
  .story--feature {
    flex: 0 0 calc(100vw - 44px);
    scroll-snap-align: start;
    min-height: 500px;
    justify-content: flex-end;
  }
  .story--feature .story__bg,
  .story--mini .story__bg {
    object-fit: cover;
    object-position: center top;
  }
  .stories__col {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
  }
  .story--mini {
    flex: 0 0 calc(84vw - 44px);
    scroll-snap-align: start;
    min-height: 500px;
    justify-content: flex-end;
  }
}

/* ---------- Team carousel — mobile layout ---------- */
@media (max-width: 1023px) {
  /* Arrows: each button pinned independently so hiding one doesn't shift the other */
/* .team__nav {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    margin-top: 0;
    z-index: 2;
    pointer-events: none;
  }
  .team__nav [data-team-prev] {
    position: absolute;
    left: 12px;
    pointer-events: auto;
  }
  .team__nav [data-team-next] {
    position: absolute;
    right: 12px;
    pointer-events: auto;
  } */
  /* Hide the arrow completely when there's nowhere to go */
  /* .team__nav .round-btn:disabled { display: none; } */
	
  .team__nav {
	gap: 15px;
    justify-content: center !important;
	margin-bottom: 10px;
  }
  .team__carousel {
    border-top: 1px solid rgba(32, 58, 85, 0.15);
    padding-top: 28px;
    overflow: hidden;
  }
  .team__track {
    padding-inline: 20px;
    gap: 30px;
  }
  .member {
    width: 80vw;
    max-width: 320px;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  .team__cta-desktop { display: none !important; }
  .team__cta-mobile  { margin-top: 20px; align-self: center; }
}
@media (min-width: 768px) {
  .team__cta-mobile  { display: none !important; }
}

/* ---------- Footer — two-column Quick Links / Legal on mobile ---------- */
@media (max-width: 767px) {
  .footer__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  /* Brand (logo + address) and Stay Connected span full width */
  .footer__brand  { grid-column: 1 / -1; }
  .footer__connect { grid-column: 1 / -1; }
}
