/* ─────────────────────────────────────────────────────────────────────────
   LandTriage — shared polish layer
   Global finishing touches applied on top of each page's inline styles.
   References the CSS custom properties every template already defines
   (--primary, --border2, --bg, --surface, --text, --muted, --muted2), so it
   resolves correctly against whichever page it is loaded into.
   ───────────────────────────────────────────────────────────────────────── */

/* Text selection — themed, subtle blue wash instead of the OS default */
::selection {
  background: rgba(59, 130, 246, 0.32);
  color: #fff;
}

/* Thin custom scrollbars (WebKit/Blink) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border2, #2a2a2a);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted2, #555);
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Firefox scrollbars */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--border2, #2a2a2a) transparent;
}

/* Keyboard focus ring on every interactive element.
   Uses :focus-visible so mouse clicks stay clean while keyboard nav is obvious.
   Inputs keep their own richer box-shadow focus; this adds a crisp outline too. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
label.file-drop:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary, #3b82f6);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Remove the legacy focus outline for mouse users (focus-visible covers keyboard) */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Subtle entrance: content rises and fades in on load */
@keyframes lt-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
main {
  animation: lt-fade-in 0.24s ease-out both;
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
