/* =====================================================
   METHOD PAGE — supplementary styles
   Uses tokens defined in cieel.css (--clay, --teal, etc.)
   All classes prefixed `.m-` to avoid collision with other pages.
   ===================================================== */

/* ---------- Narrow prose container inside wide section-inner ---------- */
.m-narrow-prose {
  max-width: 720px;
  margin: 0 auto;
}


/* ---------- Sub-section for Section B (Shape of a Year) ---------- */
.m-subsection {
  max-width: 720px;
  margin: 0 auto 56px;
}
.m-subsection:last-child {
  margin-bottom: 0;
}
.m-subsection-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--clay);
  margin: 0 0 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 71, 42, 0.18);
}


/* ---------- Inline lists (rhythm, deliverables, streams) ---------- */
.m-rhythm,
.m-deliverables,
.m-streams {
  margin: 22px 0;
  padding-left: 26px;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.m-rhythm li,
.m-deliverables li {
  margin-bottom: 6px;
  list-style-type: disc;
}
.m-streams li {
  margin-bottom: 8px;
  list-style-type: decimal;
  padding-left: 6px;
  font-weight: 500;
}


/* ---------- Framework summary table ---------- */
.m-framework-table-wrap {
  max-width: 920px;
  margin: 28px auto 0;
  overflow-x: auto;
}
.m-framework-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  background: var(--parchment-soft);
}
.m-framework-table thead th {
  text-align: left;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  padding: 14px 18px;
  border-bottom: 1.5px solid rgba(43, 38, 34, 0.18);
}
.m-framework-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(43, 38, 34, 0.08);
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink);
}
.m-framework-table tbody tr:last-child td {
  border-bottom: none;
}
.m-framework-table .m-fw-name {
  width: 130px;
  white-space: nowrap;
}
.m-framework-table .m-fw-name strong {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--clay);
}
.m-framework-table .m-fw-function {
  width: 250px;
  font-style: italic;
  color: var(--teal);
}
.m-framework-table .m-fw-meaning {
  color: var(--ink);
}

@media (max-width: 640px) {
  .m-framework-table thead {
    display: none;
  }
  .m-framework-table tbody tr {
    display: block;
    margin-bottom: 18px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(43, 38, 34, 0.12);
  }
  .m-framework-table tbody td {
    display: block;
    padding: 4px 0;
    border-bottom: none;
    width: auto !important;
  }
  .m-framework-table .m-fw-name strong {
    font-size: 22px;
  }
}


/* ---------- Framework heading (numbered, large, set apart) ---------- */
.m-framework-heading {
  display: flex;
  gap: 22px;
  align-items: baseline;
  max-width: 720px;
  margin: 0 auto 26px;
  padding-top: 22px;
  border-top: 2px solid var(--clay);
}
.m-framework-num {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 46px;
  line-height: 1;
  color: var(--clay);
  flex-shrink: 0;
  margin-top: -4px;
}
.m-framework-title-block {
  flex: 1;
}
.m-framework-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
}
.m-framework-title em {
  font-style: italic;
  color: var(--clay);
  font-weight: 300;
}
.m-framework-expansion {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* On teal section, lighten the framework heading */
.section-teal .m-framework-heading {
  border-top-color: var(--gold-soft);
}
.section-teal .m-framework-num,
.section-teal .m-framework-title em {
  color: var(--gold-soft);
}
.section-teal .m-framework-title {
  color: var(--parchment);
}
.section-teal .m-framework-expansion {
  color: var(--gold-soft);
}


/* ---------- KARCA stages (numbered list with content) ---------- */
.m-stages {
  margin-top: 36px;
}
.m-stage {
  display: flex;
  gap: 18px;
  margin-bottom: 32px;
}
.m-stage:last-child {
  margin-bottom: 0;
}
.m-stage-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  color: var(--clay);
  flex-shrink: 0;
  width: 32px;
  padding-top: 6px;
}
.m-stage-content {
  flex: 1;
}
.m-stage-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 10px;
}


/* ---------- CARE / SEVA / sub blocks ---------- */
.m-blocks {
  margin-top: 32px;
}
.m-block {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(43, 38, 34, 0.1);
}
.m-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.m-subblock {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed rgba(43, 38, 34, 0.18);
}
.m-block-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--clay);
  font-style: italic;
  margin: 0 0 14px;
}


/* ---------- SISEP / SHEEE registers (5-up grid card layout) ---------- */
.m-registers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 32px 0;
}
.m-register {
  background: var(--parchment-soft);
  padding: 22px 22px 20px;
  border-top: 3px solid var(--clay);
}
.m-register-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 12px;
}
.m-register p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* On soft sections, registers need a slightly different background */
.section-soft .m-register {
  background: var(--parchment);
}


/* ---------- Worked example callout ---------- */
.m-worked-example {
  margin-top: 40px;
  padding: 26px 28px 22px;
  background: rgba(31, 72, 71, 0.04);
  border-left: 3px solid var(--teal);
  border-radius: 0 4px 4px 0;
}
.section-soft .m-worked-example {
  background: rgba(31, 72, 71, 0.06);
}
.m-we-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  font-weight: 500;
}
.m-worked-example .prose p {
  font-size: 16.5px;
  line-height: 1.62;
}
.m-worked-example .prose p:last-child {
  margin-bottom: 0;
}


/* ---------- Helix forward-pointing closing line ---------- */
.m-helix-forward {
  margin-top: 28px !important;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 239, 227, 0.2);
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: var(--gold-soft) !important;
  letter-spacing: 0.01em;
}
.m-helix-forward a {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 190, 118, 0.4);
  padding-bottom: 1px;
  transition: border-color 0.18s ease;
}
.m-helix-forward a:hover {
  border-bottom-color: var(--gold-soft);
}


/* ---------- Compact (closing) bullet list ---------- */
.m-compact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  font-family: 'Fraunces', serif;
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink);
}
.m-compact-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(43, 38, 34, 0.1);
}
.m-compact-list li:last-child {
  border-bottom: none;
}
.m-compact-list li strong {
  font-weight: 500;
  color: var(--clay);
  letter-spacing: 0.005em;
}


/* ---------- Closing CTAs at page foot ---------- */
.m-method-foot-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(43, 38, 34, 0.14);
}
.m-cta-link {
  display: inline-block;
  padding: 12px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--parchment-soft);
  border: 1px solid rgba(43, 38, 34, 0.18);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.m-cta-link:hover {
  background: var(--ink);
  color: var(--parchment);
  border-color: var(--ink);
}
.m-cta-primary {
  background: var(--clay);
  color: var(--parchment);
  border-color: var(--clay);
}
.m-cta-primary:hover {
  background: var(--clay-deep);
  border-color: var(--clay-deep);
  color: var(--parchment);
}


/* ---------- Responsive tweaks ---------- */
@media (max-width: 720px) {
  .m-framework-num {
    font-size: 36px;
  }
  .m-framework-title {
    font-size: 26px;
  }
  .m-stage {
    gap: 12px;
  }
  .m-stage-num {
    width: 24px;
    font-size: 13px;
  }
  .m-stage-name {
    font-size: 19px;
  }
  .m-block-title {
    font-size: 19px;
  }
  .m-subsection-title {
    font-size: 22px;
  }
  .m-compact-list {
    font-size: 18px;
  }
  .m-worked-example {
    padding: 22px 20px 18px;
  }
}
