/* Fonts */
@font-face {
  font-family: Inter;
  src: url(assets/inter.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Theme palette — edit these tokens to adjust site colors */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #fff;
  --panel: #f3f9f6;
  --surface-hero: #f5faf7;
  --surface-search: #f9fbfa;
  --surface-menu: #f6faf7;
  --surface-dialog: #f2f8f4;
  --surface-readerbar: #eef7f2;
  --surface-ghost: #ffffffd9;
  --surface-ghost-hover: #e4f5ec;
  --surface-service: #dff7ec;
  --surface-filter-active: #e0f7ed;
  --surface-footer: #dbfff3;
  --surface-photo-tag: #071710e8;

  /* Brand accents and interactive states */
  --mint: #00ffb7;
  --mint-hover: #55ffd0;
  --green: #08654e;
  --brand-accent: #008765;
  --hero-accent: #16745b;
  --link-accent: #009e71;
  --green-dark: #123f33;
  --green-dark-hover: #185542;

  /* Text */
  --text-inverse: #fff;
  --ink: #173b31;
  --muted: #4e675c;
  --text-nav: #344d42;
  --text-on-mint: #04281c;
  --text-skip: #081713;
  --text-ghost: #214b3a;
  --text-search-icon: #5e7769;
  --text-placeholder: #65796e;
  --text-filter: #4d6759;
  --text-photo-tag: #e1f5e7;
  --text-readtime: #586d60;
  --text-footer: #24533f;
  --text-footer-brand: #14553e;
  --text-reader: #3d574a;
  --text-source: #4a6355;
  --text-appointment-muted: #d1eedf;

  /* Borders */
  --border: #d3e2da;
  --border-brand: #afc6b9;
  --border-ghost: #bdcfc5;
  --border-service-divider: #caddd2;
  --border-service-icon: #b7decb;
  --border-filter-hover: #6ba089;
  --border-filter-active: #96cbb4;
  --border-story-hover: #59836b;
  --border-photo-tag: #c5ebd33d;
  --border-dialog: #bdcfc4;

  /* Shadows and overlays (alpha is part of the palette) */
  --shadow-dialog: #163c3029;
  --overlay-dialog: #193e325c;
  --shadow-appointment: #123f3326;

  /* Typography */
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* Base styles and shared utilities */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 26px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.5 Inter, Arial, sans-serif;
}

body > main {
  flex: 1 0 auto;
}

body > header,
body > footer {
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a,
button,
input,
textarea,
summary {
  touch-action: manipulation;
}

button {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - clamp(40px, 10vw, 168px), 1392px);
  margin-inline: auto;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.skip,
.sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  clip-path: none;
  z-index: 15;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 8px;
  background: var(--mint);
  color: var(--text-skip);
}

/* Header, navigation, and buttons */
header {
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
  background: var(--bg);
}

.head,
.head nav,
.nav-actions,
.brand,
.btn,
.actions,
.service,
.kicker,
.readtime,
.filters,
.searchbox,
footer .wrap,
.readerbar {
  display: flex;
  align-items: center;
}

.head {
  height: 80px;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  width: fit-content;
  gap: 7px;
  line-height: 1;
}

.brand .icon {
  width: 36px;
  height: 40px;
  color: var(--green);
  stroke-width: 1.5;
}

.brand b {
  white-space: nowrap;
  font-size: 2.1rem;
  letter-spacing: -0.06em;
  font-weight: 650;
  line-height: 0.92;
}

.brand b span {
  color: var(--brand-accent);
}

.brand small {
  font: 500 0.62rem/1.34 var(--mono);
  letter-spacing: 0.13em;
  border-left: 1px solid var(--border-brand);
  padding-left: 12px;
  margin: 4px 0 0 6px;
  color: var(--muted);
}

.head nav {
  gap: clamp(20px, 3vw, 44px);
}

.head nav a {
  font-size: 0.92rem;
  color: var(--text-nav);
}

.head nav a:hover,
footer a:hover {
  color: var(--green);
}

.btn {
  justify-content: center;
  gap: 10px;
  font-weight: 620;
  border-radius: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.94rem;
  line-height: 1.15;
  transition: background 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
}

.mint {
  border: 1px solid var(--mint);
  background: var(--mint);
  color: var(--text-on-mint);
}

.mint:hover {
  background: var(--mint-hover);
}

.nav-visit {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
}

.nav-visit .icon {
  width: 17px;
  height: 17px;
}

.ghost {
  border: 1px solid var(--border-ghost);
  background: var(--surface-ghost);
  color: var(--text-ghost);
}

.ghost:hover {
  background: var(--surface-ghost-hover);
}

.menu {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 0%, var(--bg) 100%)
      bottom / 100% clamp(6rem, 15vw, 12rem) no-repeat,
    linear-gradient(90deg, var(--surface-hero) 0%, var(--bg) 67%);
}

