/* =========================================================
   Orwigsburg Our Heroes Banner Program — site-wide styles
   This file extends Tailwind. Most styling lives in HTML
   classes; only patterns that don't belong inline go here.
   ========================================================= */

/* Smooth scroll for anchor links (e.g. #about) */
html { scroll-behavior: smooth; }

/* Slightly tighter focus rings using brand color */
:focus-visible {
  outline: 2px solid #c9a961;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Disable focus-visible inside inputs (Tailwind handles those) */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* Selection color */
::selection { background: #c9a961; color: #0a2342; }

/* Subtle "active" state for the gallery filter chips */
.filter-chip.active {
  background: #0a2342;
  color: #fff;
  border-color: #0a2342;
}

/* Details/summary — remove the default disclosure triangle in Safari */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Smooth height/opacity on FAQ details (modern browsers) */
@media (prefers-reduced-motion: no-preference) {
  details[open] > *:not(summary) {
    animation: fadein 0.25s ease-out;
  }
  @keyframes fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* Better text rendering on retina */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Make form file-uploader look consistent across browsers */
input[type="file"]::file-selector-button { cursor: pointer; }

/* Print: hide nav + footer when the user prints the apply page */
@media print {
  header, footer, .no-print { display: none !important; }
  main { padding: 0 !important; }
}
