/*
 * v1.5 Mobile M3A — enterprise-growth Case core.
 *
 * Phone-only recomposition for the Case header, opening, Context, Judgment,
 * and routing story. PTE, My Role, Validation, Homepage, Tablet, and Desktop
 * remain outside this stylesheet.
 */

/* The Prompt-restored Mobile closing line must not alter the locked Desktop. */
.m3a-routing-close {
  display: none;
}

@media (max-width: 620px) {
  /* Quiet header with complete touch targets and no navigation redesign. */
  .preview-masthead .growth-shell {
    gap: .75rem;
    min-height: 4rem;
  }

  .preview-masthead .preview-wordmark,
  .preview-masthead .preview-back {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
  }

  .preview-masthead .preview-wordmark {
    flex: 0 0 auto;
  }

  .preview-masthead .preview-back {
    min-width: 0;
    justify-content: flex-end;
    font-size: .68rem;
    text-align: right;
  }

  /* Opening: title, role, confidentiality, and Context form one sequence. */
  .preview-section.preview-detail {
    padding-block: 2.75rem 4.5rem;
  }

  .preview-detail-header {
    gap: 1.35rem;
  }

  .preview-detail-header h1 {
    max-width: 13ch;
    margin-top: 1.2rem;
    font-size: clamp(2.5rem, 11vw, 2.85rem);
    line-height: .92;
  }

  .preview-detail-header .goal24-detail-meta {
    display: grid;
    gap: .35rem;
    justify-items: start;
    text-align: left;
  }

  .preview-detail-header .preview-meta {
    font-size: .72rem;
    text-align: left;
  }

  .preview-detail-header .goal24-confidentiality {
    color: var(--growth-stone);
    font-size: .94rem;
    line-height: 1.4;
  }

  .preview-detail-header .preview-marker,
  .preview-detail-intro > .preview-label,
  .goal24-detail-judgment > .preview-label,
  .goal24-detail-artifact > .preview-label {
    font-size: .72rem;
  }

  /* Context removes the inherited desktop transition without losing copy. */
  .preview-detail-intro {
    gap: 1.05rem;
    margin-top: 2rem;
    padding-top: 1rem;
  }

  .preview-detail-intro .goal24-detail-headline {
    max-width: 24ch;
    font-size: clamp(1.65rem, 7.2vw, 1.9rem);
    line-height: 1.04;
  }

  .preview-detail-intro > div > p:last-child {
    max-width: 35rem;
    color: #5c5f59;
    font-size: 1rem;
    line-height: 1.56;
  }

  /* Judgment: subordinate old question, decisive new question, readable proof. */
  .preview-validation.goal24-detail-judgment {
    gap: 1.15rem;
    margin-top: 3.25rem;
    padding-top: 1rem;
  }

  .goal24-detail-judgment .detail-judgment-primary {
    max-width: 25ch;
    font-size: clamp(1.7rem, 7.4vw, 2rem);
    line-height: 1.04;
  }

  .goal24-detail-question-shift {
    gap: .55rem;
    margin-top: 1.45rem;
    padding-block: .9rem;
  }

  .goal24-detail-question-shift span {
    font-size: .94rem;
  }

  .goal24-detail-question-shift b {
    line-height: 1;
  }

  .goal24-detail-question-shift strong {
    max-width: 28ch;
    font-size: 1.22rem;
    line-height: 1.16;
  }

  .preview-detail .goal24-detail-judgment p.detail-judgment-support:last-child {
    max-width: 35rem;
    margin-top: 1.25rem;
    color: #5c5f59;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.56;
  }

  /* What Changed: one continuous vertical decision model. */
  .preview-detail-artifact.goal24-detail-artifact {
    margin-top: 3.5rem;
    padding-top: 1rem;
  }

  .goal24-change-intro {
    gap: .9rem;
    margin-top: 1.05rem;
  }

  .goal24-change-intro .goal24-detail-headline {
    max-width: 24ch;
    font-size: clamp(1.65rem, 7.2vw, 1.9rem);
    line-height: 1.04;
  }

  .goal24-change-intro > p:last-child {
    max-width: 35rem;
    color: #5c5f59;
    font-size: 1rem;
    line-height: 1.52;
  }

  .goal24-detail-routing {
    gap: 0;
    margin-top: 2.15rem;
    padding-top: 1rem;
  }

  .goal24-detail-route {
    position: relative;
    padding-block: .75rem .95rem;
    border-top: 0;
    border-bottom: 1px solid var(--growth-rule);
  }

  .goal24-detail-route-before {
    color: #666861;
  }

  .goal24-detail-route-before::after,
  .goal24-detail-route-evidence::after {
    position: absolute;
    z-index: 2;
    bottom: -.58rem;
    left: 50%;
    padding-inline: .35rem;
    background: var(--growth-paper);
    color: var(--growth-stone);
    content: "↓";
    font-size: .82rem;
    line-height: 1;
    pointer-events: none;
  }

  .goal24-zone-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.35;
  }

  .goal24-zone-title {
    margin-top: .25rem;
    font-size: .86rem;
    font-weight: 650;
    letter-spacing: .08em;
    line-height: 1.3;
  }

  .goal24-route-line {
    margin-top: .9rem;
    font-size: 1rem;
    line-height: 1.4;
  }

  .goal24-detail-route-before .goal24-zone-note {
    max-width: 34ch;
    margin-top: .45rem;
    font-size: .94rem;
    line-height: 1.45;
  }

  /* Evidence remains a compact, readable 2×2 register on all M3A phones. */
  .goal24-detail-route-evidence ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 1rem;
    border-bottom: 1px solid var(--growth-rule-soft);
  }

  .goal24-detail-route-evidence li {
    min-width: 0;
    padding: .55rem .6rem .55rem 0;
    border-top: 1px solid var(--growth-rule-soft);
    font-size: 1rem;
    line-height: 1.25;
  }

  .goal24-detail-route-evidence li:nth-child(even) {
    padding-right: 0;
    padding-left: .75rem;
    border-left: 1px solid var(--growth-rule-soft);
  }

  .goal24-detail-route-after ul {
    gap: 0;
    margin-top: .75rem;
  }

  .goal24-detail-route-after li {
    padding-block: .58rem;
    font-size: 1rem;
    line-height: 1.3;
  }

  /* The inset rule binds the guardrails only to the lighter path. */
  .goal24-detail-route-after .goal25-lighter-route {
    margin-block: .15rem;
    padding: .58rem .2rem .62rem .7rem;
    border-left: 2px solid var(--growth-ink);
  }

  .goal24-detail-route-after .goal25-lighter-route > span {
    font-weight: 620;
  }

  .goal24-detail-route-after .goal25-lighter-route small {
    max-width: 34ch;
    margin-top: .35rem;
    color: #5c5f59;
    font-size: .92rem;
    line-height: 1.4;
  }

  .goal24-detail-route-after .goal25-guardrails {
    max-width: 35ch;
    margin-top: .55rem;
    padding-top: .5rem;
    border-top: 1px solid var(--growth-rule-soft);
    color: #5c5f59;
    font-size: .72rem;
    letter-spacing: .1em;
    line-height: 1.4;
  }

  .m3a-routing-close {
    display: block;
    max-width: 34ch;
    margin-top: .55rem;
    color: #5c5f59;
    font-size: .94rem;
    line-height: 1.4;
  }

  /* Validation remains semantic text with decorative, aria-hidden arrows. */
  .goal24-detail-route-chain {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .28rem .75rem;
    padding-block: .85rem .1rem;
    font-size: .72rem;
    letter-spacing: .1em;
    line-height: 1.4;
  }

  .goal24-detail-route-chain span {
    font-size: inherit;
  }

  .goal24-detail-route-chain b {
    align-self: center;
    justify-self: end;
    font-size: .9rem;
    line-height: 1;
  }
}

@media (max-width: 340px) {
  .preview-detail-header h1 {
    font-size: 2.15rem;
  }

  .preview-masthead .preview-back {
    font-size: .64rem;
    letter-spacing: .065em;
  }

  .goal24-detail-route-evidence li:nth-child(even) {
    padding-left: .6rem;
  }
}
