/* Preserve the serif section titles and sans-serif subheadings. */
#main :is(h2, h3) {
  font-weight: 700;
  font-synthesis: weight;
  text-decoration-line: underline;
  text-decoration-thickness: .07em;
  text-underline-offset: .18em;
}

.editorial-photo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 64px);
}

.editorial-photo-left { grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); }
.editorial-photo-left > .editorial-photo { grid-area: 1 / 1; }
.editorial-photo-left > .editorial-copy { grid-area: 1 / 2; }
.editorial-photo { margin: 0; overflow: hidden; background: #ded2c9; }
.editorial-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.editorial-copy .service-feature { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.service-design .editorial-copy :is(.service-point-grid, .service-card-grid),
.revision-teeth-cleaning-swiss-technology .editorial-copy .gbt-point-grid {
  grid-template-columns: minmax(0, 1fr);
}
.service-design .editorial-copy .service-point-grid > li:nth-child(n),
.revision-teeth-cleaning-swiss-technology .editorial-copy .gbt-point-grid > li:nth-child(n) {
  padding: 15px 0;
  border-inline: 0;
}
.editorial-copy .service-point-grid .gbt-point-icon,
.editorial-copy .gbt-point-grid .gbt-point-icon { width: 34px; height: 34px; flex: 0 0 34px; }
.editorial-copy .gbt-point-grid h3 { font-size: clamp(1rem, 1.4vw, 1.25rem); }
.editorial-copy .gbt-point-grid p { margin: 0; }
.editorial-copy .gbt-panel-note { margin-top: 20px; }
.editorial-photo-row + .gbt-evidence { margin-top: clamp(28px, 5vw, 64px); }

.editorial-protocol { display: grid; gap: clamp(26px, 4.5vw, 62px); }
.info-service-design .editorial-protocol .info-protocol-steps { gap: 0; }
.info-service-design .editorial-protocol .info-protocol-steps .service-info-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  padding: 14px 12px;
}
.editorial-protocol .info-step-top { grid-row: 1 / 3; margin: 0; }
.editorial-protocol .info-step-top .gbt-point-icon { display: none; }
.info-service-design .editorial-protocol .info-protocol-steps h3 { margin: 0 0 5px; }
.editorial-protocol-diagram figure {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 16px;
  background: #fff;
}
.editorial-protocol-diagram img { display: block; width: 100%; height: auto; }

.rev-team-section .rev-team-grid.editorial-team-row {
  --team-card: clamp(268px, 23vw, 332px);
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: var(--team-card);
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-color: #74594a #efe6df;
}
.editorial-team-row > article { scroll-snap-align: start; }
.editorial-team-row:focus-visible,
.editorial-team-controls button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.editorial-team-controls { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 16px; }
.editorial-team-controls[hidden] { display: none; }
.editorial-team-controls button {
  min-height: 44px;
  padding: 5px 16px;
  border: 1px solid #765d4f;
  border-radius: 24px;
  background: #fff;
  color: #36271f;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.editorial-team-controls button:hover { background: #f4ece6; }
.editorial-team-controls button[aria-disabled="true"] { opacity: .44; cursor: default; }
.rev-team-section .rev-team-grid.editorial-team-row figure {
  height: auto;
  aspect-ratio: 4 / 5;
}
.rev-team-section .editorial-team-row .rev-person-copy p {
  font-size: 1rem !important;
}
.rev-team-section .rev-team-grid.editorial-team-row .rev-team-greeters {
  grid-column: auto;
  display: block;
  margin: 0;
}
.rev-team-section .rev-team-grid.editorial-team-row .rev-team-greeters img { object-position: center bottom; }
.editorial-team-row .rev-team-greeters .rev-person-copy {
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23grain)' opacity='.2'/%3E%3C/svg%3E");
  position: relative;
  isolation: isolate;
  min-height: 230px;
  padding: 22px 20px 28px;
  background: var(--paper-grain), linear-gradient(140deg, #75513d, #4c3025);
  background-blend-mode: soft-light, normal;
  color: #fff8f3;
}
.editorial-team-row .rev-team-greeters .rev-person-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 8px 0 auto;
  width: min(76%, 228px);
  aspect-ratio: 640 / 513;
  background: url('./assets/logo-black-beige-original.webp') 50.20833% 16.36829% / 250% auto no-repeat;
  filter: brightness(0) invert(.43) sepia(.63) saturate(1.15)
    drop-shadow(2px 3px 2px #271810) drop-shadow(-1px -1px 1px #dfac87);
  opacity: .5;
  pointer-events: none;
}
.rev-team-section .editorial-team-row .rev-team-greeters .rev-person-copy :is(h3, p) { color: inherit; }
.editorial-team-row .rev-team-greeters .rev-role { font-weight: 700; }

@media (max-width: 760px) {
  .editorial-photo-row,
  .editorial-photo-left { grid-template-columns: minmax(0, 1fr); }
  .editorial-photo-left > :is(.editorial-photo, .editorial-copy) { grid-area: auto; }
  .editorial-photo-row > .editorial-photo { grid-row: 1; }
  .rev-team-section .rev-team-grid.editorial-team-row {
    --team-card: min(79vw, 330px);
  }
}
