/* Base styles: reset, typography, layout primitives shared across all pages.
   Accessible-by-default baseline (NFR §4.2) — large touch targets and visible focus are
   NOT gated behind the opt-in high-contrast mode in accessibility.css; every role gets them. */

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #fff;
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 1rem;
}

h1, h2, h3 {
    line-height: 1.25;
}

a {
    color: #0b4d9e;
}

/* Minimum 44x44px touch target (WCAG 2.5.5) for motor-impairment users. */
button, input, select, textarea, a.button {
    font-size: 1rem;
    font-family: inherit;
    min-height: 44px;
    padding: 0.6em 0.9em;
    margin: 0.25em 0;
}

button {
    cursor: pointer;
}

label {
    display: block;
    font-weight: 600;
    margin-top: 0.9em;
}

fieldset {
    margin: 0.9em 0;
    padding: 0.75em;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

th, td {
    text-align: left;
    padding: 0.5em;
    border-bottom: 1px solid #ddd;
}

/* Visible on every interactive element, not just links — default browser focus rings are
   often too faint to rely on for low-vision users. */
:focus {
    outline: 3px solid #0b4d9e;
    outline-offset: 2px;
}

.form-error {
    color: #8a1f1f;
    font-weight: 600;
}

.form-success {
    color: #14602e;
    font-weight: 600;
}
