/*
 * Horizon Core — the "Powered by Automate Horizon" text credit (HORIZON-20261003-054).
 * Printed by hp_powered_by_credit() (src/Content/powered-by.php). Scope, signed 2026-10-03:
 * docs/powered-by-credit-scope-2026-10-03.md §4.3. Every selector needs .hp-credit, which only text mode prints,
 * so in logo mode this file matches nothing.
 *
 * Colours (predicted >= 5.23:1 on every skin and colour pack; table in the scope §10):
 *   footer  var(--hp-footer-muted, var(--hp-text-muted))   D1: NOT the bar's --hp-text-subtle, which is 4.16:1
 *                                                           on dark-luxury and 4.37:1 on bold-vivid.
 *   gate    var(--hp-text-muted)                           D2: the gate's BODY text, as hp-mobile.css gives its
 *                                                           notices. Not the accent: that is G1 (HORIZON-20261002-054).
 *   panel   var(--hp-offcanvas-link, var(--hp-text-muted)) the panel's own link colour where a pack sets one
 *                                                           (scarlet-ink's dark panel), else body text.
 * Hover (D3): underline only, colour unchanged, so no hover colour has to pass per skin.
 *
 * ⛔ Specificity is the point of every selector here. The shell's `.hp .hp-footer__bar a` (0,2,1) uses
 * --hp-text-muted, which is 1.72:1 on scarlet-ink's dark footer, and its :hover (0,3,1) turns the accent; the
 * footer rules below are (0,3,0) and (0,4,0). The gate's and panel's `a { opacity: .85 }` would dim the text
 * below its token, so it is cancelled. Measure this live by emulation, never by reading the sheets
 * ([[feedback-emulate-hover-exactly-when-auditing-contrast]]).
 */

/* ── Footer ─────────────────────────────────────────────────────────── */
.hp-footer .hp-footer__bar .hp-credit,
.hp-footer .hp-footer__bar .hp-credit .hp-credit__label,
.hp-footer .hp-footer__bar .hp-credit .hp-credit__name,
.hp-footer .hp-footer__bar .hp-credit .hp-credit__name:hover,
.hp-footer .hp-footer__bar .hp-credit .hp-credit__name:focus-visible {
  color: var(--hp-footer-muted, var(--hp-text-muted));
}

/* ── 18+ gate ───────────────────────────────────────────────────────── */
.hp-age-gate__powered.hp-credit .hp-credit__label,
.hp-age-gate__powered.hp-credit .hp-credit__name,
.hp-age-gate__powered.hp-credit .hp-credit__name:hover,
.hp-age-gate__powered.hp-credit .hp-credit__name:focus-visible {
  color: var(--hp-text-muted);
}

/* ── Links panel ────────────────────────────────────────────────────── */
.hp-offcanvas__powered.hp-credit .hp-credit__label,
.hp-offcanvas__powered.hp-credit .hp-credit__name,
.hp-offcanvas__powered.hp-credit .hp-credit__name:hover,
.hp-offcanvas__powered.hp-credit .hp-credit__name:focus-visible {
  color: var(--hp-offcanvas-link, var(--hp-text-muted));
}

/* ── The name, everywhere ───────────────────────────────────────────── */
.hp-credit .hp-credit__name {
  opacity: 1;
  text-decoration: none;
  font-family: inherit; /* the tenant's visual language and font pack (doctrine 23 §1) */
}
.hp-credit .hp-credit__name:hover,
.hp-credit .hp-credit__name:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Gate and panel: the name sits where the image was, one step above the 12px label floor. */
.hp-credit--gate .hp-credit__name,
.hp-credit--panel .hp-credit__name {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
