:root {
  --km-page: #eef0f7;
  --km-surface: #fbfcff;
  --km-panel: #ffffff;
  --km-sidebar: #f8f9fd;
  --km-line: #e5e8f1;
  --km-text: #15203a;
  --km-muted: #747b8e;
  --km-blue: #245fe5;
  --km-blue-2: #2ea8ed;
  --km-blue-soft: #eaf1ff;
  --km-lilac: #ecebfb;
  --km-pink: #f8e9ef;
  --km-cyan: #e8f6fb;
  --km-radius-xl: 24px;
  --km-radius-lg: 18px;
  --km-radius-md: 14px;
  --km-shadow: 0 24px 70px rgba(37, 51, 92, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.km-site-page {
  margin: 0;
  min-width: 320px;
  background: var(--km-page);
  color: var(--km-text);
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
body.km-menu-open { overflow: hidden; }
body.km-site-page a { color: inherit; text-decoration: none; }
body.km-site-page button,
body.km-site-page input { font: inherit; }
body.km-site-page .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.km-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.km-app {
  width: min(1540px, calc(100% - 40px));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: var(--km-surface);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--km-radius-xl);
  box-shadow: var(--km-shadow);
  overflow: hidden;
}

.km-sidebar {
  position: relative;
  z-index: 30;
  min-width: 0;
  background: linear-gradient(180deg, #fbfcff 0%, #f6f7fc 100%);
  border-right: 1px solid var(--km-line);
}
.km-sidebar-head {
  min-height: 88px;
  padding: 24px 26px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.km-brand { display: inline-flex; align-items: center; color: var(--km-blue); font-size: 24px; font-weight: 700; letter-spacing: -.7px; }
.km-logo-image { width: auto; max-width: 190px; max-height: 48px; object-fit: contain; }
.km-sidebar-scroll { height: calc(100vh - 148px); min-height: 620px; overflow-y: auto; padding: 0 20px 26px; scrollbar-width: thin; scrollbar-color: #c9cede transparent; }
.km-sidebar-scroll::-webkit-scrollbar { width: 5px; }
.km-sidebar-scroll::-webkit-scrollbar-thumb { background: #c9cede; border-radius: 10px; }
.km-menu-label { margin: 4px 10px 14px; color: #9096a8; font-size: 16px; font-weight: 700; letter-spacing: .45px; }
.km-sidebar-menu { display: grid; gap: 6px; }
.km-nav-link {
  min-height: 52px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #5f687d;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 500;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.km-nav-link:hover { color: var(--km-blue); background: rgba(255,255,255,.8); transform: translateX(2px); }
.km-nav-link.is-active {
  color: #172039;
  background: rgba(255,255,255,.95);
  border-color: rgba(225,228,239,.95);
  box-shadow: 0 10px 28px rgba(51,63,103,.08);
  font-weight: 700;
}
.km-nav-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #6f7890; border-radius: 11px; }
.km-nav-link.is-active .km-nav-icon { color: var(--km-blue); background: var(--km-blue-soft); }
.km-sidebar-note {
  margin-top: 28px;
  padding: 20px;
  background: linear-gradient(145deg, #edf3ff, #f7f9ff);
  border: 1px solid #e1e8f7;
  border-radius: 18px;
}
.km-sidebar-note[hidden] { display: none; }
.km-note-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 13px; color: var(--km-blue); background: #fff; border-radius: 13px; }
.km-sidebar-note strong { display: block; margin-bottom: 8px; font-size: 17px; }
.km-sidebar-note p { margin: 0; color: var(--km-muted); font-size: 16px; line-height: 1.55; }

.km-main { min-width: 0; padding: 26px 30px 24px; }
.km-topbar {
  min-height: 58px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(330px, 390px) minmax(190px, 240px) auto;
  align-items: center;
  gap: 18px;
}
.km-topbar-title { font-size: 21px; font-weight: 700; white-space: nowrap; }
.km-switcher { justify-self: center; display: grid; grid-template-columns: 1fr 1fr; min-width: 350px; padding: 4px; background: #f0f2f8; border: 1px solid #e5e8f0; border-radius: 13px; }
.km-switch { min-height: 42px; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #7d8495; background: transparent; border: 0; border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 500; transition: .18s ease; }
.km-switch .km-icon { width: 19px; height: 19px; }
.km-switch.is-active { color: #fff; background: linear-gradient(135deg, #2766e8, #2354cf); box-shadow: 0 8px 20px rgba(36,95,229,.24); font-weight: 600; }
.km-top-search { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--km-line); border-radius: 12px; background: #fff; }
.km-top-search .km-icon { flex: 0 0 auto; width: 20px; height: 20px; color: #5c657a; }
.km-top-search input { width: 100%; min-width: 0; padding: 8px 0; color: var(--km-text); background: transparent; border: 0; outline: 0; font-size: 16px; }
.km-top-search input::placeholder { color: #9ba1b0; }
.km-social-top { display: flex; align-items: center; gap: 8px; }
.km-social-top a, .km-icon-button { width: 42px; height: 42px; display: grid; place-items: center; color: #526078; background: #fff; border: 1px solid var(--km-line); border-radius: 12px; cursor: pointer; }
.km-social-top a:hover { color: var(--km-blue); }
.km-sidebar-open, .km-sidebar-close { display: none; }
.km-overlay { display: none; }

.km-mode-host { min-height: 640px; }
.km-mode h1, .km-mode h2, .km-mode h3, .km-mode p { margin-top: 0; }
.km-hero {
  position: relative;
  min-height: 315px;
  padding: 46px 50px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(103,229,255,.5), transparent 26%),
    linear-gradient(125deg, #174dbd 0%, #1767db 50%, #32c1e8 100%);
  border-radius: 22px;
}
.km-hero::before, .km-hero::after { content:""; position:absolute; border-radius:50%; border:1px solid rgba(255,255,255,.15); }
.km-hero::before { width: 560px; height: 560px; right: -180px; top: -300px; }
.km-hero::after { width: 430px; height: 430px; right: 120px; bottom: -350px; }
.km-hero-copy { position: relative; z-index: 2; max-width: 730px; }
.km-hero-kicker { display: inline-block; margin-bottom: 14px; font-size: 16px; font-weight: 700; letter-spacing: .8px; opacity: .82; }
.km-hero h1 { margin-bottom: 14px; color: #fff; font-size: clamp(36px, 4vw, 52px); line-height: 1.08; letter-spacing: -1.5px; font-weight: 700; }
.km-hero p { max-width: 690px; margin-bottom: 25px; color: rgba(255,255,255,.9); font-size: 18px; line-height: 1.65; }
.km-primary-button { min-height: 48px; width: fit-content; padding: 12px 18px; display: inline-flex; align-items: center; gap: 10px; color: #174dbd; background: #fff; border-radius: 13px; font-size: 16px; font-weight: 700; box-shadow: 0 12px 28px rgba(8,44,124,.22); }
.km-primary-button .km-icon { width: 20px; height: 20px; }
.km-hero-art { position: relative; z-index: 2; width: 100%; height: 240px; display: grid; place-items: center; }
.km-medical-shield { position: relative; z-index: 3; width: 150px; height: 170px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.12)); border: 1px solid rgba(255,255,255,.42); border-radius: 42% 42% 48% 48%; box-shadow: inset 0 0 38px rgba(255,255,255,.16), 0 22px 50px rgba(4,61,141,.28); backdrop-filter: blur(8px); }
.km-medical-shield .km-icon { width: 88px; height: 88px; stroke-width: 1.25; }
.km-orbit { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.km-orbit-one { width: 270px; height: 150px; transform: rotate(-18deg); }
.km-orbit-two { width: 330px; height: 200px; transform: rotate(24deg); }
.km-pulse-chip { position: absolute; right: 12%; top: 19%; width: 86px; height: 62px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; backdrop-filter: blur(8px); }
.km-pulse-chip .km-icon { width: 48px; height: 48px; }

.km-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.km-stats-overlap { position: relative; z-index: 5; width: calc(100% - 44px); margin: -70px auto 25px; }
.km-stat-card { min-height: 125px; padding: 20px 22px; display: flex; align-items: center; gap: 17px; background: rgba(255,255,255,.97); border: 1px solid rgba(229,232,241,.96); border-radius: 17px; box-shadow: 0 15px 34px rgba(37,51,92,.10); }
.km-stat-icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; color: var(--km-blue); background: var(--km-blue-soft); border-radius: 50%; }
.km-stat-icon .km-icon { width: 27px; height: 27px; }
.km-stat-card strong { display: block; font-size: 29px; line-height: 1.05; letter-spacing: -.8px; }
.km-stat-card span:not(.km-stat-icon) { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; }
.km-stat-card small { display: block; margin-top: 5px; color: var(--km-muted); font-size: 16px; line-height: 1.4; }

.km-section { margin-top: 26px; }
.km-section-head, .km-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.km-section-head { margin-bottom: 14px; }
.km-section-head h2, .km-panel-head h2 { margin-bottom: 3px; color: #18223b; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.25px; }
.km-section-head p, .km-panel-head p { margin-bottom: 0; color: var(--km-muted); font-size: 16px; }
.km-section-head > a, .km-panel-head > a { display: inline-flex; align-items: center; gap: 5px; color: #66718a; font-size: 16px; font-weight: 500; white-space: nowrap; }
.km-section-head > a .km-icon, .km-panel-head > a .km-icon { width: 18px; height: 18px; }
.km-title-dot { display: inline-block; width: 7px; height: 7px; margin-left: 8px; background: var(--km-blue); border-radius: 50%; vertical-align: middle; }
.km-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.km-story-card { min-width: 0; padding: 11px; display: grid; grid-template-columns: 38% minmax(0,1fr); gap: 13px; background: #fff; border: 1px solid var(--km-line); border-radius: 15px; }
.km-story-media { min-height: 150px; overflow: hidden; border-radius: 11px; background: linear-gradient(145deg, #eef1ff, #e7ecf7); }
.km-post-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.km-image-fallback { width: 100%; height: 100%; min-height: 100px; display: grid; place-items: center; color: #6472aa; background: linear-gradient(145deg, #eef0fa, #dfe7f7); }
.km-image-fallback .km-icon { width: 50px; height: 50px; }
.km-story-content { min-width: 0; padding: 4px 2px 2px 0; }
.km-eyebrow { display: block; margin-bottom: 7px; color: var(--km-blue); font-size: 16px; font-weight: 600; }
.km-story-card h3 { margin-bottom: 8px; font-size: 17px; line-height: 1.4; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.km-story-card p { margin-bottom: 8px; color: var(--km-muted); font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.km-meta { color: #8990a1; font-size: 16px; }

.km-patient-grid { margin-top: 26px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(280px,.78fr); gap: 14px; align-items: stretch; }
.km-panel { min-width: 0; padding: 20px; background: #fff; border: 1px solid var(--km-line); border-radius: 17px; }
.km-panel-head { margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--km-line); }
.km-panel-head h2 { display: flex; align-items: center; gap: 9px; }
.km-panel-head h2 .km-icon { width: 23px; height: 23px; color: var(--km-blue); }
.km-list { display: grid; }
.km-list-item { min-width: 0; padding: 12px 0; display: grid; grid-template-columns: 74px minmax(0,1fr) 30px; gap: 12px; align-items: center; border-bottom: 1px solid var(--km-line); }
.km-list-item:last-child { border-bottom: 0; }
.km-list-thumb { width: 74px; height: 62px; overflow: hidden; border-radius: 10px; background: #eef1f8; }
.km-list-copy { min-width: 0; }
.km-list-copy h3 { margin: 2px 0 5px; font-size: 16px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.km-row-arrow { width: 30px; height: 30px; display: grid; place-items: center; color: #657087; border-radius: 9px; }
.km-row-arrow:hover { color: var(--km-blue); background: var(--km-blue-soft); }
.km-row-arrow .km-icon { width: 18px; height: 18px; }
.km-mini-badge { display: inline-flex; padding: 3px 7px; color: #3465c9; background: #edf3ff; border-radius: 999px; font-size: 16px; font-weight: 600; }
.km-side-stack { display: grid; grid-template-rows: 1.15fr .85fr; gap: 14px; }
.km-social-card { padding: 22px; color: #fff; background: linear-gradient(145deg, #2869ec, #1f55cc); border-radius: 17px; overflow: hidden; }
.km-social-card h2, .km-order-card h2 { margin-bottom: 7px; font-size: 20px; }
.km-social-card p, .km-order-card p { margin-bottom: 14px; font-size: 16px; line-height: 1.5; }
.km-social-card p { color: rgba(255,255,255,.88); }
.km-social-card > a { min-height: 42px; margin-top: 9px; padding: 8px 10px; display: grid; grid-template-columns: 22px 1fr 18px; gap: 9px; align-items: center; color: #2048a5; background: #fff; border-radius: 10px; font-size: 16px; font-weight: 600; }
.km-social-card > a .km-icon { width: 20px; height: 20px; }
.km-order-card { padding: 20px; display: flex; align-items: center; gap: 16px; background: linear-gradient(145deg, #f2f5ff, #edf1fb); border: 1px solid #e1e7f4; border-radius: 17px; }
.km-order-card > span { flex: 0 0 66px; width: 66px; height: 66px; display: grid; place-items: center; color: var(--km-blue); background: #fff; border-radius: 50%; }
.km-order-card > span .km-icon { width: 33px; height: 33px; }
.km-order-card a, .km-partner-banner a { display: inline-flex; align-items: center; gap: 6px; color: var(--km-blue); font-size: 16px; font-weight: 700; }
.km-order-card a .km-icon, .km-partner-banner a .km-icon { width: 18px; height: 18px; }
.km-disclaimer { margin-top: 22px; padding: 12px 18px; color: #818899; text-align: center; font-size: 16px; }

.km-pro-intro { min-height: 115px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #f0f4ff, #f9fbff); border: 1px solid #e1e7f5; border-radius: 18px; }
.km-pro-intro .km-hero-kicker { margin-bottom: 5px; color: var(--km-blue); }
.km-pro-intro h1 { margin-bottom: 5px; font-size: 32px; line-height: 1.15; }
.km-pro-intro p { margin-bottom: 0; color: var(--km-muted); font-size: 17px; }
.km-pro-intro .km-primary-button { color: #fff; background: linear-gradient(135deg, #2766e8, #2354cf); }
.km-pro-stats { margin-top: 14px; }
.km-pro-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.km-pro-bottom { margin-top: 14px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.km-partner-banner, .km-review-card { min-height: 145px; padding: 22px; display: flex; align-items: center; gap: 18px; border-radius: 17px; }
.km-partner-banner { background: linear-gradient(135deg, #eaf1ff, #f6f9ff); border: 1px solid #dfe7f5; }
.km-review-card { background: #fff; border: 1px solid var(--km-line); }
.km-partner-banner > span, .km-review-card > span { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3676ed, #2457d1); border-radius: 50%; }
.km-partner-banner > span .km-icon, .km-review-card > span .km-icon { width: 29px; height: 29px; }
.km-partner-banner h2, .km-review-card h2 { margin-bottom: 6px; font-size: 20px; }
.km-partner-banner p, .km-review-card p { margin-bottom: 7px; color: var(--km-muted); font-size: 16px; }

.km-defer { content-visibility: auto; contain-intrinsic-size: auto 720px; }
[hidden] { display: none !important; }

@media (max-width: 1280px) {
  .km-app { grid-template-columns: 250px minmax(0,1fr); }
  .km-main { padding: 22px; }
  .km-topbar { grid-template-columns: auto 1fr minmax(200px,260px); }
  .km-topbar-title { display: none; }
  .km-switcher { justify-self: start; min-width: 420px; }
  .km-social-top { display: none; }
  .km-patient-grid { grid-template-columns: 1fr 1fr; }
  .km-side-stack { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}

@media (max-width: 1024px) {
  .km-app { width: min(100% - 24px, 980px); margin: 12px auto; display: block; min-height: calc(100vh - 24px); }
  .km-sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(330px, 88vw); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(25,35,70,.18); border-radius: 0 20px 20px 0; }
  .km-sidebar.is-open { transform: translateX(0); }
  .km-sidebar-scroll { height: calc(100vh - 88px); min-height: 0; }
  .km-sidebar-open, .km-sidebar-close { display: grid; }
  .km-overlay { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(20,28,51,.38); opacity: 0; transition: opacity .18s ease; }
  .km-overlay.is-visible { opacity: 1; }
  .km-main { padding: 18px; }
  .km-topbar { grid-template-columns: auto 1fr minmax(210px, 270px); }
  .km-switcher { min-width: 0; width: 100%; }
  .km-story-grid { grid-template-columns: 1fr; }
  .km-story-card { grid-template-columns: 190px 1fr; }
}

@media (max-width: 760px) {
  .km-app { width: 100%; margin: 0; border-radius: 0; border: 0; }
  .km-main { padding: 14px; }
  .km-topbar { position: sticky; top: 0; z-index: 20; margin: -14px -14px 14px; padding: 12px 14px; grid-template-columns: auto 1fr; background: rgba(251,252,255,.94); border-bottom: 1px solid var(--km-line); backdrop-filter: blur(12px); }
  .km-switcher { grid-column: 1 / -1; order: 3; }
  .km-switch { padding: 8px 9px; font-size: 16px; }
  .km-top-search { min-width: 0; }
  .km-hero { min-height: 470px; padding: 34px 26px 115px; grid-template-columns: 1fr; align-items: start; }
  .km-hero h1 { font-size: 38px; }
  .km-hero p { font-size: 17px; }
  .km-hero-art { position: absolute; right: -25px; bottom: 15px; width: 250px; height: 200px; opacity: .8; }
  .km-stats, .km-pro-stats { grid-template-columns: 1fr; }
  .km-stats-overlap { width: calc(100% - 20px); margin-top: -88px; }
  .km-stat-card { min-height: 105px; }
  .km-story-card { grid-template-columns: 125px minmax(0,1fr); }
  .km-story-media { min-height: 140px; }
  .km-story-card p { display: none; }
  .km-patient-grid, .km-pro-grid, .km-pro-bottom { grid-template-columns: 1fr; }
  .km-side-stack { grid-column: auto; grid-template-columns: 1fr; }
  .km-pro-intro { align-items: flex-start; flex-direction: column; }
  .km-section-head, .km-panel-head { gap: 10px; }
  .km-section-head > a, .km-panel-head > a { font-size: 16px; }
}

@media (max-width: 480px) {
  .km-top-search input { width: 130px; }
  .km-switch span { line-height: 1.25; text-align: center; }
  .km-switch .km-icon { display: none; }
  .km-hero h1 { font-size: 34px; }
  .km-hero-copy { max-width: 100%; }
  .km-story-card { grid-template-columns: 105px minmax(0,1fr); }
  .km-story-media { min-height: 128px; }
  .km-list-item { grid-template-columns: 62px minmax(0,1fr) 24px; }
  .km-list-thumb { width: 62px; height: 58px; }
  .km-panel { padding: 16px; }
}

/* ========================================================================== 
   Kazmedic Stage 2 additions
   ========================================================================== */
body.km-site-page { overflow-x: hidden; }
.km-switcher a.km-switch { text-decoration: none; }
.km-switch { white-space: nowrap; }
.km-hero { padding-bottom: 92px; }
.km-hero-search {
  width: min(660px, 100%); min-height: 56px; padding: 6px 7px 6px 18px;
  display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px;
  background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.55); border-radius: 15px;
  box-shadow: 0 16px 34px rgba(4,44,115,.22);
}
.km-hero-search .km-icon { color: #55709e; }
.km-hero-search input { min-width: 0; padding: 10px 0; color: #172039; background: transparent; border: 0; outline: 0; font-size: 15px; }
.km-hero-search input::placeholder { color: #8a93a7; }
.km-hero-search button { min-height: 42px; padding: 0 20px; color: #fff; background: #235dde; border: 0; border-radius: 11px; cursor: pointer; font-weight: 700; }

.km-entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.km-entry-overlap { position: relative; z-index: 5; width: calc(100% - 44px); margin: -62px auto 15px; }
.km-entry-card {
  min-height: 128px; padding: 18px; display: grid; grid-template-columns: 52px minmax(0,1fr) 22px; gap: 14px; align-items: center;
  background: #fff; border: 1px solid var(--km-line); border-radius: 17px; box-shadow: 0 15px 34px rgba(37,51,92,.09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.km-entry-card:hover { transform: translateY(-3px); border-color: #ced9f1; box-shadow: 0 18px 40px rgba(37,51,92,.14); }
.km-entry-pink { background: linear-gradient(145deg,#fff,#fbeef3); }
.km-entry-lilac { background: linear-gradient(145deg,#fff,#efeffd); }
.km-entry-blue { background: linear-gradient(145deg,#fff,#eaf1ff); }
.km-entry-cyan { background: linear-gradient(145deg,#fff,#eaf8fb); }
.km-entry-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--km-blue); background: rgba(255,255,255,.86); border: 1px solid rgba(218,225,242,.92); border-radius: 15px; }
.km-entry-icon .km-icon { width: 27px; height: 27px; }
.km-entry-copy strong { display: block; margin-bottom: 5px; color: #172039; font-size: 17px; line-height: 1.25; }
.km-entry-copy small { display: block; color: #737c91; font-size: 13px; line-height: 1.45; }
.km-entry-arrow { color: #637089; }
.km-entry-arrow .km-icon { width: 19px; height: 19px; }
.km-quick-grid { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.km-entry-wide { min-height: 92px; box-shadow: none; background: #fff; }

.km-trust-strip { margin-top: 15px; padding: 19px 22px; display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; background: linear-gradient(135deg,#eef3ff,#f9fbff); border: 1px solid #dfe7f6; border-radius: 17px; }
.km-trust-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--km-blue); background: #fff; border-radius: 15px; }
.km-trust-strip strong { display: block; font-size: 18px; }
.km-trust-strip p { margin: 3px 0 0; color: var(--km-muted); font-size: 14px; }
.km-trust-strip > a { display: inline-flex; align-items: center; gap: 7px; color: var(--km-blue); font-size: 14px; font-weight: 700; }
.km-trust-strip > a .km-icon { width: 18px; height: 18px; }

.km-ad-banner { min-height: 130px; margin-top: 15px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; overflow: hidden; background: linear-gradient(120deg,#f0f4ff,#e9f6fb); border: 1px solid #dfe7f4; border-radius: 17px; }
.km-ad-copy > span { display: inline-flex; margin-bottom: 7px; padding: 3px 8px; color: #56627a; background: rgba(255,255,255,.8); border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.km-ad-copy strong { display: block; color: #172039; font-size: 21px; }
.km-ad-copy p { margin: 5px 0 0; color: #68738a; font-size: 14px; }
.km-ad-banner img { width: min(38%,360px); max-height: 100px; object-fit: cover; border-radius: 13px; }
.km-ad-icon { flex: 0 0 68px; width: 68px; height: 68px; display: grid; place-items: center; color: var(--km-blue); background: #fff; border-radius: 50%; }
.km-ad-icon .km-icon { width: 34px; height: 34px; }

.km-site-footer { width: min(1540px, calc(100% - 40px)); margin: -5px auto 22px; color: #667087; }
.km-site-footer-inner { padding: 18px 28px; display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; background: rgba(255,255,255,.76); border: 1px solid rgba(225,229,239,.9); border-radius: 18px; }
.km-site-footer strong { color: var(--km-blue); font-size: 17px; }
.km-site-footer p { margin: 2px 0 0; font-size: 13px; }
.km-site-footer nav, .km-footer-social { display: flex; align-items: center; gap: 18px; }
.km-site-footer nav a { font-size: 13px; }
.km-footer-social a { width: 36px; height: 36px; display: grid; place-items: center; color: #53617b; background: #fff; border: 1px solid var(--km-line); border-radius: 11px; }
.km-footer-social .km-icon { width: 19px; height: 19px; }

/* Inner pages */
.km-inner-page { min-width: 0; }
.km-breadcrumbs { margin: 4px 0 14px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: #7d8597; font-size: 13px; }
.km-breadcrumbs a:hover { color: var(--km-blue); }
.km-breadcrumbs span:last-child { max-width: 620px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.km-breadcrumb-sep { color: #b0b6c3; }
.km-page-hero { min-height: 170px; margin-bottom: 20px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 28px; background: linear-gradient(135deg,#edf3ff,#f8faff 55%,#eaf8fb); border: 1px solid #dfe7f4; border-radius: 20px; overflow: hidden; }
.km-page-kicker { display: inline-block; margin-bottom: 6px; color: var(--km-blue); font-size: 12px; font-weight: 800; letter-spacing: .8px; }
.km-page-hero h1 { margin: 0 0 8px; color: #172039; font-size: clamp(29px,3vw,42px); line-height: 1.14; letter-spacing: -1px; }
.km-page-hero p, .km-page-description { max-width: 760px; margin: 0; color: #6f788d; font-size: 15px; line-height: 1.6; }
.km-page-description p { margin: 0; }
.km-page-hero-icon { flex: 0 0 82px; width: 82px; height: 82px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#3a79ef,#2156d0); border-radius: 24px; box-shadow: 0 14px 30px rgba(35,93,222,.24); }
.km-page-hero-icon .km-icon { width: 39px; height: 39px; }
.km-archive-toolbar { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.km-archive-toolbar strong { font-size: 20px; }
.km-archive-toolbar span { color: var(--km-muted); font-size: 13px; }
.km-archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.km-archive-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--km-line); border-radius: 17px; transition: transform .18s ease, box-shadow .18s ease; }
.km-archive-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(37,51,92,.1); }
.km-archive-media { height: 190px; display: block; overflow: hidden; background: #eef1fa; }
.km-archive-media img, .km-archive-media .km-image-fallback { width: 100%; height: 100%; display: grid; place-items: center; object-fit: cover; }
.km-archive-media .km-image-fallback { color: #7f8abb; background: linear-gradient(145deg,#f2f3fb,#e5e9f6); }
.km-archive-media .km-image-fallback .km-icon { width: 44px; height: 44px; }
.km-archive-copy { padding: 18px; }
.km-archive-copy h2 { margin: 7px 0 8px; font-size: 18px; line-height: 1.35; }
.km-archive-copy h2 a:hover { color: var(--km-blue); }
.km-archive-copy p { margin: 0 0 12px; color: #6f788d; font-size: 14px; line-height: 1.55; }
.km-pagination { margin: 24px 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.km-pagination .page-numbers { min-width: 40px; min-height: 40px; padding: 9px 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--km-line); border-radius: 10px; font-size: 13px; }
.km-pagination .current { color: #fff; background: var(--km-blue); border-color: var(--km-blue); }
.km-inner-search { max-width: 760px; min-height: 56px; margin: -5px 0 22px; padding: 6px 7px 6px 17px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--km-line); border-radius: 14px; }
.km-inner-search input { min-width: 0; padding: 10px 0; border: 0; outline: 0; }
.km-inner-search button { min-height: 42px; padding: 0 22px; color: #fff; background: var(--km-blue); border: 0; border-radius: 10px; font-weight: 700; }
.km-empty-state, .km-404-card { padding: 54px 30px; text-align: center; background: #fff; border: 1px solid var(--km-line); border-radius: 20px; }
.km-empty-state > span, .km-404-icon { width: 72px; height: 72px; margin: 0 auto 17px; display: grid; place-items: center; color: var(--km-blue); background: var(--km-blue-soft); border-radius: 50%; }
.km-empty-state h2, .km-404-card h1 { margin: 0 0 9px; font-size: 28px; }
.km-empty-state p, .km-404-card p { max-width: 620px; margin: 0 auto 20px; color: var(--km-muted); }
.km-empty-state .searchform { margin: 20px auto 0; }
.km-404-card { position: relative; overflow: hidden; }
.km-404-code { position: absolute; right: 25px; top: -35px; color: #eef2fc; font-size: 150px; line-height: 1; font-weight: 800; }
.km-404-card .km-inner-search { margin: 22px auto; }
.km-blue-button { margin: 0 auto; color: #fff; background: var(--km-blue); }

/* Article */
.km-article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.km-article, .km-page-article { min-width: 0; padding: 34px 42px; background: #fff; border: 1px solid var(--km-line); border-radius: 20px; }
.km-article-header h1, .km-page-article > header h1 { margin: 9px 0 14px; color: #131c32; font-size: clamp(32px,4vw,50px); line-height: 1.14; letter-spacing: -1.3px; }
.km-article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: #747d90; font-size: 13px; }
.km-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.km-article-meta .km-icon { width: 17px; height: 17px; }
.km-article-featured { margin: 24px -8px 28px; overflow: hidden; border-radius: 16px; }
.km-article-featured img { width: 100%; max-height: 520px; display: block; object-fit: cover; }
.km-article-content { color: #2b3448; font-family: "Montserrat", "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.82; }
.km-article-content > *:first-child { margin-top: 0; }
.km-article-content h2 { margin: 1.8em 0 .65em; color: #172039; font-size: 28px; line-height: 1.3; }
.km-article-content h3 { margin: 1.55em 0 .55em; color: #1d2942; font-size: 22px; line-height: 1.35; }
.km-article-content p { margin: 0 0 1.2em; }
.km-article-content ul, .km-article-content ol { margin: 0 0 1.3em 1.4em; }
.km-article-content ul { list-style: disc; }
.km-article-content ol { list-style: decimal; }
.km-article-content li { margin: .45em 0; padding-left: .25em; }
.km-article-content blockquote { margin: 1.5em 0; padding: 20px 22px; color: #33405a; background: #f0f4ff; border-left: 4px solid var(--km-blue); border-radius: 0 14px 14px 0; }
.km-article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.km-article-content table { width: 100%; margin: 1.4em 0; border-collapse: collapse; font-size: 14px; }
.km-article-content th, .km-article-content td { padding: 11px 12px; border: 1px solid #dfe4ee; text-align: left; }
.km-article-content th { background: #f2f5fb; }
.km-article-content a { color: #1e5dd8; text-decoration: underline; text-underline-offset: 3px; }
.km-article-tags { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--km-line); color: #6f788d; font-size: 13px; }
.km-article-tags a { display: inline-flex; margin: 4px; padding: 5px 9px; background: #f1f4fa; border-radius: 999px; }
.km-medical-note { margin-top: 24px; padding: 18px; display: flex; gap: 13px; background: #edf4ff; border: 1px solid #dce8fb; border-radius: 14px; }
.km-medical-note > span { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; color: var(--km-blue); background: #fff; border-radius: 12px; }
.km-medical-note strong { display: block; margin-bottom: 3px; }
.km-medical-note p { margin: 0; color: #657188; font-size: 14px; line-height: 1.55; }
.km-article-aside { position: sticky; top: 18px; display: grid; gap: 13px; }
.km-toc, .km-aside-card { padding: 18px; background: #fff; border: 1px solid var(--km-line); border-radius: 16px; }
.km-toc > strong, .km-aside-card > strong { display: block; margin-bottom: 11px; font-size: 16px; }
.km-toc ol { display: grid; gap: 8px; counter-reset: toc; }
.km-toc a { display: block; color: #616c82; font-size: 13px; line-height: 1.42; }
.km-toc a:hover { color: var(--km-blue); }
.km-toc .is-h3 { padding-left: 12px; font-size: 12px; }
.km-aside-search { display: grid; grid-template-columns: 1fr 38px; border: 1px solid var(--km-line); border-radius: 10px; overflow: hidden; }
.km-aside-search input { min-width: 0; padding: 10px; border: 0; outline: 0; }
.km-aside-search button { display: grid; place-items: center; color: #fff; background: var(--km-blue); border: 0; }
.km-aside-search .km-icon { width: 18px; height: 18px; }
.km-aside-card > a { min-height: 39px; display: flex; align-items: center; justify-content: space-between; color: #5f697e; border-top: 1px solid #edf0f5; font-size: 13px; }
.km-aside-card > a .km-icon { width: 16px; height: 16px; }
.km-aside-ad { margin: 0; min-height: 160px; padding: 18px; display: block; }
.km-aside-ad img { width: 100%; max-height: 120px; margin-top: 12px; }
.km-related { margin-top: 20px; }
.km-comments { margin-top: 20px; padding: 24px; background: #fff; border: 1px solid var(--km-line); border-radius: 18px; }
.km-page-article { max-width: 980px; margin: 0 auto; }

@media (max-width: 1280px) {
  .km-entry-grid { grid-template-columns: 1fr 1fr; }
  .km-topbar { grid-template-columns: auto minmax(310px,390px) minmax(180px,230px); }
}
@media (max-width: 1024px) {
  .km-archive-grid { grid-template-columns: 1fr 1fr; }
  .km-article-layout { grid-template-columns: 1fr; }
  .km-article-aside { position: static; grid-template-columns: 1fr 1fr; }
  .km-toc { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .km-entry-overlap { width: calc(100% - 20px); margin-top: -82px; }
  .km-entry-grid, .km-quick-grid, .km-archive-grid { grid-template-columns: 1fr; }
  .km-entry-card { min-height: 100px; }
  .km-hero-search { grid-template-columns: 21px minmax(0,1fr); }
  .km-hero-search button { grid-column: 1 / -1; width: 100%; }
  .km-trust-strip { grid-template-columns: 48px 1fr; }
  .km-trust-strip > a { grid-column: 2; }
  .km-site-footer { width: 100%; margin: 0; }
  .km-site-footer-inner { grid-template-columns: 1fr; border-radius: 0; }
  .km-page-hero { min-height: 145px; padding: 23px; }
  .km-page-hero-icon { display: none; }
  .km-article, .km-page-article { padding: 25px 20px; }
  .km-article-header h1, .km-page-article > header h1 { font-size: 33px; }
  .km-article-content { font-size: 16px; }
  .km-article-content h2 { font-size: 24px; }
  .km-article-aside { grid-template-columns: 1fr; }
  .km-toc { grid-column: auto; }
}
@media (max-width: 480px) {
  .km-entry-card { grid-template-columns: 46px minmax(0,1fr) 18px; padding: 15px; }
  .km-entry-icon { width: 46px; height: 46px; }
  .km-entry-copy strong { font-size: 16px; }
  .km-page-hero h1 { font-size: 28px; }
  .km-archive-media { height: 175px; }
}
@media (max-width:1280px) and (min-width:1025px) {
  .km-switcher { min-width: 0; width: 100%; }
  .km-switch { padding-left: 10px; padding-right: 10px; }
}
.km-mode-loading, .km-mode-error { min-height: 480px; display: grid; place-items: center; align-content: center; gap: 12px; color: #69748a; background: #fff; border: 1px solid var(--km-line); border-radius: 20px; }
.km-loading-dot { width: 34px; height: 34px; border: 3px solid #dce6fb; border-top-color: var(--km-blue); border-radius: 50%; animation: kmSpin .75s linear infinite; }
.km-mode-error a { color: var(--km-blue); font-weight: 700; }
@keyframes kmSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width:760px) {
  .km-article-content table { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; }
}
