/* ============================================================
   Learning Success — "OUR MISSION" (narrative-correction page)
   Page-unique layout for patterns/our-mission.php.
   URL: /our-mission/

   Editorial page, essay energy with one conversion goal. Reuses
   tokens (tokens.css) and the shared component base
   (components.css: .ls-pattern gives Lexend body + Fredoka
   headings). Everything here is prefixed .ls-mis- so it loads
   site-wide without collisions. Tokens only — no hardcoded hex.

   Signature element: .ls-mis-ledger — the dated receipts rail
   (year in the left gutter, vertical rail, dot marker, gap chip).
   ============================================================ */

/* ---- Shared section shells ----------------------------------------- */
.ls-mis-measure { max-width: 820px; margin: 0 auto; padding: 84px 32px; }
.ls-mis-wide    { max-width: 1080px; margin: 0 auto; padding: 84px 32px; }
.ls-mis p { text-wrap: pretty; }

.ls-mis-eyebrow {
  font: var(--font-eyebrow); text-transform: uppercase; letter-spacing: var(--tracking-caps);
  color: var(--color-secondary); margin: 0 0 14px;
}
.ls-mis h2 { font: var(--font-h1); color: var(--text-strong); margin: 0 0 26px; }
.ls-mis h3 { font: var(--font-h3); font-size: 1.35rem; color: var(--text-strong); margin: 0 0 10px; }

/* Body copy inside the reading measure */
.ls-mis-measure p:not(.ls-mis-eyebrow):not(.ls-mis-absolution):not(.ls-mis-intro) {
  font: var(--font-body-base); font-size: 1.14rem; line-height: 1.68;
  color: var(--text-body); margin: 0 0 20px;
}
.ls-mis-intro {
  font: var(--font-body-md); color: var(--text-muted);
  max-width: 660px; margin: 0 auto 8px;
}
.ls-mis a { color: var(--text-link); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1.5px;
  text-decoration-color: var(--blue-200); }
.ls-mis a:hover { text-decoration-color: var(--blue-500); }

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.ls-mis-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--blue-50), var(--surface-card));
}
.ls-mis-hero__inner {
  max-width: 900px; margin: 0 auto; padding: 78px 32px 66px;
  text-align: center; position: relative; animation: ls-rise .5s var(--ease-out) both;
}
.ls-mis-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow-400); color: var(--ink-900);
  font: var(--font-eyebrow); text-transform: uppercase; letter-spacing: var(--tracking-caps);
  padding: 7px 14px; border-radius: var(--radius-pill); margin-bottom: 26px;
}
.ls-mis-hero h1 {
  font: var(--font-hero); font-size: 3.5rem; color: var(--text-strong);
  margin: 0 0 26px; letter-spacing: var(--tracking-tight); line-height: 1.07;
}
.ls-mis-hero h1 .hl {
  color: var(--red-500);
  background: linear-gradient(180deg, transparent 62%, var(--yellow-400) 62%, var(--yellow-400) 92%, transparent 92%);
  padding: 0 4px;
}
.ls-mis-hero__sub {
  font: var(--font-body-md); font-size: 1.2rem; line-height: 1.64;
  color: var(--text-muted); max-width: 720px; margin: 0 auto; text-wrap: pretty;
}

/* ============================================================
   SECTION 2 — THE CORRECTION (2002 vs 2025 table + absolution)
   ============================================================ */
.ls-mis-correction { background: var(--surface-card); }

.ls-mis-table { margin: 30px 0 34px; }
.ls-mis-table table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface-card);
}
.ls-mis-table th, .ls-mis-table td {
  font: var(--font-body-base); font-size: 0.98rem; line-height: 1.5;
  text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border-subtle);
  vertical-align: top; color: var(--text-body);
}
.ls-mis-table thead th {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 0.92rem; color: var(--text-strong); background: var(--ink-50);
}
.ls-mis-table thead th.ls-mis-col-new { background: var(--blue-50); color: var(--blue-700); }
.ls-mis-table td.ls-mis-col-new { background: var(--blue-50); color: var(--blue-800); }
.ls-mis-table tbody tr:last-child td { border-bottom: none; }
.ls-mis-table td strong { color: var(--text-strong); }

/* The absolution paragraph — early, and visually held apart. */
.ls-mis-absolution {
  font: var(--font-body-md); font-size: 1.16rem; line-height: 1.72;
  color: var(--text-strong); margin: 34px 0 0;
  background: var(--green-50); border-left: 5px solid var(--green-500);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding: 26px 30px;
}

/* ============================================================
   SECTION 3 — THE RECEIPTS (dated ledger)
   ============================================================ */
.ls-mis-receipts { background: var(--ink-50); }

