/* Onboarding at /onboarding/. One step, one screenshot. */

.mk-ob {
  --ob-accent: var(--mk-blue, #047857);
  --ob-ink: var(--mk-ink, #182021);
  --ob-muted: var(--mk-muted, #626968);
  --ob-line: var(--mk-line, #DEDFDB);
  --ob-soft: var(--mk-soft, #F4F5F3);
  --ob-pale: var(--mk-pale-blue, #ecfdf5);
  --ob-shot-border: var(--mk-image-border, #D4D8D8);
  --ob-done: var(--leaf-deep, #24824C);
  --ob-done-tint: var(--leaf-tint, #E6F4EB);
  color: var(--ob-ink);
  background: #FFFFFF;
}

.mk-ob .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mk-ob-eyebrow {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ob-muted);
}

.mk-ob-label {
  margin: 0 0 16px;
  font-family: var(--font-display, inherit);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ob-ink);
}

.mk-ob-pro {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--ob-pale);
  color: var(--ob-accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: middle;
}

.mk-ob-pro--title {
  position: relative;
  top: -0.2em;
  margin-left: 4px;
  font-size: 0.8125rem;
  padding: 3px 10px;
}

/* ---------- Index ---------- */

.mk-ob-hero {
  position: relative;
  padding: clamp(48px, 6vw, 88px) 0 0;
  background: var(--ob-soft);
  text-align: center;
  overflow: hidden;
}

.mk-ob-hero .mk-ob-eyebrow { margin-bottom: 14px; }

.mk-ob-hero h1 {
  max-width: 16ch;
  margin: 0 auto 18px;
  font-family: var(--font-display, inherit);
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 750;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mk-ob-lead {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ob-muted);
}

.mk-ob-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.mk-ob-hero .mk-ob-lead strong {
  font-weight: 600;
  color: var(--ob-ink);
}

.mk-ob-hero .mk-ob-lead strong[hidden] { display: none; }

.mk-ob-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ob-accent);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.mk-ob-cta:hover,
.mk-ob-cta:focus-visible {
  background: var(--mk-blue-dark, #065f46);
  color: #FFFFFF;
}

.mk-ob-hero .mk-ob-edition p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mk-ob-hero .mk-ob-edition .mk-ob-tabs {
  height: 52px;
  padding: 4px;
  border-color: var(--ob-line);
  background: #FFFFFF;
}

.mk-ob-hero .mk-ob-edition .mk-ob-tab {
  height: 42px;
  padding: 0 22px;
  font-size: 1rem;
}

.mk-ob-wave {
  display: block;
  height: clamp(36px, 5vw, 64px);
  margin-top: clamp(36px, 5vw, 56px);
  line-height: 0;
}

.mk-ob-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mk-ob-wave path { fill: #FFFFFF; }

.mk-ob-chapters {
  margin: 0;
  padding: 24px 0 72px;
  list-style: none;
}

.mk-ob-chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--ob-line);
}

.mk-ob-chapter:last-child { border-bottom: 0; }

.mk-ob-chapter-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mk-ob-chapter-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ob-ink);
  color: #FFFFFF;
  font-weight: 700;
}

.mk-ob-chapter-head h2 {
  margin: 4px 0 6px;
  font-family: var(--font-display, inherit);
  font-size: 1.375rem;
  line-height: 1.25;
}

.mk-ob-chapter-head p {
  margin: 0;
  color: var(--ob-muted);
  line-height: 1.55;
}

.mk-ob-chapter-lessons {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--ob-line);
  border-radius: 12px;
  overflow: hidden;
}

.mk-ob-chapter-lessons li + li { border-top: 1px solid var(--ob-line); }

.mk-ob-chapter-lessons a,
.mk-ob-side-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ob-ink);
  text-decoration: none;
}

.mk-ob-chapter-lessons a {
  padding: 13px 16px;
}

.mk-ob-chapter-lessons a:hover,
.mk-ob-chapter-lessons a:focus-visible {
  background: var(--ob-pale);
}

.mk-ob-lesson-title { flex: 1; }

/* Lessons still being written: listed, greyed out, not a link. */
.mk-ob-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9aa1a0;
  cursor: default;
}

