/* V12: preserve the approved content and identity while letting the type fit its container. */
main :where(section[id]) { scroll-margin-top:calc(var(--header-h,72px) + 20px); }
.product-page[data-product-slug="a1"] .a1-kvs__card--nfc .s1-kvs__copy h2 { white-space:normal; }

/* Balance short Chinese copy in cards, campaign captions and feature panels. */
html[lang="zh-Hans"] body main :is(
  .ecosystem-promise, .smart-intro .smart-story-heading, .approved-app-grid p,
  .approved-compare-grid .approved-product-body > p, #compare > header > p,
  .approved-support-links p[data-content-copy="supportIntro"], .approved-product summary [data-content-copy],
  .xm-hero-copy [data-hero-detail], .pickleball-hero .hero-detail,
  .xm-intro-lines > span, .xm-intro [data-intro-copy], .xm-ksp-card-copy > p,
  .pickleball-lineup__copy > p, .s1-find-ones__intro > p,
  .s1-kvs__copy > p, .s1-feature-copy > p, .s1-ai-copy > p, .xm-app-copy > p,
  .xm-app-journey-intro, .xm-daywith-steps :is(h4, article > p),
  #app-journey > .approved-screen-note, #specs > [data-disclaimer]
) {
  line-break:strict;
  text-wrap:balance;
}

@media (min-width:721px) and (max-width:900px) {
  html[lang="zh-Hans"] .brand-proof__intro h3 { font-size:clamp(1.625rem,3.4vw,2rem); }
}

/* Keep approved title clauses intact where their punctuation offers a natural break. */
html[lang="zh-Hans"] body main :is(
  .brand-proof__intro h3,
  .blog-card:has(a:is([href="/blogs/news/full-thermoforming/"], [href="/blogs/news/from-lab-to-court/"])) h2
) {
  line-break:strict;
  text-wrap:balance;
  word-break:keep-all;
  overflow-wrap:break-word;
}

@media(max-width:720px) {
  body main :is(h1,h2,h3,h4) { text-wrap:balance; font-optical-sizing:auto; overflow-wrap:normal; word-break:normal; }
  body main :is(h1,h2) { letter-spacing:-.035em!important; }
  html:is([lang="zh-Hans"],[lang="zh-Hant"],[lang="ja"]) body main :is(h1,h2,h3,h4) { letter-spacing:-.01em!important; line-break:strict; }
  :root {
    --ones-type-heading:clamp(1.875rem,8.2vw,2.25rem);
    --ones-type-body:1rem;
    --ones-type-subtitle:1.0625rem;
  }
  body main h1 { font-size:clamp(2.25rem,10vw,2.75rem)!important; }
  body main :is(h1,h2,h3,h4) { line-height:1.25!important; }
  html:is([lang="zh-Hans"],[lang="zh-Hant"],[lang="ja"]) body main :is(h1,h2,h3,h4) { line-height:1.3!important; }
  body main p { text-wrap:pretty; }
  #match-insights .pickleball-copy { padding-block:36px 28px; }
  #match-insights .pickleball-copy h2 { max-width:none; }
  .approved-app-grid { grid-template-columns:minmax(0,1fr); gap:0; }
  .approved-app-grid article { display:grid; grid-template-columns:28px minmax(0,1fr); column-gap:16px; row-gap:10px; padding:24px 0; }
  .approved-app-grid .approved-index { grid-column:1; grid-row:1; padding-top:3px; }
  .approved-app-grid h3 { grid-column:2; grid-row:1; margin:0; font-size:1.25rem; letter-spacing:-.02em!important; }
  .approved-app-grid p { grid-column:2; grid-row:2; max-width:65ch; overflow-wrap:normal; word-break:normal; }
  .approved-app-screen { margin-top:12px; }
  .xm-app-journey > header h3 { font-size:var(--ones-type-heading)!important; }
  .product-page .xm-app-journey-keep { max-width:100%; white-space:normal; }
  html[lang="ja"] #match-insights .pickleball-copy h2 { font-size:clamp(1.5rem,6.6vw,1.875rem)!important; word-break:auto-phrase; }
  .smart-tab strong { line-height:1.3; letter-spacing:-.02em; }
  .smart-tab-description { font-size:1rem; line-height:1.75; }
  .ecosystem-keywords li { line-height:1.5; }
  .ecosystem-card .ecosystem-promise { margin-bottom:20px; }
  .product-page .s1-kvs__card .s1-kvs__copy { padding-inline:6px; }
  .product-page .s1-kvs__card .s1-kvs__copy h2 { font-size:12px!important; overflow-wrap:normal; word-break:normal; hyphens:manual; }
}

/* V13: intermediate viewports need a readable copy column before the full
   desktop split has room. Keep the original order, media and wide layout. */
@media (min-width:721px) and (max-width:900px) {
  .product-page .s1-feature {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:none;
    gap:38px;
  }
  .product-page .s1-feature > .s1-feature-copy {
    min-width:0;
    grid-area:auto;
    order:1;
  }
  .product-page .s1-feature > .s1-feature-media {
    min-width:0;
    grid-area:auto;
    order:2;
  }
  .product-page .s1-feature > .s1-stat-strip {
    grid-area:auto;
    order:3;
  }
}
@media (min-width:721px) and (max-width:1024px) {
  .product-page .xm-daywith-device { width:180px; }
  .product-page .xm-daywith-steps article { padding-inline:112px 24px; }
}

/* Metrics respond to their actual copy column rather than the page width.
   This leaves wide desktop composition and the phone's 3 x 2 highlights intact. */
@media (min-width:721px) {
  .product-page .s1-feature-copy { container:s1-feature-copy / inline-size; }
  @container s1-feature-copy (max-width:460px) {
    .product-page .s1-proof-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .product-page .s1-feature--flex-module .s1-proof-grid { grid-template-columns:minmax(0,1fr); }
    .product-page .s1-feature--flex-module .s1-proof-grid b {
      white-space:normal;
      overflow-wrap:break-word;
      word-break:normal;
    }
  }
  @container s1-feature-copy (max-width:260px) {
    .product-page .s1-proof-grid { grid-template-columns:minmax(0,1fr); }
  }
}

/* Preserve both approved Japanese clauses and the existing br at wide sizes. */
@media (min-width:721px) {
  html[lang="ja"] #match-insights .pickleball-copy h2 {
    font-size:clamp(2rem,3.8vw,3.5rem)!important;
    word-break:auto-phrase;
  }
}
