:root {
  --mm-navy: #0b2438;
  --mm-navy-soft: #123a55;
  --mm-teal: #2f8b86;
  --mm-teal-soft: rgba(47, 139, 134, 0.16);
  --mm-gold: #d3a345;
  --mm-gold-soft: rgba(211, 163, 69, 0.16);
  --mm-cream: #f6f1e8;
  --mm-success: #4ade80;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

.mm-course {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 8%, rgba(47, 139, 134, 0.08), transparent 30rem),
    var(--bg-main);
}

.mm-course button,
.mm-course input,
.mm-course textarea,
.mm-course select {
  font: inherit;
}

.mm-course button:focus-visible,
.mm-course input:focus-visible,
.mm-course textarea:focus-visible,
.mm-course a:focus-visible {
  outline: 3px solid rgba(211, 163, 69, 0.5);
  outline-offset: 3px;
}

.mm-hero {
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(11, 36, 56, 0.98), rgba(24, 24, 27, 0.98));
  overflow: hidden;
  position: relative;
}

.mm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to right, black, transparent 88%);
}

.mm-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 4rem;
  min-height: 690px;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  z-index: 1;
}

.mm-kicker,
.mm-label {
  display: block;
  color: var(--mm-gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mm-hero h1 {
  max-width: 720px;
  margin: 0.8rem 0 1.15rem;
  font-size: clamp(3.1rem, 6vw, 5.65rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.mm-hero h1 span {
  color: var(--mm-gold);
}

.mm-hero-lead {
  max-width: 700px;
  margin-bottom: 0.9rem;
  color: #f8fafc;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
}

.mm-hero-summary {
  max-width: 690px;
  color: #b7c3cd;
  font-size: 1rem;
  line-height: 1.8;
}

.mm-hero-actions,
.mm-output-actions,
.mm-timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.mm-hero-actions {
  margin-top: 2rem;
}

.mm-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.2rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mm-button:hover {
  transform: translateY(-1px);
}

.mm-button-primary {
  background: var(--mm-gold);
  color: #171717;
}

.mm-button-primary:hover {
  background: #e4b85d;
  color: #171717;
}

.mm-button-secondary {
  border-color: var(--border-color);
  background: transparent;
  color: var(--text-main);
}

.mm-button-secondary:hover {
  border-color: var(--mm-gold);
  color: var(--mm-gold);
}

.mm-button-danger {
  border-color: rgba(248, 113, 113, 0.35);
  background: transparent;
  color: #fca5a5;
}

.mm-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.2rem;
}

.mm-meta-row span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  color: #c7d0d7;
  font-size: 0.76rem;
}

.mm-hero-visual {
  margin: 0;
  position: relative;
}

.mm-hero-visual::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 1px solid rgba(211, 163, 69, 0.4);
  border-radius: 14px;
  z-index: -1;
}

.mm-hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.mm-hero-visual figcaption {
  margin-top: 0.75rem;
  color: #aebbc5;
  font-size: 0.8rem;
  text-align: right;
}

.mm-course-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 7rem;
}

.mm-course-rail {
  position: sticky;
  top: 98px;
  align-self: start;
}

.mm-progress-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  padding: 1rem;
}

.mm-progress-card strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-main);
  font-size: 0.85rem;
  line-height: 1.35;
}

.mm-progress-ring {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--mm-gold) var(--course-progress), var(--border-color) 0deg);
  position: relative;
}

.mm-progress-ring::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bg-card);
}

.mm-progress-ring span {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
}

.mm-section-nav {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
}

.mm-section-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.mm-section-nav a:last-child {
  border-bottom: 0;
}

.mm-section-nav a span {
  color: var(--mm-gold);
  font-size: 0.7rem;
  font-weight: 700;
}

.mm-section-nav a:hover,
.mm-section-nav a.is-active {
  background: var(--bg-input);
  color: var(--text-main);
}

.mm-save-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.mm-save-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--mm-success);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.1);
}

.mm-course-content {
  min-width: 0;
}

.mm-section {
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(39, 39, 42, 0.72);
  padding: clamp(1.45rem, 3vw, 2.65rem);
  scroll-margin-top: 96px;
}

.mm-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  margin-bottom: 2rem;
  padding-bottom: 1.45rem;
  border-bottom: 1px solid var(--border-color);
}

.mm-section-heading h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.18;
}