.mk-ob-chapter-lessons .mk-ob-soon { padding: 13px 16px; }

.mk-ob-side-list .mk-ob-soon {
  padding: 8px 10px;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.mk-ob-soon .mk-ob-mark { border-style: dashed; }

.mk-ob-soon em {
  flex: none;
  font-size: 0.8125rem;
  font-style: normal;
  color: #9aa1a0;
}

.mk-ob-min {
  flex: none;
  font-size: 0.8125rem;
  color: var(--ob-muted);
}

.mk-ob-mark {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ob-line);
  border-radius: 50%;
  background: #FFFFFF;
}

[data-done="1"] .mk-ob-mark {
  border-color: var(--ob-done);
  background: var(--ob-done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Lesson ---------- */

.mk-ob-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 48px;
  padding: 40px 0 80px;
}

.mk-ob-side {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.mk-ob-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--ob-muted);
  text-decoration: none;
}

.mk-ob-back:hover { color: var(--ob-ink); }

.mk-ob-side h2 {
  margin: 0 0 14px;
  font-family: var(--font-display, inherit);
  font-size: 1.125rem;
  line-height: 1.3;
}

.mk-ob-side-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.mk-ob-side-list a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.mk-ob-side-list a:hover { background: var(--ob-soft); }

.mk-ob-side-list a[aria-current="page"] {
  background: var(--ob-pale);
  font-weight: 600;
}

.mk-ob-side-title { flex: 1; }

.mk-ob-done-btn { width: 100%; }

.mk-ob-done-btn[data-done="1"] {
  border-color: var(--ob-done);
  background: var(--ob-done-tint);
  color: var(--ob-done);
}

.mk-ob-side-next {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--ob-muted);
}

.mk-ob-article {
  min-width: 0;
}

/* Screenshots use the full column; lines of text stay a comfortable length. */
.mk-ob-intro,
.mk-ob-step-text,
.mk-ob-steps-sub,
.mk-ob-section > p,
.mk-ob-way-intro,
.mk-ob-help details p {
  max-width: 70ch;
}

.mk-ob-article h1 {
  margin: 0 0 10px;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.mk-ob-meta {
  margin: 0 0 32px;
  font-size: 0.9375rem;
  color: var(--ob-muted);
}

.mk-ob-intro p {
  margin: 0 0 16px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ob-ink);
}

.mk-ob-article a { color: var(--ob-accent); }

.mk-ob-article code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--ob-soft);
  font-size: 0.92em;
}

.mk-ob-need,
.mk-ob-ways,
.mk-ob-done,
.mk-ob-help,
.mk-ob-callout {
  margin-top: 48px;
}

.mk-ob-need {
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--ob-soft);
}

.mk-ob-need .mk-ob-label { margin-bottom: 10px; }

.mk-ob-need ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.mk-ob-need li + li { margin-top: 6px; }

.mk-ob-callout {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--ob-pale);
  line-height: 1.65;
}

/* Steps: on wide screens each step is one row, the words on the left and the screenshot in a
   frame on the right, so the text is always in the same place and every picture sits the same way. */

.mk-ob-steps-title {
  margin: 56px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--ob-line);
  font-family: var(--font-display, inherit);
  font-size: 1.5rem;
}

/* Section headings inside a lesson: Get there, Set it up, and the lesson's own groups. */
.mk-ob-steps-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 0;
  font-family: var(--font-display, inherit);
  font-size: 1.125rem;
  color: var(--ob-ink);
}

.mk-ob-steps-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ob-line);
}

.mk-ob-steps-title + .mk-ob-steps-head { margin-top: 24px; }

.mk-ob-steps-sub {
  margin: 8px 0 0;
  color: var(--ob-muted);
  line-height: 1.65;
}

