:root {
  --kp-bg: #f4f7fb;
  --kp-ink: #101c2b;
  --kp-muted: #5b6a7c;
  --kp-line: #d8e2ee;
  --kp-white: #ffffff;
  --kp-blue: #135fb8;
  --kp-blue-dark: #0c3e7a;
  --kp-cyan: #08bfe8;
  --kp-green: #168b5b;
  --kp-radius: 8px;
  --kp-shadow: 0 18px 48px rgba(16, 35, 58, 0.12);
  --kp-font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --kp-container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.kp-body {
  margin: 0;
  min-width: 320px;
  background: var(--kp-bg);
  color: var(--kp-ink);
  font-family: var(--kp-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.kp-container {
  width: 100%;
  max-width: calc(var(--kp-container) + 48px);
  padding: 0 24px;
  margin: 0 auto;
}

.kp-top {
  color: var(--kp-white);
  background: linear-gradient(135deg, rgba(12, 62, 122, 0.98), rgba(19, 95, 184, 0.9));
}

.kp-top-compact .kp-hero {
  padding-top: 52px;
  padding-bottom: 64px;
}

.kp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
}

.kp-brand,
.kp-nav {
  display: flex;
  align-items: center;
}

.kp-brand {
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.kp-brand img {
  border-radius: var(--kp-radius);
}

.kp-nav {
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.kp-nav a {
  text-decoration: none;
}

.kp-nav a:hover,
.kp-nav a:focus-visible {
  color: var(--kp-white);
}

.kp-hero {
  padding-top: 86px;
  padding-bottom: 92px;
}

.kp-eyebrow {
  margin: 0 0 12px;
  color: var(--kp-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kp-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  overflow-wrap: break-word;
}

.kp-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.15rem;
  overflow-wrap: break-word;
}

.kp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.kp-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--kp-radius);
  font-weight: 700;
  text-decoration: none;
}

.kp-btn-primary {
  background: var(--kp-cyan);
  color: #06243c;
}

.kp-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--kp-white);
}

.kp-section {
  padding: 84px 0;
}

.kp-section-soft {
  background: #eaf1f8;
}

.kp-status {
  padding: 42px 0;
  background: var(--kp-white);
}

.kp-status-inner,
.kp-method-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}

.kp-status h2,
.kp-method h2,
.kp-section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  overflow-wrap: break-word;
}

.kp-status p,
.kp-method p,
.kp-section-head p {
  margin: 14px 0 0;
  color: var(--kp-muted);
  overflow-wrap: break-word;
}

.kp-section-head {
  max-width: 760px;
  margin-bottom: 32px;
}

.kp-article-grid,
.kp-rubric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kp-article-card,
.kp-rubric-card,
.kp-empty,
.kp-placeholder {
  border: 1px solid var(--kp-line);
  border-radius: var(--kp-radius);
  background: var(--kp-white);
  box-shadow: var(--kp-shadow);
}

.kp-article-card,
.kp-rubric-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  text-decoration: none;
}

.kp-card-meta {
  margin: 0 0 12px;
  color: var(--kp-muted);
  font-size: 0.9rem;
}

.kp-article-card h3,
.kp-rubric-card h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.kp-article-card p,
.kp-rubric-card p {
  color: var(--kp-muted);
}

.kp-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--kp-line);
  color: var(--kp-blue-dark);
  font-weight: 700;
}

.kp-card-bottom a {
  color: var(--kp-blue);
}

.kp-muted {
  color: var(--kp-muted);
  font-weight: 600;
}

.kp-rubric-card span {
  margin-top: 20px;
  color: var(--kp-blue-dark);
  font-weight: 700;
}

.kp-method {
  background: var(--kp-white);
}

.kp-method ol {
  margin: 0;
  padding-left: 22px;
}

.kp-method li + li {
  margin-top: 10px;
}

.kp-footer {
  padding: 28px 0 36px;
  background: #07111d;
  color: var(--kp-white);
}

.kp-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.kp-readable {
  max-width: 860px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.kp-readable h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  line-height: 1.06;
  overflow-wrap: break-word;
}

.kp-lead {
  margin: 18px 0 0;
  color: var(--kp-muted);
  font-size: 1.18rem;
}

.kp-placeholder,
.kp-empty {
  margin-top: 28px;
  padding: 24px;
}

