/* Option B: grouped pale panels. Entries sit two across on desktop with no borders or chevrons; the panel ground separates groups. */
@layer site21{
html body main#main .page.vt-rest>h2.gidx{margin:36px 0 0!important;padding:18px 24px 6px!important;background:#e9eff5!important;border-radius:12px 12px 0 0;font-size:20px!important;line-height:1.3!important;color:#15335e!important}
html body main#main .page.vt-rest>h2.gidx:first-of-type{margin-top:8px!important}
html body main#main .page.vt-rest>.vlist{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 32px;border:0!important;border-radius:0 0 12px 12px!important;background:#e9eff5!important;overflow:visible!important;padding:8px 24px 22px!important}
html body main#main .page.vt-rest>.vlist a{display:block!important;padding:12px 0 14px!important;min-height:0!important;border:0!important;background:transparent!important;border-top:1px solid #d7e0eb!important}
html body main#main .page.vt-rest>.vlist a:hover{background:transparent!important}
html body main#main .page.vt-rest>.vlist a:hover .t b{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
html body main#main .page.vt-rest>.vlist .go{display:none!important}
html body main#main .page.vt-rest>.vlist .t{gap:4px!important}
html body main#main .page.vt-rest>.vlist .t b{font-size:19px!important;color:#15335e!important}
html body main#main .page.vt-rest>.vlist .t span{font-size:16.5px!important;color:#35506b!important}
}
@media (max-width:760px){@layer site21{
html body main#main .page.vt-rest>.vlist{grid-template-columns:1fr;padding:4px 18px 16px!important}
html body main#main .page.vt-rest>h2.gidx{padding:16px 18px 4px!important}
}}
/* R3 keyboard visibility: keep 8px (+ 6px outline + 2px spare) between a focused control and the fixed header, MyGoyo launcher and Terms bar. */
@layer site21{
html:root:root{scroll-padding-top:calc(var(--goyo-header-h,0px) + 16px)!important;scroll-padding-bottom:min(240px,40vh)!important}
html body main#main .page.vt-rest>.vlist a{scroll-margin-bottom:16px!important;scroll-margin-top:calc(var(--goyo-header-h,64px) + 16px)!important}
html body main#main :is(a,button,input,select,textarea,summary,[tabindex]):not(.vlist a),html body footer :is(a,button,input,select,textarea,summary,[tabindex]){scroll-margin-top:16px!important;scroll-margin-bottom:16px!important}
}
/* R5 short landscape: one guide column, and a capped video wrapper (caption and Play keep their sizes). */
@media (max-height:450px){@layer site21{
html body main#main .page.vt-rest>.vlist{grid-template-columns:1fr!important;padding-right:300px!important}
html body main#main figure#gdv>div:first-child{max-width:min(400px,30vh)!important}
}}
/* R7 retail-browser correction (Astra R5 panel, TESTED_CORRECTION.css). Firefox: larger scroll margins on guide rows and the video above 450px high, a capped video wrapper on narrow 451 to 650px-high screens, and for Spanish at 359px wide or less a bottom margin 26px larger than the top one, which centres the tallest row between the header and the MyGoyo launcher. Other engines: Spanish at 359px wide or less, 451 to 650px high, root scroll padding clears the header and the MyGoyo launcher. */
@layer site21{
@supports (-moz-appearance:none){
@media (min-height:451px) and (min-width:761px){
html[lang="en"] body main#main figure#gdv video{scroll-margin-top:calc(var(--goyo-header-h,64px) + 16px)!important;scroll-margin-bottom:16px!important}
html[lang="es"] body main#main .page.vt-rest>.vlist a,html[lang="es"] body main#main figure#gdv video{scroll-margin-top:144px!important;scroll-margin-bottom:88px!important}
}
@media (min-height:451px) and (max-width:760px){
html body main#main .page.vt-rest>.vlist a,html body main#main figure#gdv video{scroll-margin-top:144px!important;scroll-margin-bottom:clamp(160px,25vh,208px)!important}
}
@media (min-height:451px) and (max-height:650px) and (max-width:760px){
html body main#main figure#gdv>div:first-child{max-width:min(400px,36vh)!important}
}
@media (min-height:451px) and (max-height:650px) and (max-width:359px){
html[lang="es"] body main#main .page.vt-rest>.vlist a{scroll-margin-bottom:170px!important}
}
}
@supports not (-moz-appearance:none){
@media (min-height:451px) and (max-height:650px) and (max-width:359px){
html[lang="es"]:root:root:has(main#main .page.vt-rest>.vlist){scroll-padding-top:64px!important;scroll-padding-bottom:246px!important}
html[lang="es"] body main#main .page.vt-rest>.vlist a{scroll-margin-top:0!important;scroll-margin-bottom:0!important}
}
}
}
/* R8 whole-page keyboard visibility (Astra R7 review). The MyGoyo launcher lifts itself above any footer link in view, and the Terms bar is sticky, so focus on the footer, the Terms bar and MyGoyo depended on where the footer stopped. Footer controls get a 56px landing band whose top sits at 47% of the viewport height (6px above and below a 44px link): low enough that the footer links never pull the launcher under the header, high enough to stay above the Terms bar. Terms bar controls get negative margins equal to the root scroll padding, so focusing them never scrolls the page. Guide rows, video and Play keep their R7 rules. */
@layer site21{
html body footer :is(a,button,input,select,textarea,summary,[tabindex]){scroll-margin-top:calc(47vh - 6px - var(--goyo-header-h,0px) - 16px)!important;scroll-margin-bottom:calc(53vh - 50px - min(240px,40vh))!important}
html body #goyo-tg :is(a,button,input,select,textarea,summary,[tabindex]){scroll-margin-top:calc(0px - var(--goyo-header-h,0px) - 16px)!important;scroll-margin-bottom:calc(0px - min(240px,40vh))!important}
@supports not (-moz-appearance:none){
@media (min-height:451px) and (max-height:650px) and (max-width:359px){
html[lang="es"] body footer :is(a,button,input,select,textarea,summary,[tabindex]){scroll-margin-top:calc(47vh - 70px)!important;scroll-margin-bottom:calc(53vh - 296px)!important}
html[lang="es"] body #goyo-tg :is(a,button,input,select,textarea,summary,[tabindex]){scroll-margin-top:-64px!important;scroll-margin-bottom:-246px!important}
}
}
}
/* R9: on short Spanish screens, keep the silent picture alongside its native
   Play/Pause button. The caption and button retain their order in the DOM. */
@layer site21 {
  @media (max-height: 450px), (max-width: 359px) and (max-height: 650px) {
    html[lang="es"] body main#main figure#gdv {
      display: grid;
      grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
      column-gap: 12px;
      align-items: end;
    }
    html[lang="es"] body main#main figure#gdv > div:first-child {
      grid-column: 1;
      grid-row: 1 / 3;
      width: 100%;
      max-width: min(100%, 30vh) !important;
    }
    html[lang="es"] body main#main figure#gdv > figcaption,
    html[lang="es"] body main#main figure#gdv > p {
      grid-column: 2;
    }
  }
  @media (max-height: 450px) {
    html[lang="es"] body main#main figure#gdv [data-clip-btn]:not(.vlist a) {
      scroll-margin-top: min(160px, 42vh) !important;
      scroll-margin-bottom: 0 !important;
    }
  }
  @supports not (-moz-appearance: none) {
    @media (max-width: 359px) and (min-height: 451px) and (max-height: 650px) {
      html[lang="es"] body main#main figure#gdv [data-clip-btn]:not(.vlist a) {
        scroll-margin-top: 128px !important;
        scroll-margin-bottom: 0 !important;
      }
    }
  }
  @supports (-moz-appearance: none) {
    @media (max-width: 320px) and (min-height: 451px) and (max-height: 650px) {
      html body main#main .page.vt-rest > .gcta > a.btn {
        scroll-margin-top: 48px !important;
      }
    }
  }
}