.mk-ob-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mk-ob-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--ob-line);
}

.mk-ob-steps > .mk-ob-step:last-child { border-bottom: 0; }

/* A step with no screenshot uses the whole row. */
.mk-ob-step:not(:has(.mk-ob-shot)) { grid-template-columns: minmax(0, 1fr); }

.mk-ob-step::before {
  content: attr(data-n);
  position: absolute;
  top: 29px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ob-accent);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
}

.mk-ob-step-text { padding-left: 46px; }

.mk-ob-step-text p {
  margin: 3px 0 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.mk-ob-step-text .mk-ob-step-note {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--ob-muted);
}

/* The frame: every screenshot sits in the same soft box, centered. Small crops keep their real size;
   big ones shrink to fit the box. */
.mk-ob-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: 0;
  padding: 22px;
  border-radius: 16px;
  background: var(--ob-soft);
}

.mk-ob-zoom-btn {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  vertical-align: top;
  border: 1px solid var(--ob-shot-border);
  border-radius: 10px;
  background: #FFFFFF;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 1px 2px rgb(24 32 33 / 6%);
}

.mk-ob-zoom-btn:focus-visible {
  outline: 3px solid var(--ob-accent);
  outline-offset: 2px;
}

/* Never larger than its real on-screen size (--w), never taller than the frame allows. */
.mk-ob-zoom-btn img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--w, 100%));
  max-height: 420px;
}

/* Free or Pro, asked at the top */

.mk-ob-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 0 0 10px;
}

.mk-ob-topline .mk-ob-eyebrow { margin: 0; }

.mk-ob-edition {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mk-ob-edition[hidden],
.mk-ob [data-ob-edition][hidden] { display: none; }

.mk-ob-edition p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ob-muted);
}

.mk-ob-edition .mk-ob-tab {
  padding: 6px 14px;
  font-size: 0.875rem;
}

.mk-ob-edition .mk-ob-tabs { padding: 3px; }

.mk-ob-tab[aria-pressed="true"] {
  background: var(--ob-ink);
  color: #FFFFFF;
}

.mk-ob.has-edition .mk-ob-ways--edition { margin-top: 0; }

.mk-ob.has-edition .mk-ob-ways--edition .mk-ob-way-title { display: none; }

/* Ways (Stripe or PayPal...) */

.mk-ob-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ob-line);
  border-radius: 999px;
  background: var(--ob-soft);
}

.mk-ob-tabs[hidden] { display: none; }

.mk-ob-tab {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ob-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.mk-ob-tab[aria-selected="true"] {
  background: var(--ob-ink);
  color: #FFFFFF;
}

.mk-ob-way {
  margin-top: 8px;
}

.mk-ob-way-title {
  margin: 40px 0 0;
  font-family: var(--font-display, inherit);
  font-size: 1.375rem;
}

.mk-ob-ways.is-tabbed .mk-ob-way-title { display: none; }

.mk-ob-ways.is-tabbed .mk-ob-way[hidden] { display: none; }

/* Explainer lessons: comparison cards and plain sections */

.mk-ob-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.mk-ob-compare-card {
  padding: 26px 26px 22px;
  border: 1px solid var(--ob-line);
  border-radius: 16px;
  background: #FFFFFF;
}

.mk-ob-compare-card.is-pro {
  border-color: var(--ob-accent);
  background: var(--ob-pale);
}

.mk-ob-compare-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-display, inherit);
  font-size: 1.375rem;
}

.mk-ob-compare-card > p {
  margin: 0 0 18px;
  color: var(--ob-muted);
  line-height: 1.55;
}

.mk-ob-ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mk-ob-ticks li {
  position: relative;
  padding-left: 28px;
  line-height: 1.55;
}

.mk-ob-ticks li + li { margin-top: 10px; }

.mk-ob-ticks li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%232449E8'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mk-ob-section {
  margin-top: 56px;
}

