/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* Two-color focus ring: navy outline carries 3:1 on the white body,
   orange halo carries it on the navy header/footer (WCAG 1.4.11) */
:focus-visible {
    outline: 3px solid #00447c;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(255, 121, 0, 0.9);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@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;
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 1rem;
    background: #FF7900;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    z-index: 1000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 1rem;
}

header {
    background-color: #00447c;
    color: white;
    text-align: center;
    padding: 20px;
}

header h1 {
    font-size: 2rem;
    margin: 0;
}

main {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
section {
    margin-bottom: 30px;
}

h2 {
    font-size: 1.75rem;
    color: #00447c;
    border-bottom: 3px solid #00447c;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.4rem;
    margin-top: 20px;
    color: #222;
}

p {
    font-size: 1rem;
    color: #1A1A1A;
}

/* Global p color bled into the navy header/footer at 1.76:1 (WCAG 1.4.3) */
header p,
footer p {
    color: #FFFFFF;
}

/* Lists */
ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/* Links */
a {
    color: #00447c;
    text-decoration: underline;
}

a:hover {
    color: #002a4d;
}

/* Breadcrumb links sit on the navy header, where the global navy link color is
   invisible (1:1). Same on-navy link color the footer uses (~6.9:1, WCAG 1.4.3) */
header a {
    color: #FFD34D;
}

header a:hover {
    color: #ffd700;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #00447c;
    color: white;
    margin-top: 30px;
}

footer a {
    color: #FFD34D; /* orange was 3.77:1 on navy; this is ~8:1 (WCAG 1.4.3) */
    text-decoration: underline;
}

footer a:hover {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        width: 90%;
        padding: 15px;
    }

    header {
        padding: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.95rem;
    }
}
