/* THE-25 UI polish overlay. Pure CSS, loaded last. Undo: remove its <link> line from index.htm (see index.htm.bak-20261111-the25).
   Deliberately skips the Libraries mirror (/mirrors/libraries) which has its own themed styling. */
:root { --sm-accent:#24aadd; --sm-focus:0 0 0 2px #1b1b1b, 0 0 0 4px #24aadd; --sm-radius:8px; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

/* Accessibility: visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline:none !important; box-shadow:var(--sm-focus) !important; border-radius:6px;
}

/* Nav: smoother hover/active feedback */
#top-navigation a { transition:background-color .15s, color .15s, box-shadow .15s; }
#top-navigation a:hover { color:#fff; }

/* Thumbnails: gentle lift on hover, never shifts layout (transform only) */
.post-list li { transition:transform .15s ease, box-shadow .15s ease; }
@media (hover:hover) {
  .post-list li:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.45); position:relative; z-index:1; }
}

/* Home cards: rounder, softer, consistent with the search bars */
#home-custom .hc-card { border-radius:var(--sm-radius); box-shadow:0 2px 10px rgba(0,0,0,.25); }
#home-custom .hc-links a { transition:border-color .15s, color .15s, background-color .15s, transform .15s; }
#home-custom .hc-links a:hover { background:rgba(36,170,221,.12); transform:translateY(-1px); }
#home-custom .hc-small { color:#9a9a9a; } /* contrast: #888 -> #9a9a9a on dark card */

/* Slim dark scrollbars */
* { scrollbar-width:thin; scrollbar-color:#4a4a4a #1b1b1b; }

/* Touch: comfortable tap targets on phones */
@media (max-width:800px) {
  #top-navigation a, #top-navigation button { min-height:40px; }
  .post-list li:hover { transform:none; box-shadow:none; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition-duration:.01ms !important; animation-duration:.01ms !important; scroll-behavior:auto !important; }
}
