/* ============================================================
   Alpha Pacific Systems - polish layer

   Accessibility and interaction states that the inline-styled
   pages never had: keyboard focus, a skip link, motion easing.

   These pages use inline styles throughout, so anything that has
   to beat an inline declaration needs !important - same constraint
   documented in mobile.css. Rules here are deliberately additive:
   nothing changes static layout or colour at rest.
   ============================================================ */

/* --- Keyboard focus -------------------------------------------------
   Visible for keyboard users, absent for mouse users. Amber reads
   against both the deep-green and the cream sections. */
:focus-visible {
  outline: 3px solid #F6B51E !important;
  outline-offset: 2px !important;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none !important; }

/* --- Skip to content ------------------------------------------------
   Off-screen until focused, then pinned top-left. */
.aps-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #0C2B28;
  color: #F6B51E;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 22px;
  text-decoration: none;
}
.aps-skip:focus {
  left: 8px;
  top: 8px;
}

/* --- Interaction easing ---------------------------------------------
   The hover values are authored per-element via style-hover and applied
   by hover.js; this only supplies the timing so they ease rather than
   snap. transform/opacity/colour only - no layout-triggering props. */
a[data-hover],
[data-hover] {
  transition: background-color .22s ease, color .22s ease,
              box-shadow .22s ease, transform .22s ease,
              border-color .22s ease, padding .22s ease;
}

/* Pressed feedback on the things that behave like buttons. */
a[data-hover]:active,
button:active {
  transform: translateY(1px);
}

/* --- Current page ---------------------------------------------------
   The active nav link is already marked visually with an amber underline;
   aria-current carries the same fact to assistive tech. */
nav a[aria-current="page"] { cursor: default; }

/* --- Scroll ---------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a[data-hover], [data-hover] { transition: none; }
}