.mk-ob-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display, inherit);
  font-size: 1.375rem;
}

.mk-ob-section > p {
  margin: 0 0 14px;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.mk-ob-section .mk-ob-ticks { margin-top: 18px; }

.mk-ob-section .mk-ob-shot { margin-top: 22px; }

.mk-ob-article .mk-ob-section-btn {
  margin-top: 10px;
  color: #FFFFFF;
}

/* Done and help */

.mk-ob-done {
  margin-top: 72px;
  padding: 22px 26px 22px 64px;
  border-radius: 14px;
  background: var(--ob-done-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2324824C'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 24px 24px / 24px no-repeat;
}

.mk-ob-done .mk-ob-label {
  margin-bottom: 4px;
  color: var(--ob-done);
}

.mk-ob-done p:last-child {
  margin: 0;
  line-height: 1.65;
}

.mk-ob-help {
  margin-top: 56px;
}

.mk-ob-help h2 {
  margin: 0 0 12px;
  font-family: var(--font-display, inherit);
  font-size: 1.25rem;
}

.mk-ob-help details {
  border-top: 1px solid var(--ob-line);
}

.mk-ob-help details:last-child { border-bottom: 1px solid var(--ob-line); }

.mk-ob-help summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.mk-ob-help summary::-webkit-details-marker { display: none; }

.mk-ob-help summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23182021' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.mk-ob-help details[open] summary::after { transform: rotate(180deg); }

.mk-ob-help details p {
  margin: 0 0 20px;
  line-height: 1.65;
  color: var(--ob-muted);
}

/* Forward */

.mk-ob-forward {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 72px;
}

.mk-ob-forward a {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--ob-line);
  border-radius: 12px;
  color: var(--ob-ink);
  font-weight: 600;
  text-decoration: none;
}

.mk-ob-forward a span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ob-muted);
}

.mk-ob-forward .mk-ob-next {
  grid-column: 2;
  text-align: right;
  border-color: var(--ob-accent);
  background: var(--ob-accent);
  color: #FFFFFF;
}

.mk-ob-forward .mk-ob-next span { color: #e1faf0; }

.mk-ob-forward a:hover { border-color: var(--ob-ink); }

/* Zoom */

.mk-ob-zoom {
  width: min(1400px, 96vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #FFFFFF;
  overflow: auto;
}

.mk-ob-zoom::backdrop { background: rgb(12 16 17 / 82%); }

.mk-ob-zoom img {
  display: block;
  width: 100%;
  height: auto;
}

.mk-ob-zoom-close {
  position: sticky;
  top: 8px;
  float: right;
  margin: 8px 8px -48px 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ob-ink);
  color: #FFFFFF;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Small screens ---------- */

@media (max-width: 960px) {
  .mk-ob-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 24px;
  }

  .mk-ob-side {
    position: static;
    max-height: none;
    padding: 16px;
    border: 1px solid var(--ob-line);
    border-radius: 12px;
  }

  .mk-ob-chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* Narrow: words first, then the framed screenshot under them. */
@media (max-width: 760px) {
  .mk-ob-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 24px 0;
  }

  .mk-ob-step::before { top: 25px; }

  .mk-ob-shot {
    min-height: 0;
    padding: 12px;
    border-radius: 12px;
  }

  .mk-ob-zoom-btn img { max-height: none; }
}

@media (max-width: 640px) {
  .mk-ob-hero { padding-top: 44px; }


  .mk-ob-forward { grid-template-columns: minmax(0, 1fr); }

  .mk-ob-compare { grid-template-columns: minmax(0, 1fr); }

  .mk-ob-forward .mk-ob-next { grid-column: 1; text-align: left; }

  .mk-ob-min { display: none; }
}

/* The index ends on the chapter list, which has no bottom padding of its own: pull the closing card up a little. */
.lx-container:has(> .mk-ob-chapters) + .lx-final { margin-top: calc(var(--final-half) - 72px); }
