/* ==========================================================================
   Design refresh. Loaded after the compiled theme bundles and site.css; it
   overrides them without editing them. Sections follow the page top to bottom.
   ========================================================================== */

:root {
  --c-primary: #2f5a78;
  --c-primary-strong: #2f5a78;
  --c-primary-tint: #e1f9fd;
  --c-sky: #c5d7e7;
  --c-sky-soft: #d7e4ef;
  --c-ink: #14283a;
  --c-text: #2b3439;
  --c-muted: #5f6368;
  --c-surface: #fafcfc;
  --c-card: #ffffff;
  --c-line: #e6edf3;
  --c-wash: #eef4f9;
  --c-navy: #14283a;
  --c-footer-text: #c7d3dd;
  --c-sand: #f4ece4;
  --c-terracotta: #9a5a3c;

  --font-body: Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Source Sans Pro", "Segoe UI", sans-serif;

  --radius-sm: 0.6rem;
  --radius-md: 1.2rem;
  --radius-lg: 2rem;
  --shadow-sm: 0 0.1rem 0.2rem rgba(24, 33, 37, 0.04), 0 0.4rem 1.2rem rgba(47, 90, 120, 0.06);
  --shadow-md: 0 0.2rem 0.4rem rgba(24, 33, 37, 0.04), 0 1.2rem 3.2rem rgba(47, 90, 120, 0.14);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23487ea7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23487ea7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open {
  overflow: hidden;
}
/* The theme clips <main> with overflow:hidden, which stops sticky elements
   inside it from sticking. `clip` hides the same overflow without that. */
main {
  overflow: clip;
}
::selection {
  background: var(--c-sky);
  color: var(--c-ink);
}
svg.ui-icon {
  flex: 0 0 auto;
}

/* --- Typography: two families (Roboto body, Source Sans display). ------- */

header#page-header a.website-logo,
.doctor-details .doctor-card h2.dr-name,
section.home.hero .slide h1.title {
  font-family: var(--font-display);
}
section h2.section-title,
section#page-title h1 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
section h2.section-title {
  font-size: clamp(3rem, 2.2rem + 1.6vw, 4.2rem);
}
/* Replace the slanted "/ title /" marks with a short underline accent. */
section h2.section-title::before {
  display: none;
}
section h2.section-title::after {
  display: block;
  content: "";
  width: 4.8rem;
  height: 0.3rem;
  margin: 1.6rem auto 0;
  border-radius: 0.3rem;
  background: var(--c-primary);
  transform: none;
  opacity: 1;
}
section h2.section-title:has(img)::after {
  display: none;
}
.styled-text blockquote {
  font-family: var(--font-display);
}

/* FIVI section: the CMS content carries inline font sizes and an italic blue
   heading; normalise them to the site's type scale. */
section.home.fivi .description {
  max-width: 76rem;
  margin: 0 auto;
  text-align: center;
}
section.home.fivi .description h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(2.6rem, 2rem + 1.2vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 0 0 1.8rem;
}
section.home.fivi .description p {
  font-size: 1.7rem !important;
  line-height: 1.7;
  color: var(--c-text);
  margin: 0 0 1.6rem !important;
}
section.home.fivi .description p:last-child {
  font-size: 1.5rem !important;
  line-height: 1.7;
  color: var(--c-muted);
  margin-bottom: 0 !important;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--c-primary-strong);
  text-decoration: none;
}
.section-link svg {
  transition: transform 0.18s var(--ease);
}
.section-link:hover svg {
  transform: translateX(0.3rem);
}

/* --- Buttons: one system, pills. -------------------------------------- */

.nice-button,
a.nice-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 4.4rem;
  padding: 0.8rem 2.2rem;
  border: 0.15rem solid var(--c-primary);
  border-radius: 99rem;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.nice-button:hover {
  border-radius: 99rem;
  transform: translateY(-0.1rem);
  box-shadow: var(--shadow-md);
}
.nice-button.mini {
  min-height: 4.4rem;
  padding: 0.6rem 2rem;
  font-size: 1.5rem;
}

/* --- Header ------------------------------------------------------------ */

header#page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: box-shadow 0.25s var(--ease);
}
header#page-header.is-scrolled {
  box-shadow: 0 0.1rem 0 rgba(47, 90, 120, 0.08), 0 0.8rem 2.4rem rgba(47, 90, 120, 0.1);
}
header#page-header > .container {
  padding: 0 3.2rem;
}
header#page-header a.website-logo div.logo-image {
  height: 6.4rem;
  margin-right: 1rem;
}
header#page-header a.website-logo .brand {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary-strong);
}
header#page-header a.website-logo .dr-name {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  padding-bottom: 0.2rem;
}
header#page-header a.website-logo .dr-title {
  font-size: 1.3rem;
  color: var(--c-primary-strong);
}
header#page-header nav.main .nav-extras {
  display: none;
}

/* Language selector: a round button that opens a small menu. */
header#page-header ul.header-actions li.language-selection {
  position: relative;
  z-index: 40;
}
header#page-header ul.header-actions li.language-selection .lang-button {
  display: inline-grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  border: 0.15rem solid var(--c-primary-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--c-primary-strong);
  font: 700 1.2rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
