.mali-subpage {
  --navy: var(--studio-ink);
  --olive: var(--studio-moss);
  --paper: var(--studio-paper);
  --beige: var(--studio-wash);
  --line: var(--studio-line);
  --canvas: var(--studio-paper);
  --forest: var(--studio-dark);
  --olive-text: var(--studio-moss);
  --rule: var(--studio-line);
  --section-gap: clamp(38px, 6vw, 81px);
  --page-gutter: clamp(22px, 5vw, 72px);
}

.mali-subpage .studio-header { border-bottom: 1px solid var(--studio-line); }

.mali-subpage :is(.hero, .content, .check-shell, .legal-page, .boden-title, .floor-project, .project-films) {
  max-width: var(--studio-width);
  padding-inline: var(--page-gutter);
  margin-inline: auto;
}

.mali-subpage :is(.hero, .content, .check-shell, .legal-page, .boden-title) { padding-block: var(--section-gap); }
.mali-subpage .hero { gap: clamp(22px, 6vw, 72px); align-items: center; }
.mali-subpage .hero > div, .mali-subpage .card { min-width: 0; }
.mali-subpage .hero p:not(.eyebrow), .mali-subpage .check-intro > p:last-child {
  max-width: 55ch;
  font-size: var(--studio-type-lead);
  line-height: 1.6;
}

.mali-subpage h1,
.mali-subpage :is(.content, .cta, .legal-page, .project-films) h2,
.mali-subpage :is(.card, .faq, .project-film, .legal-page) h3,
.mali-subpage :is(.step legend, .summary h2, .quick strong) {
  font-family: var(--studio-serif);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.035em;
  overflow-wrap: normal;
}

.mali-subpage :is(.hero, .check-intro, .legal-page, .boden-title) h1 {
  max-width: 16ch;
  font-size: var(--studio-type-title);
  margin-block: 0 .32em;
  text-wrap: balance;
}

