/* DIAR-6B.4-R1.2 — English top-gap and explicit grid-area closure.
 * LTR_GRID_AREA_NAME_MISMATCH
 * Root cause:
 *   - R5 stability keeps direct children in native-sidebar/native-main.
 *   - R3 evidence closure changed the LTR shell template to sidebar/main.
 *   - Higher-specificity child rules therefore referenced names absent from
 *     the active template, creating implicit grid tracks before page content.
 * This final layer gives the LTR shell and both direct children one identical,
 * explicit native-area contract. It does not alter page content or Oracle data.
 */

@media (min-width:761px){
  html[dir="ltr"].native-sidebar-enhanced.diar-sidebar-r5-stable
  body[data-native-sidebar-page^="diar-"]
  .elite-shell[data-native-shell-contract="R4"]{
    display:grid!important;
    grid-template-columns:296px minmax(0,1fr)!important;
    grid-template-areas:"native-sidebar native-main"!important;
    grid-template-rows:minmax(100vh,auto)!important;
    align-items:start!important;
    width:100%!important;
    min-width:0!important;
    min-height:100vh!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    gap:0!important;
    direction:ltr!important;
    overflow:visible!important;
  }

  html[dir="ltr"].native-sidebar-enhanced.diar-sidebar-r5-stable
  body[data-native-sidebar-page^="diar-"]
  .elite-shell[data-native-shell-contract="R4"] >
  .elite-sidebar[data-native-sidebar-contract="R4"]{
    grid-area:native-sidebar!important;
    grid-column:1!important;
    grid-row:1!important;
    position:fixed!important;
    top:0!important;
    bottom:0!important;
    left:0!important;
    right:auto!important;
    inset-block:0!important;
    inset-inline-start:0!important;
    inset-inline-end:auto!important;
    width:296px!important;
    min-width:296px!important;
    max-width:296px!important;
    height:100dvh!important;
    margin:0!important;
    transform:none!important;
    translate:none!important;
  }

  html[dir="ltr"].native-sidebar-enhanced.diar-sidebar-r5-stable
  body[data-native-sidebar-page^="diar-"]
  .elite-shell[data-native-shell-contract="R4"] >
  .elite-main[data-native-main-contract="R4"]{
    grid-area:native-main!important;
    grid-column:2!important;
    grid-row:1!important;
    align-self:start!important;
    position:relative!important;
    inset:auto!important;
    width:auto!important;
    min-width:0!important;
    min-height:100vh!important;
    max-width:none!important;
    margin:0!important;
    padding-block-start:20px!important;
    transform:none!important;
    translate:none!important;
    direction:ltr!important;
    overflow-x:clip!important;
  }

  html[dir="ltr"].native-sidebar-enhanced.diar-sidebar-r5-stable
  body[data-native-sidebar-page^="diar-"]
  .elite-main[data-native-main-contract="R4"] >
  .elite-topbar--diar-premium:first-child{
    margin-block-start:-20px!important;
  }
}

@media (min-width:761px) and (max-width:1280px){
  html[dir="ltr"].native-sidebar-enhanced.diar-sidebar-r5-stable
  body[data-native-sidebar-page^="diar-"]
  .elite-shell[data-native-shell-contract="R4"] >
  .elite-main[data-native-main-contract="R4"]{
    padding-block-start:20px!important;
  }
}