header#page-header ul.header-actions li.language-selection .lang-button:hover,
header#page-header ul.header-actions li.language-selection.is-open .lang-button {
  background: var(--c-primary-strong);
  color: #fff;
}
header#page-header ul.header-actions li.language-selection ul.lang-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  right: 0;
  min-width: 18rem;
  padding: 0.6rem;
  overflow: visible;
  border: 0.1rem solid var(--c-line);
  border-radius: 1.4rem;
  background: var(--c-card);
  box-shadow: var(--shadow-md);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.4rem);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0s linear 0.16s;
}
header#page-header ul.header-actions li.language-selection:hover ul.lang-menu {
  visibility: hidden;
  opacity: 0;
}
header#page-header ul.header-actions li.language-selection.is-open ul.lang-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
header#page-header ul.header-actions li.language-selection ul.lang-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1rem 1.2rem;
  border-top: 0;
  border-radius: 0.8rem;
  font-size: 1.5rem;
  color: var(--c-ink);
  text-decoration: none;
}
header#page-header ul.header-actions li.language-selection ul.lang-menu li a:hover {
  background: var(--c-wash);
}
header#page-header ul.header-actions li.language-selection ul.lang-menu li.active a {
  color: var(--c-primary-strong);
  font-weight: 500;
}

/* Mobile menu button. */
header#page-header ul.header-actions li.nav-toggle .nav-toggle-button {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  border: 0.15rem solid var(--c-primary-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--c-primary-strong);
  cursor: pointer;
}

@media (min-width: 950px) {
  header#page-header nav.main > ul > li > a {
    color: var(--c-primary-strong);
    font-size: 1.6rem;
  }
  header#page-header nav.main > ul > li.active > a {
    color: var(--c-ink);
  }
  header#page-header nav.main > ul > li > a > span::after {
    height: 0.2rem;
  }
  header#page-header nav.main > ul > li.active > a > span::after {
    width: 100%;
    opacity: 1;
  }
  header#page-header nav.main > ul > li ul {
    border-radius: 0 0 1.2rem 1.2rem;
  }
  header#page-header nav.main > ul > li ul li.has-dropdown > a::after {
    color: var(--c-primary);
  }
  header#page-header nav.main > ul > li.has-dropdown:focus-within > ul,
  header#page-header nav.main > ul > li li.has-dropdown:focus-within > ul {
    visibility: visible;
    opacity: 1;
  }
}

/* --- Hero -------------------------------------------------------------- */

section.home.hero {
  background: radial-gradient(60% 80% at 78% 40%, #f2f7fb 0%, rgba(242, 247, 251, 0) 60%),
    linear-gradient(180deg, var(--c-sky) 0%, var(--c-sky-soft) 100%);
}
section.home.hero .slide {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 0;
  padding: 0 3.2rem;
  gap: 2.4rem;
  align-items: flex-end;
}
section.home.hero .slide div.content {
  flex: 1 1 52rem;
  min-width: 0;
  max-width: none;
  padding: 8.8rem 0 12rem;
}
section.home.hero .slide h1.title {
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--c-ink);
  padding: 0;
}
section.home.hero .slide h1.title span.dr-name {
  font-size: clamp(4rem, 2rem + 3.6vw, 6.8rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
section.home.hero .slide h1.title span.dr-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--c-primary);
}
section.home.hero .slide div.description {
  max-width: 56rem;
  margin: 2rem 0 2.8rem;
  font-size: 1.9rem;
  line-height: 1.6;
  color: var(--c-text);
}
section.home.hero .slide div.image {
  position: relative;
  inset: auto;
  flex: 0 1 46rem;
  justify-content: center;
  opacity: 1;
}
section.home.hero .slide div.image::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 42rem;
  height: 42rem;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
}
section.home.hero .slide div.image img {
  position: relative;
  height: 60rem;
  width: auto;
  max-width: 100%;
  max-height: none;
}
section.home.hero .wave {
  position: relative;
  z-index: 3;
  height: 7.2rem;
  margin-top: -7.2rem;
  /* Transparent box: only the curve (page colour below it) crops the portrait. */
  background: transparent;
}

/* FIVI card in the hero. */
section.home.hero .slide div.fivi-hero {
  margin-bottom: 2.8rem;
}
section.home.hero .slide div.fivi-hero a.img-link {
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 5.2rem;
  padding: 0.8rem 2rem 0.8rem 1.6rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.75);
  border: 0.1rem solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.6rem 2rem rgba(47, 90, 120, 0.1);
  text-decoration: none;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
section.home.hero .slide div.fivi-hero a.img-link:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-0.1rem);
}
section.home.hero .slide div.fivi-hero a .img-wrapper {
  display: block;
  width: auto;
  margin: 0;
}
section.home.hero .slide div.fivi-hero a .img-wrapper img {
  display: block;
  width: auto;
  height: 3.6rem;
}
section.home.hero .slide div.fivi-hero a .divider {
  align-self: stretch;
  width: 0.1rem;
  background: rgba(72, 126, 167, 0.25);
}
section.home.hero .slide div.fivi-hero a .fivi-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
section.home.hero .slide div.fivi-hero a .slogan {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--c-primary-strong);
}
section.home.hero .slide div.fivi-hero a .unit {
  font-size: 1.2rem;
  color: #4a5a66;
}
section.home.hero .slide div.fivi-hero a .fivi-arrow {
  color: var(--c-primary);
}

/* Calculator chips. */
section.home.hero .slide div.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
section.home.hero .slide div.buttons a.nice-button,
section.home.hero .slide div.buttons a.nice-button.inverted {
  margin: 0;
  min-height: 4rem;
  padding: 0 1.6rem;
  border: 0.1rem solid rgba(72, 126, 167, 0.35);
  background-color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  color: var(--c-primary-strong);
}
section.home.hero .slide div.buttons a.nice-button:hover,
section.home.hero .slide div.buttons a.nice-button.inverted:hover {
  background-color: #fff;
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}

/* --- Info card: one navy surface, hairline dividers. ------------------- */

