/* MSHP Brochure Accessible Styles — Shared across all converted brochures */
/* WCAG 2.1 Level AA compliant */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --mshp-navy: #1a2744;
    --mshp-gold: #e8a820;
    --mshp-blue: #2b5797;
    --mshp-light: #f5f6fa;
    --mshp-white: #ffffff;
    --mshp-text: #1a1a1a;
    --mshp-gray: #4a4a4a;
    --max-width: 960px;
    --focus-ring: 3px solid #e8a820;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--mshp-navy);
    color: var(--mshp-white);
    padding: 0.75rem 1.5rem;
    z-index: 1000;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}
.skip-link:focus {
    top: 0;
    outline: var(--focus-ring);
    outline-offset: 2px;
}

/* Focus Styles */
:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    line-height: 1.6;
    color: var(--mshp-text);
    background: var(--mshp-light);
}

/* Header / Banner */
header[role="banner"] {
    background: var(--mshp-navy);
    color: var(--mshp-white);
    padding: 2rem 1.5rem;
    text-align: center;
}
header p {
    color: var(--mshp-white);
}
header .org-name {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
header .division-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--mshp-gold);
    margin-bottom: 1.25rem;
}
header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
}
header h1 span {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 400;
    margin-top: 0.25rem;
}

/* Main Content */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--mshp-navy);
    border-left: 4px solid var(--mshp-gold);
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    color: var(--mshp-navy);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--mshp-gray);
}

ul, ol {
    margin: 0 0 1rem 1.5rem;
    color: var(--mshp-gray);
}
li {
    margin-bottom: 0.5rem;
}

/* Callout Box */
.callout {
    background: var(--mshp-navy);
    color: var(--mshp-white);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}
.callout h2, .callout h3 {
    color: var(--mshp-gold);
    border-left: none;
    padding-left: 0;
    margin-bottom: 0.75rem;
}
.callout p, .callout li {
    color: var(--mshp-white);
}
.callout a {
    color: var(--mshp-white);
    text-decoration: underline;
}
.callout a:hover, .callout a:focus {
    color: var(--mshp-gold);
}
.callout ul {
    list-style: disc;
}

/* Info Box (lighter variant) */
.info-box {
    background: var(--mshp-white);
    border: 2px solid var(--mshp-blue);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

/* Warning/Alert Box */
.alert-box {
    background: #fff3cd;
    border: 2px solid #e8a820;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.alert-box h3 {
    color: #6b4c00;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.process-step {
    background: var(--mshp-white);
    border: 2px solid var(--mshp-blue);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}
.process-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--mshp-blue);
    color: var(--mshp-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.process-step p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Data Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
caption {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--mshp-navy);
    text-align: left;
    margin-bottom: 0.5rem;
}
th, td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #ccd;
}
th {
    background: var(--mshp-navy);
    color: var(--mshp-white);
    font-weight: 600;
}
tr:nth-child(even) {
    background: #eef0f5;
}

/* Contact Info */
.contact-info {
    background: var(--mshp-white);
    border: 1px solid #dde;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.contact-info address {
    font-style: normal;
    margin-bottom: 1rem;
    color: var(--mshp-gray);
}
.contact-info a {
    color: var(--mshp-blue);
    text-decoration: underline;
}
.contact-info a:hover,
.contact-info a:focus {
    color: var(--mshp-navy);
}
.contact-links {
    list-style: none;
    margin-left: 0;
    padding: 0;
}
.contact-links li {
    margin-bottom: 0.35rem;
}

/* General Links */
a {
    color: var(--mshp-blue);
    text-decoration: underline;
}
a:hover, a:focus {
    color: var(--mshp-navy);
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}
@media (max-width: 600px) {
    .two-col { grid-template-columns: 1fr; }
}

/* Footer */
footer {
    background: var(--mshp-navy);
    color: var(--mshp-white);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}
footer p {
    color: var(--mshp-white);
}
footer a {
    color: var(--mshp-gold);
    text-decoration: underline;
}
footer a:hover,
footer a:focus {
    color: var(--mshp-white);
}

/* Print Styles */
@media print {
    body { background: white; color: black; font-size: 11pt; }
    header { background: white; color: black; border-bottom: 3px solid black; }
    header p { color: black; }
    header .division-name { color: #333; }
    h2 { border-left-color: #333; }
    .callout { background: #eee; color: black; border: 1px solid #333; }
    .callout h2, .callout h3 { color: black; }
    .callout p, .callout li { color: black; }
    .skip-link { display: none; }
    footer { background: white; color: black; border-top: 2px solid black; }
    footer p { color: black; }
    footer a { color: black; }
}

/* ===== WCAG 2.3.3 — Respect user motion preferences (added 2026-04-14) ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
