/* Approved v202 paper-layer design; landscape presentation only. */
html body.practice-landscape { overflow:hidden; }
html body.practice-landscape #result { height:var(--sei-viewport-height,100dvh); overflow:hidden; }
html body.practice-landscape #sentencePanel {
  height:100%; min-height:0; max-height:100%; overflow:hidden;
  grid-template-rows:auto minmax(0,1fr) 5px auto auto;
  background:linear-gradient(135deg,#fcf9f3,color-mix(in srgb,var(--purple) 4%,#fcfaf6));
}
body.practice-landscape .practice-reading {
  position:relative; isolation:isolate;
  background:#fcf9f2;
  border-color:color-mix(in srgb,var(--purple) 15%,#e8e0d4);
  border-top-color:color-mix(in srgb,var(--purple) 30%,#e8e0d4);
  box-shadow:0 6px 24px #66523b0c,0 1px 3px #66523b08;
}
body.practice-landscape .practice-reading::before,
body.practice-landscape .practice-reading::after {
  content:""; position:absolute; pointer-events:none; z-index:-1;
  border:1px solid color-mix(in srgb,var(--purple) 10%,#eee6da);
  border-radius:inherit; background:#fffdf8;
  box-shadow:0 1px 4px #66523b08;
}
body.practice-landscape .practice-reading::before { inset:3px 5px 2px; }
body.practice-landscape .practice-reading::after { inset:7px 10px 5px; background:#fffefa; }
body.practice-landscape .practice-reading-head { background:#fffefa; border-bottom-color:#eee7dc; }
html body.practice-landscape #sentencePanel .practice-reading-body {
  display:flex; flex-direction:column; align-items:stretch;
  min-height:0; overflow:auto; overscroll-behavior:contain;
  scroll-padding-block:8px;
}
html body.practice-landscape #sentencePanel #sentenceText {
  flex:0 0 auto; margin:auto; text-align:center;
}
/* Beat the legacy shadow margin; auto margins collapse when text overflows. */
html body.practice-landscape #sentencePanel:has([data-card-practice="shadow"].active) #sentenceText {
  margin:auto;
}
/* Existing font-size, line-height, wrapping and mark styles remain in force. */
@media (orientation:landscape) and (max-width:1000px) and (max-height:540px) {
  html body.practice-landscape #sentencePanel { grid-template-rows:auto minmax(0,1fr) 3px auto auto; }
  body.practice-landscape .practice-reading::before { inset:2px 3px 1px; }
  body.practice-landscape .practice-reading::after { content:none; }
  body.practice-landscape .practice-reading { box-shadow:0 2px 8px #66523b09; }
}
