/* Heavenly Key premium polish layer — 26 Nov 2026 (STAGING design pass).
   Owner order 26 Nov ~15:59 WAT "Improve the design" + ~16:28 WAT
   "globally premium ready". Within the APPROVED template and colours
   only (magenta #b40059, bright blues, gold, white; tile panel light
   green #e6f7e6 where already approved). No layout, colour or content
   change: hierarchy, spacing rhythm, elevation, focus states and
   reading comfort only. 16px floor preserved (no font-size below
   16px anywhere in this file). Design skills applied:
   modern-web-design (performance-first, fluid type, bold minimalism)
   + ui-ux-pro-max (accessibility first, 44px targets, 16px base,
   line-height 1.5-1.6, reduced-motion). Palettes overridden by the
   approved colours per the owner's rule. */

/* --- Reading comfort + heading hierarchy --- */
body { line-height: 1.6; }
h1, h2, h3 { text-wrap: balance; line-height: 1.25; letter-spacing: .01em; }
p, li { line-height: 1.65; }

/* --- Keyboard accessibility: visible gold focus everywhere --- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #ffd327;
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Premium elevation: one soft layered shadow language --- */
.hk-cross-home-sections .resource,
.hk-cross-home-sections .partner,
.card, .panel, .tile {
  box-shadow: 0 1px 2px rgba(9, 38, 117, .06), 0 8px 24px rgba(9, 38, 117, .10);
}

/* --- Section spacing rhythm (fluid, generous) --- */
main section, .hk-section { padding-block: clamp(28px, 4vw, 56px); }

/* --- Buttons: consistent premium depth, no colour change --- */
button, .btn, a.button { transition: transform .18s ease, box-shadow .18s ease; }
button:hover, .btn:hover, a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(180, 0, 89, .22);
}
button:active, .btn:active, a.button:active { transform: translateY(0); }

/* --- Text selection in approved magenta --- */
::selection { background: #b40059; color: #ffffff; }

/* --- Thin approved-colour scrollbar --- */
* { scrollbar-width: thin; scrollbar-color: #b40059 #f3f6ff; }

/* --- Images: crisp, no layout shift --- */
img { max-width: 100%; height: auto; }

/* --- Reduced motion: honour the visitor's setting --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
