/*
 * Shapiro Dental Group full-bleed visual system.
 *
 * This file is deliberately loaded after the historical stylesheets so the
 * redesign stays isolated, reversible and consistent across the four public
 * template families.
 */

:root {
  --sdg-navy-950: #0d2144;
  --sdg-navy-900: #112a55;
  --sdg-navy-800: #173968;
  --sdg-blue-700: #315aa8;
  --sdg-blue-500: #6f93d0;
  --sdg-blue-300: #adc3e8;
  --sdg-blue-100: #dbe7f8;
  --sdg-white: #fff;
  --sdg-content: min(100% - clamp(32px, 7vw, 112px), 1320px);
}

html {
  background: var(--sdg-navy-950);
}

body,
body.inner-page {
  min-width: 320px;
  color: var(--sdg-navy-900);
  background-color: var(--sdg-navy-900);
  background-image:
    radial-gradient(circle at 88% 12%, rgb(92 134 203 / 42%), transparent 30%),
    linear-gradient(180deg, var(--sdg-navy-950) 0%, #1c4178 36%, var(--sdg-blue-700) 66%, var(--sdg-navy-900) 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Services share the light vertical field from the approved reference. */
body[data-section="services"] {
  background-color: #f4f4f4;
  background-image: linear-gradient(180deg, #869dcc 0%, #f4f4f4 100%);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.page-shell,
body.inner-page .page-shell,
.page-shell--story,
.page-shell--before-after,
.page-shell--services,
.page-shell--digital {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: clip;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.page-shell::before {
  display: none;
}

.header-frame {
  width: 100%;
  margin: 0;
  padding: 0;
}

.site-header,
.page-shell > .site-header {
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 0 max(28px, calc((100vw - 1320px) / 2));
  color: var(--sdg-white);
  background: linear-gradient(105deg, var(--sdg-navy-950), var(--sdg-navy-800) 78%, #20477c);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site-header .brand img {
  filter: brightness(0) invert(1);
}

.site-header .primary-nav > a,
.site-header .nav-group__main,
.site-header .submenu-toggle {
  color: var(--sdg-white);
}

.site-header .header-contact {
  color: var(--sdg-navy-950);
  background: var(--sdg-blue-100);
}

.site-header .header-contact:hover,
.site-header .header-contact:focus-visible {
  color: var(--sdg-navy-950);
  background: var(--sdg-white);
}

/* Keep the complete desktop navigation inside its grid track.
   The legacy >=1600px rule reserved 270px for a 146px logo and reduced the
   navigation track to 758px, so About Us could collide with the CTA. */
@media (min-width: 1600px) {
  .site-header,
  .page-shell > .site-header {
    grid-template-columns: 190px minmax(0, 1fr) 216px;
    gap: 28px;
  }
}

/* Readability pass: retain the full-bleed blue system without carrying text
   colors that were designed for the former white page background. */
.button.button--soft,
.button.button--soft:hover,
.button.button--soft:focus-visible {
  color: var(--sdg-navy-950);
}

body.inner-page .legacy-hero .legacy-eyebrow {
  color: var(--sdg-white);
}

body.inner-page .legacy-content a,
body.inner-page .legacy-card .legacy-read-more {
  color: #12366f;
}

body.inner-page .legacy-content .legacy-byline,
body.inner-page .legacy-card p {
  color: var(--sdg-navy-900);
}

body.inner-page .legacy-content figcaption {
  color: #12366f;
}

body.inner-page :is(.legacy-index, .legacy-related) .legacy-section-heading > p {
  color: var(--sdg-blue-100);
}

body.inner-page :is(.legacy-index, .legacy-related) .legacy-section-heading h2 {
  color: var(--sdg-white);
}

.page-patient-story .patient-story__pagination a {
  color: var(--sdg-white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.page-digital-smile .digital-intro .display-heading,
.page-digital-smile .digital-intro p,
.page-digital-smile .official-card h2,
.page-digital-smile .official-card p {
  color: var(--sdg-white);
}

.page-services-index .split-copy h2,
.page-services-index .split-copy p,
.page-services-index .additional-services > .display-heading {
  color: var(--sdg-navy-900);
}

.page-services-index .service-showcase h3 {
  color: var(--sdg-blue-100);
}

.page-digital-smile .official-card:first-child img {
  filter: brightness(0) invert(1);
}

.page-service-detail .detail-panel .treatment h2,
.team-directory-section--team .eyebrow {
  color: var(--sdg-navy-900);
}

body.inner-page .legacy-contact-card .button.button--soft,
body.inner-page .legacy-contact-card .button.button--soft:hover,
body.inner-page .legacy-contact-card .button.button--soft:focus-visible {
  color: var(--sdg-navy-950);
}

body[data-section="home"] .contact-section a {
  color: #12366f;
}

body[data-section="home"] .contact-section .button.button--blue {
  color: var(--sdg-white);
}

/* Home */

body[data-section="home"] {
  background: var(--sdg-navy-900);
}

body[data-section="home"] .hero {
  width: 100%;
  min-height: calc(100svh - 96px);
  margin: 0;
  border-radius: 0;
}

body[data-section="home"] .hero__content {
  min-height: calc(100svh - 96px);
}

body[data-section="home"] .difference-card {
  position: relative;
  width: min(86%, 1169px);
  min-height: 0;
  margin: -58px auto;
  padding: clamp(56px, 6vw, 82px);
  color: var(--sdg-navy-900);
  background: rgb(218 229 246 / 58%);
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgb(5 20 46 / 18%);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

body[data-section="home"] .difference-card::before,
body[data-section="home"] .difference-card::after {
  display: none;
  content: none;
}

body[data-section="home"] .difference-card__media img {
  min-height: 510px;
  border-radius: var(--difference-card-radius);
  box-shadow: 0 24px 56px rgb(4 17 39 / 18%);
}

body[data-section="home"] .difference-card h2,
body[data-section="home"] .difference-card .eyebrow,
body[data-section="home"] .difference-card__copy {
  color: var(--sdg-navy-900);
}

body[data-section="home"] .difference-card .button {
  color: var(--sdg-white);
  background: var(--sdg-blue-700);
}

body[data-section="home"] .services {
  min-height: 0;
  margin: 0;
  padding: clamp(76px, 8vw, 118px) max(28px, calc((100vw - 1320px) / 2));
  color: var(--sdg-navy-900);
  background: var(--sdg-white);
  border-radius: 0;
}

body[data-section="home"] .services h2 {
  color: var(--sdg-navy-900);
}

body[data-section="home"] .services__heading p {
  color: #46638f;
}

body[data-section="home"] .service-card {
  min-height: 380px;
  overflow: hidden;
  color: var(--sdg-white);
  background: linear-gradient(155deg, var(--sdg-blue-700), var(--sdg-navy-900));
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: clamp(20px, 1.7vw, 24px);
  box-shadow: 0 18px 42px rgb(17 42 85 / 17%);
}

body[data-section="home"] .service-card img {
  border-radius: clamp(11px, 1vw, 14px);
}

body[data-section="home"] .service-card h3,
body[data-section="home"] .service-card a {
  color: var(--sdg-blue-100);
}

body[data-section="home"] .team {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-height: clamp(500px, 46vw, 720px);
  margin: 0;
  padding: clamp(64px, 7vw, 96px) clamp(24px, 5vw, 72px);
  overflow: hidden;
  color: var(--sdg-white);
  background: var(--sdg-navy-950);
}

body[data-section="home"] .team::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgb(28 72 145 / 68%);
}

body[data-section="home"] .team__photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

body[data-section="home"] .team__content {
  z-index: 1;
  width: min(760px, 100%);
  align-self: center;
  justify-self: center;
  text-align: center;
}

body[data-section="home"] .team h2,
body[data-section="home"] .team p {
  color: var(--sdg-white);
}

body[data-section="home"] .team h2 {
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1;
}

body[data-section="home"] .team p {
  max-width: 720px;
  margin: clamp(22px, 2.4vw, 30px) auto clamp(26px, 3vw, 38px);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.35;
}

body[data-section="home"] .patient-process {
  width: 100%;
  margin: 0;
  padding: clamp(64px, 7vw, 88px) max(28px, calc((100vw - 1240px) / 2)) clamp(72px, 7vw, 96px);
  background: linear-gradient(
    to bottom,
    var(--sdg-white) 0%,
    var(--sdg-white) 68%,
    var(--sdg-navy-900) 68%,
    var(--sdg-navy-900) 100%
  );
}

body[data-section="home"] .patient-process h2 {
  color: var(--sdg-blue-700);
  font-size: clamp(42px, 4vw, 58px);
}

body[data-section="home"] .patient-process__grid {
  width: min(82%, 1120px);
  margin: clamp(34px, 4vw, 52px) auto 0;
  gap: clamp(18px, 2.4vw, 34px);
}

body[data-section="home"] .process-card {
  border-radius: 9px;
  outline: 0;
  box-shadow: 0 10px 24px rgb(14 39 83 / 12%);
}

body[data-section="home"] .closing {
  width: 100%;
  margin: 0;
  padding-top: clamp(38px, 5vw, 72px);
  background: linear-gradient(180deg, var(--sdg-navy-900), var(--sdg-navy-950));
}

body[data-section="home"] .smile-cta {
  width: var(--sdg-content);
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-section="home"] .smile-cta__media,
body[data-section="home"] .smile-cta__media img {
  border-radius: 0;
}

body[data-section="home"] .contact-section {
  width: 100%;
  margin-top: clamp(72px, 8vw, 112px);
  margin-bottom: 0;
  padding-right: max(28px, calc((100vw - 1056px) / 2));
  padding-left: max(28px, calc((100vw - 1056px) / 2));
  background: linear-gradient(135deg, var(--sdg-blue-100), #bdd0ef);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-section="home"] .appointment-panel {
  border-radius: 0;
}

/* Shared internal-page structure */

body.inner-page .inner-main,
body.inner-page .legacy-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.inner-page .page-hero,
body.inner-page .legacy-hero {
  width: 100%;
  min-height: clamp(470px, 48vw, 650px);
  margin: 0;
  padding: clamp(72px, 9vw, 128px) max(28px, calc((100vw - 1180px) / 2));
  border: 0;
  border-radius: 0;
}

/* The services index uses the client-supplied panoramic cover. Its native
   1440:522 ratio keeps the clinical scene visible without stretching. */
body.inner-page.page-services-index .page-hero--services {
  min-height: clamp(440px, 36.25vw, 522px);
  padding-block: clamp(72px, 9vw, 128px);
  background-image: url("../client-feedback/services-hero-cover-20260917.png");
  background-position: center;
  background-size: cover;
}

body.inner-page.page-services-index .page-hero--services::before {
  background: linear-gradient(100deg, rgb(5 21 47 / 48%), rgb(19 58 103 / 12%) 62%, rgb(18 43 82 / 8%));
}

body.inner-page.page-services-index .services-feature {
  margin-top: 0;
}

body.inner-page.page-services-index .split-intro__image {
  filter: none;
}

body.inner-page .page-hero::before {
  background: linear-gradient(100deg, rgb(5 21 47 / 78%), rgb(19 58 103 / 40%), rgb(18 43 82 / 55%));
}

.page-hero--about {
  background-image: url("../figma-opt/about/16.webp");
}

.page-hero--team {
  background-image: url("../client-feedback/team-photo-natural-2026.webp");
  background-position: center 42%;
}

body.inner-page .page-hero .page-title,
body.inner-page .legacy-hero h1 {
  color: var(--sdg-white);
  text-wrap: balance;
}

body.inner-page .context-subnav {
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  padding: 12px 8px;
  background: rgb(219 231 248 / 96%);
  border: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 44px rgb(5 20 46 / 22%);
}

body.inner-page .legacy-layout,
body.inner-page .legacy-layout--single {
  grid-template-columns: minmax(0, 1fr);
  width: min(100% - 32px, 1180px);
  margin: clamp(54px, 7vw, 88px) auto;
}

/* Page-specific editorial adjustment requested for Full Mouth Reconstruction:
   connect the service subnav, content panel and closing hero without bands. */
body.route-services-full-mouth-reconstruction .legacy-layout {
  margin-block: 0;
}

body.route-services-orthodontics-invisalign .legacy-layout {
  margin-block: 0;
}

body.route-services-dental-implants .legacy-layout {
  margin-block: 0;
}

body.route-services-teeth-whitening .legacy-layout {
  margin-block: 0;
}

body.route-services-microabrasion .legacy-layout {
  margin-block: 0;
}

body.route-services-periodontal-plastic-surgery .legacy-layout {
  margin-block: 0;
}

body.route-services-emergency .legacy-layout {
  margin-block: 0;
}

body.route-services-general-dentistry .legacy-layout {
  margin-block: 0;
}

body.inner-page .legacy-content {
  padding: clamp(36px, 6vw, 82px);
  color: var(--sdg-navy-900);
  background: linear-gradient(145deg, rgb(219 231 248 / 98%), rgb(173 195 232 / 96%));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.inner-page .legacy-content > :is(p, ul, ol, blockquote),
body.inner-page .legacy-content > div:not(.legacy-before-after):not(.legacy-feature-media) {
  max-width: none;
}

body.inner-page .legacy-contact-card {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 28px;
  align-items: center;
  width: 100%;
  padding: clamp(28px, 4vw, 48px);
  color: var(--sdg-white);
  background: linear-gradient(110deg, var(--sdg-blue-700), var(--sdg-navy-950));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.inner-page .legacy-contact-card > p,
body.inner-page .legacy-contact-card h2,
body.inner-page .legacy-contact-card a {
  color: var(--sdg-white);
}

body.inner-page .legacy-smile-cta {
  width: 100%;
  margin: 0;
  border-radius: 0;
}

body.inner-page .legacy-index,
body.inner-page .legacy-related {
  width: min(100% - 32px, 1240px);
}

body.inner-page .legacy-card {
  background: linear-gradient(145deg, var(--sdg-blue-100), var(--sdg-blue-300));
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.inner-page .closing--footer-only {
  width: 100%;
  margin: clamp(72px, 8vw, 112px) 0 0;
}

/* Keep internal treatment pages connected to their full-width closing hero. */
body[data-section="services"] .closing--footer-only {
  margin-top: 0;
}

body[data-section="services"].page-digital-smile .digital-body {
  margin-bottom: 0;
}

/* The services directory ends with a self-contained shortcut card, so retain
   a clear strip of the page gradient before the footer. */
body[data-section="services"].page-services-index .additional-services {
  margin-bottom: clamp(72px, 7vw, 104px);
}

/* Static internal pages */

body.inner-page .about-panel,
body.inner-page .team-panel {
  padding: clamp(54px, 7vw, 96px) max(28px, calc((100vw - 1240px) / 2));
  background: transparent;
  border-radius: 0;
}

body.inner-page .about-panel > .eyebrow,
body.inner-page .about-panel > .page-title,
body.inner-page .team-panel > .eyebrow,
body.inner-page .team-panel > .page-title {
  color: var(--sdg-white);
}

body.inner-page .side-nav {
  display: none !important;
}

body.inner-page .about-layout,
body.inner-page .team-lead {
  grid-template-columns: minmax(0, 1fr);
}

body.inner-page .about-copy {
  width: min(100%, 900px);
  padding: clamp(34px, 5vw, 68px);
  background: linear-gradient(145deg, var(--sdg-blue-100), var(--sdg-blue-300));
}

body.inner-page .about-copy h2,
body.inner-page .about-copy p,
body.inner-page .about-copy li {
  color: var(--sdg-navy-900);
}

body.inner-page .about-gallery {
  width: 100%;
  margin-top: clamp(40px, 6vw, 72px);
}

body.inner-page .about-gallery img {
  border-radius: 0;
}

.page-team .team-lead {
  display: none;
}

.page-team .team-intro {
  width: min(100%, 880px);
  max-width: none;
  margin: 0 0 clamp(56px, 7vw, 90px);
  color: var(--sdg-white);
}

.page-team .team-intro p {
  color: var(--sdg-white);
  text-align: left;
}

.team-directory-section {
  margin-inline: calc(-1 * max(28px, calc((100vw - 1240px) / 2)));
  padding: clamp(72px, 8vw, 112px) max(28px, calc((100vw - 1240px) / 2));
}

.team-directory-section--providers {
  color: var(--sdg-white);
  background: linear-gradient(145deg, var(--sdg-navy-950), #214b86);
}

.team-directory-section--team {
  color: var(--sdg-navy-900);
  background: linear-gradient(145deg, var(--sdg-blue-100), var(--sdg-blue-300));
}

.team-directory-heading {
  width: min(100%, 760px);
  margin-bottom: clamp(42px, 6vw, 72px);
}

.team-directory-heading h2 {
  margin: 0 0 18px;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 400;
  line-height: .95;
  text-transform: uppercase;
}

.team-directory-heading p:last-child {
  margin: 0;
  color: inherit;
  line-height: 1.6;
}

.team-directory-section--providers .eyebrow {
  color: var(--sdg-blue-300);
}

.page-team .staff-grid,
.page-team .staff-grid--providers,
.page-team .staff-grid--team {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
}

.page-team .staff-card,
.page-team .staff-card:nth-last-child(2),
.page-team .staff-card:last-child {
  grid-column: auto;
  width: auto;
  min-width: 0;
  transform: none;
  background: var(--sdg-white);
  border-radius: 0;
  box-shadow: 0 18px 42px rgb(5 21 47 / 18%);
}

.page-team .staff-card .portrait {
  border-radius: 0;
}

.page-team .profile-shortcuts {
  margin-top: 54px;
  padding: 30px;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 0;
}

.page-team .profile-shortcuts h3 {
  margin: 0 0 22px;
  color: var(--sdg-white);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.page-team .profile-shortcuts a {
  color: var(--sdg-white);
}

/* Our Team directory — aligned to the client-supplied 1440px reference. */
body.page-team {
  background: var(--sdg-blue-300);
}

body.page-team .page-hero--team {
  display: grid;
  place-items: center;
  min-height: clamp(500px, 42vw, 604px);
  padding-block: 72px;
  text-align: center;
  background-position: center 48%;
}

body.page-team .page-hero--team::before {
  background: rgb(24 62 122 / 68%);
}

body.page-team .page-hero--team > div {
  width: min(100%, 620px);
}

body.page-team .page-hero--team .eyebrow {
  margin-bottom: 6px;
  color: var(--sdg-white);
  font-size: clamp(12px, 1.1vw, 16px);
  font-weight: 500;
  letter-spacing: .34em;
}

body.page-team .page-hero--team .page-title {
  margin: 0;
  font-size: clamp(58px, 6vw, 84px);
}

body.page-team .context-subnav {
  width: min(calc(100% - 72px), 1320px);
  margin: -28px auto 0;
  border-radius: 14px;
}

body.page-team .context-subnav a,
body.page-team .context-subnav a:hover,
body.page-team .context-subnav a:focus-visible,
body.page-team .context-subnav a[aria-current="page"] {
  color: var(--sdg-navy-900);
  background: transparent;
  border-radius: 0;
}

body.page-team .context-subnav a + a {
  border-left: 1px solid rgb(17 42 85 / 42%);
}

body.page-team .context-subnav a[aria-current="page"] {
  font-weight: 900;
}

body.page-team .team-panel {
  padding: 0;
  background: transparent;
}

body.page-team .team-panel > .eyebrow,
body.page-team .team-panel > .page-title {
  display: none;
}

body.page-team .team-intro {
  width: 100%;
  margin: 0;
  padding: clamp(62px, 6vw, 88px) max(28px, calc((100vw - 1080px) / 2));
  color: var(--sdg-navy-900);
  background: var(--sdg-blue-300);
}

body.page-team .team-intro p {
  max-width: 1080px;
  margin: 0 auto 20px;
  color: var(--sdg-navy-900);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

body.page-team .team-intro p:last-child {
  margin-bottom: 0;
}

body.page-team .team-directory-section {
  margin-inline: 0;
  padding: clamp(74px, 7vw, 106px) max(28px, calc((100vw - 1280px) / 2)) clamp(96px, 9vw, 132px);
}

body.page-team .team-directory-section--providers {
  background: linear-gradient(160deg, #3765b2 0%, var(--sdg-navy-950) 96%);
}

body.page-team .team-directory-section--team {
  background: linear-gradient(180deg, #afc4e7 0%, #c8d8f1 100%);
}

body.page-team .team-directory-heading {
  width: 100%;
  margin: 0 0 clamp(52px, 6vw, 78px);
  text-align: center;
}

body.page-team .team-directory-heading h2 {
  margin: 0;
  font-size: clamp(52px, 5vw, 72px);
}

body.page-team .staff-grid,
body.page-team .staff-grid--providers,
body.page-team .staff-grid--team {
  gap: clamp(48px, 5vw, 80px) clamp(32px, 4vw, 52px);
  width: min(100%, 1280px);
  margin: 0 auto;
}

body.page-team .staff-card,
body.page-team .staff-card:nth-last-child(2),
body.page-team .staff-card:last-child {
  display: flex;
  flex-direction: column;
  min-height: clamp(410px, 35vw, 474px);
  padding: 20px 20px 24px;
  background: linear-gradient(180deg, #e4edfc 0%, #f7f8fb 100%);
  border-radius: 10px;
  box-shadow: 8px 12px 20px rgb(9 29 61 / 13%);
}

body.page-team .staff-card .portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1.72;
  background: linear-gradient(145deg, #315eaf, #172e59 82%);
  border-radius: 20px;
}

body.page-team .staff-card .portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

body.page-team .staff-card .portrait--reference img {
  object-fit: cover;
}

body.page-team .staff-card h2 {
  margin: 10px 0 5px;
  color: var(--sdg-navy-900);
  font-size: clamp(29px, 2.7vw, 39px);
  line-height: .95;
}

body.page-team .staff-card p {
  min-height: 42px;
  margin: 0 22px 16px;
  padding: 0 0 13px;
  color: var(--sdg-navy-900);
  font-size: 12px;
  line-height: 1.2;
  border-color: rgb(17 42 85 / 60%);
}

body.page-team .staff-card .button {
  width: min(100%, 164px);
  margin: auto auto 0;
  padding: 13px 18px;
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: .24em;
}

body.page-team .staff-card--composite,
body.page-team .staff-card--composite:nth-last-child(2),
body.page-team .staff-card--composite:last-child {
  min-height: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.page-team .staff-card__image-link {
  display: block;
  width: 100%;
  border-radius: 10px;
  text-decoration: none;
}

body.page-team .staff-card__image-link:focus-visible {
  outline: 3px solid var(--sdg-white);
  outline-offset: 5px;
}

body.page-team .team-directory-section--team .staff-card__image-link:focus-visible {
  outline-color: var(--sdg-navy-900);
}

body.page-team .staff-card__composite {
  display: block;
  width: 100%;
  height: auto;
}

/* The directory is a long visual roster. Keep every card fully rendered so
   browser find, print, screenshots, and rapid scrolling never expose a
   partially transparent grid while intersection reveals catch up. */
.motion-ready body.page-team .staff-card.motion-item {
  opacity: 1;
  translate: none;
  scale: 1;
  transition: none;
}

@media (min-width: 921px) {
  body.page-team .staff-grid--team .staff-card:nth-last-child(2) {
    grid-column: 1 / 2;
    transform: translateX(55%);
  }

  body.page-team .staff-grid--team .staff-card:last-child {
    grid-column: 2 / 3;
    transform: translateX(55%);
  }
}

body.page-team .closing--footer-only {
  margin-top: 0;
}

/* Before and after */

/* Approved Before & After directory — 2026-09-18.
   The supplied 1440 x 519 artwork is already colour graded, so this route
   receives only a very light readability veil. The gallery returns to the
   light editorial field and floating centre column shown in the reference. */
body.inner-page.page-before-after {
  background-color: var(--sdg-blue-100);
  background-image: none;
}

body.inner-page.page-before-after .page-shell--before-after {
  padding-bottom: clamp(72px, 7vw, 104px);
  background: linear-gradient(180deg, #91a9d5 0%, #b2c6e9 52%, #dbe7f8 100%);
}

body.inner-page.page-before-after .page-hero--before {
  min-height: clamp(360px, 36.0417vw, 519px);
  padding-block: clamp(64px, 8vw, 112px);
  background-image: url("../client-feedback/before-after-hero-20260918.png");
  background-position: center;
  background-size: cover;
}

body.inner-page.page-before-after .page-hero--before::before {
  background: rgb(17 42 85 / 10%);
}

.page-before-after .cases-grid {
  gap: clamp(24px, 3.2vw, 46px);
  width: min(calc(100% - 48px), 1212px);
  margin: 30px auto 0;
}

.page-before-after .case-column--center {
  margin-top: -154px;
}

.page-before-after .case-card {
  color: var(--sdg-navy-900);
  background: linear-gradient(180deg, #edf3ff 0%, #f7f7f7 88%);
  border-radius: 12px;
  box-shadow: 10px 12px 18px -9px rgb(30 48 82 / 28%);
}

.page-before-after .case-card h2,
.page-before-after .case-card p {
  color: var(--sdg-navy-900);
}

.page-before-after .case-card h2 {
  border-color: rgb(17 42 85 / 58%);
}

.page-before-after .case-card p {
  color: #315aa8;
}

.page-before-after .smile-compare {
  border-radius: 8px;
}

/* A full-page capture must never strand unrevealed cards in the long gallery. */
html.motion-ready .page-before-after .case-card.motion-item {
  opacity: 1;
  translate: none;
  scale: 1;
}

body.page-before-after .closing--footer-only {
  margin-top: 0;
}

/* Patient stories */

.page-patient-story .patient-story {
  width: 100%;
  margin: 0;
}

.page-patient-story .patient-story__header {
  padding: clamp(72px, 9vw, 128px) max(28px, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 82% 18%, rgb(111 147 208 / 48%), transparent 28%),
    linear-gradient(135deg, var(--sdg-blue-700), var(--sdg-navy-950));
  border-radius: 0;
}

.page-patient-story .patient-story__images,
.page-patient-story .patient-story__content,
.page-patient-story .patient-story__pagination {
  width: min(100% - 32px, 1180px);
  margin-right: auto;
  margin-left: auto;
}

.page-patient-story .patient-story__images {
  margin-top: clamp(48px, 7vw, 84px);
}

.page-patient-story .patient-story__images figure,
.page-patient-story .patient-story__content,
.page-patient-story .patient-story__content aside {
  border-radius: 0;
}

.page-patient-story .patient-story__content {
  background: linear-gradient(145deg, var(--sdg-blue-100), var(--sdg-blue-300));
}

.page-patient-story .patient-story__pagination {
  padding-bottom: 44px;
}

/* Footer becomes a continuous color band on every template. */

.site-footer,
.closing:not(.closing--footer-only) .site-footer {
  min-height: 0;
  margin: 0;
  padding: clamp(72px, 8vw, 116px) max(28px, calc((100vw - 1320px) / 2));
  color: var(--sdg-white);
  background: var(--sdg-navy-950);
  border: 0;
  border-radius: 0;
}

.site-footer .footer-brand {
  border-color: rgb(255 255 255 / 34%);
}

.site-footer .footer-brand img,
.site-footer .social-links img {
  filter: brightness(0) invert(1);
}

.site-footer .footer-nav a,
.site-footer .footer-social h2,
.site-footer .footer-contact h2,
.site-footer .footer-social p,
.site-footer .footer-contact a {
  color: var(--sdg-white);
}

@media (max-width: 920px) {
  .site-header,
  .page-shell > .site-header {
    min-height: 78px;
    margin: 0;
    padding: 0 18px;
  }

  .site-header .menu-toggle {
    background: var(--sdg-blue-100);
  }

  .site-header .primary-nav {
    background: var(--sdg-navy-950);
  }

  body[data-section="home"] .hero,
  body[data-section="home"] .hero__content {
    min-height: calc(100svh - 78px);
  }

  body[data-section="home"] .services__heading,
  body[data-section="home"] .services__grid,
  body[data-section="home"] .patient-process__grid,
  .page-team .staff-grid,
  .page-team .staff-grid--providers,
  .page-team .staff-grid--team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-section="home"] .patient-process__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-section="home"] .difference-card {
    grid-template-columns: 1fr;
    width: 92%;
    gap: 42px;
    margin: -58px auto;
    padding: 58px 50px;
  }

  body[data-section="home"] .difference-card__media img {
    min-height: 420px;
  }

  body[data-section="home"] .services h2 {
    white-space: normal;
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --sdg-content: calc(100% - 20px);
  }

  body.inner-page .page-hero,
  body.inner-page .legacy-hero {
    min-height: 420px;
    padding: 68px 20px;
    border-radius: 0;
  }

  body.inner-page .context-subnav {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  body[data-section="home"] .services__heading,
  body[data-section="home"] .services__grid,
  body[data-section="home"] .patient-process__grid,
  .page-team .staff-grid,
  .page-team .staff-grid--providers,
  .page-team .staff-grid--team,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  body[data-section="home"] .services,
  body[data-section="home"] .patient-process {
    padding-right: 18px;
    padding-left: 18px;
  }

  body[data-section="home"] .patient-process {
    padding-top: 58px;
    padding-bottom: 56px;
    background: var(--sdg-white);
  }

  body[data-section="home"] .patient-process h2 {
    font-size: 48px;
  }

  body[data-section="home"] .patient-process__grid {
    width: min(100%, 360px);
    gap: 20px;
    margin-top: 38px;
  }

  body[data-section="home"] .closing {
    padding-top: 54px;
  }

  body[data-section="home"] .difference-card {
    width: 96%;
    margin: -36px auto;
    padding: 46px 25px;
    border-radius: 25px;
  }

  body[data-section="home"] .difference-card__media img {
    min-height: 330px;
    border-radius: 19px;
  }

  body[data-section="home"] .team {
    width: 100%;
    min-height: 500px;
    margin-block: 0;
    padding: 68px 22px;
  }

  body[data-section="home"] .team::after {
    background: rgb(20 55 115 / 72%);
  }

  body[data-section="home"] .smile-cta {
    width: 100%;
  }

  body[data-section="home"] .smile-cta__tooth {
    right: 4px;
    left: auto;
    width: min(205px, 52vw);
    transform: none;
  }

  body[data-section="home"] .contact-section {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  body.inner-page .legacy-layout,
  body.inner-page .legacy-index,
  body.inner-page .legacy-related {
    width: calc(100% - 20px);
  }

  body.inner-page .legacy-contact-card {
    grid-template-columns: 1fr;
  }

  body.inner-page .about-panel,
  body.inner-page .team-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .team-directory-section {
    margin-inline: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .page-before-after .cases-grid {
    grid-template-columns: 1fr;
    width: calc(100% - 32px);
    margin-top: 28px;
  }

  .page-before-after .case-column--center {
    margin-top: 0;
  }

  .page-before-after .case-column {
    display: contents;
  }

  .page-before-after .case-column:nth-child(1) .case-card:nth-child(1) { order: 1; }
  .page-before-after .case-column:nth-child(2) .case-card:nth-child(1) { order: 2; }
  .page-before-after .case-column:nth-child(3) .case-card:nth-child(1) { order: 3; }
  .page-before-after .case-column:nth-child(1) .case-card:nth-child(2) { order: 4; }
  .page-before-after .case-column:nth-child(2) .case-card:nth-child(2) { order: 5; }
  .page-before-after .case-column:nth-child(3) .case-card:nth-child(2) { order: 6; }
  .page-before-after .case-column:nth-child(1) .case-card:nth-child(3) { order: 7; }
  .page-before-after .case-column:nth-child(2) .case-card:nth-child(3) { order: 8; }
  .page-before-after .case-column:nth-child(3) .case-card:nth-child(3) { order: 9; }
  .page-before-after .case-column:nth-child(1) .case-card:nth-child(4) { order: 10; }
  .page-before-after .case-column:nth-child(2) .case-card:nth-child(4) { order: 11; }
  .page-before-after .case-column:nth-child(3) .case-card:nth-child(4) { order: 12; }
  .page-before-after .case-column:nth-child(1) .case-card:nth-child(5) { order: 13; }
  .page-before-after .case-column:nth-child(2) .case-card:nth-child(5) { order: 14; }
  .page-before-after .case-column:nth-child(3) .case-card:nth-child(5) { order: 15; }
  .page-before-after .case-column:nth-child(1) .case-card:nth-child(6) { order: 16; }
  .page-before-after .case-column:nth-child(2) .case-card:nth-child(6) { order: 17; }
  .page-before-after .case-column:nth-child(3) .case-card:nth-child(6) { order: 18; }

  .site-footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .site-footer .footer-brand {
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 28%);
  }
}

/* Digital Smile Design reference alignment — 2026-09-17.
   The hero remains full bleed; every editorial module below it shares one
   1240px alignment line without adding a visible background box. */
body[data-section="services"].page-digital-smile .page-hero--digital {
  min-height: clamp(420px, 37.083vw, 534px);
  padding: clamp(64px, 7vw, 96px) max(20px, calc((100vw - 1240px) / 2));
  background:
    linear-gradient(180deg, rgb(14 39 79 / 20%), rgb(13 35 72 / 34%)),
    url("../figma-opt/digital-smile-design/hero-20260917.webp") center / cover no-repeat;
}

body[data-section="services"].page-digital-smile .page-hero--digital::before {
  background: linear-gradient(90deg, rgb(9 31 67 / 8%), rgb(9 31 67 / 2%), rgb(9 31 67 / 8%));
}

body[data-section="services"].page-digital-smile .context-subnav {
  margin-bottom: 0;
}

body[data-section="services"].page-digital-smile .digital-intro,
body[data-section="services"].page-digital-smile .digital-body {
  width: min(calc(100% - 40px), 1240px);
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

body[data-section="services"].page-digital-smile .digital-intro {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(58px, 6vw, 82px);
  margin-bottom: clamp(58px, 6vw, 82px);
  padding-top: 0;
}

body[data-section="services"].page-digital-smile .digital-intro img {
  aspect-ratio: 1.65;
  object-fit: cover;
  border-radius: 18px;
}

body[data-section="services"].page-digital-smile .digital-intro .display-heading,
body[data-section="services"].page-digital-smile .digital-intro p,
body[data-section="services"].page-digital-smile .official-card h2,
body[data-section="services"].page-digital-smile .official-card p {
  color: var(--sdg-navy-900);
}

body[data-section="services"].page-digital-smile .digital-intro .display-heading {
  font-size: clamp(42px, 4vw, 54px);
  line-height: .96;
}

body[data-section="services"].page-digital-smile .digital-intro p {
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.45;
}

body[data-section="services"].page-digital-smile .digital-body {
  margin-top: 0;
  margin-bottom: 0;
}

body[data-section="services"].page-digital-smile .benefits {
  gap: clamp(28px, 4vw, 58px);
  margin-bottom: clamp(58px, 6vw, 78px);
}

body[data-section="services"].page-digital-smile .benefit {
  min-height: 220px;
  padding: 12px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body[data-section="services"].page-digital-smile .benefit img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  mix-blend-mode: normal;
}

body[data-section="services"].page-digital-smile .benefit strong {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.12;
}

body[data-section="services"].page-digital-smile .digital-showcase-image {
  display: block;
  width: 100%;
  margin-bottom: clamp(44px, 5vw, 64px);
  border-radius: 18px;
}

body[data-section="services"].page-digital-smile .digital-body > .digital-showcase-image:nth-of-type(1) {
  aspect-ratio: 3.15;
}

body[data-section="services"].page-digital-smile .digital-body > .digital-showcase-image:nth-of-type(2) {
  aspect-ratio: 1.9;
}

body[data-section="services"].page-digital-smile .choose-card {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  gap: clamp(28px, 4vw, 50px);
  margin-top: 0;
  margin-bottom: clamp(62px, 7vw, 92px);
  padding: 18px;
}

body[data-section="services"].page-digital-smile .choose-card img {
  min-height: 0;
  aspect-ratio: 1.25;
}

body[data-section="services"].page-digital-smile .choose-card > div {
  align-self: center;
  padding: 18px 28px 18px 0;
}

body[data-section="services"].page-digital-smile .choose-card .display-heading {
  font-size: clamp(42px, 4vw, 54px);
  line-height: .96;
}

body[data-section="services"].page-digital-smile .choose-card li {
  font-size: 14px;
  line-height: 1.32;
}

body[data-section="services"].page-digital-smile .official-grid {
  width: 100%;
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
}

body[data-section="services"].page-digital-smile .official-card {
  min-height: 560px;
  padding: 42px 58px;
}

body[data-section="services"].page-digital-smile .official-card img,
body[data-section="services"].page-digital-smile .official-card:first-child img {
  width: 240px;
  height: 240px;
  margin-bottom: 34px;
  filter: none;
}

body[data-section="services"].page-digital-smile .official-card h2 {
  font-size: clamp(40px, 3.7vw, 50px);
  line-height: .98;
}

body[data-section="services"].page-digital-smile .official-card p {
  font-size: 14px;
  line-height: 1.42;
}

@media (max-width: 1100px) {
  body[data-section="services"].page-digital-smile .digital-intro,
  body[data-section="services"].page-digital-smile .choose-card {
    grid-template-columns: 1fr;
  }

  body[data-section="services"].page-digital-smile .digital-intro {
    gap: 34px;
  }

  body[data-section="services"].page-digital-smile .choose-card > div {
    padding: 18px;
  }

  body[data-section="services"].page-digital-smile .choose-card img {
    width: 100%;
    max-height: 560px;
  }
}

@media (max-width: 620px) {
  body[data-section="services"].page-digital-smile .page-hero--digital {
    min-height: 320px;
    padding: 48px 20px;
    background-position: center;
  }

  body[data-section="services"].page-digital-smile .digital-intro,
  body[data-section="services"].page-digital-smile .digital-body {
    width: calc(100% - 40px);
    padding-right: 0;
    padding-left: 0;
  }

  body[data-section="services"].page-digital-smile .digital-intro {
    margin-top: 40px;
    margin-bottom: 48px;
  }

  body[data-section="services"].page-digital-smile .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  body[data-section="services"].page-digital-smile .benefit {
    min-height: 164px;
    padding: 8px 4px;
  }

  body[data-section="services"].page-digital-smile .benefit img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 164px;
  }

  body[data-section="services"].page-digital-smile .digital-body > .digital-showcase-image:nth-of-type(1) {
    aspect-ratio: 2.3;
  }

  body[data-section="services"].page-digital-smile .digital-body > .digital-showcase-image:nth-of-type(2) {
    aspect-ratio: 1.7;
  }

  body[data-section="services"].page-digital-smile .choose-card {
    gap: 24px;
    padding: 14px;
  }

  body[data-section="services"].page-digital-smile .choose-card > div {
    padding: 10px 8px 18px;
  }

  body[data-section="services"].page-digital-smile .official-card {
    min-height: 0;
    padding: 42px 18px;
  }

  body[data-section="services"].page-digital-smile .official-card img,
  body[data-section="services"].page-digital-smile .official-card:first-child img {
    width: 210px;
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-card--flip .process-card__flip {
    transition-duration: 0.01ms;
  }
}

/* Service detail content shell: keep every existing hero intact while the
   editorial content sits in one centered container over the page gradient. */
body[data-section="services"].legacy-page .legacy-layout,
body[data-section="services"].page-service-detail .detail-panel,
body[data-section="services"].page-digital-smile .digital-body {
  width: min(calc(100% - 36px), 1404px);
  margin-right: auto;
  margin-left: auto;
}

body[data-section="services"].legacy-page .legacy-content,
body[data-section="services"].page-service-detail .detail-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-section="services"].page-digital-smile .digital-body {
  padding-right: 82px;
  padding-left: 82px;
}

@media (max-width: 1100px) {
  body[data-section="services"].page-digital-smile .digital-body {
    padding-right: 44px;
    padding-left: 44px;
  }
}

@media (max-width: 760px) {
  body[data-section="services"].legacy-page .legacy-layout,
  body[data-section="services"].page-service-detail .detail-panel,
  body[data-section="services"].page-digital-smile .digital-body {
    width: calc(100% - 20px);
  }

  body[data-section="services"].page-digital-smile .digital-body {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/* Service detail rhythm refinement: one 1240px alignment line for the
   contextual menu and editorial content, shorter detail heroes, and clear
   breathing room around the closing conversion module. */
body[data-section="services"]:not(.page-services-index) .page-hero,
body[data-section="services"].legacy-page .legacy-hero {
  min-height: clamp(320px, 31vw, 420px);
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 76px);
}

/* The selected legacy services use the same blue hero treatment as Cosmetic
   Restorations, without their former page-specific background photographs. */
body[data-section="services"].legacy-page .legacy-hero--service-blue {
  background:
    radial-gradient(circle at 78% 20%, rgb(144 174 225 / 48%), transparent 38%),
    linear-gradient(145deg, #315aa8, #172e59 80%);
}

body[data-section="services"].legacy-page .legacy-hero--service-blue .legacy-hero__overlay {
  background: linear-gradient(100deg, rgb(5 21 47 / 78%), rgb(19 58 103 / 40%), rgb(18 43 82 / 55%));
}

body[data-section="services"]:not(.page-services-index) .context-subnav {
  width: min(calc(100% - 36px), 1240px);
}

body[data-section="services"].page-service-detail .detail-panel,
body[data-section="services"].legacy-page .legacy-content,
body[data-section="services"].page-digital-smile .digital-body {
  padding-right: max(20px, calc((100% - 1240px) / 2));
  padding-left: max(20px, calc((100% - 1240px) / 2));
}

body[data-section="services"].page-service-detail .service-layout {
  grid-template-columns: minmax(0, 1fr);
}

body[data-section="services"].page-service-detail .detail-panel {
  padding-bottom: 32px;
}

body[data-section="services"].page-service-detail .smile-cta--inline {
  margin-top: 32px;
}

body[data-section="services"].legacy-page .legacy-layout {
  margin-bottom: clamp(28px, 4vw, 48px);
}

body[data-section="services"].legacy-page .legacy-content {
  padding-bottom: clamp(36px, 4vw, 56px);
}

/* The selected legacy service pages now share the same closing card as
   Cosmetic Restorations instead of the old full-bleed photographic banner. */
body[data-section="services"].legacy-page .service-smile-cta {
  margin-top: 0;
}

body[data-section="services"]:not(.page-services-index) .closing--footer-only {
  margin-top: clamp(56px, 6vw, 80px);
}

@media (max-width: 620px) {
  body[data-section="services"]:not(.page-services-index) .page-hero,
  body[data-section="services"].legacy-page .legacy-hero {
    min-height: 320px;
    padding: 48px 20px;
  }

  body[data-section="services"]:not(.page-services-index) .context-subnav {
    width: 100%;
  }

  body[data-section="services"].page-service-detail .detail-panel,
  body[data-section="services"].legacy-page .legacy-content,
  body[data-section="services"].page-digital-smile .digital-body {
    padding-right: 20px;
    padding-left: 20px;
  }

  body[data-section="services"].page-service-detail .smile-cta--inline {
    margin-top: 24px;
  }

  body[data-section="services"].legacy-page .service-smile-cta {
    margin-top: 0;
  }

  body[data-section="services"]:not(.page-services-index) .closing--footer-only {
    margin-top: 48px;
  }
}

/* Keep the DSD editorial shell on the same final 1240px alignment line after
   the shared service-detail rules above have been applied. */
body[data-section="services"].page-digital-smile .digital-body {
  width: min(calc(100% - 40px), 1240px);
  padding-right: 0;
  padding-left: 0;
}

body[data-section="services"].page-digital-smile .page-hero--digital {
  min-height: clamp(420px, 37.083vw, 534px);
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

body[data-section="services"].page-digital-smile .official-card:last-child img {
  filter: brightness(0) saturate(100%) invert(14%) sepia(34%) saturate(1515%) hue-rotate(181deg) brightness(88%) contrast(98%);
}

@media (max-width: 620px) {
  /* Keep every editorial module on the services directory on one consistent
     mobile gutter while the hero and horizontal service navigation remain
     intentionally full bleed. */
  body[data-section="services"].page-services-index .services-feature,
  body[data-section="services"].page-services-index .split-intro,
  body[data-section="services"].page-services-index .additional-services {
    width: calc(100% - 32px);
    margin-right: auto;
    margin-left: auto;
  }

  body[data-section="services"].page-digital-smile .digital-body {
    width: calc(100% - 40px);
    padding-right: 0;
    padding-left: 0;
  }

  body[data-section="services"].page-digital-smile .page-hero--digital {
    min-height: 320px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body.page-team .page-hero--team {
    min-height: 390px;
    padding: 56px 20px;
  }

  body.page-team .context-subnav {
    width: calc(100% - 24px);
    margin: -20px auto 0;
    border-radius: 12px;
  }

  body.page-team .team-panel {
    padding: 0;
  }

  body.page-team .team-intro {
    padding: 54px 20px;
  }

  body.page-team .team-intro p {
    font-size: 13px;
  }

  body.page-team .team-directory-section {
    margin-inline: 0;
    padding: 58px 18px 72px;
  }

  body.page-team .team-directory-heading {
    margin-bottom: 40px;
  }

  body.page-team .team-directory-heading h2 {
    font-size: 52px;
  }

  body.page-team .staff-grid,
  body.page-team .staff-grid--providers,
  body.page-team .staff-grid--team {
    width: min(100%, 390px);
    gap: 32px;
  }

  body.page-team .staff-card,
  body.page-team .staff-card:nth-last-child(2),
  body.page-team .staff-card:last-child {
    min-height: 370px;
    padding: 18px 18px 22px;
    transform: none;
  }

  body.page-team .staff-card--composite,
  body.page-team .staff-card--composite:nth-last-child(2),
  body.page-team .staff-card--composite:last-child {
    min-height: 0;
    padding: 0;
  }

  body.page-team .staff-card h2 {
    font-size: 34px;
  }
}

/* About page reference alignment — 2026-09-18.
   The supplied panoramic image already contains the blue treatment, so the
   hero does not add a second color overlay. */
body.page-about {
  background: #b3c8ea;
}

body.page-about .page-hero--about {
  min-height: clamp(390px, 38.264vw, 551px);
  padding: clamp(62px, 7vw, 96px) 24px;
  background-image: url("../client-feedback/about-hero-20260918.png");
  background-position: center;
  background-size: cover;
}

body.page-about .page-hero--about::before {
  background: transparent;
}

body.page-about .page-hero--about > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: none;
  text-align: center;
}

body.page-about .page-hero--about .eyebrow {
  margin: 0 0 12px;
  color: #c9d9f3;
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: .25em;
}

body.page-about .page-hero--about .page-title {
  margin: 0;
  font-size: clamp(58px, 5.4vw, 78px);
}

body.page-about .context-subnav {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 72px), 1320px);
  margin: -30px auto 0;
  padding-block: 20px;
  border-radius: 14px;
}

body.page-about .context-subnav a,
body.page-about .context-subnav a:hover,
body.page-about .context-subnav a:focus-visible,
body.page-about .context-subnav a[aria-current="page"] {
  color: var(--sdg-navy-900);
  background: transparent;
  border-radius: 0;
}

body.page-about .context-subnav a + a {
  border-left: 1px solid rgb(17 42 85 / 42%);
}

body.page-about .context-subnav a[aria-current="page"] {
  font-weight: 900;
}

body.page-about .inner-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.page-about .about-panel {
  width: 100%;
  padding: 74px max(22px, calc((100vw - 1112px) / 2)) 36px;
  background: linear-gradient(180deg, #a9bfe3 0%, #c4d4ed 100%);
  border-radius: 0;
}

body.page-about .about-panel > .eyebrow,
body.page-about .about-panel > .page-title {
  display: none;
}

body.page-about .about-layout {
  display: block;
}

body.page-about .about-copy {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
}

body.page-about .about-copy h2 {
  max-width: 1180px;
  margin: 0 auto 18px;
  color: var(--sdg-navy-900);
  font-size: clamp(34px, 2.8vw, 40px);
  line-height: 1;
  text-align: center;
}

body.page-about .about-copy p,
body.page-about .about-copy ol {
  max-width: 900px;
  color: var(--sdg-navy-900);
  font-size: 15px;
  line-height: 1.42;
}

body.page-about .about-copy h2 + p {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

body.page-about .about-copy .accent {
  max-width: 820px;
  margin: clamp(64px, 7vw, 96px) 0 34px;
  color: #315aa8;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.2;
  letter-spacing: .03em;
  text-align: left;
}

body.page-about .about-copy:not(:has(> .accent)) h2 + p::after {
  display: block;
  max-width: 820px;
  margin: clamp(64px, 7vw, 96px) 0 34px;
  color: #315aa8;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.2;
  letter-spacing: .03em;
  text-align: left;
  text-transform: uppercase;
  content: "We look forward to having you as a client and thank you for selecting us for your dental care.";
}

body.page-about .about-copy ol {
  margin-top: 0;
  padding-left: 22px;
}

body.page-about .about-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
  width: 100%;
  max-width: 1112px;
  margin: 48px auto 0;
}

body.page-about .about-gallery img {
  width: 100%;
  aspect-ratio: 1.47;
  object-fit: cover;
  border-radius: 14px;
}

body.page-about .closing--footer-only {
  margin-top: 0;
}

@media (max-width: 620px) {
  body.page-about .page-hero--about {
    min-height: 320px;
    padding: 52px 20px 64px;
    background-position: 53% center;
  }

  body.page-about .page-hero--about .page-title {
    font-size: 54px;
  }

  body.page-about .context-subnav {
    width: calc(100% - 24px);
    margin-top: -20px;
    padding-block: 12px;
    border-radius: 12px;
  }

  body.page-about .about-panel {
    padding: 58px 18px 72px;
  }

  body.page-about .about-copy h2 {
    margin-bottom: 18px;
    font-size: 36px;
    overflow-wrap: normal;
  }

  body.page-about .about-copy p,
  body.page-about .about-copy ol {
    font-size: 14px;
  }

  body.page-about .about-copy .accent {
    margin: 54px 0 28px;
    font-size: 19px;
  }

  body.page-about .about-copy:not(:has(> .accent)) h2 + p::after {
    margin: 54px 0 28px;
    font-size: 19px;
  }

  body.page-about .about-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 48px;
  }

  body.page-about .about-gallery img {
    aspect-ratio: 1.45;
    border-radius: 12px;
  }
}