section.home.info {
  padding: 0 3.2rem;
}
section.home.info .section-content {
  top: 0;
  max-width: 1280px;
  margin: 1.6rem auto 0;
  padding: 0;
  border-radius: var(--radius-lg);
  background-color: var(--c-navy);
  box-shadow: 0 1.6rem 4rem rgba(20, 40, 58, 0.18);
}
section.home.info .info-box,
section.home.info .info-box.location,
section.home.info .info-box.schedule {
  background-color: transparent;
}
section.home.info .info-box + .info-box {
  border-left: 0.1rem solid rgba(255, 255, 255, 0.08);
}
section.home.info .info-box h2.info-box-title {
  align-items: center;
  gap: 1.2rem;
  padding: 4rem 3.6rem 1.2rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: #fff;
}
section.home.info .info-box h2.info-box-title span {
  padding: 0;
  line-height: 1.2;
}
section.home.info .info-box h2.info-box-title svg {
  color: #9cc0dc;
}
section.home.info .info-box div.info-box-content {
  gap: 1.4rem;
  padding: 0 3.6rem 4rem;
  line-height: 1.5;
  font-size: 1.5rem;
  color: #e3ebf1;
}
section.home.info .info-box.contact a.telephone {
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
}
section.home.info .info-box.contact span.tiny {
  margin-left: 0.4rem;
  font-size: 1.4rem;
  color: #b8c8d6;
}
section.home.info .info-box.contact a.email {
  color: #e3ebf1;
  font-size: 1.6rem;
  text-decoration: underline;
  text-decoration-color: rgba(227, 235, 241, 0.4);
  text-underline-offset: 0.4rem;
}
section.home.info .info-box.contact a.email:hover {
  text-decoration-color: currentColor;
}
section.home.info .info-box.location div.spot-details {
  padding: 0;
  font-size: 1.7rem;
  font-weight: 500;
  color: #fff;
}
section.home.info .info-box.location div.spot-details div.address {
  margin-top: 0.2rem;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 400;
  color: #e3ebf1;
}
section.home.info .info-box.schedule ul {
  width: 100%;
}
section.home.info .info-box.schedule ul li {
  padding: 0 0 0.6rem;
  font-size: 1.5rem;
}
section.home.info .info-box.schedule ul li.city {
  padding-top: 1.4rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
}
section.home.info .info-box.schedule ul li.city:first-child {
  padding-top: 0;
}
section.home.info .info-box div.info-box-content .nice-button,
section.home.info .info-box div.info-box-content .nice-button.inverted {
  margin-top: 0.6rem;
  align-self: flex-start;
  min-height: 4.4rem;
  padding: 0 2rem;
  border: 0.15rem solid rgba(255, 255, 255, 0.6);
  background-color: transparent;
  color: #fff;
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: 0.01em;
}
section.home.info .info-box div.info-box-content .nice-button:hover,
section.home.info .info-box div.info-box-content .nice-button.inverted:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--c-primary-strong);
}

/* --- Services: photo cards in a grid. ---------------------------------- */

section.home.services {
  padding: 10.4rem 0 6.4rem;
}
section.home.services h2.section-title {
  padding: 0 1.6rem 4.8rem;
}
section.home.services > .section-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 2.4rem;
  max-width: 1280px;
  padding: 0 3.2rem;
}
section.home.services article.service-panel {
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0.1rem solid var(--c-line);
  border-radius: 1.6rem;
  background: var(--c-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
section.home.services article.service-panel:hover {
  border-color: var(--c-sky);
  box-shadow: var(--shadow-md);
  transform: translateY(-0.3rem);
}
section.home.services article.service-panel .service-photo {
  position: relative;
  display: block;
  height: 18rem;
  overflow: hidden;
}
section.home.services article.service-panel .service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(1.03);
  transition: transform 0.5s var(--ease);
}
section.home.services article.service-panel:hover .service-photo img {
  transform: scale(1.04);
}
/* Soft blue wash that keeps the photos in colour. */
section.home.services article.service-panel .service-photo::before,
section.home.services article.service-panel .service-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
section.home.services article.service-panel .service-photo::before {
  background: rgba(72, 126, 167, 0.32);
  mix-blend-mode: soft-light;
}
section.home.services article.service-panel .service-photo::after {
  background: rgba(197, 215, 231, 0.18);
}
section.home.services article.service-panel .service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.6rem;
  padding: 2.8rem 2.8rem 3.2rem;
}
section.home.services article.service-panel h2.title {
  min-height: 0;
  padding: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  color: var(--c-ink);
}
section.home.services article.service-panel h2.title a {
  color: inherit;
  text-decoration: none;
}
section.home.services article.service-panel .service-count {
  display: none;
}
section.home.services article.service-panel ul.sub-services {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
section.home.services article.service-panel ul.sub-services li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0;
}
section.home.services article.service-panel ul.sub-services li .dot {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--c-primary);
  transform: translateY(-0.2rem);
}
section.home.services article.service-panel ul.sub-services li a {
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--c-text);
  text-decoration: none;
}
section.home.services article.service-panel ul.sub-services li a:hover {
  color: var(--c-primary);
  text-decoration: underline;
}
section.home.services article.service-panel .sub-services-more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.6rem;
  margin-top: auto;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-primary-strong);
  text-decoration: none;
}
section.home.services article.service-panel .sub-services-more:hover svg {
  transform: translateX(0.3rem);
}
section.home.services article.service-panel .sub-services-more svg {
  transition: transform 0.18s var(--ease);
}

/* --- Calculator: warm sand band. --------------------------------------- */

