:root {
  --bg: #080b0d;
  --lime: #b9ff2c;
  --white: #f5f7f2;
  --muted: #8b93a7;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--white);
  background:
    radial-gradient(90% 50% at 80% -10%, rgba(198, 255, 74, 0.07), transparent 50%),
    var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

.kg-header {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.kg-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.02em;
}

.kg-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.kg-nav a { color: var(--muted); }
.kg-nav a:hover { color: var(--white); }

.kg-main {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.kg-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
}

h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 12px;
}

.kg-answer {
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 16px;
  color: var(--white);
}

.kg-explain,
.kg-lead {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 28px;
}

.kg-related {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  margin-bottom: 24px;
}

.kg-related ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.kg-related a {
  display: inline-block;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid rgba(185, 255, 44, 0.45);
}

.kg-related a:hover { color: var(--lime); }

.kg-note,
.kg-footer {
  color: var(--muted);
  font-size: 13px;
}

.kg-footer {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 40px;
}

.kg-index {
  list-style: none;
  display: grid;
  gap: 14px;
  counter-reset: kg;
}

.kg-index li a {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(16, 21, 26, 0.72);
  color: inherit;
  text-decoration: none;
}

.kg-index li a:hover {
  border-color: rgba(185, 255, 44, 0.35);
}

.kg-q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.kg-a {
  color: var(--muted);
  font-size: 15px;
}

/* Visual guide upgrade */
.kg-main {
  width: min(920px, calc(100% - 40px));
}

.kg-header,
.kg-footer {
  width: min(920px, calc(100% - 40px));
}

.kg-visual {
  margin: 4px 0 34px;
}

.kg-visual-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.kg-visual-head h2 {
  margin-bottom: 0;
}

.kg-visual-head a {
  font-size: 14px;
  font-weight: 600;
}

.kg-filmstrip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kg-frame {
  min-width: 0;
}

.kg-frame-media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  background: #050708;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kg-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.kg-frame span {
  position: absolute;
  left: 10px;
  top: 10px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 11, 13, 0.86);
  color: var(--lime);
  font-weight: 700;
  font-size: 12px;
}

.kg-visual-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.kg-breakdown {
  margin: 0 0 34px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: rgba(16, 21, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kg-breakdown-label {
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kg-breakdown h2 {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.kg-breakdown .kg-explain {
  margin-bottom: 0;
}

.kg-related ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kg-related li a {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
}

.kg-related li a:hover {
  border-color: rgba(185, 255, 44, 0.35);
  color: var(--lime);
}

.kg-index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .kg-main,
  .kg-header,
  .kg-footer {
    width: min(920px, calc(100% - 24px));
  }

  .kg-filmstrip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kg-visual-head {
    display: grid;
    gap: 6px;
  }

  .kg-related ul,
  .kg-index {
    grid-template-columns: 1fr;
  }
}

.kg-guide-intro {
  max-width: 680px;
  margin: -6px 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.kg-section-kicker {
  margin: 0 0 6px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kg-frame figcaption {
  padding: 12px 2px 0;
}

.kg-frame figcaption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kg-frame figcaption p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.35;
}

.kg-visual-note strong {
  color: var(--white);
}

.kg-related {
  margin-top: 10px;
}

.kg-related h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.kg-action-card {
  position: relative;
  min-height: 148px;
  padding: 22px 54px 20px 22px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(185,255,44,.035), transparent 60%),
    rgba(16, 21, 26, 0.84);
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  text-decoration: none !important;
}

.kg-action-type {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
}

.kg-action-title {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
}

.kg-action-arrow {
  position: absolute;
  right: 22px;
  bottom: 21px;
  color: var(--lime);
  font-size: 24px;
  font-weight: 700;
}

.kg-action-card:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(185,255,44,.075), transparent 60%),
    rgba(16, 21, 26, 0.9);
}

@media (max-width: 700px) {
  .kg-frame figcaption p {
    font-size: 13px;
  }

  .kg-action-card {
    min-height: 124px;
  }
}


/* Editorial Guide layout */
.kg-guide-intro,
.kg-visual,
.kg-breakdown {
  display: none;
}

.kg-guide-lead {
  max-width: 760px;
  margin: -4px 0 30px;
  color: var(--white);
  font-size: clamp(19px, 2.3vw, 24px);
  line-height: 1.42;
  font-weight: 500;
}

.kg-editorial {
  display: grid;
  gap: 46px;
  margin-bottom: 42px;
}

.kg-editorial-hero {
  width: min(620px, 100%);
  margin: 0 auto;
}

.kg-editorial-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #050708;
  border: 1px solid rgba(255,255,255,.08);
}