.hero-inner {
  min-height: clamp(435px, 35vw, 550px);
  display: grid;
  grid-template-columns: 1.07fr 1fr;
  align-items: center;
  position: relative;
}

.hero-copy {
  padding: 50px 0 52px;
  z-index: 2;
}

.kicker {
  font-size: 0.88rem;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(3.8rem, 5.5vw, 6rem);
  line-height: 1.015;
  letter-spacing: -0.069em;
  margin: 0 0 20px;
  font-weight: 520;
}

.hero h1 em {
  font-style: normal;
  color: var(--hero-accent);
}

.intro {
  font-size: clamp(1rem, 1.18vw, 1.16rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 490px;
}

.actions {
  gap: 12px;
  margin-top: 27px;
}

.actions .icon {
  width: 17px;
  height: 17px;
}

/* Molar preview and motion controls */
.specimen {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}

.molar-stage {
  position: relative;
  width: min(100%, 430px);
  height: clamp(300px, 30vw, 430px);
}

.molar,
.molar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.molar {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.motion-control {
  position: absolute;
  right: 7%;
  bottom: 8%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--green);
  opacity: 0;
  transition: opacity 0.15s;
}

.specimen:hover .motion-control,
.motion-control:focus-visible {
  opacity: 1;
}

.motion-control svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.motion-control .pause-icon,
.motion-control.playing .play-icon {
  display: none;
}

.motion-control.playing .pause-icon {
  display: block;
}

@media (hover: none) {
  .motion-control {
    opacity: 1;
  }
}

/* Service shortcuts */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 23px;
}

.service {
  gap: 12px;
  padding-left: clamp(12px, 1.5vw, 24px);
  border-left: 1px solid var(--border-service-divider);
}

.service:first-child {
  border: 0;
  padding-left: 0;
}

.service:hover strong {
  color: var(--green);
}

.service-icon {
  color: var(--green);
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: var(--surface-service);
  border: 1px solid var(--border-service-icon);
  border-radius: 11px;
}

.service-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.45;
}

.service strong,
.service small {
  display: block;
}

.service strong {
  font-size: 1.01rem;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.service small {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Content sections */
main > section.wrap {
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
}

main > section.wrap + section.wrap {
  border-block-start: 1px solid var(--border);
}

/* Blog, search, and filters */
.blog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
}

h2 {
  color: var(--green);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 510;
}

.blog-head p,
.section-intro > p:last-child {
  color: var(--muted);
  margin-top: 11px;
}

.searchbox {
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--surface-search);
  padding: 9px 12px;
  border-radius: 7px;
  max-width: 225px;
}

.searchbox .icon {
  width: 16px;
  height: 16px;
  color: var(--text-search-icon);
}

.searchbox input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 0.86rem;
}

.searchbox input::placeholder,
textarea::placeholder {
  color: var(--text-placeholder);
}

.filters {
  gap: 8px;
  margin-bottom: 20px;
}

.filters button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-filter);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
}

.filters button:hover {
  border-color: var(--border-filter-hover);
}

.filters button[aria-pressed="true"] {
  color: var(--green);
  border-color: var(--border-filter-active);
  background: var(--surface-filter-active);
}

.stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.story {
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
  background: var(--bg);
}

.story-link {
  display: block;
  height: 100%;
}

.story:hover {
  border-color: var(--border-story-hover);
}

.story-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.98;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.story:hover img {
  transform: scale(1.026);
}

