/* Service detail catalogue: shared visual system with the pricing page. */
.service-detail-catalog-page .service-detail-page {
  padding-top: 120px;
}

.service-detail-catalog-page .service-detail-inner {
  width: min(calc(100% - 40px), 1240px) !important;
  gap: clamp(34px, 4vw, 52px) !important;
}

.service-detail-catalog-page .service-hero {
  width: 100%;
  padding-bottom: clamp(28px, 4vw, 44px);
}

.service-detail-catalog-page .service-hero-aside {
  display: grid;
  width: clamp(190px, 22vw, 280px);
  justify-items: stretch;
  gap: 16px;
}

.service-detail-catalog-page .service-detail-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.service-detail-catalog-page .service-detail-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html.light[data-theme="light"] body.service-detail-catalog-page .service-detail-visual.theme-visual-light,
html:not([data-theme="light"]) body.service-detail-catalog-page .service-detail-visual.theme-visual-dark {
  display: block !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page .service-detail-visual.theme-visual-dark,
html:not([data-theme="light"]) body.service-detail-catalog-page .service-detail-visual.theme-visual-light {
  display: none !important;
}

.service-detail-catalog-page .service-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(42px, 5vw, 64px) !important;
  align-items: start;
}

.service-detail-catalog-page .service-detail-content {
  width: min(100%, 1080px);
  margin-inline: auto;
  gap: clamp(48px, 6vw, 76px);
}

/* Horizontal service navigation. */
.service-detail-catalog-page .service-page-toc {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: rgba(210, 229, 240, 0.76);
  box-shadow: 0 10px 28px rgba(38, 75, 96, 0.09);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
  backdrop-filter: blur(18px) saturate(108%);
}

.service-detail-catalog-page .service-page-toc .service-direction-select {
  display: none;
}

.service-detail-catalog-page .service-page-toc nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
  overflow: visible;
  border: 0;
  counter-reset: none;
}

.service-detail-catalog-page .service-page-toc .service-direction-link,
.service-detail-catalog-page .service-page-toc .service-direction-link:is(:hover, :focus-visible, .is-active) {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  align-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 78px;
  padding: 10px 8px;
  border: 1px solid rgba(197, 132, 75, 0.3) !important;
  border-radius: 11px;
  background-image: none;
  color: #2d4858;
  text-align: center;
  box-shadow: none;
  transform: none;
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease,
    box-shadow 260ms ease;
}

html:not([data-theme="light"]) body.service-detail-catalog-page .service-page-toc .service-direction-link {
  border-color: rgba(216, 150, 91, 0.34) !important;
}

html:not([data-theme="light"]) body.service-detail-catalog-page .service-page-toc .service-direction-link:is(:hover, :focus-visible, .is-active) {
  border-color: rgba(240, 183, 127, 0.68) !important;
}

.service-detail-catalog-page .service-page-toc .service-direction-link {
  background-color: rgba(255, 255, 255, 0.24);
}

.service-detail-catalog-page .service-page-toc .service-direction-link::before,
.service-detail-catalog-page .service-page-toc .service-direction-link::after,
.service-detail-catalog-page .service-page-toc .service-direction-active-dot {
  display: none !important;
  content: none !important;
}

.service-detail-catalog-page .service-page-toc .service-direction-link > .material-symbols-outlined {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: #3b6277;
  font-size: 1.45rem;
  font-variation-settings: "FILL" 0, "wght" 360, "GRAD" 0, "opsz" 32;
  box-shadow: inset 0 0 0 1px rgba(59, 98, 119, 0.12);
  transition: color 180ms ease, transform 220ms ease;
}

.service-detail-catalog-page .service-page-toc .service-direction-link-copy > strong {
  display: block;
  color: #2d4858;
  font-size: clamp(0.68rem, 0.78vw, 0.78rem);
  font-weight: 650;
  line-height: 1.3;
  text-wrap: balance;
}

.service-detail-catalog-page .service-page-toc .service-direction-link:is(:hover, :focus-visible) {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(38, 75, 96, 0.12);
  transform: translateY(-2px);
}

.service-detail-catalog-page .service-page-toc .service-direction-link.is-active {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(232, 242, 247, 0.82));
  box-shadow:
    inset 0 0 0 1px rgba(166, 96, 60, 0.2),
    0 7px 18px rgba(38, 75, 96, 0.12);
}

