/* Isolated component layer. No body/main/global selectors. */
cliff-header[data-editorial-shell] .site-drawer {
  overflow-y: auto;
  overscroll-behavior: contain;
}

cliff-header[data-editorial-shell] :is(a, button):focus-visible {
  outline: 3px solid var(--swatch--brand, #c02d2d);
  outline-offset: 5px;
}

cliff-header[data-editorial-shell] .site-drawer :focus-visible {
  outline-color: #f4e6d5;
}

/* На editorial-shell не красим шапку в dark-zone: бумага остаётся стабильной. */
cliff-header[data-editorial-shell] .cliff-header.is-dark-zone:not(.cliff-header--overlay) {
  --header-fg: #191817;
  --header-muted: #625d57;
  background: color-mix(in srgb, #fcfbf8 94%, transparent);
  border-bottom-color: rgba(24, 23, 22, 0.11);
  color: #191817;
}

cliff-footer[data-editorial-shell] .cliff-footer {
  background: #eeeae2;
  color: #191817;
}

cliff-footer[data-editorial-shell] .cliff-footer :is(a, p, span, h2) {
  color: #625d57;
}

cliff-footer[data-editorial-shell] :is(.cliff-footer__brand, .footer-wordmark) {
  color: #191817;
}

cliff-footer[data-editorial-shell] :is(.cliff-footer__grid > *, .footer-wordmark) {
  opacity: 1 !important;
  transform: none !important;
}

cliff-footer[data-editorial-shell] a:focus-visible {
  outline: 3px solid var(--swatch--brand, #c02d2d);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  cliff-header[data-editorial-shell] *,
  cliff-footer[data-editorial-shell] * {
    transition: none !important;
    animation: none !important;
  }
}