.photo-tag {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: var(--surface-photo-tag);
  color: var(--text-photo-tag);
  border: 1px solid var(--border-photo-tag);
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 0.76rem;
}

.story-text {
  padding: 20px;
}

.readtime {
  font: 400 0.76rem var(--mono);
  color: var(--text-readtime);
  gap: 6px;
}

.readtime .icon {
  width: 13px;
  height: 13px;
}

.story h3 {
  font-size: clamp(1.16rem, 1.5vw, 1.36rem);
  letter-spacing: -0.045em;
  font-weight: 560;
  line-height: 1.2;
  margin: 12px 0 9px;
}

.story-text p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.read {
  display: inline-block;
  color: var(--green);
  font-size: 0.86rem;
  margin-top: 19px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.empty {
  color: var(--muted);
  padding: 30px 0;
}

.empty button,
.backlink {
  border: 0;
  background: none;
  color: var(--green);
  text-decoration: underline;
}

/* Care sections and accordions */
.care {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8%;
}

.section-intro h2 {
  font-size: clamp(1.45rem, 1.9vw, 1.75rem);
  margin-top: 0;
}

.section-intro > p:last-child {
  max-width: 430px;
}

.row {
  border-bottom: 1px solid var(--border);
}

.row summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 530;
  list-style: none;
  padding: 17px 0;
  cursor: pointer;
}

.row summary::-webkit-details-marker {
  display: none;
}

.row summary .icon {
  width: 16px;
  color: var(--green-dark);
}

.row[open] .icon {
  transform: rotate(45deg);
}

.row p {
  color: var(--muted);
  padding-bottom: 20px;
}

/* Footer */
footer {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--surface-footer) 28%, var(--mint) 100%);
  color: var(--green-dark);
}

footer .wrap {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2rem, 4vw, 3.5rem) 1.5rem;
}

footer p {
  font-size: 0.85rem;
  color: var(--text-footer);
}

.footer-about p {
  max-width: 35ch;
  margin-top: 0.75rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0.6rem 1rem;
  font-size: 0.9rem;
}

.footer-nav h2 {
  grid-column: 1 / -1;
}

footer h2 {
  margin-bottom: 0.25rem;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  border-top: 1px solid var(--border-filter-active);
  padding-top: 1.25rem;
  font-size: 0.85rem;
}

footer .brand .icon,
footer .brand b span,
footer .brand small {
  color: var(--text-footer-brand);
}

footer .brand b {
  font-size: 1.72rem;
}

@media (max-width: 900px) {
  footer .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

}

/* Article reader dialog */
dialog {
  background: var(--surface-dialog);
  color: var(--ink);
  border: 1px solid var(--border-dialog);
  border-radius: 16px;
  width: min(650px, calc(100% - 28px));
  padding: 0;
  max-height: 86dvh;
  overflow: hidden;
  box-shadow: 0 25px 100px var(--shadow-dialog);
}

/* Only the article scrolls; the header stays outside the scrolling area. */
dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog::backdrop {
  background: var(--overlay-dialog);
  backdrop-filter: blur(5px);
}

body:has(dialog[open]) {
  overflow: hidden;
}

.readerbar {
  flex-shrink: 0;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--surface-readerbar);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--green);
  z-index: 1;
}

.dismiss,
.menu {
  border: 0;
  background: transparent;
  padding: 8px;
  line-height: 0;
}

.dismiss:hover {
  color: var(--green);
}

#reader-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 30px clamp(22px, 4vw, 45px) 40px;
}

#reader-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 12px 0;
}

#reader-content h3 {
  font-size: 1.12rem;
  margin: 25px 0 7px;
  letter-spacing: -0.025em;
}

#reader-content p:not(.kicker) {
  color: var(--text-reader);
  line-height: 1.7;
}

.source {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 15px;
  font-size: 0.86rem;
  color: var(--text-source);
}

.source a {
  color: var(--green);
  text-decoration: underline;
}

.backlink {
  display: inline-block;
  margin-top: 15px;
}

#reader-content .backlink {
  display: none;
}

/* Responsive layouts and reduced motion */
@media (min-width: 1600px) {
  .hero-inner {
    min-height: 555px;
  }
}

