/* PANEL-50 Wave 8 cluster A, item 84 — keyboard focus you can see.
   Loaded by ALL THREE shells (base.html desk + artist, and
   pp_base.html partner) AFTER each shell's main styles (see
   INTEGRATION NOTES in the wave report), so these rules win
   over style.css's mouse-oriented input:focus { outline: none }
   treatment for keyboard users: :focus-visible only matches
   when the browser judges the focus came from the keyboard
   (or another non-pointer source), so pointer users see no
   change at all.

   The ring colour is the shell's own accent variable — the
   parity --pp-accent when the shell defines it, the desk
   --accent alias, falling back to the house accent #e8b13c.
   NO new colour is introduced. The on-accent text colour
   #14100a is the value pp_base.html and the partner theme
   style block already hardcode for text on the accent. */

/* ---- the ring: buttons, links, rows, inputs ---- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[contenteditable]:focus-visible,
[tabindex]:focus-visible,
tr[tabindex]:focus-visible,
.queue-row[tabindex]:focus-visible,
.pp-nav a:focus-visible,
.side-nav a:focus-visible {
  outline: 3px solid var(--pp-accent, var(--accent, #e8b13c));
  outline-offset: 2px;
}

/* Partner shell buttons are .btn on a var(--pp-accent) fill:
   an accent ring on an accent fill would vanish, so partner /
   filled buttons additionally get an offset inner edge from
   the shell background. Still no new colour. */
.btn:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 5px var(--pp-bg, var(--bg, #0d0d10));
}

/* ---- skip link (templates/_skip_link.html) ----
   Visually hidden (clipped, not display:none, so it stays
   focusable) until it receives keyboard focus, when it lands
   as a solid accent block at the top-left of the shell. */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  background: var(--pp-accent, var(--accent, #e8b13c));
  color: #14100a;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  outline: 3px solid var(--pp-accent, var(--accent, #e8b13c));
  outline-offset: 2px;
}