section.home.calculator {
  margin: 0;
  background-color: var(--c-sand);
}
section.home.calculator > .section-content {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.4rem;
  max-width: 1280px;
  padding: 4.8rem 3.2rem;
}
section.home.calculator span.icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 5.6rem;
  height: 5.6rem;
  margin-right: -0.4rem;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--c-terracotta);
}
section.home.calculator .text {
  flex: 1 1 28rem;
  min-width: 0;
}
section.home.calculator .section-content .text h2.title {
  padding: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  text-align: left;
  color: var(--c-ink);
}
section.home.calculator .section-content .text h2.subtitle {
  padding: 0;
  font-size: 1.6rem;
  font-weight: 400;
  text-align: left;
  color: #4a4f53;
}
section.home.calculator .nice-button.inverted {
  min-height: 4.8rem;
  padding: 0 2.4rem;
  background-color: var(--c-terracotta);
  border-color: var(--c-terracotta);
  color: #fff;
}
section.home.calculator .nice-button.inverted:hover {
  background-color: #7d4630;
  border-color: #7d4630;
  color: #fff;
}

/* --- Latest articles and post cards. ----------------------------------- */

section.home.latest-news {
  padding: 9.6rem 0 8rem;
}
section.home.latest-news > .section-content {
  max-width: 1280px;
  padding: 0 3.2rem;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 3.6rem;
}
.section-head h2.section-title {
  padding: 0;
  text-align: left;
}
.section-head h2.section-title::after {
  margin-left: 0;
}

div.post-card-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  justify-content: stretch;
  gap: 2.4rem;
}
article.post-card {
  position: relative;
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 0.1rem solid var(--c-line);
  border-radius: 1.6rem;
  background-color: var(--c-card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
article.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-0.3rem);
}
article.post-card .post-card-image {
  width: 100%;
  height: 20rem;
}
article.post-card .post-card-image > a > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
article.post-card:hover .post-card-image > a > img {
  transform: scale(1.03);
}
article.post-card .post-card-image.is-fallback {
  background: radial-gradient(90% 90% at 85% 10%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 60%),
    linear-gradient(135deg, var(--c-sky), #dbe8f2 55%, var(--c-primary-tint));
}
article.post-card .post-card-image.is-fallback > a > img.fallback-mark {
  width: auto;
  height: 82%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  opacity: 0.32;
}
article.post-card:hover .post-card-image.is-fallback > a > img.fallback-mark {
  transform: none;
}
article.post-card .post-card-meta {
  display: flex;
  gap: 0.8rem;
  padding: 2.4rem 2.8rem 0;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
}
article.post-card .post-card-meta .read-time::before {
  content: "·";
  margin-right: 0.8rem;
}
article.post-card .post-card-title {
  padding: 1.2rem 2.8rem 0;
  margin: 0;
}
article.post-card .post-card-title a {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--c-ink);
}
article.post-card .post-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
article.post-card .post-card-text-preview {
  flex: 1;
  padding: 1.2rem 2.8rem 2.8rem;
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--c-muted);
}

/* --- FAQ band (every page but articles and the FAQ itself). ------------ */

section#faq-link.faq-band {
  background-color: var(--c-wash);
  background-image: none;
}
section#faq-link.faq-band > .section-content {
  max-width: 880px;
  padding: 7.2rem 3.2rem;
}
.faq-band-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 2.8rem;
}
.faq-band-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--c-ink);
}
section#faq-link ul.faq-quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
section#faq-link ul.faq-quicklinks li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  height: 100%;
  box-sizing: border-box;
  padding: 1.8rem 2.2rem;
  border: 0.1rem solid #e0e9f1;
  border-radius: 1.4rem;
  background: #fff;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--c-ink);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
section#faq-link ul.faq-quicklinks li a:hover {
  transform: none;
  border-color: var(--c-sky);
  box-shadow: var(--shadow-sm);
}
section#faq-link ul.faq-quicklinks li a svg {
  color: var(--c-primary);
  transition: transform 0.18s var(--ease);
}
section#faq-link ul.faq-quicklinks li a:hover svg {
  transform: translateX(0.3rem);
}

/* --- Footer ------------------------------------------------------------ */

footer#page-footer {
  background-color: var(--c-navy);
}
footer#page-footer > .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr;
  gap: 4rem;
  padding: 6.4rem 3.2rem 4rem;
}
footer#page-footer .footer-box {
  flex: none;
  padding-bottom: 0;
}
footer#page-footer .footer-box .ftr-title {
  padding-bottom: 1.6rem;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}
footer#page-footer .footer-box.branding .logo-image-wrapper {
  width: 5.6rem;
  margin-right: 1.4rem;
}
footer#page-footer .footer-box.branding h2.doctor-name {
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}
footer#page-footer .footer-box.branding h3.doctor-title {
  font-size: 1.3rem;
  font-weight: 400;
  color: #9cc0dc;
}
footer#page-footer .footer-box.branding .doctor-mini-card {
  align-items: center;
  padding-bottom: 1.4rem;
}
footer#page-footer .footer-box.branding div.mini-bio {
  padding-right: 0;
  font-size: 1.4rem;
  line-height: 1.6;
}
footer#page-footer .ftr-content ul li a,
footer#page-footer .footer-box.branding div.mini-bio,
footer#page-footer .footer-box.contact .ftr-content ul li {
  color: var(--c-footer-text);
}
footer#page-footer .ftr-content ul li a {
  padding: 0.5rem 0;
  font-size: 1.5rem;
}
footer#page-footer .ftr-content ul li a:hover {
  color: #fff;
}
footer#page-footer #copyright {
  padding: 2rem 3.2rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.08);
  font-size: 1.3rem;
  color: var(--c-footer-text);
}
footer#page-footer #copyright a {
  color: #fff;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.5);
}

/* --- Article page ------------------------------------------------------ */