@media (max-width: 900px) {
  .head {
    gap: 18px;
    height: 70px;
  }

  .hero-inner {
    min-height: 405px;
    grid-template-columns: 1.15fr 1fr;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 6.4vw, 4.2rem);
  }

  .hero-copy {
    padding-block: 38px;
  }

  .actions {
    gap: 8px;
  }

  .btn {
    padding-inline: 15px;
    font-size: 0.86rem;
  }

  .service {
    padding-left: 15px;
    gap: 10px;
  }

  .service small {
    font-size: 0.76rem;
  }

  .service strong {
    font-size: 0.9rem;
  }

  .service-icon {
    width: 37px;
    height: 37px;
  }

  .stories {
    gap: 13px;
  }

  .story-text {
    padding: 15px;
  }

  .care {
    gap: 4%;
  }

  .brand b {
    font-size: 1.72rem;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .head {
    height: 64px;
  }

  .brand .icon {
    width: 29px;
    height: 32px;
  }

  .brand small {
    padding-left: 8px;
    margin-left: 3px;
    font-size: 0.55rem;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav-visit {
    min-height: 35px;
    padding-inline: 10px;
    font-size: 0.8rem;
  }

  .nav-visit .icon {
    width: 15px;
    height: 15px;
  }

  .menu {
    display: block;
  }

  .head nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 16px 18px;
    background: var(--surface-menu);
    border-bottom: 1px solid var(--border);
    justify-content: space-around;
    gap: 10px;
  }

  .head nav.open {
    display: flex;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy {
    padding: 34px 0 0;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 10.5vw, 4.15rem);
    margin: 17px 0 12px;
  }

  .intro {
    font-size: 1rem;
    max-width: 460px;
  }

  .actions {
    margin-top: 20px;
  }

  .specimen {
    height: clamp(230px, 62vw, 300px);
    width: min(100%, 480px);
    align-self: center;
    margin: 3px 0 6px;
  }

  .molar-stage {
    height: 100%;
    width: 100%;
    max-height: 300px;
  }

  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 14px;
    gap: 16px 6px;
  }

  .service:nth-child(odd) {
    border-left: 0;
  }

  .service {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
    padding: 0;
  }

  .service-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .service-icon .icon {
    width: 19px;
    height: 19px;
  }

  .service strong {
    font-size: 0.77rem;
    line-height: 1.25;
  }

  .service small {
    display: none;
  }

  .blog-head {
    display: block;
    margin-bottom: 14px;
  }

  .blog-head p {
    font-size: 0.95rem;
  }

  .searchbox {
    margin-top: 16px;
    max-width: 100%;
  }

  .filters {
    gap: 6px;
  }

  .filters button {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  .stories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story-photo {
    aspect-ratio: 2.05;
  }

  .care {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .readerbar {
    padding-inline: 16px;
  }

  footer .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding-block: 1.75rem 1.25rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

/* Sticky appointment prompt */
:root {
  --appointment-width: clamp(18rem, 33.333333vw, 30rem);
  --appointment-inset: clamp(1rem, 1.5vw, 1.5rem);
  --appointment-height: 4.75rem;
}

html {
  scroll-padding-bottom: calc(
    var(--appointment-height) + 2 * var(--appointment-inset) +
    env(safe-area-inset-bottom, 0px)
  );
}

/* The sticky row ends with main, so the footer always clears the card. */
.appointment-prompt {
  position: sticky;
  bottom: 0;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  padding-inline:
    max(var(--appointment-inset), env(safe-area-inset-left, 0px))
    max(var(--appointment-inset), env(safe-area-inset-right, 0px));
  padding-bottom: max(var(--appointment-inset), env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.appointment-link {
  pointer-events: auto;
  width: min(100%, var(--appointment-width));
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: var(--appointment-height);
  padding: 0.875rem 1.25rem;
  color: var(--text-inverse);
  background: var(--green-dark);
  border-radius: 0.9rem;
  box-shadow: 0 4px 22px var(--shadow-appointment);
}

.appointment-link:hover {
  background: var(--green-dark-hover);
}

.appointment-link:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: -4px;
}

.appointment-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--mint);
  color: var(--green-dark);
  border-radius: 50%;
}

.appointment-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.appointment-copy {
  min-width: 0;
  line-height: 1.35;
}

.appointment-copy strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
}

