.kmse-service-page,
.kmse-service-archive {
  --kmse-ink: #181818;
  --kmse-surface: #f4faf7;
  --kmse-card: #ffffff;
  --kmse-muted: #5f6b66;
  --kmse-line: rgba(24,24,24,.08);
  --kmse-shadow: 0 18px 45px rgba(8,24,17,.08);
  color: var(--kmse-ink);
}
.kmse-service-page a,
.kmse-service-archive a { text-decoration: none; }
.kmse-service-page .kmse-wrap,
.kmse-service-archive .kmse-wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.kmse-service-archive .kmse-wrap.kmse-wrap-archive { width: min(1360px, calc(100% - 40px)); }

.kmse-hero {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at 10% 20%, color-mix(in srgb,var(--kmse-accent,#00A850) 28%,transparent), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 25%),
    linear-gradient(135deg, #09120f 0%, #122a22 46%, color-mix(in srgb,var(--kmse-accent,#00A850) 32%,#08100e) 100%);
  color: #fff;
  padding: 36px 0 104px;
}
.kmse-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -180px auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb,var(--kmse-accent,#00A850) 34%,rgba(255,255,255,.08)) 0%, rgba(255,255,255,0) 70%);
  opacity: .75;
  pointer-events: none;
}
.kmse-breadcrumbs { font-size: 13px; line-height: 1.4; margin: 0 0 18px; color: rgba(255,255,255,.76); }
.kmse-breadcrumbs a { color: rgba(255,255,255,.86); }
.kmse-hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(330px,.92fr); gap: 28px; align-items: end; }
.kmse-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.84); }
.kmse-kicker::before { content: ""; width: 36px; height: 2px; border-radius: 999px; background: color-mix(in srgb,var(--kmse-accent,#00A850) 55%,#fff 45%); }
.kmse-hero h1 { margin: 0; font-size: clamp(34px,5vw,66px); line-height: 1.02; font-weight: 900; letter-spacing: -.04em; max-width: 12ch; }
.kmse-hero-summary { margin: 18px 0 0; font-size: 17px; line-height: 1.75; max-width: 60ch; color: rgba(255,255,255,.88); }
.kmse-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.kmse-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  font-weight: 800; font-size: 14px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.kmse-btn:hover { transform: translateY(-1px); }
.kmse-btn-primary {
  background: linear-gradient(135deg, color-mix(in srgb,var(--kmse-accent,#00A850) 78%,#d8ff39 22%), var(--kmse-accent,#00A850));
  color: #0c130f;
  box-shadow: 0 14px 34px color-mix(in srgb,var(--kmse-accent,#00A850) 18%,transparent);
}
.kmse-btn-secondary { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.kmse-btn-outline { background: transparent; color: var(--kmse-accent,#00A850); border: 1.5px solid color-mix(in srgb,var(--kmse-accent,#00A850) 42%,#fff); }

.kmse-media-card {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg,rgba(255,255,255,.16),rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 24px 58px rgba(0,0,0,.22);
}
.kmse-media-card-offset { transform: translateY(56px); z-index: 4; }
.kmse-media-card img,
.kmse-media-card iframe,
.kmse-media-card video,
.kmse-media-card .kmse-media-frame iframe,
.kmse-media-card .kmse-media-frame video,
.kmse-media-card .kmse-media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.kmse-media-card .kmse-media-frame,
.kmse-media-card .kmse-media-fallback { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #0e1612; }
.kmse-media-card .kmse-media-frame::before,
.kmse-media-card .kmse-media-fallback::before { content: ""; display: block; padding-top: 56.25%; }
.kmse-media-card .kmse-media-frame iframe,
.kmse-media-card .kmse-media-frame video,
.kmse-media-card .kmse-media-frame img,
.kmse-media-card .kmse-media-fallback > div { position: absolute; inset: 0; }
.kmse-media-card .kmse-media-fallback {
  display: grid; place-items: center; padding: 28px; text-align: left;
  background: radial-gradient(circle at 20% 20%,rgba(255,255,255,.18),transparent 30%), linear-gradient(135deg,color-mix(in srgb,var(--kmse-accent,#00A850) 40%,#0e1d18) 0%,#13221c 100%);
}
.kmse-media-card .kmse-media-fallback > div { display: grid; place-items: center; padding: 28px; text-align: left; }
.kmse-media-card .kmse-media-fallback strong { display: block; font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.82); }
.kmse-media-card .kmse-media-fallback span { display: block; margin-top: 10px; font-size: 27px; line-height: 1.08; font-weight: 900; letter-spacing: -.03em; color: #fff; }

.kmse-overlap-shell { margin-top: -8px; position: relative; z-index: 3; }
.kmse-pills { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px; border-radius: 26px; background: #fff; box-shadow: var(--kmse-shadow); }
.kmse-pill { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb,var(--kmse-accent,#00A850) 10%,#fff 90%); color: #173228; border: 1px solid color-mix(in srgb,var(--kmse-accent,#00A850) 16%,#fff 84%); font-weight: 700; font-size: 13px; }

.kmse-page-main { padding: 26px 0 76px; background: linear-gradient(180deg,#f7fbf8 0%,#ffffff 22%,#f8fbf9 100%); }
.kmse-intro-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(320px,.92fr); gap: 24px; align-items: stretch; }
.kmse-card { background: #fff; border: 1px solid var(--kmse-line); border-radius: 26px; box-shadow: var(--kmse-shadow); }
.kmse-prose { padding: 28px; height: 100%; }
.kmse-prose p,
.kmse-prose li { font-size: 16px; line-height: 1.8; color: #42514c; }
.kmse-prose h2 { margin: 0 0 14px; font-size: clamp(28px,4vw,42px); line-height: 1.05; font-weight: 900; letter-spacing: -.03em; }
.kmse-prose h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.kmse-prose p:last-child { margin-bottom: 0; }
.kmse-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: var(--kmse-accent,#00A850); }
.kmse-eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 999px; background: var(--kmse-accent,#00A850); }
.kmse-value-stack { padding: 24px; height: 100%; display:grid; align-content:start; }
.kmse-value-stack h3 { margin: 0 0 14px; font-size: 24px; line-height: 1.1; }
.kmse-value-list { display: grid; gap: 12px; }
.kmse-value-item { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 18px; background: linear-gradient(180deg,#fbfefd 0%,#f3f9f6 100%); border: 1px solid rgba(24,24,24,.06); }
.kmse-value-item b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg,color-mix(in srgb,var(--kmse-accent,#00A850) 18%,#fff),color-mix(in srgb,var(--kmse-accent,#00A850) 44%,#fff)); color: #0c170f; font-size: 18px; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.kmse-value-item span { display: block; font-size: 15px; line-height: 1.7; color: #45534d; }

.kmse-sections { margin-top: 34px; display: grid; gap: 22px; }
.kmse-section-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.78fr); gap: 24px; padding: 28px; align-items: center; min-height: 320px; }
.kmse-section-card:nth-child(even) .kmse-section-visual { order: -1; }
.kmse-section-index { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg,color-mix(in srgb,var(--kmse-accent,#00A850) 16%,#fff),color-mix(in srgb,var(--kmse-accent,#00A850) 42%,#fff)); color: #07100a; font-size: 18px; font-weight: 900; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.kmse-section-text h3 { margin: 16px 0 10px; font-size: clamp(24px,3vw,34px); line-height: 1.08; font-weight: 900; letter-spacing: -.03em; }
.kmse-section-text p { margin: 0; font-size: 16px; line-height: 1.85; color: #45534d; }
.kmse-section-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.kmse-section-tags span { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border-radius: 999px; background: #f6fbf8; border: 1px solid rgba(24,24,24,.06); color: #304038; font-size: 13px; font-weight: 700; }
.kmse-section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.kmse-section-visual {
  min-height: 280px; border-radius: 24px; border: 1px solid rgba(24,24,24,.06); overflow: hidden; position: relative;
  background: radial-gradient(circle at 18% 20%,rgba(255,255,255,.7),transparent 24%), linear-gradient(135deg,color-mix(in srgb,var(--kmse-accent,#00A850) 8%,#f6fcf8) 0%,color-mix(in srgb,var(--kmse-accent,#00A850) 18%,#eef7f1) 100%);
}
.kmse-section-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.kmse-section-visual::before,
.kmse-section-visual::after { content: ""; position: absolute; border-radius: 999px; }
.kmse-section-visual::before { width: 160px; height: 160px; left: -32px; bottom: -40px; background: radial-gradient(circle,color-mix(in srgb,var(--kmse-accent,#00A850) 28%,transparent),transparent 70%); }
.kmse-section-visual::after { width: 110px; height: 110px; right: 18px; top: 18px; background: radial-gradient(circle,rgba(255,255,255,.8),transparent 70%); }
.kmse-section-visual.has-image::before,
.kmse-section-visual.has-image::after { opacity: .8; }
.kmse-section-visual.no-image { background: radial-gradient(circle at 18% 20%,rgba(255,255,255,.84),transparent 24%), linear-gradient(135deg,color-mix(in srgb,var(--kmse-accent,#00A850) 9%,#f6fcf8) 0%,color-mix(in srgb,var(--kmse-accent,#00A850) 18%,#eef7f1) 100%); }
.kmse-section-visual-inner {
  position: absolute; inset: auto 0 0 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(180deg, rgba(4,9,7,0) 0%, rgba(4,9,7,.72) 78%, rgba(4,9,7,.9) 100%);
}
.kmse-section-visual small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.8); }
.kmse-section-visual strong { display: block; margin-top: 8px; font-size: 22px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; color: #fff; }

.kmse-expert-block { margin-top: 34px; padding: 34px; background: linear-gradient(180deg,#ffffff 0%,#f7fbf8 100%); }
.kmse-expert-block.no-media .kmse-expert-grid { grid-template-columns: 1fr; }
.kmse-expert-grid { display: grid; grid-template-columns: minmax(300px,420px) minmax(0,1fr); gap: 34px; align-items: stretch; }
.kmse-expert-media-col { display:grid; gap:18px; align-self:stretch; }
.kmse-expert-media { aspect-ratio: 4 / 5; min-height: 0; height: 100%; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg,#f8f9f7 0%,#eef2ef 100%); border: 1px solid rgba(24,24,24,.06); position: relative; box-shadow: 0 16px 40px rgba(8,24,17,.08); }
.kmse-expert-media.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.kmse-expert-placeholder { min-height: 380px; display:grid; place-items:center; background: radial-gradient(circle at 30% 20%,rgba(255,255,255,.92),transparent 30%), linear-gradient(135deg,color-mix(in srgb,var(--kmse-accent,#00A850) 8%,#f3f7f4),#eef2ef); }
.kmse-expert-placeholder span { width: 112px; height: 112px; border-radius: 999px; display:grid; place-items:center; font-size: 44px; font-weight: 900; color: #102018; background: linear-gradient(135deg,color-mix(in srgb,var(--kmse-accent,#00A850) 22%,#fff),#fff); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.kmse-expert-copy { display:flex; flex-direction:column; gap: 0; justify-content:center; min-height: 100%; }
.kmse-expert-copy h2 { margin: 10px 0 12px; font-size: clamp(34px,4vw,54px); line-height: 1.02; font-weight: 900; letter-spacing: -.04em; max-width: 12ch; }
.kmse-expert-role { margin: 0; color: var(--kmse-accent,#00A850); font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kmse-expert-bio { margin: 18px 0 0; font-size: 17px; line-height: 1.85; color: #42514c; max-width: 58ch; }
.kmse-expert-bio p { margin: 0 0 12px; }
.kmse-expert-bio p:last-child { margin-bottom: 0; }
.kmse-expert-actions { margin-top: 24px; }
.kmse-cert-wrap { margin-top: 28px; }
.kmse-cert-wrap-below-block { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(24,24,24,.08); }
.kmse-cert-wrap-inline { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(24,24,24,.08); }
.kmse-cert-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #55655f; }
.kmse-cert-logos { display: grid; grid-template-columns: repeat(auto-fit,minmax(92px,1fr)); gap: 12px; align-items: stretch; }
.kmse-cert-logo { display: flex; align-items: center; justify-content: center; min-height: 82px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid rgba(24,24,24,.08); box-shadow: 0 8px 20px rgba(0,0,0,.04); overflow: hidden; }
.kmse-cert-logo img { width: 100% !important; max-width: 110px !important; height: 56px !important; max-height: 56px !important; object-fit: contain !important; display: block; }

.kmse-faq-block,
.kmse-posts-block { margin-top: 34px; }
.kmse-faq-card,
.kmse-posts-card { padding: 28px; }
.kmse-faq-list { display: grid; gap: 12px; margin-top: 18px; }
.kmse-faq-item { border: 1px solid rgba(24,24,24,.08); border-radius: 18px; background: linear-gradient(180deg,#fff 0%,#f8fbf9 100%); overflow: hidden; box-shadow: 0 8px 18px rgba(10,24,18,.04); }
.kmse-faq-question { list-style: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: transparent; border: 0; text-align: left; cursor: pointer; font-size: 18px; font-weight: 800; color: #15231c; line-height: 1.45; }
.kmse-faq-question::-webkit-details-marker { display:none; }
.kmse-faq-question span { display:block; }
.kmse-faq-question::after { content: '+'; flex: 0 0 auto; color: var(--kmse-accent,#00A850); font-size: 28px; font-weight: 500; line-height: 1; width: 36px; height: 36px; display:grid; place-items:center; border-radius: 999px; background: color-mix(in srgb,var(--kmse-accent,#00A850) 10%,#fff); }
.kmse-faq-item.is-open .kmse-faq-question::after { content: "−"; }
.kmse-faq-answer { padding: 0 20px 20px; color: #46554f; font-size: 15px; line-height: 1.75; border-top: 1px solid rgba(24,24,24,.06); background: linear-gradient(180deg,#fbfefd 0%,#f4f9f6 100%); }
.kmse-faq-answer p { margin: 14px 0 0; }
.kmse-posts-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.kmse-post-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; border: 1px solid rgba(24,24,24,.08); border-radius: 22px; background: #fff; }
.kmse-post-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.kmse-post-card-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; height: 100%; }
.kmse-post-card h3 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; }
.kmse-post-card p { margin: 0; color: #46554f; font-size: 15px; line-height: 1.7; }
.kmse-post-card .kmse-btn { margin-top: auto; width: max-content; }
.kmse-posts-footer { display: flex; justify-content: flex-end; margin-top: 20px; }

.kmse-bottom-cta {
  margin-top: 36px; padding: 28px; border-radius: 28px;
  background: radial-gradient(circle at 10% 20%,color-mix(in srgb,var(--kmse-accent,#00A850) 18%,transparent),transparent 28%), linear-gradient(135deg,#0c1511 0%,#14251d 52%,color-mix(in srgb,var(--kmse-accent,#00A850) 26%,#11221b) 100%);
  color: #fff; box-shadow: 0 22px 54px rgba(0,0,0,.14);
}
.kmse-bottom-cta-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; }
.kmse-bottom-cta h3 { margin: 0 0 8px; font-size: clamp(24px,3vw,34px); line-height: 1.1; font-weight: 900; }
.kmse-bottom-cta p { margin: 0; font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.82); }

.kmse-archive-head { padding: 34px 0 12px; }
.kmse-archive-head h1 { margin: 0; font-size: clamp(34px,5vw,62px); line-height: 1.04; font-weight: 900; letter-spacing: -.04em; max-width: 14ch; }
.kmse-archive-head p { max-width: 72ch; margin: 16px 0 0; font-size: 17px; line-height: 1.8; color: #50605a; }
.kmse-archive-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 24px 0 76px; align-items: stretch; }
.kmse-service-tile { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 286px; border-radius: 26px; background: #fff; border: 1px solid rgba(24,24,24,.06); box-shadow: var(--kmse-shadow); }
.kmse-service-tile-top { padding: 22px 22px 20px; min-height: 116px; color: #fff; background: linear-gradient(135deg,color-mix(in srgb,var(--kmse-tile-accent,#00A850) 76%,#1a201c 24%),color-mix(in srgb,var(--kmse-tile-accent,#00A850) 45%,#0e1712 55%)); }
.kmse-service-tile-top h2 { margin: 0; font-size: clamp(22px,2vw,26px); line-height: 1.08; font-weight: 900; letter-spacing: -.03em; text-wrap: balance; }
.kmse-service-tile-body { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 22px; }
.kmse-service-tile-body p { margin: 0; color: #46554f; font-size: 15px; line-height: 1.72; }
.kmse-service-tile .kmse-btn { margin-top: auto; width: max-content; }

@media (max-width: 1320px) {
  .kmse-archive-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 1100px) {
  .kmse-hero-grid,
  .kmse-intro-grid,
  .kmse-section-card,
  .kmse-bottom-cta-grid,
  .kmse-posts-grid,
  .kmse-expert-grid { grid-template-columns: 1fr; }
  .kmse-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kmse-media-card-offset { transform: none; margin-top: 22px; }
  .kmse-section-card:nth-child(even) .kmse-section-visual { order: 0; }
  .kmse-expert-media { min-height: 340px; }
}

@media (max-width: 767px) {
  .kmse-archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .kmse-hero { padding: 28px 0 48px; }
  .kmse-overlap-shell { margin-top: 0; }
  .kmse-pills,
  .kmse-prose,
  .kmse-value-stack,
  .kmse-section-card,
  .kmse-bottom-cta,
  .kmse-expert-block,
  .kmse-faq-card,
  .kmse-posts-card { padding: 20px; }
  .kmse-media-card { min-height: 250px; }
  .kmse-media-card-offset { transform: none; margin-top: 18px; }
  .kmse-section-visual,
  .kmse-expert-media { min-height: 240px; }
  .kmse-post-card img { height: 170px; }
}

.kmse-posts-empty { margin: 12px 0 0; color: #46554f; font-size: 15px; line-height: 1.75; }


.kmse-expert-copy .kmse-expert-role + h2 { margin-top: 6px; }
.kmse-expert-copy .kmse-expert-bio { max-width: 100%; }
.kmse-faq-item[open] { box-shadow: 0 14px 26px rgba(10,24,18,.08); border-color: color-mix(in srgb,var(--kmse-accent,#00A850) 22%, rgba(24,24,24,.08)); }
@media (min-width: 1101px) {
  .kmse-expert-copy { padding-right: 12px; }
}


/* 3VG hotfix v1.4.1 — prevent long unbroken expert text from overflowing */
.kmse-expert-copy,
.kmse-expert-copy > *,
.kmse-expert-copy h2,
.kmse-expert-role,
.kmse-expert-bio,
.kmse-expert-bio p,
.kmse-faq-question span,
.kmse-section-text h3,
.kmse-section-text p,
.kmse-hero-summary {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.kmse-expert-copy h2 {
  text-wrap: balance;
}

