/* Two-colour focus remains discernible on light, dark and image backgrounds. */
#adept-sketch :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
.adl-dialog :is(a,button,[tabindex]):focus-visible,
.cky-modal :is(a,button,input,select,textarea,[tabindex]):focus-visible,
.pft-responsive [role="button"]:focus-visible {
 outline:3px solid #1e5a50!important;outline-offset:3px!important;
 box-shadow:0 0 0 3px #fff,0 0 0 6px #1e5a50!important;
}
#adept-sketch :is(a,button,input,select,textarea,summary,[tabindex]){scroll-margin-block:7rem 2rem}
@media(forced-colors:active){
 #adept-sketch :focus-visible,.adl-dialog :focus-visible,.cky-modal :focus-visible,.pft-responsive :focus-visible{outline:3px solid Highlight!important;box-shadow:none!important}
}

/* Validation stays readable in both appearances. Keep error text and links. */
#adept-sketch[data-appearance] .gform_wrapper {
  --adept-error-ink:light-dark(#9d3423,#ffb4a6);
  --adept-error-panel:light-dark(#fff3eb,#3b2826);
}
#adept-sketch[data-appearance] .gform_wrapper .gform_validation_errors {
  background:var(--adept-error-panel)!important;
  color:var(--adept-error-ink)!important;
  border-color:var(--adept-error-ink)!important;
}
#adept-sketch[data-appearance] .gform_wrapper .gform_validation_errors :is(h2,a,li) {
  color:var(--adept-error-ink)!important;-webkit-text-fill-color:currentColor;
}
#adept-sketch[data-appearance] .gform_wrapper .gfield_required {
  color:var(--adept-error-ink)!important;
}
/* A slightly lighter gold on the dark newsletter panel preserves its identity. */
#adept-sketch[data-appearance] .adnl-box > .adnl-eyebrow {
  color:light-dark(#76550e,#ddb442);
}

/* YouTube needs a minimum 200px-high player, including on narrow screens.
   Keep cover images unchanged; reserve space only after consent loads a player. */
.aer-dialog-stage:has(>iframe) {width:100%;min-height:200px;}
.aer-dialog-stage>iframe {min-height:200px;}
#adept-sketch .adl .adl-video-stage:has(>iframe) {
  width:100%;height:auto;min-height:200px;padding-bottom:0;aspect-ratio:16/9;
}
