/* ==========================================================
   AF27 · WCAG 2.2 AA hardening · 0.9.3
   ========================================================== */

/* Skip link for legacy/native fallback templates that do not live in .af27-root. */
.af27-global-skip{
  position:fixed;
  left:16px;
  top:12px;
  z-index:2147483200;
  padding:12px 18px;
  background:#0B1B2B;
  color:#fff !important;
  font:600 15px/1 "Archivo","Helvetica Neue",Arial,sans-serif;
  text-decoration:none;
  transform:translateY(-180%);
  transition:transform .2s cubic-bezier(.16,1,.3,1);
}
.af27-global-skip:focus,
.af27-global-skip:focus-visible{
  transform:none;
  outline:3px solid #5BC2EE;
  outline-offset:3px;
}

/* Strengthen target size for standalone controls/links.
   Inline prose links remain untouched and can use the WCAG inline exception. */
.af27-root[data-af27-platform="internal"] .nav__event,
.af27-root[data-af27-platform="internal"] .footer__group a,
.af27-root[data-af27-platform="internal"] .footer__legal a,
.af27-root[data-af27-platform="internal"] .footer__top,
.af27-root[data-af27-platform="internal"] .prog__print,
body.page-id-1981 .nav__event,
body.page-id-1981 .footer__group a,
body.page-id-1981 .footer__legal a,
body.page-id-1981 .footer__top,
body.page-id-1981 .prog__print{
  min-height:24px;
}

.af27-root[data-af27-platform="internal"] .footer__group a,
.af27-root[data-af27-platform="internal"] .footer__legal a,
.af27-root[data-af27-platform="internal"] .footer__top,
body.page-id-1981 .footer__group a,
body.page-id-1981 .footer__legal a,
body.page-id-1981 .footer__top{
  display:inline-flex;
  align-items:center;
}

.af27-root[data-af27-platform="internal"] .prog__print,
body.page-id-1981 .prog__print{
  min-height:36px;
  padding-block:6px;
}

/* WCAG 2.4.11 — keep keyboard focus clear of the fixed mobile rail. */
@media (max-width: 980px){
  html:has(body.page-id-1981),
  html:has(.af27-root[data-af27-platform="internal"]){
    scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom));
  }
}

/* Strong, consistent visible focus for native details controls in Archive Editions. */
.af27-root[data-af27-platform="internal"] summary:focus-visible{
  outline:3px solid var(--focus, #0A6A94);
  outline-offset:4px;
}

/* Mobile sheet behaves as a modal navigation surface; keep its close control easy to hit. */
.af27-root[data-af27-platform="internal"] .sheet__close,
body.page-id-1981 .sheet__close{
  min-width:44px;
  min-height:44px;
}

/* Reduced motion applies to the legacy/global skip transition as well. */
@media (prefers-reduced-motion: reduce){
  .af27-global-skip{ transition:none; }
}