.ls-mis-ledger { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: none; }
.ls-mis-ledger > li { position: relative; padding: 0 0 34px 138px; }
.ls-mis-ledger > li::before {
  content: ""; position: absolute; left: 116px; top: 14px; bottom: 0;
  width: 2px; background: var(--border-default);
}
.ls-mis-ledger > li:last-child { padding-bottom: 0; }
.ls-mis-ledger > li:last-child::before { display: none; }
.ls-mis-ledger > li::after {
  content: ""; position: absolute; left: 110px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange-500); box-shadow: 0 0 0 4px var(--ink-50);
}
.ls-mis-ledger__yr {
  position: absolute; left: 0; top: 0; width: 98px; text-align: right;
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: var(--text-md); line-height: 1.2; color: var(--orange-600);
}
.ls-mis-ledger__yr span {
  display: block; font-size: var(--text-sm); font-weight: var(--weight-medium);
  color: var(--text-faint); line-height: 1.1;
}
.ls-mis-ledger h3 { font: var(--font-h3); font-size: var(--text-lg); color: var(--text-strong); margin: 0 0 10px; }
.ls-mis-ledger p {
  font: var(--font-body-base); font-size: 1.09rem; line-height: 1.68;
  color: var(--text-body); margin: 0 0 14px;
}
.ls-mis-ledger__note {
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 16px 18px;
}
.ls-mis-ledger__gap {
  display: inline-block; font: var(--font-label); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: var(--tracking-caps);
  color: var(--orange-700); background: var(--orange-50);
  border-radius: var(--radius-pill); padding: 6px 15px;
}

/* ============================================================
   SHARED — CTA button + microcopy (mid-page band and close)
   ============================================================ */
.ls-mis-cta {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--font-ui); font-weight: var(--weight-semibold); font-size: 1.06rem;
  padding: 16px 34px; border-radius: var(--radius-pill); color: var(--white);
  text-decoration: none; line-height: 1.15; box-shadow: var(--shadow-md);
  transition: filter var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.ls-mis-cta:hover  { filter: brightness(0.94); }
.ls-mis-cta:active { transform: scale(0.96); }
.ls-mis-cta--orange { background: var(--orange-500); }
.ls-mis-cta .sub { font-weight: var(--weight-regular); font-size: 0.86rem; opacity: 0.92; }
.ls-mis .ls-mis-cta { color: var(--white); text-decoration: none; }

.ls-mis-micro { font: var(--font-label); font-size: 0.88rem; color: var(--text-muted); margin: 12px 0 0; }
.ls-mis-micro--on-dark { color: var(--blue-100); }

/* ============================================================
   MID-PAGE BAND (placed after the receipts)
   ============================================================ */
.ls-mis-band { background: linear-gradient(155deg, var(--blue-900), var(--blue-700)); }
.ls-mis-band__inner {
  max-width: var(--container-lg); margin: 0 auto; padding: 56px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.ls-mis-band__copy { flex: 1 1 420px; }
.ls-mis-band__copy h2 { font: var(--font-h2); color: var(--white); margin: 0 0 10px; }
.ls-mis-band__copy p { font: var(--font-body-md); color: var(--blue-100); margin: 0; }
.ls-mis-band__cta { flex: 0 1 auto; text-align: center; }

/* ============================================================
   SECTION 4 — WHAT IT COST (pull-quote)
   ============================================================ */
.ls-mis-cost { background: var(--surface-card); }
.ls-mis-pull {
  margin: 34px 0; padding: 30px 34px; background: var(--blue-50);
  border-radius: var(--radius-xl); border-left: 5px solid var(--blue-500);
}
.ls-mis-pull svg { display: block; margin-bottom: 10px; }
.ls-mis-pull blockquote {
  margin: 0; padding: 0; border: none;
  font-family: var(--font-display); font-weight: var(--weight-medium);
  font-size: 1.4rem; line-height: 1.42; color: var(--blue-800);
}

/* ============================================================
   SECTION 5 — WHAT WE'RE CORRECTING (numbered commitment cards)
   ============================================================ */
.ls-mis-commit { background: var(--ink-50); }
.ls-mis-cards { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }
.ls-mis-card {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--surface-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 26px 30px; box-shadow: var(--shadow-xs);
}
.ls-mis-num {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: 1.25rem; color: var(--white);
}
.ls-mis-num--blue   { background: var(--blue-500); }
.ls-mis-num--orange { background: var(--orange-500); }
.ls-mis-num--green  { background: var(--green-500); }
.ls-mis-card__body p {
  font: var(--font-body-base); font-size: 1.08rem; line-height: 1.66;
  color: var(--text-body); margin: 0;
}

/* ============================================================
   SECTION 6 — WHAT WE WILL NOT SAY (published guardrails)
   ============================================================ */
.ls-mis-limits { background: var(--surface-card); }
.ls-mis-box {
  background: var(--ink-50); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl); padding: 30px 34px; margin: 30px 0 28px;
}
.ls-mis-list { list-style: none; margin: 0; padding: 0; }
.ls-mis-list li {
  position: relative; padding: 0 0 18px 34px; margin: 0 0 18px;
  border-bottom: 1px solid var(--border-subtle);
  font: var(--font-body-base); font-size: 1.08rem; line-height: 1.66; color: var(--text-body);
}
.ls-mis-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.ls-mis-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 18px; height: 3px; border-radius: 2px; background: var(--red-500);
}
.ls-mis-list strong { color: var(--text-strong); }