.service-detail-catalog-page .service-page-toc .service-direction-link:is(:hover, :focus-visible, .is-active) > .material-symbols-outlined,
.service-detail-catalog-page .service-page-toc .service-direction-link:is(:hover, :focus-visible, .is-active) .service-direction-link-copy > strong {
  color: #8b532f;
}

.service-detail-catalog-page .service-page-toc .service-direction-link.is-active > .material-symbols-outlined {
  background: rgba(166, 96, 60, 0.1);
  box-shadow: inset 0 0 0 1px rgba(166, 96, 60, 0.22);
}

.service-detail-catalog-page .service-page-toc .service-direction-all {
  display: none;
}

/* Numbered editorial groups and service cards. */
.service-detail-catalog-page .service-markdown {
  width: 100%;
  max-width: none;
  counter-reset: service-group;
}

.service-detail-catalog-page .service-markdown h3:has(+ ul) {
  display: grid;
  grid-template-columns: clamp(28px, 3vw, 38px) minmax(0, 1fr);
  column-gap: clamp(10px, 1.4vw, 16px);
  align-items: baseline;
  margin-top: clamp(34px, 5vw, 56px);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(42, 78, 99, 0.16);
  counter-increment: service-group;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

.service-detail-catalog-page .service-markdown h3:has(+ ul)::before {
  color: inherit;
  content: counter(service-group) ".";
  font: inherit;
  line-height: inherit;
}

.service-detail-catalog-page .service-markdown ul {
  grid-auto-rows: 114px;
  gap: 10px;
  counter-reset: service-card;
}

.service-detail-catalog-page .service-markdown ul > li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0 10px;
  align-items: start;
  align-content: start;
  height: 100%;
  min-height: 0;
  padding: 10px 14px;
  border: 1px solid rgba(166, 96, 60, 0.42);
  border-left-width: 1px;
  border-radius: 0;
  background: #f7f7f5;
  color: #354f5d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 30px rgba(25, 54, 64, 0.07);
  counter-increment: service-card;
  line-height: 1.45;
  transform: translateY(0);
  transition:
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms ease,
    background-color 280ms ease,
    box-shadow 320ms ease;
}

.service-detail-catalog-page .service-markdown ul > li::before {
  display: block;
  grid-column: 1;
  grid-row: 1 / span 20;
  color: #587486;
  content: counter(service-card);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.45;
}

.service-detail-catalog-page .service-markdown ul > li > strong {
  grid-column: 2;
  margin-bottom: 0;
  color: #203f52;
}

@media (hover: hover) and (pointer: fine) {
  .service-detail-catalog-page .service-markdown ul > li:is(:hover, :focus-within) {
    z-index: 2;
    border-color: rgba(173, 103, 66, 0.56);
    background: #fbfbf9;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 18px 34px rgba(25, 54, 64, 0.12),
      0 0 20px rgba(207, 116, 61, 0.14);
    transform: translateY(-3px);
  }
}

/* One continuous page canvas; only cards remain opaque. */
html.light[data-theme="light"] body.service-detail-catalog-page main#top .service-detail-page.service-detail-page {
  background-color: #f8fafb !important;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(236, 241, 244, 0.34)),
    var(--section-faceted-cross) !important;
  background-position: center top, center top !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top .service-detail-page :is(
  .service-detail-inner,
  .service-detail-layout,
  .service-detail-content,
  .service-hero,
  .service-quick-overview,
  .service-overview-columns,
  .service-overview-group,
  .service-markdown,
  .service-final-cta
) {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top .service-final-cta.service-final-cta.light-block-tone-3 {
  border-color: transparent !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  .service-detail-catalog-page .service-detail-inner {
    width: min(calc(100% - 28px), 1240px) !important;
  }

  .service-detail-catalog-page .service-hero-aside {
    width: min(100%, 280px);
    justify-self: start;
  }

  .service-detail-catalog-page .service-page-toc {
    position: sticky;
    top: 64px;
    padding: 10px;
    border-radius: 12px;
  }

  .service-detail-catalog-page .service-page-toc nav {
    display: none;
  }

  .service-detail-catalog-page .service-page-toc .service-direction-select {
    position: relative;
    display: grid;
    padding: 0;
  }

  .service-detail-catalog-page .service-page-toc .service-direction-select select {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding-inline: 14px 42px;
    background: rgba(255, 255, 255, 0.76);
    color: #2d4858;
  }
}

/* Final parity pass: detailed service cards follow the same type scale,
 * spacing and interaction treatment as pricing option cards. */
html body.service-detail-catalog-page main#top#top#top#top .service-markdown.service-markdown h3:has(+ ul) {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
  font-family: var(--font-display) !important;
  font-size: clamp(1.8rem, 3vw, 3rem) !important;
  font-weight: 500 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
}

