/* ==========================================================================
   Service pages — loaded after main.css on /adelaide-general-dentistry/ and
   the treatment pages that follow. Kept separate so homepage work in
   main.css can't collide with it.
   Each page sets its category colour on <body>: General = green.
   ========================================================================== */

.page-general { --cat: var(--green); --cat-text: var(--green-text); --cat-soft: var(--green-soft); }

.page-service main > section { padding-top: 3.2rem; padding-bottom: 3.2rem; }

/* ---------- hero: the photo's left half is empty wall, so the copy sits on it ---------- */

/* hangs from the header: flush to the nav line with square top corners,
   rounded only at the bottom, and the colour offset dropped below */
.page-service .page-hero { padding-top: 0; padding-bottom: 2.4rem; }
.page-hero-frame {
  position: relative;
  min-height: 27rem;
  border-radius: 0 0 1.4rem 1.4rem;
  overflow: hidden;
  background: #f3f2ef;
  box-shadow: 1rem 1rem 0 0 var(--cat-soft);
}
.page-hero-img,
.page-hero-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.page-hero-img img { object-fit: cover; object-position: 80% center; }
/* keeps the copy readable where the dentist edges under it on narrower desktops */
.page-hero-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250, 247, 242, .9) 0%, rgba(250, 247, 242, .72) 32%, rgba(250, 247, 242, 0) 56%);
  pointer-events: none;
}
/* 38rem keeps the copy left of the dentist (he starts ~55% across) while
   leaving room for both buttons on one line */
.page-hero-copy {
  position: relative; z-index: 1;
  max-width: 38rem;
  padding: 2.8rem 3rem;
}
.page-hero h1 {
  font-size: clamp(2rem, 2.8vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: .7rem;
  text-wrap: balance;
}
.page-hero-sub { font-size: 1.08rem; color: #3c4459; max-width: 30rem; margin-bottom: 1.5rem; }
.page-hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.crumbs ol {
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
  font-size: .88rem; color: #565e73;
}
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #8a91a3; }
.crumbs a { color: #3c4459; text-underline-offset: .2em; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--cat-text); font-weight: 700; }

/* ---------- first visit: lead on the left, the three steps on the right ---------- */

.pg-intro-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.4rem;
  align-items: start;
}
.pg-intro-lead h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: .9rem; }
.pg-intro-lead p { font-size: 1.08rem; color: #3c4459; max-width: 34rem; margin: 0; }
.pg-steps {
  list-style: none; margin: 0; padding: 0;
  counter-reset: pgstep;
  display: grid; gap: 1.3rem;
}
.pg-steps li {
  counter-increment: pgstep;
  position: relative;
  padding: 1.25rem 1.4rem 1.25rem 4.6rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
/* the sequence is real (first visit order), so it earns numbers */
.pg-steps li::before {
  content: counter(pgstep);
  position: absolute; left: 1.3rem; top: 1.2rem;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink);
  background: var(--bone);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: .22rem -.22rem 0 0 var(--cat);
}
.pg-steps h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.pg-steps p { margin: 0; font-size: .98rem; color: #3c4459; }

/* ---------- services: one practice photo beside the list ---------- */

.pg-services-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 3.4rem;
  align-items: start;
}
.pg-services-photo { margin: 0; aspect-ratio: 1; }
.pg-services-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pg-services-body h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: 1.1rem; }
.pg-service-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
}
.pg-service-list li {
  padding: .95rem 0 1rem;
  border-top: 1px solid rgba(31, 38, 57, .14);
}
.pg-service-list h3 {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.08rem; margin-bottom: .2rem;
}
.pg-service-list h3::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cat);
  flex: 0 0 auto;
}
.pg-service-list p { margin: 0; font-size: .92rem; line-height: 1.5; color: #565e73; }
.pg-range { font-size: .98rem; color: #3c4459; max-width: 62ch; margin: 1.3rem 0 0; }
.pg-range + .pg-range { margin-top: .6rem; }
.pg-range a, .faq-a a, .pg-book p a { color: var(--ink); font-weight: 700; text-underline-offset: .18em; }
.page-service a[href^="tel:"] { white-space: nowrap; }

/* ---------- symptoms ---------- */

.page-service .pg-symptoms { background: var(--bone-2); }
.pg-symptoms .section-head { margin-bottom: 2rem; }
.pg-symptoms .section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); text-wrap: balance; }
.symptom-list {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 920px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .65rem;
}
.symptom-list li {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: .42rem 1.05rem;
  font-size: .98rem;
}
.symptom-list li:nth-child(3n+1) { box-shadow: .2rem -.2rem 0 0 var(--green-soft); }
.symptom-list li:nth-child(3n+2) { box-shadow: .2rem -.2rem 0 0 var(--violet-soft); }
.symptom-list li:nth-child(3n) { box-shadow: .2rem -.2rem 0 0 var(--cobalt-soft); }

/* ---------- FAQ: native details/summary, so it works without JS ---------- */