.mali-subpage :is(.content, .cta, .legal-page, .project-films, .floor-project) h2,
.mali-subpage :is(.step legend, .summary h2) { font-size: var(--studio-type-section); }
.mali-subpage :is(.card, .faq, .project-film, .legal-page, .floor-tour__step) h3 { font-size: var(--studio-type-card); }
.mali-subpage .eyebrow { color: var(--studio-moss); font-size: .875rem; letter-spacing: .11em; }
.mali-subpage .floor-project .eyebrow { color: #d0d9b7; }

.mali-subpage .content {
  background: none;
  border-top: 1px solid var(--studio-line);
}

.mali-subpage .content > p, .mali-subpage .faq p { max-width: 65ch; }
.mali-subpage .grid { gap: 0; border-top: 1px solid var(--studio-line); }
.mali-subpage .card {
  border: 0;
  border-bottom: 1px solid var(--studio-line);
  padding: clamp(16px, 3vw, 29px);
  background: var(--studio-surface);
}
.mali-subpage .card:nth-child(odd) { border-inline-end: 1px solid var(--studio-line); }
.mali-subpage .card a { color: var(--studio-moss); text-underline-offset: .2em; overflow-wrap: anywhere; }
.mali-subpage .card h3 a { overflow-wrap: inherit; }

.mali-subpage :is(.quick, .cta) { background: var(--studio-dark); color: var(--studio-paper); }
.mali-subpage .quick { padding: clamp(22px, 3vw, 40px); }
.mali-subpage .quick strong { font-size: clamp(23px, 2.7vw, 34px); }
.mali-subpage .cta {
  padding-block: var(--section-gap);
  padding-inline: max(var(--page-gutter), calc((100% - var(--studio-width)) / 2 + var(--page-gutter)));
}

.mali-subpage :is(.button, .form-actions button, .request-links a) {
  min-height: 48px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: background .16s ease;
}
.mali-subpage :is(.button, .next) { background: var(--studio-moss); color: white; }
.mali-subpage :is(.button, .next):hover { background: #293c28; color: white; }
.mali-subpage :is(.quick, .cta) .button { background: #e6ead7; color: #233120; }
.mali-subpage :is(.quick, .cta) .button:hover { background: var(--studio-surface); color: #233120; }
.mali-subpage :is(.button, button, summary):focus-visible { outline: 3px solid #92622f; outline-offset: 4px; }
.mali-subpage .studio-menu-links a:focus-visible { outline-offset: -3px; }

.mali-subpage .project-films {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--studio-line);
  border-radius: 0;
  margin-block: 0;
  padding-block: var(--section-gap);
}
.mali-subpage .project-film { background: var(--studio-surface); border-color: var(--studio-line); border-radius: 0; }
.mali-subpage .project-film-copy details { border-color: var(--studio-line); }
.mali-subpage .project-film-copy summary { color: var(--studio-moss); text-underline-offset: .2em; }
.mali-subpage .floor-tour__controls button { border-radius: 0; }
.mali-subpage :is(.boden-title-copy > p:not(.eyebrow), .floor-project-intro > p:last-child) {
  font-size: var(--studio-type-lead);
  line-height: 1.6;
}

.mali-subpage .check-card { background: var(--studio-surface); box-shadow: none; margin-top: clamp(25px, 4vw, 44px); }
.mali-subpage .step { min-inline-size: 0; }
.mali-subpage .progress-track { background: var(--studio-wash); }
.mali-subpage .option-grid input:checked + span, .mali-subpage .photo-help { background: #e8ebdc; }
.mali-subpage .form-actions .back { border-color: var(--studio-line); }
.mali-subpage :is(.option-grid small, .progress-copy) { font-size: var(--studio-type-small); }
.mali-subpage .option-grid span { line-height: 1.42; }
.mali-subpage .legal-page { max-width: 980px; }
.mali-subpage .legal-page h2 { font-size: clamp(24px, 3vw, 36px); }
.mali-subpage .legal-box { background: var(--studio-surface); border-left: 3px solid var(--studio-moss); }

.mali-subpage :is(.footer, .legal-footer) {
  background: var(--studio-paper);
  color: var(--studio-ink);
  border-top: 1px solid var(--studio-line);
  padding: 20px var(--page-gutter) 27px;
  width: 100%;
  max-width: var(--studio-width);
  margin-inline: auto;
  align-items: center;
  gap: 4px 24px;
}
.mali-subpage :is(.footer, .legal-footer) a {
  color: var(--studio-moss);
  font-size: var(--studio-type-small);
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.mali-subpage :is(.footer, .legal-footer) strong { margin-inline-end: auto; }
.mali-subpage .mobile-contact { background: var(--studio-dark); }
.mali-subpage .mobile-contact a { color: #fff; }
.mali-subpage .mobile-contact a + a { background: var(--studio-moss); }
.mali-subpage .mobile-contact a:focus-visible { outline-offset: -4px; }

@media (max-width: 760px) {
  .mali-subpage { padding-bottom: 0; }
  .mali-subpage .hero { gap: 20px; }
  .mali-subpage .card:nth-child(odd) { border-inline-end: 0; }
  .mali-subpage .check-card { padding-inline: clamp(14px, 4vw, 25px); }
  .mali-subpage .legal-box { padding: 18px; }
  .mali-subpage .mobile-contact {
    position: static;
    margin: 0 var(--page-gutter) 20px;
    box-shadow: none;
  }
  .mali-subpage .mobile-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 10px 8px;
  }
}

@media (max-width: 560px) {
  .mali-subpage :is(.hero, .check-intro, .legal-page, .boden-title) h1 {
    max-width: none;
    font-size: clamp(1.875rem, 1.2rem + 3.25vw, 2.625rem);
  }
  .mali-subpage :is(.footer, .legal-footer) strong { flex-basis: 100%; }
}