.mm-section-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(211, 163, 69, 0.42);
  border-radius: 50%;
  color: var(--mm-gold);
  font-size: 0.85rem;
  font-weight: 700;
}

.mm-statement {
  border-left: 4px solid var(--mm-gold);
  background: var(--bg-input);
  padding: 1.5rem 1.65rem;
}

.mm-statement p {
  max-width: 880px;
  color: #e6e6e8;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.65;
}

.mm-three-movements,
.mm-six-decisions,
.mm-terms-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.mm-three-movements {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-three-movements article,
.mm-six-decisions article,
.mm-terms-grid article {
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: var(--bg-input);
  padding: 1.25rem;
}

.mm-three-movements article > span,
.mm-six-decisions article > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--mm-navy-soft);
  color: #e9f6f5;
  font-size: 0.8rem;
  font-weight: 700;
}

.mm-three-movements h3,
.mm-six-decisions h3,
.mm-terms-grid span {
  margin-bottom: 0.45rem;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
}

.mm-three-movements p,
.mm-six-decisions p,
.mm-terms-grid p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.mm-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(47, 139, 134, 0.4);
  border-radius: 8px;
  background: var(--mm-teal-soft);
  padding: 1rem 1.15rem;
  color: #dbe8e7;
  cursor: pointer;
}

.mm-check-row input,
.mm-diagnostic-list input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--mm-gold);
}

.mm-case-card,
.mm-authoritative-source,
.mm-safeguards,
.mm-pitch-lab,
.mm-matrix-block {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-input);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.mm-case-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
}

.mm-case-card h3,
.mm-authoritative-source h3,
.mm-safeguards h3,
.mm-block-heading h3,
.mm-final-takeaway h3 {
  margin: 0.35rem 0 0.7rem;
  font-size: 1.35rem;
}

.mm-case-card p,
.mm-authoritative-source p,
.mm-callout p,
.mm-final-takeaway p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.mm-diagnostic-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.mm-diagnostic-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.7rem;
  color: #d9d9dc;
  font-size: 0.88rem;
  cursor: pointer;
}

.mm-diagnostic-list label:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mm-subheading {
  margin: 2.2rem 0 0.45rem;
  font-size: 1.35rem;
}

.mm-intro-copy {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.mm-five-ms {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.mm-reveal-card {
  min-height: 180px;
  border: 1px solid var(--border-color);
  border-radius: 9px;
  background: var(--bg-input);
  padding: 1.2rem 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mm-reveal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(211, 163, 69, 0.55);
}

.mm-reveal-card > span {
  display: block;
  color: var(--mm-gold);
  font-size: 0.7rem;
  font-weight: 700;
}

.mm-reveal-card strong {
  display: block;
  margin-top: 2.5rem;
  font-size: 1rem;
}

.mm-reveal-card small {
  display: block;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: #d3dddc;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease, margin 0.25s ease;
}

.mm-reveal-card[aria-expanded="true"] {
  border-color: var(--mm-teal);
  background: var(--mm-teal-soft);
}

.mm-reveal-card[aria-expanded="true"] small {
  max-height: 90px;
  margin-top: 0.75rem;
  opacity: 1;
}

.mm-field-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.mm-field-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mm-field > span {
  color: #d7d7da;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.mm-field input,
.mm-field textarea,
.mm-matrix-table input,
.mm-matrix-table textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: #111114;
  color: var(--text-main);
  padding: 0.78rem 0.85rem;
  line-height: 1.55;
  resize: vertical;
}

.mm-field input::placeholder,
.mm-field textarea::placeholder,
.mm-matrix-table input::placeholder,
.mm-matrix-table textarea::placeholder {
  color: #6f6f78;
}

.mm-field input:focus,
.mm-field textarea:focus,
.mm-matrix-table input:focus,
.mm-matrix-table textarea:focus {
  border-color: var(--mm-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(211, 163, 69, 0.12);
}

.mm-callout {
  border: 1px solid rgba(211, 163, 69, 0.32);
  border-radius: 10px;
  background: var(--mm-gold-soft);
  padding: 1.3rem 1.5rem;
}

.mm-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #f6d99d;
  font-size: 1.05rem;
}

.mm-terms-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mm-terms-grid article.is-featured {
  border-color: rgba(47, 139, 134, 0.7);
  background: var(--mm-teal-soft);
}

.mm-terms-grid span {
  display: block;
  color: var(--mm-gold);
}

.mm-journey {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 0.65rem;
  margin-top: 1.2rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.8rem;
}

.mm-journey div {
  min-height: 120px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-input);
  padding: 1rem 0.85rem;
  position: relative;
}

.mm-journey div:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -0.52rem;
  top: 42%;
  z-index: 2;
  color: var(--mm-gold);
  font-size: 1.2rem;
}