html body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li {
  padding: 14px 18px !important;
  font-family: var(--font-body) !important;
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
}

html body.service-detail-catalog-page main#top#top#top#top .service-markdown.service-markdown ul > li > strong {
  font-family: var(--font-display) !important;
  font-size: 1.12rem !important;
  font-weight: 600 !important;
  line-height: 1.24 !important;
  letter-spacing: normal !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li {
  color: #3c4b54 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 26px rgba(190, 105, 55, 0.055),
    0 0 14px rgba(207, 116, 61, 0.075) !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top .service-markdown.service-markdown ul > li > strong {
  color: #193640 !important;
}

html:not([data-theme="light"]) body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li {
  color: rgba(244, 239, 231, 0.86) !important;
}

html:not([data-theme="light"]) body.service-detail-catalog-page main#top#top#top#top .service-markdown.service-markdown ul > li > strong {
  color: #f5eee5 !important;
}

@media (hover: hover) and (pointer: fine) {
  html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li:is(:hover, :focus-within) {
    border-color: rgba(173, 103, 66, 0.56) !important;
    background: #fbfbf9 !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 18px 34px rgba(25, 54, 64, 0.12),
      0 0 20px rgba(207, 116, 61, 0.16) !important;
    transform: translateY(-3px) !important;
  }

  html:not([data-theme="light"]) body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li:is(:hover, :focus-within) {
    border-color: rgba(229, 181, 128, 0.48) !important;
    background-color: #151717 !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 226, 190, 0.08),
      0 20px 42px rgba(0, 0, 0, 0.4),
      0 0 0 3px rgba(193, 139, 82, 0.055) !important;
    transform: translateY(-3px) !important;
  }
}

@media (max-width: 760px) {
  html body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li {
    padding: 16px !important;
  }
}

/* The audience and outcome entries are complete cards, not loose rows. */
html[data-theme] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top .service-quick-overview.service-quick-overview {
  box-sizing: border-box;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(197, 132, 75, 0.42) !important;
  outline: 1px solid rgba(197, 132, 75, 0.42) !important;
  outline-offset: -1px !important;
  padding: clamp(22px, 3vw, 32px) clamp(18px, 2.8vw, 34px) !important;
}

html:not([data-theme="light"]) body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top .service-quick-overview.service-quick-overview {
  border-color: rgba(208, 154, 98, 0.36) !important;
  outline-color: rgba(208, 154, 98, 0.36) !important;
}

body.service-detail-catalog-page .service-overview-group ul {
  gap: 10px !important;
}

body.service-detail-catalog-page .service-overview-group li,
body.service-detail-catalog-page .service-overview-group li:first-child {
  padding: 14px 15px !important;
  border: 1px solid rgba(197, 132, 75, 0.42) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 8px 20px rgba(25, 54, 64, 0.055) !important;
}

html:not([data-theme="light"]) body.service-detail-catalog-page .service-overview-group li,
html:not([data-theme="light"]) body.service-detail-catalog-page .service-overview-group li:first-child {
  border-color: rgba(208, 154, 98, 0.36) !important;
  background: rgba(17, 19, 19, 0.94) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 24px rgba(0, 0, 0, 0.2) !important;
}

/* Detailed service entries use the same illuminated surface as price cards. */
html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li {
  border-color: rgba(190, 105, 55, 0.34) !important;
  background-color: rgba(255, 255, 255, 0.96) !important;
  background-image: none !important;
  color: rgb(25, 54, 64) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 46px rgba(25, 54, 64, 0.14),
    0 0 18px rgba(207, 116, 61, 0.1) !important;
}