@media (max-width: 960px) {
  .kp-status-inner,
  .kp-method-inner,
  .kp-article-grid,
  .kp-rubric-grid {
    grid-template-columns: 1fr;
  }

  .kp-article-card,
  .kp-rubric-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .kp-container {
    padding: 0 16px;
  }

  .kp-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .kp-nav {
    flex-wrap: wrap;
  }

  .kp-hero {
    padding-top: 54px;
    padding-bottom: 60px;
  }

  .kp-section {
    padding: 58px 0;
  }

  .kp-hero h1 {
    font-size: 1.95rem;
    line-height: 1.08;
  }

  .kp-status h2,
  .kp-method h2,
  .kp-section-head h2,
  .kp-readable h1 {
    font-size: 1.8rem;
    line-height: 1.12;
  }

  .kp-btn,
  .kp-hero-actions {
    width: 100%;
  }
}

/* ---- /learn: light training pages (same palette as the landing) ---- */
body.kl-body {
  --kl-ink: #071a33;
  --kl-muted: #536274;
  --kl-line: #d7e1eb;
  --kl-blue: #1f6feb;
  --kl-blue-soft: #e8f1fe;
  --kl-bg: #f5f8fc;
  background: var(--kl-bg);
  color: var(--kl-ink);
  font-family: "Inter", "IBM Plex Sans", "Segoe UI", sans-serif;
}

.kl-body h1,
.kl-body h2,
.kl-body h3 {
  font-family: "Manrope", "Inter", sans-serif;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.kl-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--kl-line);
}

.kl-nav-inner,
.kl-nav-links,
.kl-lang,
.kl-brand {
  display: flex;
  align-items: center;
}

.kl-nav-inner {
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.kl-brand {
  gap: 10px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.kl-nav-links {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-weight: 600;
  font-size: 0.95rem;
}

.kl-nav-links a {
  text-decoration: none;
}

.kl-lang {
  gap: 6px;
  color: var(--kl-muted);
}

.kl-lang a[aria-current="true"] {
  color: var(--kl-blue);
}

.kl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.kl-btn-primary {
  background: var(--kl-blue);
  color: #fff;
}

.kl-btn-primary:hover,
.kl-btn-primary:focus-visible {
  background: #1557c0;
}

.kl-btn-secondary {
  background: #fff;
  border-color: var(--kl-line);
  color: var(--kl-ink);
}

.kl-nav-cta {
  min-height: 40px;
  padding: 8px 14px;
}

.kl-hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #fff 0%, var(--kl-bg) 100%);
}

.kl-hero-compact {
  padding: 36px 0 32px;
}

.kl-hero h1,
.kl-lesson h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

.kl-eyebrow {
  margin: 0 0 10px;
  color: var(--kl-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kl-lead {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--kl-muted);
  font-size: 1.12rem;
}

.kl-meta {
  color: var(--kl-muted);
  font-weight: 600;
}

.kl-hero-actions,
.kl-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.kl-section {
  padding: 56px 0;
}

.kl-section-soft {
  background: #fff;
  border-top: 1px solid var(--kl-line);
  border-bottom: 1px solid var(--kl-line);
}

.kl-section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.kl-section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.kl-section-head p {
  margin: 0;
  color: var(--kl-muted);
}

.kl-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.kl-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--kl-line);
  border-radius: 8px;
}

.kl-feature-body {
  padding: 16px;
}

.kl-feature h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.kl-feature p {
  margin: 0 0 8px;
  color: var(--kl-muted);
  font-size: 0.94rem;
}

.kl-feature .kl-feature-hook {
  color: var(--kl-ink);
  font-weight: 600;
}

.kl-talk-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  margin-bottom: 20px;
}

.kl-video {
  position: relative;
  overflow: hidden;
  background: #e9eef5;
}

.kl-lesson .kl-video {
  margin: 24px 0;
  border: 1px solid var(--kl-line);
  border-radius: 8px;
}

.kl-video-wide {
  aspect-ratio: 16 / 9;
}

.kl-video-tall {
  aspect-ratio: 9 / 16;
}

.kl-video-poster,
.kl-video-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.kl-video-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kl-video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.kl-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  background: rgba(31, 111, 235, 0.92);
  box-shadow: 0 8px 24px rgba(7, 26, 51, 0.25);
}