.mm-journey strong,
.mm-journey span {
  display: block;
}

.mm-journey strong {
  color: #e8eef2;
  font-size: 0.85rem;
}

.mm-journey span {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.mm-authoritative-source {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: end;
  margin-top: 1.5rem;
  border-color: rgba(47, 139, 134, 0.45);
}

.mm-six-decisions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mm-six-decisions article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 0.9rem;
  align-items: start;
}

.mm-six-decisions article > span {
  grid-row: 1 / span 2;
  margin: 0;
}

.mm-six-decisions h3 {
  margin: 0;
}

.mm-six-decisions p {
  grid-column: 2;
  margin-top: 0.3rem;
}

.mm-safeguards {
  margin-top: 1.5rem;
  border-color: rgba(47, 139, 134, 0.4);
}

.mm-lab-section {
  border-color: rgba(211, 163, 69, 0.42);
  box-shadow: 0 0 0 1px rgba(211, 163, 69, 0.06);
}

.mm-group-details {
  margin-top: 0;
  margin-bottom: 1.7rem;
}

.mm-brief-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  border: 0;
  padding: 0;
}

.mm-brief-selector legend {
  grid-column: 1 / -1;
  margin-bottom: 0.35rem;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.mm-brief-selector label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-input);
  padding: 1rem;
  cursor: pointer;
}

.mm-brief-selector label:has(input:checked) {
  border-color: var(--mm-gold);
  background: var(--mm-gold-soft);
}

.mm-brief-selector input {
  margin-top: 0.25rem;
  accent-color: var(--mm-gold);
}

.mm-brief-selector strong,
.mm-brief-selector small {
  display: block;
}

.mm-brief-selector strong {
  color: #e8e8ea;
  font-size: 0.92rem;
}

.mm-brief-selector small {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.mm-canvas-form,
.mm-matrix-block {
  margin-top: 2rem;
}

.mm-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.mm-block-heading h3 {
  margin-bottom: 0;
}

.mm-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.mm-matrix-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.mm-matrix-table th,
.mm-matrix-table td {
  border: 1px solid var(--border-color);
  padding: 0.6rem;
  vertical-align: top;
}

.mm-matrix-table th {
  background: var(--mm-navy);
  color: #eef5f7;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.mm-matrix-table td {
  background: #151518;
}

.mm-matrix-table input,
.mm-matrix-table textarea {
  min-width: 130px;
  border: 0;
  background: transparent;
  padding: 0.4rem;
  font-size: 0.8rem;
}

.mm-remove-row {
  border: 0;
  background: transparent;
  color: #fca5a5;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.mm-help-text {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.mm-strategy-flow {
  display: grid;
  grid-template-columns: repeat(11, auto);
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 1rem 0 1.5rem;
}

.mm-strategy-flow span {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-input);
  padding: 0.8rem 1rem;
  color: #e3e3e6;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.mm-strategy-flow i {
  color: var(--mm-gold);
  font-style: normal;
}

.mm-pitch-lab {
  margin-top: 0.75rem;
}

.mm-timer {
  min-width: 112px;
  border: 1px solid rgba(211, 163, 69, 0.45);
  border-radius: 8px;
  background: var(--mm-gold-soft);
  padding: 0.6rem 0.9rem;
  color: #f7dca5;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.mm-pitch-timeline {
  display: grid;
  grid-template-columns: 15fr 20fr 30fr 15fr 10fr;
  gap: 0.45rem;
  margin: 1.2rem 0;
}

