/* P91: published first-screen geometry, centered reading area; no type overrides. */
@layer cordtex-layout-p91 {
  [data-p91-support-body] { display:contents; }
  html body.p88-landing main .p88-guide-note {
    background:#f7f7f5 !important;
    border:1px solid var(--ct-color-line,#d2d2cd) !important;
    border-left:1px solid var(--ct-color-line,#d2d2cd) !important;
    padding:16px 20px !important;
  }
  html body.p88-landing main .p88-guide-note :is(.ct-r13-product-link__arrow,.b2b-link>span:last-child) { color:#62645f !important; }
  /* Owner correction: stock, quantities and format choices share the About body role. */
  html body main [data-p91-supply] :is(.p88-stock-label,.p87-date,.p87-note,.p87-stock-row>span,.p87-stock-row>strong,.p87-stock-row>a,.p87-format-links .b2b-link,.p87-format-links .ct-r13-product-link__name) {
    font-size:var(--ct-prose-size) !important;
    font-weight:400 !important;
    line-height:1.4 !important;
    letter-spacing:normal !important;
  }
  @media (min-width:1367px) {
    html[data-cordtex-system=desktop] [data-p91-layout] { --p91-gutter:clamp(32px,4.2vw,104px); }
    html[data-cordtex-system=desktop] [data-p91-hero] {
      display:grid !important;
      grid-template-columns:minmax(0,39.75fr) minmax(0,60.25fr) !important;
      width:100% !important; max-width:none !important; margin:0 !important;
      height:calc(100svh - var(--ct-header-total,104px)) !important;
      min-height:0 !important; max-height:none !important;
      box-sizing:border-box; border-bottom:1px solid var(--ct-color-line,#d2d2cd);
    }
    html[data-cordtex-system=desktop] [data-p91-copy] {
      min-width:0; min-height:0;
      padding-inline:var(--p91-gutter) !important;
    }
    html[data-cordtex-system=desktop] [data-p91-media] {
      align-self:stretch !important; height:100% !important; min-height:0 !important;
      margin:0 !important;
    }
    html[data-cordtex-system=desktop] .ct-sheet-hero__media[data-p91-media] {
      display:grid !important; grid-template-rows:minmax(0,1fr) 4.5rem !important;
    }
    html[data-cordtex-system=desktop] [data-p91-hero][data-p91-kind=format] {
      grid-template-columns:minmax(0,1.22fr) minmax(0,1fr) !important;
    }
    /* A measured sheet and its dimension SVG are one uncropped 3:2 composite. */
    html[data-cordtex-system=desktop] [data-p91-kind=format] .p84-render {
      display:flex !important; align-items:center; justify-content:center;
      overflow:hidden; background:#fff !important;
    }
    html[data-cordtex-system=desktop] [data-p91-kind=format] .p84-render-inner {
      flex:none; width:100% !important; height:auto !important;
      aspect-ratio:2560/1707 !important;
    }
    html[data-cordtex-system=desktop] [data-p91-visual] { padding:0 !important; min-height:0; }
    html[data-cordtex-system=desktop] [data-p91-kind=thickness] .p88-heading {
      display:flex; flex-direction:column; justify-content:center;
      border:0; margin:0;
    }
    html[data-cordtex-system=desktop] [data-p91-kind=thickness] :is(.p84-render,.p84-render-inner) {
      height:100% !important; min-height:0; aspect-ratio:auto !important;
    }
    html[data-cordtex-system=desktop] [data-p91-kind=thickness] .p84-render img {
      width:100% !important; height:100% !important; object-fit:cover !important;
    }
    html[data-cordtex-system=desktop] [data-p91-content] {
      box-sizing:border-box !important;
      width:calc(100% - 2 * var(--p91-gutter)) !important;
      max-width:1600px !important; margin-inline:auto !important;
      padding-inline:0 !important;
    }
    html[data-cordtex-system=desktop] .p88-overview[data-p91-content] { display:block !important; }
    html[data-cordtex-system=desktop] .p88-overview .p88-choice {
      display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:64px;
      padding:48px 0 !important; border-left:0 !important;
    }
    html[data-cordtex-system=desktop] .p88-overview .p88-choice #selection {
      margin-top:0 !important; padding-top:0 !important; border-top:0 !important;
    }
    html[data-cordtex-system=desktop] .p88-support[data-p91-content] { column-gap:64px; row-gap:24px !important; grid-template-rows:auto auto !important; background:#fff !important; }
    html[data-cordtex-system=desktop] .p88-support[data-p91-content] > .ct-b2b-section {
      padding-inline:0 !important; border-left:0 !important;
      display:grid !important; grid-template-rows:subgrid !important; grid-row:1 / span 2;
    }
    html[data-cordtex-system=desktop] .p88-support[data-p91-content] > .ct-b2b-section:nth-child(1) { grid-column:1; }
    html[data-cordtex-system=desktop] .p88-support[data-p91-content] > .ct-b2b-section:nth-child(2) { grid-column:2; }
    html[data-cordtex-system=desktop] .p88-support[data-p91-content] .ct-b2b-section__head { margin-bottom:0 !important; align-self:start; }
    html[data-cordtex-system=desktop] [data-p91-support-body] { display:flow-root !important; }
    html[data-cordtex-system=desktop] .p88-support[data-p91-content] .ct-b2b-article__copy > p:first-child { margin-top:0 !important; }
    html[data-cordtex-system=desktop] .p88-support[data-p91-content] .b2b-facts { margin-top:calc(var(--ct-prose-size) * .2) !important; }
    html[data-cordtex-system=desktop] [data-p91-layout] .p88-support .b2b-fact { min-height:0 !important; }
  }
  @media (max-width:1366px) {
    html[data-cordtex-system=desktop] [data-p91-layout] .p88-overview { display:block !important; }
    html[data-cordtex-system=desktop] [data-p91-layout] .p88-choice { border-left:0 !important; }
  }
  /* Common heading/body rows align both columns without changing type roles. */
  html body main [data-p91-info] { row-gap:16px !important; }
  html body main [data-p91-info] > .p77-eyebrow { margin:0 !important; grid-column:1 / -1; }
  html body main [data-p91-info-body] > p { margin:0 !important; }
  html body main [data-p91-info-body] > p + p { margin-top:16px !important; }
  html body main [data-p91-info-body] .p77-help-actions { margin-top:24px !important; }
  @media (min-width:761px) {
    html body main [data-p91-info] {
      display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
      grid-template-rows:auto auto auto !important;
      align-items:start !important;
    }
    html body main [data-p91-column] {
      display:grid !important; grid-template-rows:subgrid !important;
      grid-row:2 / span 2; row-gap:16px; align-self:stretch;
    }
    html body main [data-p91-column]:nth-of-type(1) { grid-column:1; }
    html body main [data-p91-column]:nth-of-type(2) { grid-column:2; }
    html body main [data-p91-column] > :is(h2,h3) { margin:0 !important; align-self:start; }
  }
  @media (max-width:760px) {
    html body main [data-p91-info] { display:block !important; }
    html body main [data-p91-info] > .p77-eyebrow { margin-bottom:16px !important; }
    html body main [data-p91-column] { display:block !important; }
    html body main [data-p91-column] + [data-p91-column] { margin-top:32px; }
    html body main [data-p91-info-body] { margin-top:16px; }
  }
}
