:root {
    --bhe-navy: #003865;
    --bhe-navy-hover: #002847;
    --bhe-gold: #F5AC2F;
    --bhe-sky: #60a5fa;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --surface: #ffffff;
    --page-bg: #f4f6f9;
    --callout-bg: #fffaf0;
    --font-heading: 'Bricolage Grotesque', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}
a { color: var(--bhe-navy); text-underline-offset: 2px; }
a:hover { color: var(--bhe-navy-hover); }
a:focus-visible { outline: 2px solid var(--bhe-gold); outline-offset: 2px; border-radius: 2px; }

/* Masthead: logo, title and date as one centred block */
.masthead {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 16px 28px;
    text-align: center;
    border-bottom: 2px solid var(--bhe-gold);
}
.masthead-logo { display: inline-block; line-height: 0; margin-bottom: 20px; }
.masthead-logo img { display: block; height: 72px; width: auto; max-width: 100%; }
.masthead h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.4px;
    color: var(--bhe-navy);
    margin: 0 0 10px;
}
.masthead p { margin: 0 auto; max-width: 600px; color: var(--text-secondary); }
.effective {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--callout-bg);
    border: 1px solid rgba(245, 172, 47, 0.55);
    color: var(--bhe-navy);
    font-size: 13.5px;
    font-weight: 600;
}

/* Single centred column */
.layout { max-width: 820px; margin: 0 auto; padding: 28px 16px 56px; }

/* Contents card */
.toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 16px;
}
.toc h2 { font-family: var(--font-heading); font-size: 15px; margin: 0 0 8px; color: var(--bhe-navy); }
.toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--text-secondary); }
.toc a:hover { color: var(--bhe-navy); text-decoration: underline; }

/* Content: each section is its own card */
.policy { min-width: 0; }
.policy > .callout { margin-bottom: 16px; }
.policy section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--bhe-navy);
    border-radius: 12px;
    padding: 24px 20px 12px;
    scroll-margin-top: 16px;
}
@media (min-width: 640px) { .policy section { padding: 28px 32px 16px; } }
.policy section + section { margin-top: 16px; }
/* Room below the last card so in-page links can bring it to the top. */
.policy::after { content: ""; display: block; height: max(0px, calc(100vh - 480px)); }
/* Briefly highlight the section an in-page link jumped to. */
.policy section:target { animation: target-flash 1.6s ease-out; }
@keyframes target-flash {
    from { box-shadow: 0 0 0 4px rgba(245, 172, 47, 0.45); border-left-color: var(--bhe-gold); }
    to { box-shadow: 0 0 0 4px transparent; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .policy section:target { animation: none; border-left-color: var(--bhe-gold); }
}
.policy h2 {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    color: var(--bhe-navy);
    line-height: 1.25;
    margin: 0 0 12px;
}
.policy h3 { font-size: 16px; font-weight: 700; margin: 22px 0 6px; color: var(--text-primary); }
.policy p { margin: 0 0 14px; color: var(--text-secondary); }
.policy ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-secondary); }
.policy li { margin: 6px 0; }
.policy li::marker { color: var(--bhe-gold); }
.policy strong { color: var(--text-primary); font-weight: 600; }
.callout {
    background: var(--callout-bg);
    border-left: 4px solid var(--bhe-gold);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 0 0 16px;
}
.callout p:last-child { margin-bottom: 0; }
.contact-card {
    background: var(--page-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
}
.contact-card p { margin: 0 0 4px; }

/* Footer */
.site-footer { background: var(--bhe-navy-hover); color: #94a3b8; font-size: 14px; }
.site-footer-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
}
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media print {
    .toc, .site-footer { display: none; }
    body { background: #fff; }
    .masthead { padding-top: 0; }
    .layout { padding: 0; }
    .policy section { border: 0; padding: 0; margin-top: 24px; }
    .policy::after { display: none; }
}

/* Numbered steps */
.steps { list-style: none; counter-reset: step; margin: 0 0 16px; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 2px 44px; margin: 0 0 14px; color: var(--text-secondary); }
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: 0;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--bhe-navy); color: #fff;
    font-weight: 700; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}

/* Data tables: become stacked cards on narrow screens */
.data-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--page-bg); color: var(--text-primary); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; }
.data-table td { color: var(--text-secondary); }
.data-table td:first-child { color: var(--text-primary); font-weight: 600; }
@media (max-width: 639px) {
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { border: 1px solid var(--border); border-radius: 10px; padding: 6px 0; margin: 0 0 12px; }
    .data-table td { border: 0; padding: 6px 14px; }
    .data-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-muted); }
}

.callout-danger { background: #fef2f2; border-left-color: #dc2626; }
.callout-danger strong { color: #991b1b; }