html:not([data-theme="light"]) body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li {
  border-color: rgba(208, 154, 98, 0.26) !important;
  background-color: #0d0f0f !important;
  background-image:
    linear-gradient(135deg, rgba(208, 154, 98, 0.055), transparent 38%),
    linear-gradient(155deg, #171919 0%, #101212 56%, #090a0a 100%) !important;
  color: rgba(243, 238, 230, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 14px 34px rgba(0, 0, 0, 0.3) !important;
}

@media (hover: hover) and (pointer: fine) {
  html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li:is(:hover, :focus-within) {
    border-color: rgba(207, 116, 61, 0.82) !important;
    background-color: #ffffff !important;
    box-shadow:
      inset 0 1px 0 #ffffff,
      0 24px 56px rgba(25, 54, 64, 0.2),
      0 0 24px rgba(224, 126, 65, 0.22) !important;
    transform: translateY(-3px) !important;
  }

  html:not([data-theme="light"]) body.service-detail-catalog-page main#top#top#top#top#top#top#top#top#top#top#top#top .service-markdown.service-markdown ul > li:is(:hover, :focus-within) {
    border-color: rgba(229, 181, 128, 0.48) !important;
    background-color: #151717 !important;
    background-image:
      linear-gradient(135deg, rgba(229, 181, 128, 0.085), transparent 42%),
      linear-gradient(155deg, #202222 0%, #151717 58%, #0c0e0e 100%) !important;
    color: #fff7ed !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.065),
      0 20px 42px rgba(0, 0, 0, 0.4),
      0 0 28px rgba(193, 139, 82, 0.2) !important;
    transform: translateY(-3px) !important;
  }
}

@media (max-width: 680px) {
  .service-detail-catalog-page .service-detail-page {
    padding-top: 104px;
  }

  .service-detail-catalog-page .service-markdown h3:has(+ ul) {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 9px;
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .service-detail-catalog-page .service-markdown ul > li {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 0;
    padding: 11px 12px;
  }

  .service-detail-catalog-page .service-markdown ul {
    grid-auto-rows: 176px;
  }
}

/* Route-final overrides: outrank the shared legacy service-page skin. */
html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-detail-page.service-detail-page {
  background-color: #f8fafb !important;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(236, 241, 244, 0.34)),
    var(--section-faceted-cross) !important;
  background-position: center top, center top !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-detail-page :is(
  .service-detail-inner,
  .service-detail-layout,
  .service-detail-content,
  .service-hero,
  .service-quick-overview,
  .service-overview-columns,
  .service-overview-group,
  .service-markdown,
  .service-final-cta
) {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc {
  padding: 8px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: rgba(210, 229, 240, 0.76) !important;
  box-shadow: 0 10px 28px rgba(38, 75, 96, 0.09) !important;
  -webkit-backdrop-filter: blur(18px) saturate(108%) !important;
  backdrop-filter: blur(18px) saturate(108%) !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc nav {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 7px !important;
  padding: 0 !important;
  border: 0 !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc .service-direction-link {
  min-height: 78px !important;
  padding: 10px 8px !important;
  border: 1px solid rgba(190, 105, 55, 0.3) !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.24) !important;
  box-shadow: none !important;
  transform: none !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc .service-direction-link:is(:hover, :focus-visible) {
  border-color: rgba(166, 96, 60, 0.46) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 8px 18px rgba(38, 75, 96, 0.1),
    0 0 16px rgba(207, 116, 61, 0.14) !important;
  transform: translateY(-2px) !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc .service-direction-link.is-active {
  border-color: rgba(166, 96, 60, 0.52) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(232, 242, 247, 0.82)) !important;
  box-shadow:
    0 7px 18px rgba(38, 75, 96, 0.1),
    0 0 16px rgba(207, 116, 61, 0.12) !important;
}

html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc .service-direction-link::before,
html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc .service-direction-link::after,
html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc .service-direction-active-dot {
  display: none !important;
  content: none !important;
  border: 0 !important;
  background: none !important;
}

@media (max-width: 900px) {
  html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc nav {
    display: none !important;
  }

  html.light[data-theme="light"] body.service-detail-catalog-page main#top#top#top#top#top#top#top#top .service-page-toc.service-page-toc .service-direction-select {
    display: grid !important;
  }
}