.post-hero {
  background: linear-gradient(180deg, var(--c-sky), #dfe9f2);
  padding: 4.8rem 3.2rem 6.4rem;
}
.post-hero .section-content {
  max-width: 1120px;
  padding: 0;
}
.post-crumbs {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
  font-size: 1.4rem;
  color: var(--c-primary-strong);
}
.post-crumbs a {
  color: inherit;
  text-underline-offset: 0.3rem;
}
.post-hero h1.post-title {
  max-width: 86rem;
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 2.2rem + 2vw, 4.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--c-ink);
}
.post-hero .post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  font-size: 1.5rem;
  color: #3f474c;
}
.post-hero .post-meta .post-author-photo {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}
.post-hero .post-meta .post-author {
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
}
.post-hero .post-meta .post-author:hover {
  text-decoration: underline;
}

section.blog.post-container .section-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6.4rem;
  max-width: 1120px;
  padding: 5.6rem 3.2rem 4rem;
}
section.blog.post-container aside.sidebar {
  position: sticky;
  top: 12rem;
  flex: 1 1 24rem;
  max-width: 28rem;
}
section.blog.post-container article.post {
  flex: 999 1 56rem;
  min-width: 0;
  max-width: 70rem;
  margin: 0;
  padding: 0;
}
section.blog.post-container article.post div.post-image {
  aspect-ratio: 16 / 8;
  margin: 0 0 3.2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
section.blog.post-container article.post div.post-image > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.post-toc summary {
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  list-style: none;
  cursor: default;
}
.post-toc summary::-webkit-details-marker {
  display: none;
}
.post-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-toc li a {
  display: block;
  padding: 0.6rem 0 0.6rem 1.4rem;
  border-left: 0.2rem solid var(--c-line);
  font-size: 1.5rem;
  line-height: 1.4;
  color: #4a4f53;
  text-decoration: none;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.post-toc li a:hover,
.post-toc li a.is-active {
  color: var(--c-ink);
  border-left-color: var(--c-primary);
}
.post-toc li a.is-active {
  font-weight: 500;
}
.post-help {
  margin-top: 2.8rem;
  padding: 2rem;
  border: 0.1rem solid var(--c-line);
  border-radius: 1.4rem;
  background: #fff;
}
.post-help-title {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--c-ink);
}
.post-help p {
  margin: 0 0 1.4rem;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #4a4f53;
}
.post-help-call {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  border-radius: 99rem;
  background: var(--c-primary-strong);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
}
.post-help-call:hover {
  background: var(--c-navy);
  color: #fff;
}

section.blog.post-container .post-body {
  font-size: 1.8rem;
  line-height: 1.75;
  color: var(--c-text);
}
section.blog.post-container .post-body > p:first-child {
  font-size: 2rem;
  line-height: 1.6;
  color: var(--c-ink);
}
section.blog.post-container .post-body p {
  margin-bottom: 2rem;
}
section.blog.post-container .post-body h2 {
  margin: 4rem 0 1.2rem;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-ink);
  scroll-margin-top: 12rem;
}
section.blog.post-container .post-body a {
  color: var(--c-primary-strong);
  text-underline-offset: 0.3rem;
  overflow-wrap: anywhere;
}
section.blog.post-container .post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.qa-answer {
  margin: 0 0 2rem;
  padding: 1.8rem 2.2rem;
  border-radius: 1.4rem;
  background: #f3f7fa;
}
.qa-answer p {
  margin: 0 !important;
}
.qa-label {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary-strong);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  border-top: 0.1rem solid var(--c-line);
  font-size: 1.4rem;
  color: var(--c-muted);
}
.post-share ul.social-sharing {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.post-share ul.social-sharing li {
  display: block;
  margin: 0;
}
.post-share ul.social-sharing li a {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 0.1rem solid var(--c-line);
  border-radius: 50%;
  color: var(--c-primary-strong);
  font-size: 1.8rem;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.post-share ul.social-sharing li a:hover {
  background: var(--c-wash);
  border-color: var(--c-sky);
}

.post-related {
  background: var(--c-wash);
}
.post-related .section-content {
  max-width: 1120px;
  padding: 5.6rem 3.2rem 7.2rem;
}
.post-related .related-heading {
  margin: 0 0 2.4rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--c-ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 2rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  padding: 2.2rem;
  border: 0.1rem solid #e0e9f1;
  border-radius: 1.4rem;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.related-card:hover {
  border-color: var(--c-sky);
  box-shadow: var(--shadow-sm);
  transform: translateY(-0.2rem);
}
.related-meta {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.related-title {
  padding-right: 2.4rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-ink);
}
.related-arrow {
  position: absolute;
  right: 2rem;
  bottom: 2.2rem;
  color: var(--c-primary);
}

/* --- Page title band and pagination ------------------------------------ */

section#page-title h1 {
  font-size: clamp(3.2rem, 2.4rem + 2vw, 4.8rem);
}
section#page-title ul.breadcrumb a {
  text-underline-offset: 0.3rem;
}
div.pagination ul {
  gap: 0.8rem;
}
div.pagination ul li {
  margin: 0;
}
div.pagination ul li a {
  display: grid;
  place-items: center;
  min-width: 4.4rem;
  height: 4.4rem;
  padding: 0 0.8rem;
  box-sizing: border-box;
  border-radius: 99rem;
  border-color: var(--c-line);
  background: var(--c-card);
}
div.pagination ul li a:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
div.pagination ul li.active a {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-surface);
}

/* --- FAQ listing page: compact, expandable quick questions. ------------ */