/* ============================================================
   SECTION 7 — CLOSE
   ============================================================ */
.ls-mis-close { background: var(--ink-50); padding: 0 32px 88px; }
.ls-mis-close__card {
  position: relative; overflow: hidden; max-width: var(--container-lg);
  margin: 0 auto; border-radius: var(--radius-2xl);
  background: linear-gradient(155deg, var(--blue-900), var(--blue-700));
  padding: 68px 56px; text-align: center;
}
.ls-mis-close__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.ls-mis-close__blob--a { top: -70px; right: -50px; width: 240px; height: 240px; background: rgba(255,255,255,0.07); }
.ls-mis-close__blob--b { bottom: -80px; left: -60px; width: 220px; height: 220px; background: rgba(247,247,64,0.07); }
.ls-mis-close__in { position: relative; max-width: 740px; margin: 0 auto; }
.ls-mis-close__in h2 { font: var(--font-h1); color: var(--white); margin: 0 0 20px; }
.ls-mis-close__in p {
  font: var(--font-body-md); font-size: 1.14rem; line-height: 1.66;
  color: var(--blue-100); margin: 0 0 18px;
}
.ls-mis-close__cta { margin: 32px 0 0; }
.ls-mis-close__sub { font: var(--font-label) !important; font-size: 0.92rem !important; color: var(--blue-200) !important; margin: 26px 0 0 !important; }

/* ============================================================
   SECTION 8 — FAQ
   ============================================================ */
.ls-mis-faq { background: var(--surface-card); }
.ls-mis-faqlist { margin-top: 34px; }
.ls-mis-faqlist details {
  background: var(--ink-50); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 12px;
}
.ls-mis-faqlist summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 1.1rem; color: var(--text-strong); line-height: 1.4;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.ls-mis-faqlist summary::-webkit-details-marker { display: none; }
.ls-mis-faqlist summary::after {
  content: "+"; font-family: var(--font-display); font-size: 1.4rem;
  line-height: 1; color: var(--orange-500); flex-shrink: 0;
}
.ls-mis-faqlist details[open] summary::after { content: "\2013"; }
.ls-mis-faqlist details p {
  font: var(--font-body-base); font-size: 1.06rem; line-height: 1.68;
  color: var(--text-body); margin: 14px 0 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ls-mis-close__card { padding: 52px 30px; }
}
@media (max-width: 760px) {
  .ls-mis-measure, .ls-mis-wide { padding: 60px 22px; }
  .ls-mis-hero__inner { padding: 60px 22px 52px; }
  .ls-mis-hero h1 { font-size: 2.3rem; }
  .ls-mis-hero__sub { font-size: 1.06rem; }
  .ls-mis h2 { font-size: var(--text-2xl); }

  /* Ledger: stack the year above the entry, swap the rail for a left border */
  .ls-mis-ledger > li { padding: 0 0 28px 22px; border-left: 2px solid var(--border-default); }
  .ls-mis-ledger > li:last-child { border-left-color: transparent; }
  .ls-mis-ledger > li::before { display: none; }
  .ls-mis-ledger > li::after { left: -8px; top: 5px; }
  .ls-mis-ledger__yr { position: static; width: auto; text-align: left; display: block; margin-bottom: 6px; }
  .ls-mis-ledger__yr span { display: inline; font-size: var(--text-md); }

  /* Table: stacked cards with data-label captions */
  .ls-mis-table table, .ls-mis-table thead, .ls-mis-table tbody,
  .ls-mis-table tr, .ls-mis-table td { display: block; width: 100%; }
  .ls-mis-table thead { display: none; }
  .ls-mis-table tbody tr {
    border-bottom: 1px solid var(--border-subtle); padding: 6px 0 10px;
  }
  .ls-mis-table tbody tr:last-child { border-bottom: none; }
  .ls-mis-table td { border-bottom: none; padding: 8px 16px; }
  .ls-mis-table td::before {
    content: attr(data-label); display: block;
    font: var(--font-eyebrow); text-transform: uppercase;
    letter-spacing: var(--tracking-caps); color: var(--text-faint); margin-bottom: 4px;
  }
  .ls-mis-table td:first-child::before { content: none; }

  .ls-mis-card { flex-direction: column; gap: 14px; padding: 24px 22px; }
  .ls-mis-band__inner { padding: 44px 22px; }
  .ls-mis-close { padding: 0 18px 64px; }
  .ls-mis-close__card { padding: 46px 22px; }
  .ls-mis-box { padding: 24px 22px; }
  .ls-mis-pull { padding: 24px 22px; }
  .ls-mis-pull blockquote { font-size: 1.2rem; }
}
