/* ==========================================================
   Base styles – replaces Bootstrap's reset and layout basics.
   Self-contained: system fonts, no external resources.
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #1a1a1a;
    background: #ffffff;
}

main {
    flex: 1 0 auto;   /* keeps the footer at the bottom on short pages */
    min-width: 0;
}

img,
video {
    max-width: 100%;
    height: auto;
}

svg {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    line-height: 1.2;
    overflow-wrap: break-word;
}

p {
    margin: 0 0 1rem;
}

a {
    color: #0b5ed7;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* Centered content wrapper (replaces Bootstrap .container) */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: .75rem;
}

@media (min-width: 768px) {
    .container { padding-inline: 1.5rem; }
}

/* Icons from /images/icons.svg (see icon() in includes/helpers.php) */
.icon {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hidden visually, still read by screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid #0b5ed7;
    outline-offset: 2px;
}

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