.kl-play::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 29px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.kl-video-poster:hover .kl-play,
.kl-video-poster:focus-visible .kl-play {
  background: #1557c0;
}

.kl-soon {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 26, 51, 0.82);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.kl-course-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 20px;
  background: var(--kl-bg);
  border: 1px solid var(--kl-line);
  border-radius: 8px;
}

.kl-course-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--kl-line);
  border-radius: 8px;
}

.kl-course-body h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.kl-course-body h3 a {
  text-decoration: none;
}

.kl-course-body p {
  color: var(--kl-muted);
}

.kl-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--kl-muted);
  font-size: 0.92rem;
}

.kl-crumbs a {
  color: var(--kl-blue);
  text-decoration: none;
}

.kl-lesson-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.kl-lesson-list a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--kl-line);
  border-radius: 8px;
  text-decoration: none;
}

.kl-lesson-list a:hover,
.kl-lesson-list a:focus-visible {
  border-color: var(--kl-blue);
}

.kl-lesson-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--kl-blue-soft);
  color: var(--kl-blue);
  font-weight: 800;
}

.kl-lesson-text strong,
.kl-lesson-text span {
  display: block;
}

.kl-lesson-text span,
.kl-lesson-time {
  color: var(--kl-muted);
  font-size: 0.92rem;
}

.kl-lesson-time {
  font-variant-numeric: tabular-nums;
}

.kl-lesson {
  padding: 36px 0 56px;
}

.kl-lesson-inner {
  max-width: 960px;
}

.kl-keypoints {
  padding: 20px 24px;
  background: var(--kl-blue-soft);
  border-left: 4px solid var(--kl-blue);
  border-radius: 8px;
}

.kl-lesson section > h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.kl-keypoints ul {
  margin: 0;
  padding-left: 20px;
}

.kl-keypoints li + li {
  margin-top: 6px;
}

.kl-lesson section + section {
  margin-top: 36px;
}

.kl-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: kl-step;
}

.kl-step {
  padding: 20px 0;
  border-top: 1px solid var(--kl-line);
  counter-increment: kl-step;
}

.kl-step h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}

.kl-step h3::before {
  content: counter(kl-step) ". ";
  color: var(--kl-blue);
}

.kl-step p {
  margin: 0 0 12px;
}

.kl-step figure {
  margin: 0;
}

.kl-step img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  border: 1px solid var(--kl-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(18, 41, 67, 0.08);
}

.kl-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.kl-pager-link {
  display: block;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--kl-line);
  border-radius: 8px;
  text-decoration: none;
}

.kl-pager-link span {
  display: block;
  color: var(--kl-blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.kl-pager-next,
.kl-pager-end {
  text-align: right;
}

.kl-pager-end {
  align-self: center;
  margin: 0;
  color: var(--kl-muted);
}

.kl-all-lessons a {
  color: var(--kl-blue);
  font-weight: 600;
}

.kl-cta {
  padding: 56px 0;
  background: var(--kl-ink);
  color: #fff;
}

.kl-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px;
  align-items: center;
}

.kl-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.kl-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.kl-cta .kl-cta-actions {
  margin-top: 0;
}

.kl-footer {
  padding: 24px 0;
  color: var(--kl-muted);
  font-size: 0.9rem;
}

.kl-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.kl-footer-inner p {
  margin: 0;
}

.kl-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.kl-footer-cookie {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .kl-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .kl-nav-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .kl-nav-links {
    gap: 12px;
    justify-content: flex-start;
  }

  .kl-hero {
    padding: 36px 0 28px;
  }

  .kl-course-card,
  .kl-talk-wide,
  .kl-cta-inner,
  .kl-pager {
    grid-template-columns: 1fr;
  }

  .kl-pager-next,
  .kl-pager-end {
    text-align: left;
  }

  .kl-lesson-list a {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .kl-lesson-time {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .kl-feature-grid {
    grid-template-columns: 1fr;
  }

  .kl-video-tall {
    aspect-ratio: 4 / 5;
  }

  .kl-video-tall.kl-video-playable {
    aspect-ratio: 9 / 16; /* the whole reel (file or YouTube Short), no crop */
  }

  .kl-hero-actions .kl-btn,
  .kl-cta-actions .kl-btn {
    width: 100%;
  }
}