.appointment-copy > span {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  color: var(--text-appointment-muted);
}

@media (max-width: 48rem) {
  :root {
    --appointment-inset: 0.75rem;
    --appointment-height: 4.25rem;
  }

  .appointment-prompt {
    justify-content: center;
  }

  .appointment-link {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 1rem;
  }

  .appointment-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 53rem) {
  header .brand small {
    display: none;
  }
}

@media (max-width: 23rem) {
  .hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.15rem);
  }
}

/* Treatment sections: shared copy column and media frame for future galleries. */
.treatment-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "copy media"
    "action action";
  align-items: center;
  gap: 1.5rem clamp(1.5rem, 5vw, 5rem);
}

.treatment-media {
  grid-area: media;
  width: 100%;
  max-width: 36rem;
  justify-self: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.8rem;
  background: var(--bg);
}

.treatment-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treatment-copy {
  grid-area: copy;
  min-width: 0;
  max-width: 62ch;
}

.treatment-copy > h2 {
  margin-bottom: 0.8rem;
}

.treatment-section > .treatment-cta {
  grid-area: action;
  justify-self: start;
}

/* Prosthetics details and accordion animation */
.prosthetics-intro {
  margin-top: 0;
  max-width: 48ch;
  color: var(--muted);
}

.prosthetics-features {
  margin-top: 1.35rem;
}

.prosthetics-features h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.prosthetics-features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prosthetics-features li {
  border-left: 2px solid var(--green);
  padding-left: 0.75rem;
}

.prosthetics-features strong {
  display: block;
  font-weight: 600;
}

.prosthetics-features span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.prosthetics-types {
  margin-block: 1.35rem;
}

.prosthetics-types dt {
  font-weight: 600;
}

.prosthetics-types dd {
  margin: 0.15rem 0 0.85rem;
  color: var(--muted);
}

.prosthetics .btn {
  width: fit-content;
}

.row summary .icon {
  transition: transform 0.36s ease-in-out;
}

.row[data-closing] .icon {
  transform: rotate(0);
}

@media (max-width: 48rem) {
  .treatment-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "media"
      "action";
  }
}

@media (max-width: 23rem) {
  .head {
    gap: 0.5rem;
  }

  .head .brand b {
    font-size: 1.4rem;
  }
}

/* Treatment copy and links */
.hero-experience {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.implant-link {
  color: var(--link-accent);
  text-decoration: none;
}

.implant-link:is(:hover, :focus-visible) {
  color: var(--green);
}

.care-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.17em;
}

.btn.treatment-cta {
  width: fit-content;
  max-width: 100%;
  text-align: center;
  min-height: 3.25rem;
  padding-inline: 1.5rem;
  font-weight: 650;
}

.treatment-text {
  max-width: 62ch;
  color: var(--muted);
}

.treatment-text .treatment-cta {
  margin-top: 1.25rem;
}

.treatment-text p + p {
  margin-top: 0.8rem;
}

.treatment-text h3 {
  color: var(--ink);
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
}

.treatment-text p + h3 {
  margin-top: 1.4rem;
}

@media (max-width: 42.5rem) {
  .btn.treatment-cta {
    width: 100%;
  }
}

/* Standalone blog articles */
.article-page {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.article-content {
  max-width: 68ch;
  margin-inline: auto;
}

.article-content h1 {
  margin: 0.75rem 0 1rem;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 560;
}

.article-content p,
.article-body {
  color: var(--text-reader);
  line-height: 1.7;
}

.article-body p + p {
  margin-top: 1rem;
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  margin: 1.5rem 0 0.5rem;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.article-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.17em;
}

.article-body pre,
.article-body table {
  max-width: 100%;
  overflow-x: auto;
}

.article-body pre {
  padding: 1rem;
  background: var(--panel);
}

.article-byline {
  margin-top: 0.75rem;
  font-size: 0.86rem;
}

.source ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}