ol.faq-index {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 2.4rem 1.6rem 6.4rem;
  list-style: none;
}
ol.faq-index li.faq-index-item {
  overflow: hidden;
  border: 0.1rem solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-card);
  box-shadow: var(--shadow-sm);
}
ol.faq-index details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.8rem 2.2rem;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--c-ink);
  list-style: none;
  cursor: pointer;
}
ol.faq-index details summary::-webkit-details-marker {
  display: none;
}
ol.faq-index .faq-index-chevron {
  flex: 0 0 auto;
  color: var(--c-primary);
  transition: transform 0.2s var(--ease);
}
ol.faq-index details[open] .faq-index-chevron {
  transform: rotate(180deg);
}
ol.faq-index .faq-index-body {
  padding: 1.6rem 2.2rem 2.2rem;
  border-top: 0.1rem solid var(--c-line);
}
ol.faq-index .faq-index-body .answer {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--c-text);
}
ol.faq-index .faq-index-open {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--c-primary);
  text-decoration: none;
}
ol.faq-index .faq-index-open:hover {
  text-decoration: underline;
}

/* --- Phone action bar --------------------------------------------------- */

.mobile-actions {
  display: none;
}

/* --- Accessibility: focus, skip link, motion ---------------------------- */

:focus {
  outline: none;
}
:focus-visible {
  outline: 0.3rem solid var(--c-primary);
  outline-offset: 0.3rem;
}
.skip-link {
  position: absolute;
  left: 1.6rem;
  top: -10rem;
  z-index: 100;
  padding: 1rem 1.6rem;
  border-radius: var(--radius-sm);
  background: var(--c-primary-strong);
  color: #fff;
  font: 500 1.5rem var(--font-body);
  text-decoration: none;
}
.skip-link:focus {
  top: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Tablet and phone
   ========================================================================== */

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-1.2rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 949px) {
  /* Header: compact, menu button only. */
  header#page-header {
    height: 7.2rem;
  }
  header#page-header > .container {
    padding: 0 1.6rem;
  }
  header#page-header a.website-logo {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 0;
    margin-right: auto;
    text-align: left;
  }
  header#page-header a.website-logo div.logo-image {
    height: 4.4rem;
    margin-right: 0.8rem;
  }
  header#page-header a.website-logo .brand {
    font-size: 1rem;
  }
  header#page-header a.website-logo .dr-name {
    font-size: 1.8rem;
    padding-bottom: 0;
  }
  header#page-header a.website-logo .dr-title {
    display: none;
  }
  header#page-header ul.header-actions li.language-selection {
    display: none;
  }

  /* Menu sheet. */
  header#page-header nav.main {
    top: 7.2rem;
    padding: 0;
    border-top: 0.1rem solid var(--c-line);
    background: var(--c-surface);
  }
  header#page-header.nav-toggle-active nav.main {
    display: flex;
    flex-direction: column;
    animation: sheet-in 0.22s var(--ease);
  }
  header#page-header nav.main > ul {
    flex: 1 1 auto;
    padding: 0.8rem 1.6rem 2.4rem;
    overflow-y: auto;
  }
  header#page-header nav.main > ul > li {
    border-bottom: 0.1rem solid var(--c-line);
  }
  header#page-header nav.main > ul li a {
    padding: 1.6rem 0.4rem;
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 500;
    color: var(--c-ink);
  }
  header#page-header nav.main > ul li.active > a {
    color: var(--c-primary-strong);
  }
  header#page-header nav.main > ul li.has-dropdown > a {
    padding-right: 4.4rem;
  }
  header#page-header nav.main > ul ul {
    background: #f3f7fa;
    border-radius: 1.2rem;
  }
  header#page-header nav.main > ul ul li a {
    padding: 1.3rem 1.6rem;
    font-size: 1.7rem;
    font-weight: 400;
  }
  header#page-header nav.main > ul ul ul {
    background: #e9f0f6;
    margin: 0 0.8rem 0.8rem;
  }
  header#page-header nav.main > ul ul ul li a {
    font-size: 1.6rem;
  }
  header#page-header.nav-toggle-active li.has-dropdown::after,
  header#page-header.nav-toggle-active li.has-dropdown.dropdown-active::after {
    content: "";
    top: 1.7rem;
    right: 0.8rem;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    background: var(--chevron-down) center / contain no-repeat;
    transition: transform 0.2s var(--ease);
  }
  header#page-header.nav-toggle-active li.has-dropdown.dropdown-active::after {
    transform: rotate(180deg);
  }
  header#page-header.nav-toggle-active li.has-dropdown li.has-dropdown::after {
    top: 1.2rem;
  }

  header#page-header nav.main .nav-extras {
    position: sticky;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.6rem;
    border-top: 0.1rem solid var(--c-line);
    background: #fff;
  }
  header#page-header nav.main .nav-lang {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    padding: 0.4rem;
    border-radius: 99rem;
    background: var(--c-wash);
  }
  header#page-header nav.main .nav-lang a {
    padding: 1rem 0.4rem;
    border-radius: 99rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: var(--c-text);
  }
  header#page-header nav.main .nav-lang a[aria-current="true"] {
    background: #fff;
    box-shadow: var(--shadow-sm);
    color: var(--c-primary-strong);
  }
  header#page-header nav.main .nav-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 4.8rem;
    border-radius: 99rem;
    background: var(--c-primary-strong);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 500;
    text-decoration: none;
  }

  /* Hero: text first, portrait below. */
  section.home.hero .slide {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  section.home.hero .slide div.content {
    flex: none;
    padding: 2.8rem 2rem 0;
  }
  section.home.hero .slide img.logo {
    left: 0;
    height: 28rem;
  }
  section.home.hero .slide h1.title {
    font-size: inherit;
    line-height: 1.1;
  }
  section.home.hero .slide h1.title span.dr-name {
    font-size: 3.8rem;
    margin-bottom: 0.6rem;
  }
  section.home.hero .slide h1.title span.dr-title {
    font-size: 1.5rem;
  }
  section.home.hero .slide div.description {
    margin: 1.4rem 0 2rem;
    font-size: 1.6rem;
  }
  section.home.hero .slide div.fivi-hero {
    margin-bottom: 1.6rem;
  }
  section.home.hero .slide div.fivi-hero a.img-link {
    flex-direction: row;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    gap: 1.2rem;
    padding: 1rem 1.4rem;
    border-radius: 1.4rem;
  }
  section.home.hero .slide div.fivi-hero a .img-wrapper img {
    height: 3rem;
  }
  section.home.hero .slide div.fivi-hero a .fivi-text {
    flex: 1;
  }
  section.home.hero .slide div.fivi-hero a .slogan {
    font-size: 1.6rem;
  }
  section.home.hero .slide div.fivi-hero a .unit {
    display: none;
  }
  section.home.hero .slide div.image {
    flex: none;
    margin-top: 1.6rem;
    padding-bottom: 2.4rem;
  }
  section.home.hero .slide div.image::before {
    width: 30rem;
    height: 30rem;
  }
  section.home.hero .slide div.image img {
    height: 34rem;
  }
  section.home.hero .wave {
    display: none;
  }

  /* Info: a single card pulled up over the hero. */
  section.home.info {
    padding: 0 1.6rem;
  }
  section.home.info .section-content {
    flex-direction: column;
    margin-top: -2.4rem;
    border-radius: 1.8rem;
  }
  section.home.info .info-box + .info-box {
    border-left: 0;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
  }
  section.home.info .info-box h2.info-box-title {
    padding: 2.4rem 2.2rem 0.8rem;
    font-size: 2rem;
  }
  section.home.info .info-box div.info-box-content {
    padding: 0 2.2rem 2.4rem;
  }

  /* Services: compact rows. */
  section.home.services {
    padding: 6.4rem 0 4rem;
  }
  section.home.services > .section-content {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 0 1.6rem;
  }
  section.home.services article.service-panel {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    padding: 1.2rem;
    border-radius: 1.4rem;
  }
  section.home.services article.service-panel::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.4rem;
    width: 2rem;
    height: 2rem;
    transform: translateY(-50%);
    background: var(--chevron-right) center / contain no-repeat;
  }
  section.home.services article.service-panel .service-photo {
    flex: 0 0 7.6rem;
    width: 7.6rem;
    height: 7.6rem;
    border-radius: 1rem;
  }
  section.home.services article.service-panel .service-body {
    gap: 0.2rem;
    padding: 0 3.6rem 0 0;
  }
  section.home.services article.service-panel h2.title {
    font-size: 1.9rem;
  }
  section.home.services article.service-panel h2.title a::after {
    content: "";
    position: absolute;
    inset: 0;
  }
  section.home.services article.service-panel .service-count {
    display: block;
    font-size: 1.3rem;
    color: var(--c-muted);
  }
  section.home.services article.service-panel ul.sub-services,
  section.home.services article.service-panel .sub-services-more {
    display: none;
  }

  /* Calculator and latest articles. */
  section.home.calculator > .section-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 2.4rem 1.6rem;
  }
  section.home.calculator span.icon {
    width: 4rem;
    height: 4rem;
    margin-right: 0;
  }
  section.home.calculator span.icon svg,
  section.home.calculator span.icon img {
    width: 2.2rem;
    height: 2.2rem;
  }
  section.home.calculator .text {
    flex: 1 1 auto;
  }
  section.home.calculator .section-content .text h2.title {
    font-size: 2.1rem;
  }
  section.home.calculator .section-content .text h2.subtitle {
    font-size: 1.4rem;
    line-height: 1.4;
  }
  section.home.calculator .nice-button.inverted {
    min-height: 4.2rem;
    padding: 0 2rem;
  }
  section.home.latest-news {
    padding: 4rem 0 3.6rem;
  }
  section.home.latest-news > .section-content {
    padding: 0 1.6rem;
  }
  section.home.latest-news .section-head {
    margin-bottom: 2rem;
  }
  div.post-card-wrapper {
    gap: 1.2rem;
  }
  section.home.latest-news .post-card:first-child .post-card-image {
    height: 14rem;
  }
  section.home.latest-news .post-card:first-child .post-card-meta {
    padding: 1.4rem 1.6rem 0;
    font-size: 1.2rem;
  }
  section.home.latest-news .post-card:first-child .post-card-title {
    padding: 0.6rem 1.6rem 0;
  }
  section.home.latest-news .post-card:first-child .post-card-title a {
    font-size: 1.9rem;
  }
  section.home.latest-news .post-card:first-child .post-card-text-preview {
    padding: 0.8rem 1.6rem 1.6rem;
    font-size: 1.4rem;
  }
  section.home.latest-news .post-card:not(:first-child) {
    display: grid;
    grid-template-columns: 9rem 1fr;
    grid-template-rows: auto auto 1fr;
  }
  section.home.latest-news .post-card:not(:first-child) .post-card-image {
    grid-column: 1;
    grid-row: 1 / 4;
    position: relative;
    height: auto;
    min-height: 9rem;
    overflow: hidden;
  }
  section.home.latest-news .post-card:not(:first-child) .post-card-image > a {
    position: absolute;
    inset: 0;
    display: block;
  }
  section.home.latest-news .post-card:not(:first-child) .post-card-image > a > img:not(.fallback-mark) {
    height: 100%;
  }
  section.home.latest-news .post-card:not(:first-child) .post-card-image.is-fallback > a > img.fallback-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 80%;
    transform: translate(-50%, -50%);
  }
  section.home.latest-news .post-card:not(:first-child) .post-card-meta {
    grid-column: 2;
    padding: 1.2rem 1.2rem 0;
  }
  section.home.latest-news .post-card:not(:first-child) .post-card-title {
    grid-column: 2;
    padding: 0.4rem 1.2rem 1.2rem;
  }
  section.home.latest-news .post-card:not(:first-child) .post-card-title a {
    font-size: 1.7rem;
  }
  section.home.latest-news .post-card:not(:first-child) .post-card-text-preview {
    display: none;
  }

  /* FAQ band and footer. */
  section#faq-link.faq-band > .section-content {
    padding: 5.6rem 1.6rem;
  }
  footer#page-footer > .container {
    grid-template-columns: 1fr;
    gap: 3.2rem;
    padding: 4.8rem 2rem 3.2rem;
  }
  /* Keep the last footer lines clear of the floating action bar. */
  footer#page-footer #copyright {
    padding-bottom: 9.6rem;
  }

  /* Article. */
  .post-hero {
    padding: 3.2rem 2rem 4rem;
  }
  section.blog.post-container .section-content {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2.4rem;
    padding: 3.2rem 2rem;
  }
  /* The sidebar dissolves so its parts can be ordered around the article:
     contents first, the help box after the text. */
  section.blog.post-container aside.sidebar {
    display: contents;
  }
  section.blog.post-container .post-toc {
    order: 0;
    width: 100%;
  }
  section.blog.post-container article.post {
    order: 1;
    flex: none;
    width: 100%;
  }
  section.blog.post-container .post-help {
    order: 2;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
  }
  .post-toc details {
    border: 0.1rem solid var(--c-line);
    border-radius: 1.2rem;
    background: #fff;
  }
  .post-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 1.4rem 1.6rem;
    cursor: pointer;
  }
  .post-toc summary::after {
    content: "";
    width: 2rem;
    height: 2rem;
    background: var(--chevron-down) center / contain no-repeat;
    transition: transform 0.2s var(--ease);
  }
  .post-toc details[open] summary::after {
    transform: rotate(180deg);
  }
  .post-toc ol {
    padding: 0 1.6rem 1.2rem;
  }
  .post-related .section-content {
    padding: 4rem 2rem 8rem;
  }

  /* Floating call / directions bar. */
  .mobile-actions {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    left: 1.2rem;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 0.8rem;
    border: 0.1rem solid var(--c-line);
    border-radius: 99rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1rem 3rem rgba(20, 40, 58, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 2rem));
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .mobile-actions.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  body.nav-open .mobile-actions {
    display: none;
  }
  .mobile-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    min-height: 4.8rem;
    border: 0.15rem solid var(--c-sky);
    border-radius: 99rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--c-primary-strong);
    text-decoration: none;
  }
  .mobile-actions a.primary {
    border-color: var(--c-primary-strong);
    background: var(--c-primary-strong);
    color: #fff;
  }
}

