/* Shared final behavior for mobile navigation, reviews, affiliations, and footers. */
:root { --braces-blue: #06497f; --braces-orange: #f79922; --braces-text: #06497f; --braces-soft: #eef9fd; }
html, body { max-width: 100%; overflow-x: clip; }
.cd-lang { display: flex; align-items: center; gap: 8px; }
.mobile-lang, .mobile-schedule { display: none; }
.breadcrumb-bar { position: relative; z-index: 4; }
.breadcrumb-bar .wrap { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 12px !important; min-height: 42px; line-height: 1.35; }
.breadcrumb-bar .wrap > * { flex: 0 0 auto; }
[id] { scroll-margin-top: 154px; }
.cd-lang button, .mobile-lang button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.cd-lang button::before, .mobile-lang button::before { content: ""; width: 22px; height: 14px; display: inline-block; flex: 0 0 auto; background-position: center; background-size: cover; box-shadow: 0 0 0 1px rgba(7,80,140,.16); }
.cd-lang button:first-of-type::before, .mobile-lang button:first-of-type::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 18'%3E%3Crect width='28' height='18' fill='%23fff'/%3E%3Cg fill='%23b22234'%3E%3Cpath d='M0 0h28v2H0zm0 4h28v2H0zm0 4h28v2H0zm0 4h28v2H0zm0 4h28v2H0z'/%3E%3C/g%3E%3Crect width='12' height='10' fill='%233c3b6e'/%3E%3Cg fill='%23fff'%3E%3Ccircle cx='2' cy='2' r='.6'/%3E%3Ccircle cx='5' cy='2' r='.6'/%3E%3Ccircle cx='8' cy='2' r='.6'/%3E%3Ccircle cx='2' cy='5' r='.6'/%3E%3Ccircle cx='5' cy='5' r='.6'/%3E%3Ccircle cx='8' cy='5' r='.6'/%3E%3Ccircle cx='2' cy='8' r='.6'/%3E%3Ccircle cx='5' cy='8' r='.6'/%3E%3Ccircle cx='8' cy='8' r='.6'/%3E%3C/g%3E%3C/svg%3E"); }
.emergency-related .braces-blue-btn { background: #07508c !important; color: #fff !important; opacity: 1 !important; text-shadow: none !important; }
.emergency-related .braces-blue-btn:hover, .emergency-related .braces-blue-btn:focus-visible { background: #063f70 !important; }
.braces-orange-btn, .braces-blue-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 25px; border: 0; border-radius: 2px; color: #fff !important; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 10px 20px rgba(6,73,127,.15); }
.braces-orange-btn { background: var(--braces-orange) !important; }
.braces-blue-btn { background: var(--braces-blue) !important; }
.doctor-affiliations { padding: 64px 0 72px !important; background: #f3f9fc !important; text-align: center; }
.doctor-affiliations h2 { margin: 0 0 40px !important; color: #07508c !important; font-size: clamp(28px, 3vw, 46px) !important; font-weight: 500 !important; letter-spacing: .08em; }
.affiliation-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 28px 44px !important; align-items: stretch !important; }
.affiliation-grid span { min-height: 116px !important; padding: 20px 14px !important; display: flex !important; flex-direction: column; justify-content: center; border: 0 !important; background: transparent !important; color: #71808a !important; font-size: clamp(28px, 3vw, 48px) !important; font-weight: 900 !important; line-height: .9 !important; filter: grayscale(1); }
.affiliation-grid small { margin-top: 10px !important; color: #71808a !important; font-size: 12px !important; font-weight: 700; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; }
.cd-review-row { display: flex !important; grid-template-columns: none !important; transition: transform .38s ease; will-change: transform; touch-action: pan-y; }
.review-viewport { overflow: hidden !important; }
.review-bubble { flex: 0 0 calc((100% - 48px) / 3); min-width: 0; }
.carousel-dots.review-dots { display: none; }
.smile-tabs { display: flex !important; grid-template-columns: none !important; gap: 12px !important; overflow-x: auto; padding: 8px 2px 16px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.smile-tabs button { flex: 0 0 142px; min-height: 150px; padding: 14px 10px !important; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; border: 1px solid transparent !important; scroll-snap-align: center; }
.smile-tabs button.active { background: #07508c !important; color: #fff !important; }
.teeth-mini { display: block !important; width: 104px !important; height: 56px !important; margin: 0 auto !important; border: 0 !important; border-radius: 0 !important; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 80'%3E%3Cg fill='white' stroke='%2307508c' stroke-width='2'%3E%3Cpath d='M15 31Q22 9 34 19l7 24Q31 54 20 45z'/%3E%3Cpath d='M35 21Q47 5 57 17l4 29Q49 56 40 43z'/%3E%3Cpath d='M56 18Q69 3 80 17v31Q67 58 59 45z'/%3E%3Cpath d='M80 17Q91 3 104 18l-3 27Q93 58 80 48z'/%3E%3Cpath d='M103 17q10-12 22 4l-5 22q-9 13-19 3z'/%3E%3Cpath d='M124 19q12-10 21 12l-5 14q-11 9-21-2z'/%3E%3C/g%3E%3Cpath d='M17 52q31 18 63 3 32 15 63-3' fill='none' stroke='%2307508c' stroke-width='2'/%3E%3C/svg%3E") !important; }
.smile-tabs button.active .teeth-mini { filter: brightness(0) invert(1); }
.teeth-mini::before, .teeth-mini::after { content: none !important; }
.teeth-mini.over { background-image: url("media/bite-icons/overbite.svg") !important; }
.teeth-mini.under { background-image: url("media/bite-icons/underbite.svg") !important; transform: none !important; }
.teeth-mini.cross { background-image: url("media/bite-icons/crossbite.svg") !important; transform: none !important; }
.teeth-mini.gap { background-image: url("media/bite-icons/gap.svg") !important; background-position: center !important; }
.teeth-mini.open { background-image: url("media/bite-icons/open-bite.svg") !important; transform: none !important; }
.teeth-mini.crowd { background-image: url("media/bite-icons/crowded.svg") !important; transform: none !important; }
.teeth-mini.baby { background-image: url("media/bite-icons/mixed-teeth.svg") !important; transform: none !important; }
.teeth-mini.straight { background-image: url("media/bite-icons/straight-teeth.svg") !important; transform: none !important; }
.smile-detail { margin-top: 34px !important; }
.teeth-model { isolation: isolate; background: transparent !important; }
.teeth-model img { width: min(100%, 720px) !important; max-height: none !important; aspect-ratio: 1.55 / 1; object-fit: contain !important; background: transparent !important; mix-blend-mode: multiply; }
.smart-icon { width: 116px !important; height: 110px !important; border: 0 !important; border-radius: 0 !important; background: center / contain no-repeat !important; }
.smart-icon::before, .smart-icon::after { content: none !important; }
.smart-icon.schedule { background-image: url("media/benefit-icons/calendar-clock.svg") !important; }
.smart-icon.doctor { background-image: url("media/benefit-icons/doctor.svg") !important; }
.smart-icon.piggy, .smart-icon.percent { background-image: url("media/benefit-icons/piggy-bank.svg") !important; }
.sm-split.sm-text-only { display: block !important; min-height: 0; }
.sm-split.sm-text-only > div { width: min(820px, 90%); margin: 0 auto; padding: 72px 0; align-items: center; text-align: center; }
.candidate-page { color: #07508c; }
.candidate-hero { position: relative; min-height: 580px; display: grid; place-items: end start; overflow: hidden; background: #07508c; }
.candidate-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,43,78,.76), rgba(2,43,78,.12) 70%); }
.candidate-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.candidate-hero > div { position: relative; z-index: 1; max-width: 720px; padding: 70px clamp(28px, 8vw, 120px); color: #fff; }
.candidate-hero span, .candidate-kicker { color: #f99a1c; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.candidate-hero h1 { margin: 10px 0 18px; color: #fff; font-size: clamp(48px, 6vw, 90px); line-height: 1; }
.candidate-hero p { margin: 0; color: #fff; font-size: clamp(18px, 1.6vw, 27px); line-height: 1.5; }
.candidate-intro, .candidate-region { padding: 78px 0; text-align: center; }
.candidate-intro h2, .candidate-region h2 { margin: 10px 0 18px; color: #07508c; font-size: clamp(38px, 4.5vw, 68px); font-weight: 500; letter-spacing: .05em; }
.candidate-intro p, .candidate-region > .wrap > p { font-size: clamp(18px, 1.6vw, 25px); line-height: 1.65; }
.candidate-region { background: #eef8fc; }
.candidate-location { width: min(100%, 1000px); margin: 48px auto 0; display: grid; grid-template-columns: 1.2fr .8fr; overflow: hidden; background: #fff; text-align: left; box-shadow: 0 18px 45px rgba(4,65,111,.14); }
.candidate-location > img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.candidate-location > div { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.candidate-location span { color: #f99a1c; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.candidate-location h3 { margin: 10px 0 18px; color: #07508c; font-size: 38px; }
.candidate-location p { font-size: 18px; line-height: 1.65; }
.candidate-location p a { color: #07508c; font-weight: 800; }
.candidate-reviews { margin: 0; }
@media (max-width: 1100px) { .review-bubble { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 640px) {
  body { display: flex; flex-direction: column; }
  .cd-header { order: 1; position: relative !important; top: auto !important; z-index: 500; }
  .cd-topbar { order: 2; }
  main { order: 3; }
  .cd-footer { order: 4; }
  .cd-header-inner { display: grid !important; grid-template-columns: 42px minmax(90px, 1fr) auto auto; grid-template-areas: "menu logo lang schedule"; gap: 7px; min-height: 68px !important; padding: 8px 14px !important; align-items: center; }
  .menu-toggle { grid-area: menu; display: flex !important; width: 40px !important; min-width: 40px !important; height: 40px !important; min-height: 40px !important; margin: 0 !important; padding: 9px 7px !important; border: 0 !important; flex-direction: column; justify-content: space-around; background: transparent !important; color: #07508c !important; }
  .menu-toggle::before { content: none !important; }
  .menu-toggle span { display: block; width: 26px; height: 2px; background: #07508c; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cd-logo { grid-area: logo; min-width: 0 !important; }
  .cd-logo-main { font-size: clamp(17px, 5.2vw, 23px) !important; white-space: nowrap; }
  .cd-logo small { font-size: 8px !important; letter-spacing: .12em; }
  .mobile-lang { grid-area: lang; display: flex !important; align-items: center; gap: 4px; margin-left: 8px; color: #07508c; font-size: 11px; font-weight: 800; }
  .mobile-lang button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
  .mobile-schedule { grid-area: schedule; display: flex !important; min-height: 38px; padding: 7px 9px; align-items: center; gap: 5px; border-radius: 3px; background: #f99a1c; color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .mobile-schedule .schedule-icon, .mobile-schedule svg { width: 18px; height: 18px; }
  .mobile-schedule svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
  .cd-topbar-inner { min-height: 46px !important; height: auto !important; padding: 7px 16px !important; display: flex !important; }
  .cd-topbar { background: #e5f6fc !important; color: #07508c !important; }
  .cd-topbar .cd-lang, .cd-topbar .cd-schedule { display: none !important; }
  .cd-location-pill { width: 100%; justify-content: center; font-size: 12px !important; line-height: 1.25; }
  .cd-location-pill .pin-icon { border-color: #07508c !important; color: #07508c !important; }
  .cd-location-pill .pin-icon svg { stroke: #07508c !important; }
  .cd-main-nav.open { display: flex !important; position: fixed !important; top: 114px !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: 100vw !important; height: calc(100dvh - 114px) !important; padding: 30px 24px 50px !important; align-items: stretch !important; gap: 0 !important; overflow-y: auto !important; background: #fff !important; box-shadow: none !important; transform: none !important; z-index: 480 !important; }
  .cd-main-nav .mega-item { width: 100%; border-bottom: 1px solid #d8e7ef; }
  .cd-main-nav .mega-trigger { width: 100%; padding: 20px 2px !important; display: flex; justify-content: space-between; color: #07508c !important; font-size: 17px !important; font-weight: 800 !important; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
  .cd-main-nav .mega-trigger::after { content: "+"; font-size: 24px; font-weight: 400; }
  .cd-main-nav .mega-item.is-open .mega-trigger::after { content: "-"; }
  .cd-main-nav .mega-panel { position: static !important; width: 100% !important; max-width: none !important; padding: 0 0 18px !important; box-shadow: none !important; border: 0 !important; background: #f5fafc !important; }
  .cd-main-nav .mega-wrap { width: 100% !important; padding: 16px !important; }
  .cd-main-nav .mega-eyebrow, .cd-main-nav .mega-image { display: none !important; }
  .cd-main-nav .mega-grid, .cd-main-nav .mega-about-layout { display: block !important; }
  .cd-main-nav .mega-col { margin-bottom: 14px; }
  .cd-main-nav .mega-col a { display: block; padding: 8px 0; font-size: 14px; }
  body.menu-open { overflow: hidden; }
  .braces-hero, .invisalign-page .braces-hero { display: flex !important; flex-direction: column !important; }
  .braces-hero-media { order: 1; min-height: 260px !important; }
  .braces-hero-media video { min-height: 260px !important; height: 62vw !important; max-height: 390px; object-fit: cover !important; }
  .braces-hero-copy { order: 2; }
  .smile-type { padding: 50px 0 60px !important; }
  .smile-type .wrap { width: 100% !important; padding: 0 0 0 18px !important; }
  .smile-type h2 { padding-right: 18px; font-size: 31px !important; line-height: 1.2; }
  .smile-tabs { margin: 0 0 28px !important; padding-right: 18px; }
  .smile-tabs button { flex-basis: 145px; min-height: 164px; font-size: 17px !important; }
  .smile-detail { display: flex !important; flex-direction: column; margin: 0 !important; padding-right: 18px; text-align: left !important; }
  .teeth-model { order: 1; min-height: 0 !important; padding: 20px 0 10px; }
  .teeth-model img { width: 100% !important; max-width: 600px !important; margin: 0 auto; }
  .smile-copy { order: 2; padding: 12px 4px 0 !important; }
  .smile-copy h3 { font-size: 31px !important; }
  .smile-copy p { font-size: 18px !important; line-height: 1.65 !important; }
  .smile-copy .learn-btn { width: auto !important; min-width: 190px; }
  .candidate-hero { min-height: 520px; place-items: end center; }
  .candidate-hero::after { background: linear-gradient(0deg, rgba(2,43,78,.82), rgba(2,43,78,.08) 75%); }
  .candidate-hero > div { padding: 42px 24px; text-align: center; }
  .candidate-hero h1 { font-size: 48px; }
  .candidate-intro, .candidate-region { padding: 56px 18px; }
  .candidate-intro h2, .candidate-region h2 { font-size: 35px; line-height: 1.25; }
  .candidate-location { grid-template-columns: 1fr; margin-top: 34px; }
  .candidate-location > img { min-height: 270px; }
  .candidate-location > div { padding: 32px 24px; text-align: center; }
  .candidate-location h3 { font-size: 31px; }
  .review-arrow { display: none !important; }
  .cd-review-row { gap: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
  .review-bubble { flex: 0 0 100% !important; }
  .carousel-dots.review-dots { display: flex !important; justify-content: center; gap: 8px; margin: 22px auto 28px; }
  .review-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: transparent; }
  .review-dots button.is-active { background: #f99a1c; border-color: #f99a1c; transform: scale(1.2); }
  .doctor-affiliations { padding: 48px 0 54px !important; }
  .doctor-affiliations h2 { margin-bottom: 30px !important; font-size: 28px !important; }
  .affiliation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 18px !important; }
  .affiliation-grid span { min-height: 96px !important; font-size: 29px !important; }
  .affiliation-grid small { font-size: 9px !important; }
  .cd-social { padding-top: 30px !important; padding-bottom: 24px !important; margin-bottom: 0 !important; }
  .cd-footer-grid { display: block !important; padding: 0 20px 28px !important; }
  .cd-footer-grid > div { border-top: 1px solid rgba(255,255,255,.35); }
  .cd-footer-grid > div:last-child { border-bottom: 1px solid rgba(255,255,255,.35); }
  .cd-footer-grid h3 { position: relative; margin: 0 !important; padding: 17px 34px 17px 0 !important; cursor: pointer; font-size: 18px !important; }
  .cd-footer-grid h3::after { content: "+"; position: absolute; top: 50%; right: 4px; transform: translateY(-50%); font-size: 25px; font-weight: 400; }
  .cd-footer-grid > div.is-open h3::after { content: "-"; }
  .cd-footer-grid > div > :not(h3) { display: none !important; }
  .cd-footer-grid > div.is-open > :not(h3) { display: block !important; }
  .cd-footer-grid > div.is-open > a { margin-bottom: 11px !important; }
  .cd-footer-bottom { flex-direction: column !important; gap: 7px !important; text-align: center; }
}

@media (max-width: 360px) {
  .cd-header-inner { grid-template-columns: 34px minmax(68px, 1fr) auto auto; gap: 3px; padding: 6px 7px !important; }
  .menu-toggle { width: 34px !important; min-width: 34px !important; padding-left: 5px !important; padding-right: 5px !important; }
  .menu-toggle span { width: 22px; }
  .cd-logo-main { font-size: 15px !important; }
  .cd-logo small { font-size: 7px !important; }
  .mobile-lang { gap: 2px !important; font-size: 9px !important; }
  .mobile-lang { margin-left: 2px !important; }
  .mobile-lang button { gap: 2px !important; }
  .mobile-lang button::before { width: 16px !important; height: 10px !important; }
  .mobile-schedule { min-height: 34px !important; padding: 5px 6px !important; gap: 3px !important; font-size: 8px !important; }
  .mobile-schedule .schedule-icon, .mobile-schedule svg { width: 14px !important; height: 14px !important; }
  .mobile-schedule > span:last-child { display: none; }
  .mobile-schedule::after { content: "Book"; }
}

@media (min-width: 401px) and (max-width: 640px) {
  body .cd-header-inner { grid-template-columns: 42px minmax(105px, 1fr) auto auto !important; gap: 5px !important; padding: 8px 10px !important; }
  body .cd-logo-main { font-size: 18px !important; }
  body .mobile-lang { margin-left: 0 !important; gap: 3px !important; }
}

@media (min-width: 361px) and (max-width: 400px) {
  body .cd-header-inner { grid-template-columns: 40px minmax(92px, 1fr) auto auto !important; gap: 4px !important; padding: 7px 6px !important; }
  body .cd-logo-main { font-size: 16px !important; }
  body .mobile-lang { margin-left: 0 !important; gap: 2px !important; }
}

@media (max-width: 360px) {
  body .cd-header-inner { grid-template-columns: 34px minmax(68px, 1fr) auto auto !important; gap: 3px !important; padding: 6px 7px !important; }
  body .cd-logo-main { font-size: 15px !important; }
  body .mobile-lang { margin-left: 2px !important; }
}
