/* Mobile-first corrections; authored content, prices and artwork stay intact. */
.living-product-page .lp-hero{grid-template-columns:minmax(0,.95fr) minmax(0,1.15fr)}
.living-product-page .lp-hero>*{min-width:0;max-width:100%}
.living-product-page .lp-product-label{min-width:0}
.living-product-page .lp-product-label .eyebrow{min-width:0;white-space:normal}
.living-product-page .lp-pricing-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.living-product-page .lp-price-card h3{overflow-wrap:normal;word-break:normal;hyphens:none}
.living-product-page .lp-price-values dd{overflow-wrap:normal;word-break:normal}
.living-product-page #pilot strong,.living-product-page .lp-price-amount{white-space:nowrap}
@media(max-width:760px){
 .living-product-page .lp-hero{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:360px){
 .living-product-page .lp-hero h1{font-size:32px;max-width:100%}
}

@media(max-width:380px){
 .living-product-page .lp-price-card h3{font-size:20px;line-height:1.25}
}

/* Narrow screens keep the offer readable without filling the whole viewport. */
@media(max-width:600px){
 .living-product-page .lp-hero h1{font-size:clamp(32px,8vw,42px);line-height:1.08;max-width:100%}
 .living-product-page .lp-hero .lp-lead{font-size:19px;line-height:1.45}
 body[data-world="square"] .hero .lead{font-size:clamp(22px,5.6vw,28px);line-height:1.3}
 body[data-world="fantazeria"] #site-header{gap:12px}
 body[data-world="fantazeria"] #site-header .brand{flex:0 1 auto;gap:8px;font-size:clamp(13px,4.5vw,18px)}
 body[data-world="fantazeria"] #site-header .brand-beacon{width:28px;height:28px}
 body[data-world="fantazeria"] #site-header .brand>span:last-child{white-space:nowrap}
 body[data-world="fantazeria"] #site-header .header-actions{flex:0 0 auto;gap:6px}
 body[data-world="fantazeria"] #menu-toggle{flex:0 0 44px;width:44px;min-width:44px;padding:8px}
 #fanta-music .score-compact-bar{grid-template-columns:minmax(0,1fr);gap:10px}
 #fanta-music .score-compact-title{font-size:13px;overflow-wrap:normal;word-break:normal;hyphens:none}
 #fanta-music .score-compact-actions{justify-content:flex-start;max-width:100%}
}

/* Keep enlarged lettering inside the narrowest public reading layouts. */
@media (max-width: 520px) {
  .living-product-page .pilot-sheet h1,
  .cover-choice h2,
  .cover-choice .cover-caption,
  .offer-sample .offer-sample-title,
  main:has(#workbook) > .hero.shell :is(h1, .lead) {
    hyphens: auto;
    overflow-wrap: anywhere;
  }

  .living-product-page .pilot-sheet h1 {
    font-size: min(clamp(2.2rem, 6vw, 4rem), 13.3vw);
  }
  .cover-choice h2 {
    font-size: min(clamp(1.65rem, 3.5vw, 2.5rem), 14vw);
  }
  .offer-sample .offer-sample-title {
    font-size: min(clamp(1.35rem, 2.8vw, 2rem), 11.8vw);
  }
  main:has(#workbook) > .hero.shell h1 {
    font-size: min(clamp(1.8rem, 7.8vw, 2.6rem), 12vw);
  }

  /* The world name is a single wordmark with its own illustration beneath. */
  body[data-world="fantazeria"] .hero h1 .world-title {
    font-size: min(clamp(1.8rem, 10.8cqw, 5.5rem), 14cqw);
  }
}