@media (min-width: 950px) and (max-width: 1199px) {
  footer#page-footer > .container {
    grid-template-columns: 1fr 1fr;
  }
  section.home.services > .section-content,
  div.post-card-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  }
}

@media (min-width: 950px) {
  /* The sidebar follows the scroll: a long table of contents scrolls inside
     it, so the "Have questions?" box below stays in view. */
  section.blog.post-container aside.sidebar {
    top: 11rem;
    align-self: flex-start;
  }
  .post-toc ol {
    max-height: max(14rem, calc(100vh - 39rem));
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .post-help {
    margin-top: 2rem;
  }
}

/* --- Messenger ----------------------------------------------------------- */

.messenger-fab {
  position: fixed;
  right: 2.4rem;
  bottom: 2.4rem;
  z-index: 24;
  display: flex;
  align-items: center;
  height: 5.6rem;
  padding: 0 1.8rem;
  border-radius: 99rem;
  background: #0b5fd1;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 0.8rem 2.4rem rgba(11, 95, 209, 0.35);
  transition: background-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}
.messenger-fab:hover,
.messenger-fab:focus-visible {
  background: #094aa6;
  transform: translateY(-0.2rem);
}
.messenger-fab svg.icon {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
}
.messenger-fab-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.25s var(--ease), opacity 0.2s var(--ease), margin 0.25s var(--ease);
}
.messenger-fab:hover .messenger-fab-text,
.messenger-fab:focus-visible .messenger-fab-text {
  max-width: 26rem;
  margin-left: 1rem;
  opacity: 1;
}