.pg-faq .section-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.25rem); }
.faq-list { max-width: 52rem; margin: 0 auto; display: grid; gap: .9rem; }
.faq {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  transition: box-shadow .35s var(--snap-ease);
}
.faq[open] { box-shadow: .45rem -.45rem 0 0 var(--cobalt-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 1.1rem 3.4rem 1.1rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  line-height: 1.3;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 1.3rem; top: 50%;
  width: 1.4rem; height: 1.4rem; margin-top: -.7rem;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform .3s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.faq-a { padding: 0 1.4rem 1.3rem; }
.faq-a p { margin: 0 0 .8rem; font-size: .98rem; color: #3c4459; max-width: 68ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- book ---------- */

.pg-book-card {
  max-width: 52rem;
  margin: 0 auto 3.2rem;
  padding: 2.4rem 2.4rem 2.2rem;
  text-align: center;
  background: #fff;
  border: 2px solid var(--ink);
}
.pg-book-rating {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .4rem .8rem;
  margin-bottom: 1.1rem;
  font-size: .95rem;
}
.pg-book-score { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.pg-book-stars { color: var(--green); letter-spacing: .12em; }
.pg-book-rating a { color: #3c4459; text-underline-offset: .2em; }
.pg-book h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-bottom: .5rem; }
.pg-book p { color: #3c4459; margin-bottom: 1.5rem; }
.pg-book-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- responsive ---------- */

/* below the container width the site's .2rem section padding lets the
   offsets run into the screen edge */
@media (max-width: 1240px) {
  .page-service main > section { padding-left: 1.6rem; padding-right: 1.6rem; }
}

/* small laptops/tablets: the frame gets narrower than the photo, so pin the
   photo to its right edge and narrow the copy to keep it off the dentist */
@media (max-width: 1100px) and (min-width: 901px) {
  .page-hero-frame:not(.page-hero-split) .page-hero-img img { object-position: 100% center; }
  .page-hero-frame:not(.page-hero-split) .page-hero-copy { max-width: 31rem; padding: 2.4rem 2.4rem; }
}

@media (max-width: 900px) {
  .page-service main > section { padding: 2.4rem 1.2rem; }
  .page-service .page-hero { padding-top: 0; padding-bottom: .4rem; }

  /* phone: the people crop sits on top, the copy below it */
  .page-hero-frame {
    min-height: 0; overflow: visible;
    border-radius: 0; background: none; box-shadow: none;
  }
  .page-hero-frame::after { display: none; }
  .page-hero-img {
    position: relative; display: block;
    border-radius: 0 0 1.2rem 1.2rem; overflow: hidden;
    aspect-ratio: 900 / 607;
    box-shadow: .7rem .7rem 0 0 var(--cat-soft);
  }
  .page-hero-img img { position: absolute; }
  .page-hero-copy { max-width: none; padding: 1.6rem 0 0; }
  .page-hero-ctas .btn { flex: 1 1 auto; text-align: center; }

  .pg-intro-grid, .pg-services-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pg-steps li { padding-left: 4.2rem; }
  .pg-steps li::before { left: 1.1rem; }
  .pg-services-photo { aspect-ratio: 4 / 3; }
  .pg-service-list { grid-template-columns: 1fr; }
  .faq summary { font-size: 1.02rem; padding-right: 3rem; }
  .pg-book-card { padding: 1.8rem 1.3rem; }
  .pg-book-ctas .btn { flex: 1 1 auto; text-align: center; }
}

/* ==========================================================================
   Article pages (the symptom / concern pages under General dentistry)
   ========================================================================== */

.pg-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 4rem;
  align-items: start;
}
.prose { max-width: 44rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin: 2.4rem 0 .7rem; text-wrap: balance; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .55rem; }
.prose h4 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.prose p { font-size: 1.04rem; line-height: 1.7; color: #3c4459; margin: 0 0 1rem; }
.prose ul { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.prose li + li { margin-top: .45rem; }
.prose li { position: relative; padding-left: 1.5rem; font-size: 1.02rem; line-height: 1.6; color: #3c4459; }
.prose li::before {
  content: "";
  position: absolute; left: .2rem; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cat);
}
.prose a { color: var(--ink); font-weight: 700; text-underline-offset: .18em; }
.prose strong { color: var(--ink); }

/* booking stays in view beside the article on desktop */
.pg-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.pg-aside-card { background: #fff; border: 2px solid var(--ink); padding: 1.6rem 1.5rem 1.5rem; }
.pg-aside-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; line-height: 1.25;
  margin: 0 0 .4rem;
}
.pg-aside-phone {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 1.7rem;
  color: var(--cat-text);
  text-decoration: none;
  margin-bottom: 1.1rem;
}
.pg-aside-phone:hover { text-decoration: underline; text-underline-offset: .15em; }

/* symptom chips are links to each page; the current page is filled in */
.symptom-list li { padding: 0; }
.symptom-list a, .symptom-list span {
  display: block;
  padding: .42rem 1.05rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s;
}
.symptom-list a:hover { background: var(--cat-soft); }
.symptom-list a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.symptom-list [aria-current] { background: var(--ink); color: var(--bone); font-weight: 700; }

@media (max-width: 900px) {
  .pg-article-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pg-aside { position: static; }
  .prose h2 { margin-top: 2rem; }
}

/* service items that already have their own page */
.pg-service-list h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.pg-service-list h3 a:hover { color: var(--cat-text); }

/* ---------- article hero: each page's own banner, copy on a white panel ---------- */

.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 24rem;
  background: #fff;
}
.page-hero-split::after { display: none; }
.page-hero-split .page-hero-copy { max-width: none; padding: 2.4rem 2.6rem; align-self: center; }
.page-hero-split .page-hero-img { position: relative; inset: auto; height: auto; }
.page-hero-split .page-hero-img img { object-position: var(--focus, 50%) 50%; }
.page-article .page-hero h1 { font-size: clamp(1.85rem, 2.5vw, 2.25rem); }

/* ---------- photos inside the article ---------- */

.prose::after { content: ""; display: table; clear: both; }
.pg-fig {
  float: right;
  width: min(44%, 19rem);
  margin: .35rem 0 1.4rem 2rem;
}
.pg-fig img {
  width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: .55rem -.55rem 0 0 var(--cat-soft);
}
.pg-fig-wide { float: none; width: 100%; margin: 1.8rem 0 2rem; }
.prose h2, .prose h3 { clear: none; }

@media (max-width: 900px) {
  .page-hero-split { display: flex; flex-direction: column; background: none; }
  .page-hero-split .page-hero-img { order: -1; }
  .page-hero-split .page-hero-copy { padding: 1.6rem 0 0; }
  .pg-fig { float: none; width: 100%; max-width: 26rem; margin: 1.4rem 0 1.6rem; }
}

/* ==========================================================================
   Main pages (build2): category colours, banner/plain heroes, cards, team,
   contact, tables
   ========================================================================== */

.page-cosmetic { --cat: var(--violet); --cat-text: var(--violet-text); --cat-soft: var(--violet-soft); }
.page-education { --cat: var(--cobalt); --cat-text: var(--cobalt-text); --cat-soft: var(--cobalt-soft); }

/* banner: the whole image (group photos, banners with baked-in text), copy beneath */
.page-hero-banner { display: block; min-height: 0; background: #fff; }
.page-hero-banner::after { display: none; }
.page-hero-banner .page-hero-img { position: relative; display: block; aspect-ratio: var(--ar); }
.page-hero-banner .page-hero-copy { max-width: 50rem; padding: 1.9rem 2.6rem 2.2rem; }
/* plain: pages with no image on the old site */
.page-hero-plain { min-height: 0; background: var(--bone-2); }
.page-hero-plain::after { display: none; }
.page-hero-plain .page-hero-copy { max-width: 50rem; padding: 2.6rem 2.8rem 2.4rem; }

.faq-title::first-letter { text-transform: uppercase; }

/* buttons that sat in the old copy */
.pg-btns { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.2rem 0 1.6rem; }

/* single-column pages (About, Education, policy) */
.pg-article-single > .prose { max-width: 48rem; margin: 0 auto; }
.pg-article-single > .prose + .pg-cards, .pg-article-single > .pg-cards + .prose { margin-top: 2.4rem; }
.pg-article-main > .prose + .pg-cards, .pg-article-main > .pg-cards + .prose { margin-top: 2rem; }

/* cards (Cosmetic services, Education articles) */
.pg-cards {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.8rem;
}
.pg-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.pg-card-img { aspect-ratio: 3 / 2; background: var(--bone-2); }
.pg-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pg-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.25rem 1.3rem; }
.pg-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.pg-card p { margin: 0 0 .8rem; font-size: .95rem; line-height: 1.55; color: #3c4459; }
.pg-card-cta { margin: auto 0 0 !important; padding-top: .3rem; }
.pg-card-cta .btn { font-size: .92rem; padding: .6rem 1.15rem; }

/* tables in old copy (policy page) */
.pg-table { overflow-x: auto; margin: 1.2rem 0 1.6rem; }
.pg-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.pg-table td { border: 1px solid rgba(31, 38, 57, .16); padding: .6rem .8rem; vertical-align: top; color: #3c4459; }

/* comparison table (clear aligners vs fixed braces): a white card in the FAQ's ink-border-and-offset language,
   the treatment the page is about carried by a soft category wash down its column */
.pg-compare {
  clear: both;
  margin: 2.4rem 0 2.6rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: .55rem -.55rem 0 0 var(--cat-soft);
}
.pg-compare table { line-height: 1.5; }
.pg-compare caption {
  caption-side: top; text-align: left;
  padding: 1.3rem 1.25rem 1rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: var(--ink);
}
.pg-compare th, .pg-compare td {
  border: 0; border-top: 1px solid rgba(31, 38, 57, .1);
  padding: .95rem 1.1rem; text-align: left; vertical-align: top;
}
.pg-compare thead tr > * { border-top: 0; border-bottom: 2px solid var(--ink); padding-block: .75rem .7rem; }
.pg-compare thead th { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.2; color: var(--ink); }
.pg-compare thead tr > :first-child { width: 31%; }
.pg-compare thead tr > :nth-child(2) { width: 27%; }
.pg-compare tr:first-child > * { border-top: 0; }
.pg-compare tbody th { font-weight: 700; color: var(--ink); }
.pg-compare td { color: #3c4459; }
.pg-compare td:nth-child(2) { background: color-mix(in srgb, var(--cat-soft) 30%, white); }
.pg-compare thead th:nth-child(2) { background: color-mix(in srgb, var(--cat-soft) 65%, white); color: var(--cat-text); }

/* yes / no: drawn badges, the words stay */
.pg-yes, .pg-no { font-weight: 700; white-space: nowrap; }
.pg-yes { color: var(--cat-text); }
.pg-no { color: var(--ink); }
.pg-yes::before, .pg-no::before {
  content: ""; display: inline-block; vertical-align: -.4em;
  width: 1.4rem; height: 1.4rem; margin-right: .5rem; border-radius: 50%;
}
.pg-yes::before {
  background: var(--cat) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.pg-no::before {
  background: var(--bone-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2639' stroke-opacity='.6' stroke-width='2.8' stroke-linecap='round'%3E%3Cpath d='M7.5 12h9'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* phones: each row becomes its own block, the two treatments stacked under it with their names */
@media (max-width: 600px) {
  .pg-compare { overflow: visible; }
  .pg-compare caption { display: block; padding: 1.15rem 1.1rem .9rem; font-size: 1.15rem; }
  .pg-compare table, .pg-compare tbody, .pg-compare tr, .pg-compare th, .pg-compare td { display: block; width: auto; }
  .pg-compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pg-compare tbody tr { padding: 1rem 1.1rem 1.1rem; border-top: 1px solid rgba(31, 38, 57, .1); }
  .pg-compare tbody tr:first-child { border-top: 2px solid var(--ink); }
  .pg-compare tbody th, .pg-compare td { border: 0; }
  .pg-compare tbody th { padding: 0 0 .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
  .pg-compare td { padding: .6rem .8rem .7rem; border-radius: .75rem; background: var(--bone); }
  .pg-compare td + td { margin-top: .45rem; }
  .pg-compare td::before { content: attr(data-label); display: block; margin-bottom: .2rem; font-size: .82rem; font-weight: 700; color: #565e73; }
  .pg-compare td:nth-child(2)::before { color: var(--cat-text); }
}

/* team */
.pg-team-intro { font-size: 1.08rem; color: #3c4459; margin: 0 auto 1.6rem; }
.pg-team-group { font-size: clamp(1.6rem, 2.4vw, 2rem); margin: 2.8rem auto 1.4rem; }
.pg-person {
  display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 2.4rem; align-items: start;
  margin-bottom: 2.6rem;
}
.pg-person-photo { margin: 0; border-radius: var(--radius); }
.pg-person-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: inherit; }
.pg-person-body h3 { font-size: 1.45rem; margin-bottom: .15rem; }
.pg-person-role { font-family: var(--font-display); font-weight: 600; color: var(--cat-text); margin: 0 0 .9rem; }
.pg-person-body p { font-size: 1.02rem; line-height: 1.7; color: #3c4459; max-width: 46rem; }

/* Our team: generous portraits and alternating biographies. These rules are
   scoped so individual clinician and treatment pages keep their own layout. */
.page-kind-team main > .pg-team { padding: 2.4rem 1.6rem 4.5rem; }
.page-kind-team .pg-team-welcome {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 3rem;
  margin: 0 auto 3.2rem;
  padding: 2rem 2.2rem;
  border-radius: 1.2rem;
  background: color-mix(in srgb, var(--green-soft) 38%, var(--bone));
}
.page-kind-team .pg-team-welcome h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
.page-kind-team .pg-team-intro {
  max-width: 64ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}
.page-kind-team .pg-person {
  --profile-photo-width: min(34vw, 23rem);
  grid-template-columns: minmax(0, var(--profile-photo-width)) minmax(0, 1fr);
  gap: clamp(2.4rem, 5vw, 5rem);
  align-items: center;
  margin: 0 auto 4.5rem;
}
.page-kind-team .pg-person:where(:first-of-type) {
  --profile-photo-width: min(38vw, 27rem);
}
.page-kind-team .pg-person:where(:nth-of-type(even)) {
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--profile-photo-width));
}
.page-kind-team .pg-person:where(:nth-of-type(even)) .pg-person-photo { grid-column: 2; grid-row: 1; }
.page-kind-team .pg-person:where(:nth-of-type(even)) .pg-person-body { grid-column: 1; grid-row: 1; }
.page-kind-team .pg-person:last-child { margin-bottom: 0; }
.page-kind-team .pg-person-photo {
  --portrait-soft: var(--cobalt-soft);
  width: 100%;
  max-width: none;
  padding: .5rem;
  border: 1px solid var(--bone-2);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: .35rem -.35rem 0 0 var(--portrait-soft);
}
.page-kind-team .pg-person-photo.offset-violet { --portrait-soft: var(--violet-soft); }
.page-kind-team .pg-person-photo.offset-green { --portrait-soft: var(--green-soft); }
.page-kind-team .pg-person-photo img { border-radius: .8rem; }
.page-kind-team .pg-person-body { min-width: 0; max-width: 38rem; }
.page-kind-team .pg-person-body h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  font-weight: 600;
  margin-bottom: .65rem;
  line-height: 1.15;
}
.page-kind-team .pg-person:where(:first-of-type) h3 {
  font-size: clamp(2rem, 3.2vw, 2.65rem);
}
.page-kind-team .pg-person-body h3 a { text-decoration: none; }
.page-kind-team .pg-person-body h3 a:hover { text-decoration: underline; }
.page-kind-team .pg-person-body p { max-width: 64ch; font-size: .98rem; line-height: 1.75; }
.page-kind-team .pg-person-body p:last-child { margin-bottom: 0; }
.page-kind-team .pg-person-body .pg-person-role {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--cat-text);
  margin-bottom: 1.35rem;
}
.page-kind-team .pg-team-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0 auto 1.8rem;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  color: #565e73;
}
.page-kind-team .pg-team-group::after { content: ""; flex: 1; height: 1px; background: var(--bone-2); }
@media (min-width: 901px) {
  /* The supporting profiles form a tighter centred column. Its width is the
     portrait + readable biography + gap, avoiding empty space in the grid. */
  .page-kind-team .pg-person:where(:not(:first-of-type)) {
    max-width: 64rem;
    gap: 3rem;
  }
  .page-kind-team .pg-team-group { max-width: 64rem; }
}
@media (max-width: 900px) {
  .page-kind-team main > .pg-team { padding: 1.8rem 1.6rem 3rem; }
  .page-kind-team .pg-team-welcome {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem 1.35rem;
    margin-bottom: 2.6rem;
  }
  .page-kind-team .pg-team-welcome h2 { max-width: none; font-size: 1.9rem; }
  .page-kind-team .pg-person,
  .page-kind-team .pg-person:where(:nth-of-type(even)) { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; margin-bottom: 3rem; }
  .page-kind-team .pg-person .pg-person-photo { grid-column: 1; grid-row: auto; max-width: 20rem; justify-self: center; }
  .page-kind-team .pg-person:where(:first-of-type) .pg-person-photo { max-width: 22rem; }
  .page-kind-team .pg-person .pg-person-body { grid-column: 1; grid-row: auto; max-width: none; }
  .page-kind-team .pg-person-body h3 { font-size: 1.9rem; }
  .page-kind-team .pg-person:where(:first-of-type) h3 { font-size: 2.2rem; }
  .page-kind-team .pg-team-group { margin-bottom: 1.5rem; }
}

/* contact */
.pg-contact-intro { max-width: 52rem; }
.pg-contact-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.4rem; align-items: start; margin: 2.6rem auto 3rem;
}
.pg-contact-card, .pg-form { background: #fff; border: 2px solid var(--ink); padding: 1.8rem 1.8rem 1.9rem; }
.pg-contact-card h2, .pg-form-title { font-size: 1.45rem; margin-bottom: .9rem; }
.pg-form-title::first-letter { text-transform: uppercase; }
.pg-contact-card p { margin: 0 0 .8rem; line-height: 1.65; color: #3c4459; }
.pg-contact-card a { color: var(--ink); font-weight: 700; text-underline-offset: .18em; }
.pg-form { display: grid; gap: .9rem; }
.pg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.pg-form input, .pg-form select, .pg-form textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--bone);
  border: 1.5px solid rgba(31, 38, 57, .45);
  border-radius: .7rem;
  padding: .75rem .9rem;
}
.pg-form textarea { resize: vertical; min-height: 8rem; }
.pg-form input:focus-visible, .pg-form select:focus-visible, .pg-form textarea:focus-visible {
  outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--ink);
}
.pg-form .btn { justify-self: start; border: 0; cursor: pointer; }
.pg-form .btn[disabled] { opacity: .6; cursor: progress; }
.pg-form-status { margin: 0; min-height: 1.4em; font-size: .95rem; }
.pg-form-status[data-kind="ok"] { color: var(--green-text); font-weight: 700; }
.pg-form-status[data-kind="error"] { color: #a12a2a; font-weight: 700; }
.pg-map { border-radius: var(--radius); overflow: hidden; }
.pg-map iframe { display: block; width: 100%; height: 26rem; border: 0; }
.pg-locations { margin-top: 3rem; text-align: center; }
.pg-locations h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 1.2rem; }
.pg-suburb-links { margin: 0 auto; }
.pg-suburb-links li { padding: 0; }
.pg-suburb-links li > *, .pg-suburb-links li { font-weight: 400; }
.pg-suburb-links a { display: block; padding: .28rem .9rem; color: var(--ink); text-decoration: none; border-radius: 999px; }
.pg-suburb-links a:hover { background: var(--cat-soft); }
.pg-suburb-links li:not(:has(a)) { padding: .28rem .9rem; }

@media (max-width: 900px) {
  .page-hero-banner .page-hero-img { aspect-ratio: var(--ar); }
  .page-hero-banner .page-hero-copy, .page-hero-plain .page-hero-copy { padding: 1.6rem 0 0; }
  .page-hero-plain { background: none; }
  .pg-person { grid-template-columns: 1fr; gap: 1.2rem; }
  .pg-person-photo { max-width: 16rem; }
  .pg-contact-grid { grid-template-columns: 1fr; }
  .pg-form-row { grid-template-columns: 1fr; }
  .pg-map iframe { height: 20rem; }
}

/* long URLs and file names in old copy must wrap on phones */
.page-service main { overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .pg-article-grid { grid-template-columns: minmax(0, 1fr); }
}

/* card grids: whole rows only */
.pg-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-service .pg-card-section { padding-top: 0; }
.pg-card-img { position: relative; overflow: hidden; }
.pg-card-img img { position: absolute; inset: 0; }
@media (max-width: 1100px) { .pg-cards-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pg-cards-3, .pg-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg-cards-3, .pg-cards-4 { grid-template-columns: 1fr; } }

.pg-person-body h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* buttons inside copy keep their own colours (prose links are ink) */
.prose .btn, .pg-card .btn { text-decoration: none; font-weight: 600; }
.prose .btn-primary, .pg-card .btn-primary { color: var(--bone); }
.prose .btn-outline, .pg-card .btn-outline { color: var(--cobalt-text); }

/* ==========================================================================
   About page: the old four-column page laid out in the homepage's language
   (built by _build/build2.py about_html)
   ========================================================================== */

.about-tint-green { --about-colour: var(--green-text); --about-tint: var(--green-soft); --about-accent: var(--green); }
.about-tint-violet { --about-colour: var(--violet-text); --about-tint: var(--violet-soft); --about-accent: var(--violet); }
.about-tint-cobalt { --about-colour: var(--cobalt-text); --about-tint: var(--cobalt-soft); --about-accent: var(--cobalt); }

.about-intro, .about-modern { padding: 3.2rem 1.6rem; }
.about-intro h2, .about-modern h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
.about-intro p, .about-modern p { font-size: 1.04rem; line-height: 1.7; color: #3c4459; margin: 0 0 1rem; }
.about-intro p:last-child, .about-modern p:last-child { margin-bottom: 0; }
.about-intro a, .about-modern a, .about-promise a, .about-pillar a { color: var(--ink); font-weight: 700; text-underline-offset: .18em; }
.about-intro strong, .about-modern strong, .about-promise strong { color: var(--ink); }
.about-lead { font-size: 1.22rem !important; line-height: 1.55 !important; color: var(--ink) !important; margin-bottom: 1.3rem !important; }

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: start;
}
.about-intro-copy { max-width: 40rem; }
.about-intro-side { display: flex; flex-direction: column; gap: 1.5rem; padding: .6rem .6rem 0 0; }

/* photos: the care tiles' inset frame with the site's offset */
.about-photo {
  margin: 0;
  padding: .5rem;
  background: #fff;
  border: 1.5px solid var(--bone-2);
  border-radius: 1.25rem;
}
.about-photo img {
  width: 100%; height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .9rem;
}
.about-photo-wide img { aspect-ratio: 5 / 4; object-position: center 40%; }

/* facts: the homepage trust marks, two by two */
.about-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: .5rem -.5rem 0 0 var(--green-soft);
  overflow: hidden;
}
.about-fact {
  display: flex; align-items: center; gap: .8rem;
  min-width: 0;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--bone-2);
}
.about-fact:nth-child(-n+2) { border-top: 0; }
.about-fact:nth-child(even) { border-left: 1px solid var(--bone-2); }
.about-fact .trust-mark { width: 2.6rem; height: 2.6rem; }
.about-fact .trust-mark svg { width: 1.2rem; height: 1.2rem; }
.about-fact .trust-title { font-size: 1.08rem; white-space: normal; }

/* promise band: three thoughts, each with a badge, on the kids' bone-2 */
.about-promise { background: var(--bone-2); padding: 3rem 1.6rem; }
.about-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.about-promise-item { padding: .4rem 2rem .4rem 0; }
.about-promise-item + .about-promise-item { padding-left: 2rem; border-left: 1px solid rgba(31, 38, 57, .14); }
.about-promise-item p { margin: 0; font-size: 1rem; line-height: 1.7; color: #3c4459; }
.about-badge {
  display: grid; place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: .22rem -.22rem 0 0 var(--about-accent, var(--green));
}
.about-badge svg { width: 1.4rem; height: 1.4rem; }

/* team strip: the homepage cards, two rows of four */
.about-team { padding: 3.2rem 1.6rem 3.4rem; }
.about-team .section-head { margin-bottom: 2.4rem; }
.about-team-grid { gap: 2.2rem 1.6rem; }
.about-team-grid .t-card { flex-basis: calc((100% - 3 * 1.6rem) / 4); }
.about-team-grid .t-card img { margin-bottom: .9rem; }
.about-team-more { margin: 2.4rem auto 0; text-align: center; }
.about-team-more .btn { display: inline-flex; align-items: center; gap: .7rem; }
.about-team-more .btn svg { width: 1.2rem; height: 1.2rem; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.about-team-more .btn:hover svg, .about-team-more .btn:focus-visible svg { transform: translateX(.2rem); }

/* modern dentistry: photo beside the copy, pillars beneath */
.about-modern-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: 3rem;
}
.about-modern-copy { max-width: 40rem; }
.about-pillars {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.about-pillar {
  display: flex; flex-direction: column;
  padding: 1.5rem 1.4rem 1.6rem;
  background: #fff;
  border: 1.5px solid var(--about-tint);
  border-radius: 1.25rem;
  box-shadow: .28rem -.28rem 0 0 var(--about-tint);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.about-pillar .about-badge {
  background: color-mix(in srgb, var(--about-tint) 40%, white);
  border: 0;
  box-shadow: none;
  color: var(--about-colour);
  width: 2.6rem; height: 2.6rem;
  margin-bottom: .9rem;
}
.about-pillar .about-badge svg { width: 1.3rem; height: 1.3rem; }
.about-pillar h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .55rem;
  color: var(--about-colour);
}
.about-pillar p { margin: 0; font-size: .92rem; line-height: 1.55; color: #3c4459; }
@media (hover: hover) and (pointer: fine) {
  .about-pillar:hover {
    transform: translateY(-.3rem);
    box-shadow: .28rem -.28rem 0 0 var(--about-tint), 0 .8rem 1.4rem -.9rem rgba(31, 38, 57, .2);
  }
}

@media (max-width: 1100px) {
  .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-team-grid .t-card { flex-basis: calc((100% - 2 * 1.6rem) / 3); }
}
@media (max-width: 900px) {
  .about-intro-grid, .about-modern-grid { grid-template-columns: minmax(0, 1fr); }
  .about-intro-side { max-width: 30rem; padding: .6rem .6rem 0 0; }
  .about-modern-grid figure { order: 1; max-width: 30rem; }
  .about-promise-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .about-promise-item { padding: 0; }
  .about-promise-item + .about-promise-item { padding: 1.6rem 0 0; border-left: 0; border-top: 1px solid rgba(31, 38, 57, .14); }
  .about-team-grid .t-card { flex-basis: calc((100% - 1.6rem) / 2); }
}
@media (max-width: 600px) {
  .about-intro, .about-modern, .about-team { padding: 2.4rem 1.2rem; }
  .about-promise { padding: 2.4rem 1.2rem; }
  .about-facts { grid-template-columns: minmax(0, 1fr); }
  .about-fact:nth-child(2) { border-top: 1px solid var(--bone-2); }
  .about-fact:nth-child(even) { border-left: 0; }
  .about-pillars { grid-template-columns: minmax(0, 1fr); }
  .about-team-grid { gap: 1.4rem .9rem; }
  .about-team-grid .t-card { flex-basis: calc((100% - .9rem) / 2); padding-bottom: .9rem; }
  .about-team-grid .t-card img { margin-bottom: .6rem; }
  .about-team-grid .t-card h3 { font-size: 1.02rem; margin: 0 .8rem .05rem; }
  .about-team-grid .t-role { font-size: .8rem; margin: 0 .8rem .2rem; }
}

/* ==========================================================================
   Treatment, concern and education pages: the article, its photo, the
   booking aside and the treatment cards in the homepage's language.
   Visual only; the copy and markup are untouched.
   ========================================================================== */

/* the opening paragraph leads */
.pg-article-main .prose > p:first-child { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.pg-article-main .prose h2 { font-weight: 600; }

/* lists: a category dot inside a soft badge (neutral enough for symptom lists) */
.pg-article-main .prose li { padding-left: 2.3rem; }
.pg-article-main .prose li::before {
  left: 0; top: .15em;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cat-text) 0 3px, transparent 3.6px) center / 100% 100% no-repeat,
              color-mix(in srgb, var(--cat-soft) 55%, white);
}
.pg-article-main .prose li strong { color: var(--cat-text); }

/* the article photo in the care tiles' inset frame */
.pg-fig {
  padding: .45rem;
  background: #fff;
  border: 1.5px solid var(--bone-2);
  border-radius: 1.25rem;
  box-shadow: .5rem -.5rem 0 0 var(--cat-soft);
}
.pg-fig img { border-radius: .85rem; box-shadow: none; }

/* booking aside */
.pg-aside-card { border-radius: 1.25rem; padding: 1.7rem 1.6rem 1.6rem; }
.pg-aside-title { font-size: 1.2rem; }
.pg-aside-phone { font-size: 1.9rem; }
.pg-aside-card .btn { display: flex; justify-content: center; }

/* treatment cards: tinted frame and offset, wave-cut photo, display title,
   the link as a footer row. Colours rotate like the related-page chips. */
.pg-card {
  --card-colour: var(--cat-text);
  --card-tint: var(--cat-soft);
  --card-accent: var(--cat);
  border: 1.5px solid var(--card-tint);
  border-radius: 1.25rem;
  box-shadow: .28rem -.28rem 0 0 var(--card-tint);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}
.pg-cards > li:nth-child(3n+1) { --card-colour: var(--green-text); --card-tint: var(--green-soft); --card-accent: var(--green); }
.pg-cards > li:nth-child(3n+2) { --card-colour: var(--violet-text); --card-tint: var(--violet-soft); --card-accent: var(--violet); }
.pg-cards > li:nth-child(3n) { --card-colour: var(--cobalt-text); --card-tint: var(--cobalt-soft); --card-accent: var(--cobalt); }
.pg-card-img {
  position: relative;
  isolation: isolate;
  margin: .5rem .5rem 0;
  border-radius: .9rem .9rem 0 0;
  overflow: hidden;
}
.pg-card-img img { transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.pg-card-img::before, .pg-card-img::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2.6rem;
  z-index: 1;
  pointer-events: none;
  -webkit-mask: var(--wave) center / 100% 100% no-repeat;
  mask: var(--wave) center / 100% 100% no-repeat;
}
.pg-card-img::before {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 60' preserveAspectRatio='none'%3E%3Cpath d='M0 22C110-40 216 103 360 18V60H0Z'/%3E%3C/svg%3E");
  background: var(--card-accent);
}
.pg-card-img::after {
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34C110-28 216 115 360 30V60H0Z'/%3E%3C/svg%3E");
  background: #fff;
}
.pg-card-body {
  position: relative;
  z-index: 2;
  background: #fff;
  margin-top: -2px;
  padding: calc(.7rem + 2px) 1.25rem 0;
}
.pg-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--card-colour);
}
.pg-card p { font-size: .9rem; line-height: 1.5; color: #565e73; margin: 0 0 1rem; }
.pg-card-cta {
  margin: auto -1.25rem 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--bone-2);
}
.pg-card-cta .btn-outline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  min-height: 3.45rem;
  padding: .8rem 1.25rem;
  border: 0;
  border-radius: 0 0 1.1rem 1.1rem;
  background: transparent;
  box-shadow: none;
  color: var(--card-colour);
  font-size: .98rem;
  text-align: left;
  white-space: normal;
  transition: background .2s ease;
}
.pg-card-cta .btn-outline::after {
  content: "";
  flex: 0 0 1.2rem;
  width: 1.2rem; height: 1.2rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.pg-card-cta .btn-outline:hover,
.pg-card-cta .btn-outline:focus-visible { background: color-mix(in srgb, var(--card-tint) 40%, white); color: var(--card-colour); }
.pg-card-cta .btn-outline:focus-visible { outline-offset: -5px; }
.pg-card:focus-within { transform: translateY(-.3rem); box-shadow: .28rem -.28rem 0 0 var(--card-tint), 0 .8rem 1.4rem -.9rem rgba(31, 38, 57, .2); }
.pg-card:focus-within .pg-card-img img { transform: scale(1.035); }
.pg-card-cta .btn-outline:focus-visible::after { transform: translateX(.2rem); }
@media (hover: hover) and (pointer: fine) {
  .pg-card:hover { transform: translateY(-.3rem); box-shadow: .28rem -.28rem 0 0 var(--card-tint), 0 .8rem 1.4rem -.9rem rgba(31, 38, 57, .2); }
  .pg-card:hover .pg-card-img img { transform: scale(1.035); }
  .pg-card:hover .pg-card-cta .btn-outline::after { transform: translateX(.2rem); }
}

/* ==========================================================================
   Children's dentistry page: the homepage's Kids' Corner carried over.
   Hero untouched; the booking aside sits beside the opening block only,
   then the page runs full width. Built by _build/build2.py kids_html.
   ========================================================================== */

.kids-intro, .kids-hygiene, .kids-checkup, .kids-corner-page { padding: 3.2rem 1.6rem; }
.kids-intro h2, .kids-hygiene h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
.kids-intro-copy p, .kids-hygiene-copy p, .kids-checkup-notes p { font-size: 1.04rem; line-height: 1.7; color: #3c4459; margin: 0 0 1rem; }
.kids-intro-copy p:last-child, .kids-hygiene-copy p:last-child, .kids-checkup-notes p:last-child { margin-bottom: 0; }
.kids-intro-copy a, .kids-hygiene-copy a, .kids-checkup a { color: var(--ink); font-weight: 700; text-underline-offset: .18em; }
.kids-intro-copy strong, .kids-hygiene-copy strong { color: var(--ink); }
.kids-lead { font-size: 1.22rem !important; line-height: 1.55 !important; color: var(--ink) !important; margin-bottom: 1.3rem !important; }

/* opening block: copy left, booking card and the first photo right */
.kids-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: start;
}
.kids-intro-copy { max-width: 40rem; }
.kids-intro-side { display: flex; flex-direction: column; gap: 2.4rem; padding: .6rem .6rem 0 0; }
.kids-intro-side .pg-aside { position: static; }

/* photos in the care tiles' inset frame, with a mascot leaning on the corner */
.kids-photo {
  position: relative;
  margin: 0 0 1.2rem;
  padding: .5rem;
  background: #fff;
  border: 1.5px solid var(--bone-2);
  border-radius: 1.25rem;
}
.kids-photo > img:first-child {
  width: 100%; height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .9rem;
}
.kids-mascot {
  position: absolute;
  z-index: 1;
  width: 7.5rem; height: auto;
  bottom: -1.5rem; left: -1.6rem;
  transform: rotate(-8deg);
  filter: drop-shadow(0 .35rem .5rem rgba(31, 38, 57, .18));
  pointer-events: none;
}
.kids-mascot-splash { left: auto; right: -1.6rem; transform: rotate(8deg); }

/* the practice's own kids banner, framed like the homepage's Kids' Corner strip */
.kids-page-banner { padding: .2rem 1.6rem 3rem; }
.kids-page-banner .kids-banner-card { padding: .5rem; border-radius: 1.25rem; }
.kids-page-banner img { width: 100%; height: auto; border-radius: .9rem; }

/* the check-up: each thing we look at on its own card, mascots in turn */
.kids-checkup { background: var(--bone-2); }
.kids-checkup .section-head { margin-bottom: 2.6rem; }
.kids-checkup .section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; text-wrap: balance; }
.kids-checkup .section-head p { max-width: 64ch; margin: 0 auto; font-size: 1.04rem; line-height: 1.7; }
.kids-checks {
  list-style: none;
  margin: 0 auto 2.4rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}
.kids-check {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem 1.1rem 1.4rem;
  background: var(--bone);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  transition: box-shadow .4s var(--snap-ease);
}
.kids-check img { width: 4.6rem; height: auto; margin: 0 auto 1rem; }
.kids-check p { margin: 0; font-size: .98rem; line-height: 1.45; color: #444b60; }
.kids-check:nth-child(3n+1) { box-shadow: .45rem -.45rem 0 0 var(--green-soft); }
.kids-check:nth-child(3n+2) { box-shadow: .45rem -.45rem 0 0 var(--violet-soft); }
.kids-check:nth-child(3n) { box-shadow: .45rem -.45rem 0 0 var(--cobalt-soft); }
.kids-checkup-notes { max-width: 46rem; margin: 0 auto; text-align: center; }

/* the homepage Kids' Corner keeps its own styles from main.css; only the band colour changes here */
.kids-corner-page { background: var(--bone); }
.kids-corner-page .section-head { margin-bottom: 3rem; }

/* hygiene: photo beside the copy */
.kids-hygiene { background: var(--bone-2); }
.kids-hygiene-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: center;
}
.kids-hygiene-grid .kids-photo { margin: 0; }
.kids-hygiene-copy { max-width: 40rem; }

@media (max-width: 1100px) {
  .kids-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .kids-intro-grid, .kids-hygiene-grid { grid-template-columns: minmax(0, 1fr); }
  .kids-intro-side { max-width: 30rem; }
  .kids-hygiene-grid .kids-photo { order: 1; max-width: 30rem; }
  .kids-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .kids-intro, .kids-hygiene, .kids-checkup, .kids-corner-page { padding: 2.4rem 1.2rem; }
  .kids-page-banner { padding: .2rem 1.2rem 2.4rem; }
  .kids-checks { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .kids-mascot { width: 5.4rem; bottom: -1rem; left: -.5rem; }
  .kids-mascot-splash { left: auto; right: -.5rem; }
}

/* ---------- videos inside articles ---------- */
.prose .vid { float: right; clear: right; width: min(44%, 16rem); margin: .35rem 0 1.6rem 2rem; }
.pg-fig { clear: right; }
@media (max-width: 900px) {
  .prose .vid { float: none; width: 100%; max-width: 16.5rem; margin: 1.6rem auto; }
}

/* about: the practice tour in front, the surgery photo layered behind it */
@media (min-width: 901px) { .about-modern-grid.has-tour { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.about-modern-media { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: start; }
.about-modern-media .vid { grid-column: 1 / 6; grid-row: 1; max-width: none; }
.about-modern-media .about-photo { grid-column: 4 / 11; grid-row: 1; margin-top: 24%; }
@media (max-width: 900px) {
  .about-modern-grid .about-modern-media { order: 1; width: 100%; max-width: 32rem; }
  .about-modern-grid .about-modern-media figure { order: 0; max-width: none; }
}
@media (max-width: 600px) {
  .about-modern-media .vid { grid-column: 1 / 7; }
  .about-modern-media .about-photo { grid-column: 5 / 11; margin-top: 45%; }
}
