/* =========================================================
   META ADS CHEAT SHEET — page-specific styles

   Everything here is scoped inside .cheatsheet so it cannot
   affect the shared navbar or footer.
========================================================= */

.cheatsheet {
  --card-bg: #ffffff;
  --card-head: #f2f5f9;
  --ink: #1f2937;
  --blue-panel: #e8f0fe;
  --blue-title: #5b7ea6;
  --blue-text: #1a4f9c;
  --blue-note: #3b6bb5;
  --green-panel: #e9f8e9;
  --green-title: #5e9e5e;
  --green-text: #2f6b2f;
  --bar-green: #146c14;
  --bar-red: #8e1c1c;
  --radius: 16px;

  background: #0f1115;
  color: var(--ink);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  padding: 28px 16px 60px;
}


/* ---- video ---- */

.cheatsheet .video-embed {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.cheatsheet .video-embed iframe {
  width: 560px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}


/* ---- layout ---- */

.cheatsheet .wrap {
  max-width: 1180px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* ---- hero ---- */

.cheatsheet .cs-hero {
  margin: 6px 4px 18px;
}

.cheatsheet .eyebrow {
  color: #5df07a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0 0 18px;
}

.cheatsheet .page-title {
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.4px;
  margin: 0 0 12px;
}

.cheatsheet .page-title .hl {
  color: #5df07a;
}

.cheatsheet .page-sub {
  color: #c9ced6;
  font-size: 14.5px;
  margin: 0;
}


/* ---- card ---- */

.cheatsheet .item {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.28);
}

.cheatsheet .head {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 14px 20px;
  background: var(--card-head);
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cheatsheet .head:hover {
  background: #eaeff6;
}

.cheatsheet .head:focus-visible {
  outline: 2px solid #2f6b2f;
  outline-offset: -2px;
}

.cheatsheet .cs-emoji {
  font-size: 19px;
  line-height: 1;
}

.cheatsheet .name {
  font-size: 17px;
  font-weight: 500;
  color: #20242b;
  flex: 1;
}

.cheatsheet .chev {
  width: 24px;
  height: 24px;
  flex: none;

  border-radius: 50%;
  background: #15181d;
  color: #fff;

  display: grid;
  place-items: center;

  transition: transform .25s ease;
}

.cheatsheet .chev svg {
  width: 12px;
  height: 12px;
  display: block;
}

.cheatsheet .item.open .chev {
  transform: rotate(180deg);
}


/* ---- body ---- */

.cheatsheet .panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}

.cheatsheet .item.open .panel {
  grid-template-rows: 1fr;
}

.cheatsheet .panel-inner {
  overflow: hidden;
}

.cheatsheet .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 20px 30px 26px;
}

.cheatsheet .col {
  border-radius: 10px;
  padding: 16px 20px 20px;
  text-align: center;
}

.cheatsheet .col-blue {
  background: var(--blue-panel);
}

.cheatsheet .col-green {
  background: var(--green-panel);
}

.cheatsheet .col-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.cheatsheet .col-blue .col-title {
  color: var(--blue-title);
}

.cheatsheet .col-green .col-title {
  color: var(--green-title);
}

.cheatsheet .who {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue-text);
}

.cheatsheet .note {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--blue-note);
}

.cheatsheet .rule-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green-text);
  margin: 0 0 7px;
}

.cheatsheet .rule-label + .bar {
  margin-bottom: 14px;
}

.cheatsheet .bar {
  border-radius: 999px;
  height: 15px;

  display: grid;
  place-items: center;

  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}

.cheatsheet .bar-up {
  background: var(--bar-green);
}

.cheatsheet .bar-down {
  background: var(--bar-red);
}


/* ---- pro tip ---- */

.cheatsheet .pro-tip {
  text-align: center;
  max-width: 820px;

  margin-left: auto;
  margin-right: auto;
  margin-top: 14px;

  padding: 16px 18px;

  border: 1px solid rgba(168,255,120,.28);
  border-radius: 12px;
  background: rgba(168,255,120,.06);
}

.cheatsheet .pro-tip .tip-title {
  font-size: 18px;
  font-weight: 600;
  color: #a8ff78;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 8px;
}

.cheatsheet .pro-tip .tip {
  font-size: 15px;
  color: #bbb;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 8px;
}

.cheatsheet .pro-tip .tip:last-child {
  margin-bottom: 0;
}


/* ---- responsive ---- */

@media (max-width: 760px) {

  .cheatsheet .cols {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 16px 20px;
  }

  .cheatsheet .name {
    font-size: 15.5px;
  }

}

@media (max-width: 600px) {

  .cheatsheet .page-title {
    font-size: 27px;
  }

  .cheatsheet .eyebrow {
    font-size: 13.5px;
    margin-bottom: 12px;
  }

}

@media (prefers-reduced-motion: reduce) {

  .cheatsheet .panel,
  .cheatsheet .chev {
    transition: none;
  }

}