/* These detail pages keep their original booking controls and site typography.
   Their dimensions mirror the shared specialty hero, including its mobile layout. */
main section.page-hero-detail[data-cisme-service-template] {
  padding-block: 0;
  background: #f7f8f5;
  border-bottom: 1px solid #d7ddda;
  color: #202624;
  text-align: start;
}
section.page-hero-detail[data-cisme-service-template]::before,
section.page-hero-detail[data-cisme-service-template]::after { display: none; }
section.page-hero-detail[data-cisme-service-template] > .mx-auto {
  box-sizing: border-box;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}
.cisu-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  padding-block: .65rem;
  color: #5d6864;
  font-size: .875rem;
  line-height: 1.55;
}
main .cisu-trail a.cisme-directory-back:first-child { margin: 0; }
.cisu-trail > [aria-hidden] { color: #687f76; }
main section.page-hero-detail[data-cisme-service-template] > .mx-auto > .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(2rem, 5.2vw, 5rem);
  row-gap: 1.2rem;
  padding-block: clamp(.8rem, 1.6vw, 1.5rem) clamp(1.25rem, 2.4vw, 2rem);
}
[data-cisme-service-template] .grid > .motion-reveal { min-width: 0; }
[data-cisme-service-template] .grid > [aria-hidden="true"],
[data-cisme-service-template] .grid .cisme-directory-back,
[data-cisme-service-template] .surface-render > a,
[data-cisme-service-template] .motion-reveal > p.uppercase,
[data-cisme-service-template][data-cisme-service-intro-ready] .motion-reveal > div:has(> .surface-render) {
  display: none !important;
}
main section[data-cisme-service-template] h1 {
  max-width: 20ch;
  margin: 0;
  color: #202624;
  font-family: inherit;
  font-size: clamp(2.35rem, 4.25vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -.044em;
  line-height: 1.09;
  text-wrap: balance;
  overflow-wrap: break-word;
}
main section[data-cisme-service-template] .motion-reveal > p.mt-6 {
  max-width: 47ch;
  margin: 1.65rem 0 0;
  color: #40534a;
  font-family: inherit;
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
  line-height: 1.58;
  text-wrap: pretty;
}
.cisu-price {
  display: inline-flex;
  padding: .3rem 0;
  color: #506c5e;
  font-family: inherit;
  font-size: .975rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.cisu-price:focus-visible { outline: 2px solid #506c5e; outline-offset: 3px; }
[data-cisme-service-template] :is(.cisme-service-cover, .cisu-local-cover) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 1.52;
  margin: 0;
  background: #e6ede8;
  border-radius: 4px;
  overflow: hidden;
}
[data-cisme-service-template] :is(.cisme-service-cover, .cisu-local-cover) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 48rem) {
  main section.page-hero-detail[data-cisme-service-template] > .mx-auto > .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  [data-cisme-service-template] :is(.cisme-service-cover, .cisu-local-cover) {
    aspect-ratio: 1.85;
    max-height: 18rem;
  }
  main section[data-cisme-service-template] .motion-reveal > p.mt-6 { margin-top: 1rem; }
  main section[data-cisme-service-template] h1 { max-width: 100%; }
}
@media (max-width: 26rem) {
  .cisu-trail { font-size: .82rem; }
}

/* The measurements and colours follow the specialty detail template. */
.csg-content, .csg-native-shell {
  --csg-ink:#202624;
  --csg-muted:#5d6864;
  --csg-edge:#d7ddda;
  background:#fff;
  color:var(--csg-ink);
  font-family:inherit;
  text-align:start;
}
.csg-content *, .csg-native-shell * { box-sizing:border-box; }
.csg-content { padding-block:clamp(1.65rem,3.2vw,2.25rem) 0; }
.csg-wrap, .csg-native-shell > .mx-auto {
  width:100%;
  max-width:80rem;
  margin-inline:auto;
  padding-inline:clamp(1.25rem,4vw,2rem);
}
.csg-grid {
  display:grid;
  grid-template-columns:minmax(0,1.54fr) minmax(15rem,.76fr);
  align-items:start;
  gap:clamp(2rem,4.5vw,4rem);
}
.csg-grid > *, .csg-extra { min-width:0; }
.csg-content :is(h2,h3,p,a,li,dt,dd) { font-family:inherit; }
.csg-primary > h2, .csg-extra > h2, .csg-native-shell :is(#service-info-title,#service-advice-title,#service-schedules-title,#service-professionals-title) {
  margin:0 0 1.35rem;
  font-size:clamp(1.65rem,2.6vw,2.3rem);
  font-weight:600;
  letter-spacing:-.033em;
  line-height:1.18;
  color:var(--csg-ink);
}
.csg-primary > div, .csg-guide > div, .csg-extra > div { margin:0; }
.csg-primary ul {
  display:block;
  margin:0;
  padding:0;
  list-style:none;
  border-top:1px solid var(--csg-edge);
}
.csg-primary ul > li {
  display:block;
  min-height:3.4rem;
  padding:.95rem .4rem .95rem 0;
  list-style:none;
  border-bottom:1px solid var(--csg-edge);
  color:var(--csg-ink);
  font-weight:600;
  line-height:1.5;
}
.csg-primary ul > li > span[aria-hidden="true"] { display:none; }
.csg-content a { color:#395346; text-underline-offset:.2em; }
.csg-primary li a { text-decoration:underline; }
.csg-content :is(a,button):focus-visible { outline:2px solid #506c5e; outline-offset:3px; }
.csg-content dl {
  border-block:1px solid var(--csg-edge);
  margin:0;
}
.csg-content dl > div {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:baseline;
  gap:1rem;
  padding:.9rem .4rem .9rem 0;
  border:0;
}
.csg-content dl > div + div { border-top:1px solid var(--csg-edge); }
.csg-content :is(dt,dd) { margin:0; color:var(--csg-ink); }
.csg-content dd { text-align:end; }
.csg-content [role="note"] {
  border:0;
  border-radius:0;
  padding:0;
  box-shadow:none;
  background:transparent;
  font:inherit;
  line-height:1.65;
  color:inherit;
}
.csg-content :is(ul,dl) + [role="note"] { margin-top:1.25rem; color:var(--csg-muted); }
.csg-content .csg-guide {
  padding:clamp(1.3rem,3vw,2.1rem);
  background:#edf3ef;
  border-top:3px solid #7d9585;
  color:var(--csg-ink);
}
.csg-guide h2 {
  margin:0 0 .75rem;
  font-size:clamp(1.3rem,1.9vw,1.6rem);
  font-weight:600;
  letter-spacing:-.027em;
  line-height:1.25;
  color:inherit;
}
.csg-guide :is(p,div) { color:inherit; }
.csg-guide p, .csg-extra p { font-size:1rem; line-height:1.65; }
.csg-guide p + p { margin-top:.7rem; }
.csg-guide a {
  display:inline-block;
  min-height:0;
  margin-block-start:1rem;
  padding:0;
  background:transparent;
  border:0;
  font-size:1rem;
  font-weight:600;
  text-align:start;
  line-height:1.5;
  text-decoration:underline;
}
.csg-intro { padding-block:clamp(1.6rem,3.5vw,2.75rem); }
.csg-intro p {
  max-width:73ch;
  margin:0;
  color:var(--csg-muted);
  font-size:1rem;
  line-height:1.75;
}
.csg-intro p + p { margin-top:.6rem; }
.csg-extra { max-width:65rem; padding-block:0 clamp(1.75rem,3.5vw,2.75rem); }
.csg-extra p { max-width:73ch; color:var(--csg-muted); }
.csg-content [id], .csg-native-shell [id] { scroll-margin-top:8rem; }

main:has(> .csg-content[data-csg-fisio-guide]) > #cisme-fisio-private-access,
.csg-native-shell .csg-source-cards, .csg-native-shell .csg-source-empty { display:none !important; }
.detail-page-shell.csg-native-shell { padding-block:0 clamp(1.75rem,3.5vw,2.75rem); }
.csg-native-shell > .mx-auto > section { margin-block:0 clamp(1.75rem,3.5vw,2.75rem); }
.csg-native-shell > .mx-auto > section:last-child { margin-bottom:0; }
.csg-native-shell > .mx-auto > section > div:first-child {
  border-inline-start:0;
  padding-inline-start:0;
}
.csg-native-shell .csg-source-hours {
  display:block;
  padding-block-start:clamp(1.75rem,3.5vw,2.75rem);
  border-top:1px solid var(--csg-edge);
}
.csg-native-shell .surface-render { box-shadow:none; }
@media (max-width:48rem) {
  .csg-grid { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
  .csg-content .csg-guide { padding:1.3rem; }
}
