/* Hawthorne accessibility, Wave 1 (A01/A02).
   Late, narrowly scoped corrections for the approved page themes.
   Keep this as the single shared sheet; retain legacy page styling outside these selectors. */

/* A02: keyboard-only skip links stay above the canonical header (z-index 1000).
   Preserve each distinct fragment destination and avoid transitions on keyboard focus. */
html body a:is(.h-skip, .coherent-skip, .seminar-skip, .hawthorne-global-skip,
  .stories-skip, .school-skip, .atlas-skip, .skip, .auth-skip, .policy-skip,
  .account-skip, .cookie-skip)[href^="#"] {
  position: fixed !important;
  z-index: 1101 !important;
  inset: 8px auto auto 12px !important;
  box-sizing: border-box !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: calc(100vw - 24px) !important;
  height: auto !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  font: 600 16px/1.4 'Schibsted Grotesk', Arial, sans-serif !important;
  color: #173f33 !important;
  background: #fffdf5 !important;
  border: 2px solid #173f33 !important;
  border-radius: 4px !important;
  white-space: normal !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
  animation: none !important;
}
html body a:is(.h-skip, .coherent-skip, .seminar-skip, .hawthorne-global-skip,
  .stories-skip, .school-skip, .atlas-skip, .skip, .auth-skip, .policy-skip,
  .account-skip, .cookie-skip)[href^="#"]:not(:focus) {
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  transform: translateY(-200%) !important;
  pointer-events: none !important;
}
html body a:is(.h-skip, .coherent-skip, .seminar-skip, .hawthorne-global-skip,
  .stories-skip, .school-skip, .atlas-skip, .skip, .auth-skip, .policy-skip,
  .account-skip, .cookie-skip)[href^="#"]:focus {
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
  outline: 3px solid #173f33 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px #fffdf5 !important;
}
/* Standalone inquiry/review/portfolio gain a skip link; embedded/printed
   variants retain their existing chrome-free behavior. */
html.hi-embedded body a.hi-page-skip { display: none !important; }
@media print {
  html body a:is(.h-skip, .coherent-skip, .seminar-skip, .hawthorne-global-skip,
    .stories-skip, .school-skip, .atlas-skip, .skip, .auth-skip, .policy-skip,
    .account-skip, .cookie-skip)[href^="#"] { display: none !important; }
}

/* A01: existing deep theme inks on the existing bright actions.
   Only links are in scope; disabled interactive study buttons are untouched. */
html body .stories-page a.stories-primary { color: #0f3028 !important; }
html body .school-page a.school-primary { color: #102f26 !important; }
html body .atlas-page a.atlas-primary { color: #0c2d31 !important; }

/* The same two hero links share the experience's dark background. */
html body.inquiry-page .inquiry-context .founders-offer .offer-basis > a[href="/registration.html"],
html body.path-experience .seminar-opening a:is([href="/find-your-table.html#comparison"],
  [href="/enrollment-policy.html#if-fewer-than-four-scholars-enroll"]) {
  color: #fffdf5 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
/* Existing warm ink on a light record; existing light gold on dark folios. */
html body .school-page .school-record .school-kicker { color: #7b622d !important; }
html body .school-page :is(.school-lens-map-intro, .school-position) .school-folio-label { color: #f1cd7d !important; }

/* A visible two-tone focus indication against both light and dark surfaces. */
html body .stories-page a.stories-primary:focus-visible,
html body .school-page a.school-primary:focus-visible,
html body .atlas-page a.atlas-primary:focus-visible,
html body.inquiry-page .inquiry-context .founders-offer .offer-basis > a[href="/registration.html"]:focus-visible,
html body.path-experience .seminar-opening a:is([href="/find-your-table.html#comparison"],
  [href="/enrollment-policy.html#if-fewer-than-four-scholars-enroll"]):focus-visible {
  outline: 2px solid #fffdf5 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 6px #173f33 !important;
}
