:root {
  --navy: #12192b;
  --navy-2: #1a2744;
  --yellow: #f7d94c;
  --paper: #f5f3ef;
  --panel: #ffffff;
  --ink: #1a1a1a;
  --muted: #6f746f;
  --line: #e2ddd5;
  --soft: #f0ede8;
  --accent: #4a8fe8;
  --accent-soft: #e8f2ff;
  --green: #3db87a;
  --red: #e05555;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

.mono {
  font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav {
  max-width: 1120px;
  min-height: 58px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.mark {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 11px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.brand-sub {
  color: rgba(255, 255, 255, .54);
  font-size: 13px;
  font-weight: 600;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.navlinks a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .64);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.navlinks a:hover,
.navlinks a[aria-current="page"] {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.lesson-menu {
  position: relative;
}

.lesson-menu summary {
  min-height: 38px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lesson-menu summary::-webkit-details-marker {
  display: none;
}

.lesson-menu summary::after {
  content: "▾";
  color: var(--yellow);
  font-size: 12px;
}

.lesson-menu[open] summary {
  background: rgba(247, 217, 76, .16);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(18, 25, 43, .26);
}

.menu-panel a {
  min-height: 50px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.menu-panel a:hover,
.menu-panel a[aria-current="page"] {
  background: var(--soft);
}

.menu-panel b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft, #e8f2ff);
  color: var(--accent, #4a8fe8);
  font-size: 14px;
}

.menu-panel strong {
  display: block;
  font-size: 14px;
}

.menu-panel span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 20px 84px;
}

.page-head {
  margin-bottom: 24px;
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-head p {
  max-width: 760px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: 17px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.stat {
  min-width: 118px;
}

.stat strong {
  display: block;
  color: var(--yellow);
  font-size: 26px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, .48);
  font-size: 12px;
}

.pdca {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-2);
}

.pdca-item {
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, .07);
}

.pdca-item:last-child {
  border-right: 0;
}

.pdca-badge {
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.pdca-item strong {
  display: block;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

.pdca-item span {
  display: block;
  color: rgba(255, 255, 255, .42);
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card,
.lesson-shell,
.side-panel,
.slide,
.quiz {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(18, 25, 43, .06);
}

.course-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-top: 4px solid var(--accent);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(18, 25, 43, .11);
}

.lesson-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.course-card small {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.course-card strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 19px;
}

.course-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.status.done {
  background: #e8fff4;
  color: var(--green);
}

.side-panel {
  padding: 20px;
}

.side-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.side-panel ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.side-panel li {
  margin-bottom: 8px;
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.lesson-shell {
  overflow: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--accent), white 22%), rgba(255, 255, 255, 0)) border-box;
  border: 1px solid transparent;
}

.lesson-top {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent), transparent 82%), transparent 32%),
    linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.breadcrumb strong {
  color: var(--ink);
}

.lesson-title {
  margin: 10px 0 0;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
}

.lesson-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.progress {
  height: 8px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--soft);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .2s ease;
}

.study-area {
  padding: 20px;
  background: linear-gradient(180deg, #fff, #fbfaf7);
}

.slide {
  min-height: 390px;
  padding: clamp(20px, 4vw, 34px);
  border-top: 5px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.slide::after {
  content: "";
  position: absolute;
  right: -72px;
  top: -72px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent), transparent 90%);
  pointer-events: none;
}

.slide-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.slide h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.05;
}

.slide-summary {
  max-width: 760px;
  margin: 16px 0 0;
  color: #414946;
  font-size: clamp(18px, 2vw, 21px);
}

.mini-grid,
.drawer-grid,
.flash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.drawer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.mini-card,
.drawer,
.flashcard {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.mini-card {
  min-height: 128px;
  padding: 16px;
  background: #fbfbfa;
  box-shadow: inset 0 3px 0 var(--accent-soft);
}

.mini-card strong,
.flashcard strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 17px;
}

.mini-card span,
.flashcard span,
.drawer-body {
  color: var(--muted);
  font-size: 14px;
}

.drawer {
  overflow: hidden;
}

.drawer button {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  color: var(--navy);
  text-align: left;
  font-weight: 850;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.drawer button::after {
  content: "+";
  color: var(--accent);
  font-weight: 900;
}

.drawer.open button::after {
  content: "−";
}

.drawer button:hover {
  background: #fbfbfa;
}

.drawer-body {
  display: none;
  padding: 0 16px 16px;
  white-space: pre-line;
}

.drawer.open .drawer-body {
  display: block;
}

.flashcard {
  min-height: 150px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.flashcard.flipped {
  background: var(--navy);
}

.flashcard.flipped strong,
.flashcard.flipped span {
  color: #fff;
}

.quiz {
  margin-top: 16px;
  padding: 18px;
  background: #fffaf0;
  border-color: #e7d4aa;
  box-shadow: 0 8px 24px rgba(184, 117, 25, .08);
}

.quiz h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.quiz p {
  margin: 0 0 12px;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-options button {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e7d4aa;
  border-radius: 8px;
  background: #fff;
  color: #3e321c;
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}

.quiz-options button.correct {
  background: #e8fff4;
  border-color: #99d3b6;
  color: #247246;
}

.quiz-options button.wrong {
  background: #fff0f0;
  border-color: #e6b5b5;
  color: #a64040;
}

.feedback {
  min-height: 24px;
  margin-top: 10px;
  color: #3e321c;
  font-weight: 750;
}

.actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

.button.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.step-panel {
  padding: 16px;
  position: sticky;
  top: 74px;
  border-top: 5px solid var(--accent);
  background: linear-gradient(180deg, #fff, #fbfaf7);
}

.step-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.step-list {
  display: grid;
  gap: 7px;
}

.step-tab {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #565f5b;
  text-align: left;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.step-tab:hover {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.step-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent), white 60%);
  box-shadow: inset 4px 0 0 var(--accent);
}

.complete-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .grid,
  .lesson-layout,
  .lesson-top {
    grid-template-columns: 1fr;
  }

  .pdca,
  .mini-grid,
  .flash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-panel {
    position: static;
  }

  .brand-sub {
    display: none;
  }

  .navlinks {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .navlinks::-webkit-scrollbar {
    display: none;
  }

  .menu-panel {
    right: auto;
    left: 0;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 20px;
  }

  .navlinks {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .pdca,
  .course-card,
  .mini-grid,
  .drawer-grid,
  .flash-grid {
    grid-template-columns: 1fr;
  }

  .status {
    justify-self: start;
  }

  .actions .button {
    width: 100%;
  }
}

/* ── Scenario quiz ─────────────────────────────────────────────────────────── */

.scenario-section {
  padding: clamp(16px, 3vw, 28px);
  background: linear-gradient(180deg, #fff, #fbfaf7);
}

.sq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.sq-back {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.sq-back:hover {
  color: var(--navy);
}

.sq-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sq-diff {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sq-diff--easy   { background: #e8fff4; color: #1a7a4a; }
.sq-diff--medium { background: #fff8e8; color: #8a5c00; }
.sq-diff--hard   { background: #fff0f0; color: #a63030; }

.sq-pos {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sq-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 4px 16px rgba(18, 25, 43, .06);
  margin-bottom: 16px;
}

.sq-context {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  color: #414946;
  font-size: 15px;
  line-height: 1.65;
}

.sq-q {
  margin: 0 0 20px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.sq-opts {
  display: grid;
  gap: 10px;
}

.sq-opt {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  line-height: 1.45;
}

.sq-opt:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sq-opt--correct {
  border-color: #2db87a !important;
  background: #edfff5 !important;
  color: #1a5c3a;
}

.sq-opt--wrong {
  border-color: #e05555 !important;
  background: #fff0f0 !important;
  color: #8a2020;
}

.sq-letter {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.sq-opt--correct .sq-letter { background: #b8f0d4; color: #1a5c3a; }
.sq-opt--wrong   .sq-letter { background: #f8c6c6; color: #8a2020; }

.sq-explain {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f8f7f4;
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
}

.sq-explain p {
  margin: 6px 0 0;
  color: #52595e;
}

.sq-r--pass { color: var(--green); font-weight: 800; }
.sq-r--fail { color: var(--red);   font-weight: 800; }
.sq-r--null { color: var(--muted); }

.sq-foot {
  display: flex;
  justify-content: flex-end;
}

/* Results */

.sq-results {
  max-width: 640px;
}

.sq-score {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0 auto 28px;
}

.sq-score strong { font-size: 30px; line-height: 1; }
.sq-score span   { font-size: 12px; font-weight: 700; }

.sq-score--full { background: #edfff5; color: #1a7a4a; }
.sq-score--good { background: #fff8e8; color: #8a5c00; }
.sq-score--low  { background: #fff0f0; color: #a63030; }

.sq-rrows {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.sq-rrow {
  display: grid;
  grid-template-columns: 72px 1fr 22px auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.sq-rrow-q {
  color: var(--ink);
  line-height: 1.4;
}

.sq-rlabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

.sq-rlabel--pass { color: var(--green); }
.sq-rlabel--fail { color: var(--red);   }

.sq-rfoot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Scenario quiz sidebar trigger */

.sq-trigger {
  width: 100%;
}

.sq-trigger--scored {
  font-size: 13px;
}

.sq-trigger--full { background: var(--green); border-color: var(--green); }
.sq-trigger--good { background: #e88a00; border-color: #e88a00; }
.sq-trigger--low  { background: var(--red);   border-color: var(--red);   }

@media (max-width: 640px) {
  .sq-rrow {
    grid-template-columns: 64px 1fr 20px;
  }

  .sq-rlabel {
    display: none;
  }
}

/* ── Home insights ──────────────────────────────────────────────────────────── */

#insightsSection {
  margin-bottom: 24px;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(18, 25, 43, .06);
}

.insight-heading {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.insight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: transform .12s, box-shadow .12s;
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(18, 25, 43, .09);
}

.insight-n {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.insight-card strong {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
}

.insight-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.idot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.idot--pass { background: var(--green); }
.idot--fail { background: var(--red);   }
.idot--null { background: var(--line);  }

.insight-score {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.insight-focus {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.insight-focus a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.insight-focus a:hover { text-decoration: underline; }

.insight-focus--done { color: var(--green); font-weight: 700; }

@media (max-width: 900px) {
  .insight-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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