.mm-pitch-timeline div {
  min-height: 120px;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: #17171a;
  padding: 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mm-pitch-timeline div.is-current {
  border-color: var(--mm-gold);
  background: var(--mm-gold-soft);
  transform: translateY(-3px);
}

.mm-pitch-timeline strong,
.mm-pitch-timeline span {
  display: block;
}

.mm-pitch-timeline strong {
  color: var(--mm-gold);
  font-size: 0.8rem;
}

.mm-pitch-timeline span {
  margin-top: 0.65rem;
  color: #c7c7cc;
  font-size: 0.76rem;
  line-height: 1.45;
}

.mm-commitment-field {
  margin-top: 1.5rem;
  border: 1px solid rgba(47, 139, 134, 0.48);
  border-radius: 10px;
  background: var(--mm-teal-soft);
  padding: 1.35rem;
}

.mm-final-takeaway {
  margin-top: 1.5rem;
  border-left: 4px solid var(--mm-gold);
  background: var(--mm-navy);
  padding: 1.5rem 1.7rem;
}

.mm-final-takeaway h3 {
  color: #fff;
  font-size: 1.75rem;
}

.mm-output-actions {
  margin-top: 1.5rem;
}

.mm-resources-section {
  margin-bottom: 0;
}

.mm-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.mm-download-grid a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-input);
  padding: 0.9rem 1rem;
}

.mm-download-grid a:hover {
  border-color: var(--mm-gold);
}

.mm-download-grid a > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--mm-gold-soft);
  color: var(--mm-gold);
}

.mm-download-grid strong {
  color: #dedee1;
  font-size: 0.84rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1080px) {
  .mm-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .mm-hero-visual {
    max-width: 780px;
  }

  .mm-five-ms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .mm-pitch-timeline {
    grid-template-columns: repeat(5, minmax(145px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 868px) {
  .mm-course-layout {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .mm-course-rail {
    position: static;
  }

  .mm-section-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mm-section-nav a {
    border-right: 1px solid var(--border-color);
  }

  .mm-case-card,
  .mm-authoritative-source {
    grid-template-columns: 1fr;
  }

  .mm-field-grid-3,
  .mm-three-movements {
    grid-template-columns: 1fr;
  }

  .mm-five-ms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mm-hero-grid {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .mm-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .mm-hero-actions .mm-button,
  .mm-output-actions .mm-button,
  .mm-timer-actions .mm-button {
    width: 100%;
  }

  .mm-course-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .mm-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-section-heading {
    gap: 0.8rem;
  }

  .mm-section-number {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .mm-field-grid-2,
  .mm-five-ms,
  .mm-terms-grid,
  .mm-six-decisions,
  .mm-brief-selector,
  .mm-download-grid {
    grid-template-columns: 1fr;
  }

  .mm-reveal-card {
    min-height: 140px;
  }

  .mm-brief-selector legend {
    grid-column: 1;
  }

  .mm-block-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .mm-timer {
    width: 100%;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .site-header,
  body > footer,
  .mm-hero,
  .mm-course-rail,
  #orientation,
  #discern,
  #design,
  #deploy,
  #furtherStudy,
  .mm-timer-actions,
  .mm-output-actions,
  #addMatrixRow,
  .mm-remove-row {
    display: none !important;
  }

  .mm-course,
  .mm-course-layout,
  .mm-course-content {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
  }

  .mm-section {
    break-inside: auto;
    border: 0;
    background: #fff !important;
    color: #111 !important;
    padding: 0;
  }

  #campaignLab,
  #synthesis {
    display: block !important;
  }

  #synthesis {
    break-before: page;
  }

  .mm-section h2,
  .mm-section h3,
  .mm-field > span,
  .mm-brief-selector strong,
  .mm-strategy-flow span,
  .mm-final-takeaway h3 {
    color: #111 !important;
  }

  .mm-kicker,
  .mm-label,
  .mm-section-number {
    color: #7c5200 !important;
  }

  .mm-field input,
  .mm-field textarea,
  .mm-matrix-table input,
  .mm-matrix-table textarea {
    border: 1px solid #777 !important;
    background: #fff !important;
    color: #111 !important;
    overflow: visible !important;
  }

  .mm-brief-selector label,
  .mm-matrix-block,
  .mm-pitch-lab,
  .mm-final-takeaway,
  .mm-strategy-flow span {
    border-color: #777 !important;
    background: #fff !important;
  }

  .mm-matrix-table th {
    background: #dfe9ef !important;
    color: #111 !important;
  }

  .mm-matrix-table td {
    background: #fff !important;
  }

  .mm-table-wrap {
    overflow: visible;
  }

  .mm-matrix-table {
    min-width: 0;
    font-size: 8pt;
  }
}
