/**
 * Discovery of Nature 0.3.43 — shared control hierarchy.
 * Four families only: primary, secondary/outline, icon, text-action.
 * Route logic, labels, hrefs, submit behavior and component geometry remain owned by existing templates.
 */
body.dn-header-refined :is(
  .header-account,
  .header-register,
  .account-action,
  .site-registration-cta__button,
  .site-footer__account-button,
  .documentary-filter-form button,
  .bbp-submit-wrapper button,
  .search-submit,
  .wp-block-button__link
) {
  border-radius: var(--don-radius-control);
  transition: background-color var(--don-control-ease), border-color var(--don-control-ease), color var(--don-control-ease), box-shadow var(--don-control-ease), transform var(--don-control-ease);
}

/* Primary: the only persistently bright family. Remove neon/glow while retaining hierarchy. */
body.dn-header-refined :is(
  .site-registration-cta__button--primary,
  .account-action--primary,
  .documentary-feature__action
),
body.dn-header-refined.dn-dark-home .home-main .home-hero__actions .home-hero__action--primary {
  border-color: var(--don-accent);
  background: var(--don-accent);
  color: var(--don-accent-ink);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Secondary: quiet surface and low-contrast outline. */
body.dn-header-refined :is(
  .header-register,
  .site-registration-cta__button:not(.site-registration-cta__button--primary),
  .account-action:not(.account-action--primary)
),
body.dn-header-refined.dn-dark-home .home-main .home-hero__actions .home-hero__action--secondary {
  border-color: var(--don-line-strong);
  background: rgba(183,232,158,.045);
  color: #eef5ea;
  box-shadow: none;
}

/* Header/icon family stays quiet until interaction. */
body.dn-header-refined .site-header :is(.header-account,.search-toggle,.nav-toggle) {
  border-radius: var(--don-radius-pill);
  box-shadow: none;
}
body.dn-header-refined .site-header :is(.header-account,.search-toggle,.nav-toggle) {
  border-color: transparent;
  background: transparent;
}
body.dn-header-refined .site-header :is(.search-toggle,.nav-toggle) {
  background: transparent;
}

/* Text actions never need a visible box at rest. */
body.dn-header-refined :is(.section-heading__link,.home-media-panel__heading>a) {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #c8ddbf;
}

@media (hover:hover) and (pointer:fine) {
  body.dn-header-refined :is(
    .site-registration-cta__button--primary,
    .account-action--primary,
    .documentary-feature__action
  ):hover,
  body.dn-header-refined.dn-dark-home .home-main .home-hero__actions .home-hero__action--primary:hover {
    border-color: var(--don-accent-hover);
    background: var(--don-accent-hover);
    color: var(--don-accent-ink);
    box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.22);
  }
  body.dn-header-refined :is(
    .header-register,
    .site-registration-cta__button:not(.site-registration-cta__button--primary),
    .account-action:not(.account-action--primary)
  ):hover,
  body.dn-header-refined.dn-dark-home .home-main .home-hero__actions .home-hero__action--secondary:hover {
    border-color: var(--don-line-focus);
    background: rgba(183,232,158,.09);
    color: #f6faf3;
    box-shadow: none;
  }
}

body.dn-header-refined :is(a,button,input,select,textarea):focus-visible {
  outline: 2px solid var(--don-focus-ring);
  outline-offset: 3px;
}

@media (max-width:1180px), (pointer:coarse) {
  body.dn-header-refined :is(
    .header-account,
    .header-register,
    .site-menu-toggle,
    .site-search-toggle,
    .account-action,
    .site-footer__account-button,
    .section-heading__link,
    .documentary-filter-form button,
    .bbp-submit-wrapper button,
    .search-submit,
    .wp-block-button__link
  ) { min-height: var(--don-control-min); }
}

@media (prefers-reduced-motion:reduce) {
  body.dn-header-refined :is(
    .header-account,
    .header-register,
    .account-action,
    .site-registration-cta__button,
    .site-footer__account-button,
    .documentary-filter-form button,
    .bbp-submit-wrapper button,
    .search-submit,
    .wp-block-button__link
  ) { transition:none; transform:none!important; }
}