.kg-editorial-hero .kg-editorial-media {
  aspect-ratio: 9 / 16;
  max-height: 700px;
}

.kg-editorial-side .kg-editorial-media {
  aspect-ratio: 9 / 16;
}

.kg-editorial-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kg-editorial-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr);
  gap: 38px;
  align-items: center;
}

.kg-editorial-section-reverse .kg-editorial-copy {
  order: 2;
}

.kg-editorial-section-reverse .kg-editorial-side {
  order: 1;
}

.kg-editorial-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 3.5vw, 36px);
  line-height: 1.16;
}

.kg-editorial-copy p:not(.kg-section-kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.kg-key-takeaway {
  padding: 26px 28px;
  border-radius: 20px;
  border: 1px solid rgba(185,255,44,.24);
  background: rgba(185,255,44,.055);
}

.kg-key-takeaway p:last-child {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(22px,3vw,30px);
  line-height: 1.28;
  font-weight: 700;
}

.kg-full-video {
  margin-top: -18px;
  text-align: center;
}

.kg-full-video a {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(185,255,44,.35);
  color: var(--lime);
  font-weight: 700;
  text-decoration: none;
}

.kg-full-video a:hover {
  background: rgba(185,255,44,.08);
}

@media (max-width: 760px) {
  .kg-editorial {
    gap: 34px;
  }

  .kg-editorial-hero {
    width: min(460px, 100%);
  }

  .kg-editorial-section,
  .kg-editorial-section-reverse {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kg-editorial-section-reverse .kg-editorial-copy,
  .kg-editorial-section-reverse .kg-editorial-side {
    order: initial;
  }

  .kg-editorial-side {
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .kg-key-takeaway {
    padding: 22px 20px;
  }
}
 

/* Simple vertical Guide layout */
.kg-editorial,
.kg-guide-intro,
.kg-visual,
.kg-breakdown {
  display: none !important;
}

.kg-main {
  width: min(780px, calc(100% - 40px));
}

.kg-header,
.kg-footer {
  width: min(780px, calc(100% - 40px));
}

.kg-guide-lead {
  max-width: 720px;
  margin: -4px 0 30px;
  color: var(--white);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
}

.kg-guide-article {
  display: block;
}

.kg-guide-copy {
  margin: 0 0 34px;
}

.kg-guide-copy h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
}

.kg-guide-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.kg-guide-copy p:last-child {
  margin-bottom: 0;
}

.kg-guide-image {
  width: min(560px, 100%);
  margin: 0 auto 38px;
}

.kg-guide-image-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  background: #050708;
  border: 1px solid rgba(255,255,255,.08);
}

.kg-guide-image-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-full-video {
  margin: 6px 0 42px;
  text-align: left;
}

.kg-full-video a {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(185,255,44,.35);
  color: var(--lime);
  font-weight: 700;
  text-decoration: none;
}

.kg-related {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .kg-main,
  .kg-header,
  .kg-footer {
    width: min(780px, calc(100% - 24px));
  }

  .kg-guide-lead {
    font-size: 18px;
  }

  .kg-guide-copy h2 {
    font-size: 24px;
  }

  .kg-guide-copy p {
    font-size: 17px;
    line-height: 1.62;
  }

  .kg-guide-image {
    width: 100%;
  }
}

/* Footer navigation is the same structure as the main site. */
.kg-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 40px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.kg-footer a { color: var(--muted); }
.kg-footer a:hover { color: var(--white); text-decoration: none; }
.kg-footer a:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 4px; }
.kg-footer-links { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kg-footer-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px; font-size: 17px; overflow-wrap: anywhere; }
.kg-footer-learn { width: 100%; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.kg-footer-title { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.kg-footer-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.kg-footer-topics a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.kg-footer-copy { font-size: 12px; }
.kg-social { display: flex; align-items: center; gap: 12px; }
.kg-social a { width: 44px; height: 44px; display: grid; place-items: center; }
.kg-social svg { width: 24px; height: 24px; }