@media (max-width: 949px) {
  /* On phones the link lives in the floating action bar instead. */
  .messenger-fab {
    display: none;
  }
  .mobile-actions {
    grid-template-columns: 1fr 1fr auto;
  }
  .mobile-actions a.messenger {
    width: 4.8rem;
    padding: 0;
    border-color: #0b5fd1;
    background: #0b5fd1;
    color: #fff;
  }
  .mobile-actions a.messenger svg.icon {
    width: 2.2rem;
    height: 2.2rem;
  }
}

/* Contact form: honeypot, captcha slot, status line */
section.contact.message .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
section.contact.message .turnstile {
  margin: 1rem 0 0;
  min-height: 65px;
}
section.contact.message .form-status {
  margin: 1rem 0 0;
  min-height: 1.5em;
  font-size: 1.1em;
  font-weight: 500;
}
section.contact.message .form-actions[hidden],
section.contact.message .form-success[hidden] {
  display: none;
}
section.contact.message .form-success {
  margin: 2rem 0 0;
  padding: 2.4rem 1.6rem;
  text-align: center;
  background: var(--c-primary-tint);
  border: 0.1rem solid var(--c-sky);
  border-radius: var(--radius-md);
  color: var(--c-primary-strong);
}
section.contact.message .form-success:focus {
  outline: none;
}
section.contact.message .form-success svg {
  margin: 0 auto 1rem;
}
section.contact.message .form-success p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--c-ink);
}
section.contact.message input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}
section.contact.message .form-status.is-error {
  color: #b3261e;
}
section.contact.message .form-status.is-ok {
  color: #1b6b3a;
}
