/* Owner 12 Oct: additive presentation only. Source art, copy, controllers,
   Portal practice coordinates and responsive source selection stay intact. */
:root{
  --r9-control-fill:rgba(255,255,255,.93);
  --r9-control-edge:#d5ded7;
  --r9-control-shadow:0 3px 12px rgba(42,63,51,.09),inset 0 1px 0 #fff;
}
body[data-site] main .r5-step h3{margin-bottom:14px}
body[data-site] main .r5-step>label:not(.r5-seek-label){margin-bottom:12px;min-height:0}
body[data-site] main .r5-track-name{min-height:0;margin-bottom:12px}
body[data-site] main .r5-step>output[data-practice-output]{min-height:26px;margin:10px 0}
body[data-site] main .r5-practice-status{min-height:0;margin-top:18px}

/* A real opaque page inside the existing physical frame: no shell ghosting,
   backdrop blur or duplicated material behind native interface lettering. */
body[data-site] main :is(.feature-display,.mini-screen,.mini-screen-layout,.mini-sidebar,.mini-content){
  background:#fff;background-image:none;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
body[data-site] main .mini-screen::before{content:none;background:none}
body[data-site] main :is(.mini-menu>div,.mini-menu .is-selected,.mini-energy-top>div,.mini-library>div,.mini-diary-entry,.mini-diary-state,.mini-date,.mini-voice-dialog p){
  background:#fff;background-image:none;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  border-color:#e1e7e1;box-shadow:none;
}
body[data-site] main .mini-menu .is-selected{
  border-color:#769382;box-shadow:inset 0 0 0 1px #769382;
}
/* All four native labels are now one line. Keep their measured physical X
   positions; remove the old two-line Energy-only vertical offset. */
body[data-site] main .feature-tab:nth-child(n) .selection-dot{top:54%}

/* Only live copy planes are transparent. The existing raster's empty text
   fields are checked separately; photographs and gold links are not erased. */
body[data-site] main .ecosystem :is(.ecosystem-intro,.ecosystem-intro h2,.ecosystem-intro>p,.ecosystem-topics,.ecosystem-topic,.ecosystem-topic>div,.ecosystem-topic h3,.ecosystem-topic p){
  background:transparent;background-image:none;box-shadow:none;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}

/* White optical-glass controls, including their actual selected / saved /
   disabled states. State remains distinct through border, weight and focus. */
body[data-site] main .r5-practice :is(.r5-player-toggle,.r5-card-play,.r5-control,.r5-text-control),
body[data-site] main [data-time-simulation] :is(.r5-time-situation,.r5-time-submit,.r5-time-text-button),
body[data-site] main [data-time-simulation] .r5-time-choice>span{
  background:var(--r9-control-fill);background-image:none;
  color:#254c3b;border:1px solid var(--r9-control-edge);
  box-shadow:var(--r9-control-shadow);filter:none;opacity:1;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
body[data-site] main .r5-practice .r5-text-control{border-radius:24px}
body[data-site] main .r5-practice .r5-step-listening :is(.r5-player-toggle,.r5-control,.r5-text-control){color:#254c3b;text-shadow:none}
body[data-site] main .r5-practice :is(.r5-player-toggle,.r5-card-play) .icon,
body[data-site] main [data-time-simulation] :is(.r5-time-submit,.r5-time-text-button,.choice-indicator) .icon{filter:brightness(0)}
body[data-site] main [data-time-simulation] .r5-time-situation::before{content:none;background:none}
body[data-site] main .r5-practice :is(.r5-player-toggle,.r5-control,.r5-text-control):hover:not(:disabled),
body[data-site] main [data-time-simulation] :is(.r5-time-situation,.r5-time-submit,.r5-time-text-button):hover:not(:disabled){
  background:#fff;color:#254c3b;border-color:#769382;filter:none;
}
body[data-site] main .r5-practice :is(.r5-player-toggle,.r5-control,.r5-text-control):active:not(:disabled),
body[data-site] main [data-time-simulation] :is(.r5-time-situation,.r5-time-submit,.r5-time-text-button):active:not(:disabled){
  background:#fff;color:#254c3b;border-color:#005b48;filter:none;
}
body[data-site] main .r5-practice .r5-player-toggle[aria-pressed="true"],
body[data-site] main .r5-practice-card[aria-pressed="true"] .r5-card-play,
body[data-site] main .r5-step[data-confirmed="true"] [data-confirm-before],
body[data-site] main [data-time-simulation] .r5-time-situation.selected,
body[data-site] main [data-time-simulation] .r5-time-choice>input:checked+span{
  background:#fff;color:#005b48;border-color:#005b48;
  box-shadow:inset 0 0 0 1px #005b48,var(--r9-control-shadow);font-weight:600;
}
body[data-site] main .r5-practice :is(.r5-player-toggle,.r5-control,.r5-text-control):disabled,
body[data-site="portal"] main .r5-portal-workflow .r5-step-listening .r5-complete:disabled,
body[data-site] main [data-time-simulation] :is(.r5-time-situation,.r5-time-submit,.r5-time-text-button):disabled,
body[data-site] main [data-time-simulation] .r5-time-choice>input:disabled+span{
  background:rgba(255,255,255,.96);color:#717a73;border-color:#dde2dc;
  box-shadow:inset 0 1px 0 #fff;opacity:1;filter:none;cursor:not-allowed;
}
/* A confirmed before-rating is saved, not an unavailable unfilled action. */
body[data-site] main .r5-step[data-confirmed="true"] [data-confirm-before]:disabled{
  background:#fff;color:#005b48;border-color:#769382;box-shadow:inset 0 0 0 1px #769382;
}
body[data-site] main .r5-practice :is(button,input):focus-visible,
body[data-site] main [data-time-simulation] :is(button,input):focus-visible,
body[data-site] main [data-time-simulation] .r5-time-choice>input:focus-visible+span{
  outline:3px solid #147d67;outline-offset:4px;
}
body[data-site="portal"] main .r5-step-listening :is(button,input):focus-visible{
  outline:3px solid #fff;outline-offset:4px;
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  body[data-site] main .r5-practice :is(.r5-player-toggle,.r5-card-play,.r5-control,.r5-text-control),
  body[data-site] main [data-time-simulation] :is(.r5-time-situation,.r5-time-submit,.r5-time-text-button),
  body[data-site] main [data-time-simulation] .r5-time-choice>span{background:#fff}
}
@media(prefers-reduced-transparency:reduce){
  body[data-site] main .r5-practice :is(.r5-player-toggle,.r5-card-play,.r5-control,.r5-text-control),
  body[data-site] main [data-time-simulation] :is(.r5-time-situation,.r5-time-submit,.r5-time-text-button),
  body[data-site] main [data-time-simulation] .r5-time-choice>span{
    background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;
  }
}

/* Native hero actions retain the approved emerald material and their source
   icons; removing the gold stroke must not remove hover/focus keyboard cues. */
body[data-site] main :is(.hero-cta,.r4-lead-action) .primary-button,
body[data-site] main :is(.hero-cta,.r4-lead-action) .primary-button:is(:hover,:focus-visible,:active){
  border:0;min-height:66px;padding-block:16px;
  /* The source texture itself has a gold rim. Enlarge only its background
     presentation so the existing pill clips the rim, not just the CSS border. */
  background:#006550 url('./assets/emerald-button.webp') center/110% 135% no-repeat;
  color:#fff;filter:none;
}

@media(min-width:761px){
  /* Lead headers only: the main site's approved large hero brand stays. */
  body:is([data-site="energy"],[data-site="time"],[data-site="portal"]) .site-header{
    padding-top:24px;min-height:70px;width:min(1320px,calc(100% - 120px));
  }
  body:is([data-site="energy"],[data-site="time"],[data-site="portal"]) .site-header .brand{gap:10px}
  body:is([data-site="energy"],[data-site="time"],[data-site="portal"]) .site-header .brand>img{width:40px;height:46px}
  body:is([data-site="energy"],[data-site="time"],[data-site="portal"]) .site-header .brand strong{font-size:18px}
  body:is([data-site="energy"],[data-site="time"],[data-site="portal"]) .site-header .brand small{font-size:11px}
  body:is([data-site="energy"],[data-site="time"],[data-site="portal"]) .site-header>.store-buttons-quiet{
    margin-inline-end:36px;align-self:flex-start;
  }
  body:is([data-site="energy"],[data-site="time"],[data-site="portal"]) main :is(.r4-energy-hero,.r4-lead-hero){padding-top:120px}
  body[data-site="energy"] main .r4-energy-hero .primary-button{min-height:88px}
  body[data-site="portal"] main .r4-portal-hero .r4-lead-art img{
    width:auto;max-width:calc(100% / 1.5);height:auto;max-height:calc(830px / 1.5);
  }
  /* Root moves the existing disabled mini badges into .footer-top after the
     brand. Contact/legal text remains native and unchanged. */
  body[data-site] .site-footer{padding-block:20px 8px;margin-top:18px;font-family:QInter,Inter,sans-serif;font-synthesis:none}
  body[data-site] .site-footer .footer-top{align-items:center;gap:20px;margin-bottom:16px}
  body[data-site] .site-footer .footer-top>.store-buttons-quiet{margin-left:auto;justify-content:flex-end;width:auto}
  body[data-site] .site-footer .footer-grid{gap:22px;align-items:start}
  body[data-site] .site-footer .copyright{margin-top:22px;margin-bottom:0;padding-top:12px}
  body[data-site] .site-footer .footer-cookie-row{margin-top:0}
}
@media(min-width:761px) and (max-width:1100px){
  body:is([data-site="energy"],[data-site="time"],[data-site="portal"]) .site-header{width:calc(100% - 64px)}
  body:is([data-site="energy"],[data-site="time"],[data-site="portal"]) .site-header>.store-buttons-quiet{margin-inline-end:18px}
}
@media(max-width:760px){
  body[data-site] main :is(.hero-cta,.r4-lead-action) .primary-button{min-height:60px;padding-block:14px}
}
