/* AMSODE — P2-WEB-R01 / 2026-12-04
 * Screen-only editorial consolidation. No global paragraph rule.
 * Standalone chapters, templates, downloads and print CSS untouched.
 */
@media screen {
  body.bk-body.bk-v15 .bk-chapter {
    --amsode-editorial-gutter: max(72px, calc((100% - 1270px) / 2));
    --amsode-panel-inset: 20px;
  }
  body.bk-body.bk-v15 .bk-chapter:is(#bk-01,#bk-02,#bk-03,#bk-04,#bk-05,#bk-06,#bk-07,#bk-08,#bk-09,#bk-10,#bk-11) > :is(.bk-chapter-top,.bk-chapter-heading,.bk-chapter-bottom) {
    box-sizing: border-box !important;
    padding-left: var(--amsode-editorial-gutter) !important;
    padding-right: var(--amsode-editorial-gutter) !important;
  }
  body.bk-body.bk-v15 .bk-chapter:is(#bk-01,#bk-02) > .bk-editorial {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding: 18px var(--amsode-editorial-gutter) 60px !important;
  }
  body.bk-body.bk-v15 .bk-chapter > .bk-editorial > h2:first-child {margin-top: 0;}
  body.bk-body.bk-v15 .bk-chapter > .bk-official-panel {
    box-sizing: border-box;
    width: auto;
    max-width: none;
    margin: 20px calc(var(--amsode-editorial-gutter) - var(--amsode-panel-inset)) 20px;
    padding: 18px var(--amsode-panel-inset) 20px;
    background: #f4f8fa;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    min-width: 0;
  }
  body.bk-body.bk-v15 .bk-chapter > .bk-official-panel > .bk-official-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 14px;
  }
  body.bk-body.bk-v15 .bk-chapter > .bk-official-panel--link {padding-block: 14px;}
  body.bk-body.bk-v15 .bk-chapter > .bk-official-panel--link > .bk-official-heading {margin: 0;}
  body.bk-body.bk-v15 .bk-chapter > .bk-official-panel .bk-official-pdf {
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.45;
  }
  body.bk-body.bk-v15 .bk-chapter > .bk-official-panel > ul {gap: 12px 30px;}
  /* Only editorial prose and explanatory section introductions, never mockups. */
  body.bk-body.bk-v15 .bk-chapter > .bk-editorial > p,
  body.bk-body.bk-v15 .bk-chapter > .bk-editorial > ul > li,
  body.bk-body.bk-v15 .bk-chapter > .bk-official-panel > ul > li,
  body.bk-body.bk-v15 .bk-chapter .bk-approved-overview > p,
  body.bk-body.bk-v15 .bk-chapter .bk-guidance-entry > p,
  body.bk-body.bk-v15 .bk-chapter .logo-hero > .wrap > p,
  body.bk-body.bk-v15 .bk-chapter .logo-section > .head > p,
  body.bk-body.bk-v15 .bk-chapter .p4-hero > .p4-container > p,
  body.bk-body.bk-v15 .bk-chapter .p5-hero .p5-lead,
  body.bk-body.bk-v15 .bk-chapter .p10-hero .p10-hero-grid > div > p,
  body.bk-body.bk-v15 .bk-chapter .p4-section-head > p,
  body.bk-body.bk-v15 .bk-chapter .p5-section-head > p,
  body.bk-body.bk-v15 .bk-chapter .p10-sec > p,
  body.bk-body.bk-v15 .bk-chapter .bk-approved-partners > p {
    text-align: justify !important;
    text-align-last: start;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }
  @media (max-width: 700px) {
    body.bk-body.bk-v15 .bk-chapter {--amsode-editorial-gutter: 22px; --amsode-panel-inset: 12px;}
    body.bk-body.bk-v15 .bk-chapter:is(#bk-01,#bk-02) > .bk-editorial {padding-block: 16px 38px !important;}
    body.bk-body.bk-v15 .bk-chapter > .bk-official-panel {margin-block: 16px; padding-block: 14px;}
    body.bk-body.bk-v15 .bk-chapter > .bk-official-panel > ul {grid-template-columns: minmax(0,1fr);}
    body.bk-body.bk-v15 .bk-chapter > .bk-editorial > p,
    body.bk-body.bk-v15 .bk-chapter > .bk-editorial > ul > li,
    body.bk-body.bk-v15 .bk-chapter > .bk-official-panel > ul > li,
    body.bk-body.bk-v15 .bk-chapter .bk-approved-overview > p,
    body.bk-body.bk-v15 .bk-chapter .bk-guidance-entry > p,
    body.bk-body.bk-v15 .bk-chapter .logo-hero > .wrap > p,
  body.bk-body.bk-v15 .bk-chapter .logo-section > .head > p,
  body.bk-body.bk-v15 .bk-chapter .p4-hero > .p4-container > p,
  body.bk-body.bk-v15 .bk-chapter .p5-hero .p5-lead,
  body.bk-body.bk-v15 .bk-chapter .p10-hero .p10-hero-grid > div > p,
  body.bk-body.bk-v15 .bk-chapter .p4-section-head > p,
    body.bk-body.bk-v15 .bk-chapter .p5-section-head > p,
    body.bk-body.bk-v15 .bk-chapter .p10-sec > p,
    body.bk-body.bk-v15 .bk-chapter .bk-approved-partners > p {text-align: start !important; hyphens: manual;}
  }
}

/* P2-WEB-R02 — CH05 EN is the reference for the outer chapter envelope.
 * Preserve R01 inner geometry and all print rules. */
@media screen {
  body.bk-body.bk-v15 .bk-reading > .bk-chapter:is(#bk-01,#bk-02,#bk-03,#bk-04,#bk-05,#bk-06,#bk-07,#bk-08,#bk-09,#bk-10,#bk-11) {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}
