/* Convoa-inspired service pages: people, clear plans and quiet pastel panels. */
.service-theme {
  --service-ink: #171914;
  --service-muted: #555a50;
  --service-lime: #e8f99b;
  --service-lavender: #e9e5fb;
  --service-green: #e0efcd;
  --color-text: #171914;
}

.service-theme .service-editorial-hero {
  padding: 130px 0 76px;
  background: #fff;
}
.service-editorial-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 42px;
  font-size: 12px;
  line-height: 1.7;
  color: #555a50;
}
.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(38px, 5.8vw, 84px);
  align-items: center;
}
.service-hero-grid > * { min-width: 0; }
.service-theme .service-hero-copy h1 {
  margin: 0 0 30px;
  color: #171914;
  font-family: "Manrope", sans-serif;
  font-size: clamp(40px, 4.3vw, 62px);
  font-weight: 650;
  line-height: 1.13;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.service-hero-copy h1 mark {
  color: inherit;
  background: #e8f99b;
  padding: 0 0.075em 0.035em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.service-hero-description {
  max-width: 55ch;
  margin: 0;
  color: #555a50;
  font-size: 16px;
  line-height: 1.8;
}
.service-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.service-hero-actions .btn { white-space: normal; text-align: center; min-height: 52px; }
.service-hero-actions .cert-text-link { color: #171914; font-size: 14px; }
.service-hero-scene { position: relative; padding: 0 0 75px 48px; }
.service-portrait { width: 100%; max-width: 410px; margin: 0 0 0 auto; }
.service-portrait-window {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid #171914;
  border-radius: 12px;
  background: #e0efcd;
}
.service-portrait-window img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-portrait figcaption { padding-top: 12px; color: #555a50; text-align: right; font-size: 11px; }
.service-brief {
  position: absolute;
  left: 0;
  bottom: 40px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(370px, 88%);
  padding: 22px;
  border: 1px solid #171914;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 0 #171914;
}
.service-brief-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: #171914;
  color: #e8f99b;
}
.service-theme .service-brief h2 { margin: 0 0 8px; color: #171914; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: -0.02em; }
.service-brief p { margin: 0; color: #555a50; font-size: 12px; line-height: 1.65; }
.service-approach { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 52px; }
.service-theme .service-approach h2 { margin: 0; padding-top: 20px; font-size: 20px; font-weight: 600; line-height: 1.5; letter-spacing: -0.025em; }
.service-route { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: service-step; }
.service-route li { min-width: 0; padding: 20px; border: 1px solid #171914; border-radius: 10px; background: #e9e5fb; color: #171914; font-size: 14px; line-height: 1.45; font-weight: 650; counter-increment: service-step; }
.service-route li:nth-child(2n) { background: #e8f99b; }
.service-route li:nth-child(3n) { background: #e0efcd; }
.service-route li::before { content: counter(service-step); display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 18px; border-radius: 50%; background: #171914; color: #fff; font-size: 11px; }
.service-route small { display: block; margin-top: 9px; font-size: 12px; font-weight: 400; color: #555a50; line-height: 1.65; }

/* Supporting material keeps the hierarchy of the human-led mastheads. */
.service-theme .service-supporting-art { min-width: 0; width: 100%; margin: 0; overflow: hidden; border: 1px solid #171914; border-radius: 12px; background: #e9e5fb; }
.service-supporting-art > div { overflow: hidden; aspect-ratio: 4 / 3; }
.service-supporting-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-supporting-art figcaption { padding: 30px; }
.service-theme .service-supporting-art h3 { margin: 0 0 14px; font-size: clamp(26px, 2.6vw, 35px); line-height: 1.2; letter-spacing: -0.035em; color: #171914; }
.service-supporting-art p { margin: 0; color: #555a50; font-size: 15px; line-height: 1.75; }
.service-theme .services-grid { gap: 20px; }
.service-theme .service-card { border: 1px solid #171914; border-radius: 12px; background: #fff; box-shadow: none; padding: 28px; }
.service-theme .service-card:nth-child(3n + 1) { background: #f3f7ec; }
.service-theme .service-card:nth-child(3n + 2) { background: #f5f3fc; }
.service-theme .service-card:hover { border-color: #171914; box-shadow: 0 4px 0 #171914; transform: translateY(-2px); }
.service-theme .service-icon-wrap { color: #171914; background: #e8f99b; border: 1px solid #171914; border-radius: 10px; }
.service-theme .service-card-title { font-size: 23px; line-height: 1.3; letter-spacing: -0.025em; }
.service-theme .service-card-desc { font-size: 15px; line-height: 1.75; }
.service-theme .info-box { border: 1px solid #171914; border-radius: 12px; background: #e9e5fb; box-shadow: none; }
.service-theme .stats-bar { background: #e9e5fb; border-block: 1px solid #171914; }
.service-theme .stat-number, .service-theme .stat-num { color: #171914; }

/* ISO framework: useful figures and artwork, kept outside the hero. */
.service-theme .iso-overview { padding-block: 76px; background: #f5f7ef; scroll-margin-top: 100px; }
.iso-overview-layout { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.iso-framework-art { margin: 0; min-width: 0; }
.iso-framework-window { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #171914; border-radius: 12px; background: #e0efcd; }
.iso-framework-window img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iso-control-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 22px; color: #555a50; font-size: 12px; font-weight: 600; }
.iso-control-themes span { border-top: 1px solid #171914; padding-top: 12px; }
.iso-overview-copy { min-width: 0; }
.service-theme .iso-overview-copy h2 { font-size: clamp(32px, 3.5vw, 46px); line-height: 1.15; margin-bottom: 28px; letter-spacing: -0.04em; }
.iso-overview-facts { margin: 0; }
.iso-overview-facts > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 6px 25px; align-items: center; padding: 22px 0; border-bottom: 1px solid #aab09f; }
.iso-overview-facts > div:first-child { border-top: 1px solid #aab09f; }
.iso-overview-facts dt { grid-column: 2; font-size: 16px; font-weight: 650; color: #171914; }
.iso-overview-facts dd { display: contents; }
.iso-fact-value { grid-column: 1; grid-row: 1 / span 2; font-size: 49px; line-height: 1; font-weight: 650; letter-spacing: -.04em; color: #171914; }
.iso-fact-note { grid-column: 2; font-size: 13px; line-height: 1.65; color: #555a50; }
.iso-standard-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; min-height: 44px; font-size: 13px; font-weight: 650; color: #171914; text-decoration: underline; text-underline-offset: 4px; }

/* MAS: open, image-led explanations instead of credential badges. */
.mas-story-row { align-items: start; gap: clamp(32px, 5vw, 72px); }
.mas-story-row > * { min-width: 0; }
.mas-story-row .mas-story { position: sticky; top: 112px; width: 100%; margin: 0; overflow: hidden; border: 1px solid #171914; border-radius: 12px; background: #e0efcd; isolation: isolate; scroll-margin-top: 112px; }
.mas-story-art { aspect-ratio: 4 / 3; overflow: hidden; background: #e0efcd; }
.mas-story-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mas-story-caption { position: relative; padding: clamp(24px, 3vw, 38px); }
.service-theme .mas-story-caption h3 { margin: 0 0 14px; color: #171914; font-size: clamp(27px, 2.6vw, 38px); font-weight: 650; line-height: 1.16; letter-spacing: -0.035em; text-wrap: balance; }
.mas-story-caption p { max-width: 42ch; margin: 0; color: #555a50; font-size: 15px; line-height: 1.75; }
.mas-story-focus { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 24px 0 0; padding: 17px 0 0; border-top: 1px solid #a2ac98; list-style: none; color: #171914; font-size: 12px; font-weight: 650; line-height: 1.5; }
.mas-story--evidence .mas-story-caption { background: #e9e5fb; }
.mas-story-source { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 22px; color: #171914; font-size: 14px; font-weight: 650; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; }
.mas-story-source:hover { color: #171914; text-decoration-thickness: 2px; }
.mas-story-source:focus-visible { outline: 2px solid #171914; outline-offset: 6px; }
.mas-story-source svg { flex: 0 0 20px; }

/* CSA substance retains its own navigation, comparison and source structure. */
.service-theme .provider-band { background: #e9e5fb; border-block: 1px solid #171914; }
.service-theme .provider-inner { padding-block: 28px; }
.service-theme .provider-inner p { font-size: 13px; }
.service-theme .provider-inner .provider-label { font-size: 15px; }
.service-theme .provider-mark { color: #171914; }
.service-theme .cert-path { background: #e9e5fb; border-color: #171914; border-radius: 12px; }
.service-theme .cert-path-essentials { background: #e0efcd; }
.service-theme .cert-path li::before { background: #171914; }
.service-theme .cert-role-note { background: #e8f99b; border: 1px solid #171914; border-radius: 10px; }
.service-theme .cert-role-note a,
.service-theme .provider-link a,
.service-theme .cert-source-inline a,
.service-theme .source-links a,
.service-theme .funding-layout a,
.service-theme .cert-faq-answer a,
.service-theme .cert-intro a,
.service-theme .cert-scope-layout a,
.service-theme .cert-path > a:not(.btn) { color: #171914; text-decoration-color: #686f5d; }
.service-theme .cert-facts > div { padding: 20px; border: 1px solid #171914; border-radius: 10px; background: #e9e5fb; }
.service-theme .cert-facts > div:nth-child(even) { background: #e0efcd; }
.service-theme .essentials-map { grid-template-columns: 1fr 1.4fr; }
.essentials-map-art { margin: 0; position: sticky; top: 110px; min-width: 0; }
.essentials-map-art img { display: block; width: 100%; height: auto; border: 1px solid #171914; border-radius: 12px; background: #e0efcd; }
.essentials-map-art figcaption { font-size: 14px; line-height: 1.6; color: #555a50; margin-top: 18px; }
.service-theme .domain-disclosure, .service-theme .domain-disclosure:first-child { border-color: #b5b7ad; }
.service-theme .domain-disclosure summary { gap: 16px; padding-block: 25px; }
.service-theme .domain-heading > span { font-size: 13px; }
.service-theme .domain-answer p { font-size: 14px; }
.service-theme .technology-map article { border-top: 1px solid #171914; background: #f3f7ec; padding: 24px; border-radius: 10px; }
.service-theme .technology-map article:nth-child(even) { background: #f5f3fc; }
.service-theme .cert-journey { gap: 16px; }
.service-theme .cert-journey li { border: 1px solid #171914; border-radius: 12px; background: #e9e5fb; padding: 24px; }
.service-theme .cert-journey li:nth-child(even) { background: #e0efcd; }
.service-theme .cert-journey li.journey-independent { background: #fff; border-style: dashed; }
.service-theme .cert-journey h3 { min-height: 0; }
.service-theme .cert-journey p { min-height: 0; }
.service-theme .journey-index { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #171914; color: #fff; }
.service-theme .funding-section { background: #f5f7ef; }
.service-theme .funding-lead { padding: 32px; background: #e8f99b; border: 1px solid #171914; border-radius: 12px; }
.service-theme .funding-number { color: #171914; }
.service-theme .funding-layout { gap: clamp(32px, 5vw, 72px); }
.service-theme .funding-details { align-content: start; }
.service-theme .funding-details p { font-size: 14px; }
.service-theme .cert-closing { background: #e0efcd; border-block: 1px solid #171914; }
.service-theme .cert-closing p { color: #555a50; }
.service-theme .cert-faq summary { font-size: 16px; }
.service-theme .cert-faq-answer p { font-size: 14px; }
.service-theme .cert-sources p, .service-theme .cert-sources .source-note { font-size: 12px; }
.service-theme .cert-comparison { border-color: #171914; }
.service-theme .scope-diagram, .service-theme .scope-core, .service-theme .scope-nodes > span { color: #171914; background: #e9e5fb; border-color: #171914; box-shadow: none; }
.service-theme .scope-nodes > span:nth-child(even) { background: #e0efcd; }
.service-theme .trust-tier { border-color: #171914; background: #e9e5fb; }
.service-theme .trust-tier:nth-child(even) { background: #e0efcd; }
.service-theme .trust-tier.is-highlighted { background: #e8f99b; color: #171914; }

@media (max-width: 1100px) {
  .service-hero-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; }
  .service-theme .service-hero-copy h1 { font-size: 45px; }
  .service-hero-scene { padding-left: 28px; }
  .service-brief { padding: 18px; }
  .service-approach { grid-template-columns: 1fr; gap: 20px; }
  .service-theme .service-approach h2 { padding-top: 0; }
  .iso-overview-layout { gap: 32px; }
  .iso-overview-facts > div { grid-template-columns: 114px minmax(0, 1fr); gap: 6px 18px; }
  .iso-fact-value { font-size: 43px; }
  .iso-control-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .service-theme .technology-map { gap: 16px; }
  .service-theme .technology-map article, .service-theme .cert-journey li { padding: 20px; }
}

@media (max-width: 900px) {
  .service-theme .service-editorial-hero { padding: 116px 0 56px; }
  .service-editorial-hero .breadcrumb { margin-bottom: 28px; }
  .service-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .service-theme .service-hero-copy h1 { font-size: clamp(36px, 6.2vw, 58px); max-width: 760px; }
  .service-hero-description { max-width: 68ch; }
  .service-hero-scene { width: min(540px, 100%); margin-inline: auto; padding: 0 0 65px 50px; }
  .service-portrait { max-width: 380px; }
  .service-brief { bottom: 25px; }
  .service-route { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-theme .feature-row, .iso-overview-layout, .mas-story-row { grid-template-columns: minmax(0, 1fr); }
  .service-supporting-art { max-width: 640px; justify-self: center; }
  .mas-story-row { gap: 36px; }
  .mas-story-row .mas-story { position: static; max-width: 640px; margin-inline: auto; }
  .service-theme .mas-story-caption h3 { font-size: clamp(28px, 5vw, 36px); }
  .service-theme .essentials-map { grid-template-columns: minmax(0, 1fr); }
  .essentials-map-art { position: static; max-width: 540px; }
  .service-theme .technology-map, .service-theme .cert-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .service-theme .service-editorial-hero { padding-top: 104px; }
  .service-theme .service-hero-copy h1 { font-size: clamp(34px, 9vw, 46px); letter-spacing: -0.045em; margin-bottom: 24px; }
  .service-hero-description { font-size: 15px; line-height: 1.75; }
  .service-hero-actions { gap: 12px; margin-top: 26px; }
  .service-hero-actions .btn { min-height: 48px; padding: 13px 18px; font-size: 13px; }
  .service-hero-scene { padding-left: 22px; padding-bottom: 80px; }
  .service-portrait { max-width: 340px; width: 94%; }
  .service-brief { width: 94%; bottom: 26px; gap: 12px; padding: 18px; }
  .service-portrait figcaption { font-size: 10px; }
  .service-approach { margin-top: 24px; }
  .service-route { grid-template-columns: minmax(0, 1fr); }
  .service-route li { display: flex; align-items: flex-start; gap: 15px; padding: 20px; }
  .service-route li::before { flex: 0 0 24px; margin: 0; }
  .service-route small { margin-top: 6px; }
  .service-theme .iso-overview { padding-block: 54px; }
  .iso-control-themes { padding-top: 16px; }
  .service-theme .iso-overview-copy h2 { font-size: 35px; }
  .iso-overview-facts > div { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; }
  .iso-overview-facts dt { font-size: 15px; }
  .iso-fact-note { font-size: 13px; }
  .iso-fact-value { font-size: 38px; }
  .service-supporting-art figcaption, .mas-story-caption { padding: 24px; }
  .service-theme .technology-map, .service-theme .cert-journey { grid-template-columns: minmax(0, 1fr); }
  .service-theme .funding-lead { padding: 26px; }
  .service-theme .service-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-theme .service-card:hover { transform: none; }
}
