:root {
    --navy-950: #071a2d;
    --navy-900: #0b2946;
    --navy-800: #123b60;
    --blue-700: #14568a;
    --blue-100: #dcebf5;
    --blue-050: #f1f7fb;
    --gold-500: #c99a2e;
    --red-700: #a71930;
    --ink: #17212b;
    --muted: #526170;
    --line: #d5dee6;
    --surface: #ffffff;
    --canvas: #f5f7f9;
    --focus: #ffbf47;
    --shadow: 0 12px 32px rgba(7, 26, 45, .08);
    --radius: .4rem;
    --content: 78rem;
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 1rem; line-height: 1.65; }
html[data-text-size="large"] { font-size: 118.75%; }
body.high-contrast {
    --navy-950: #000;
    --navy-900: #000;
    --navy-800: #000;
    --blue-700: #0039a6;
    --blue-100: #fff;
    --blue-050: #fff;
    --gold-500: #ffe500;
    --red-700: #d60000;
    --ink: #000;
    --muted: #111;
    --line: #000;
    --surface: #fff;
    --canvas: #fff;
}
a { color: var(--blue-700); text-decoration-thickness: .09em; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: .16em; }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
:focus-visible { outline: .22rem solid var(--focus); outline-offset: .18rem; }
.container { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: .5rem; transform: translateY(-200%); background: var(--focus); color: #000; padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { transform: none; }

.utility-bar { color: #fff; background: var(--navy-950); }
.utility-inner { min-height: 2.9rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.utility-inner p { margin: 0; font-size: .9rem; }
.accessibility-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.accessibility-tools button { min-height: 2.25rem; border: 1px solid rgba(255,255,255,.65); border-radius: .2rem; color: #fff; background: transparent; padding: .2rem .6rem; cursor: pointer; font-size: .9rem; }
.accessibility-tools button:hover, .accessibility-tools button[aria-pressed="true"] { color: #000; background: var(--focus); border-color: var(--focus); }
.text-size-button--large { font-size: 1.05rem!important; font-weight: 700; }
.brand-row { min-height: 9rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding-block: 1.4rem; }
.bip-mark { display: block; text-decoration: none; }
.bip-symbol { width: 5.6rem; aspect-ratio: 1.05; display: grid; place-items: center; color: #111; background: #fff; border: .42rem solid #111; box-shadow: inset 1.05rem 0 0 var(--red-700); font: 900 1.65rem/1 Arial, sans-serif; letter-spacing: .08em; padding-left: .55rem; }
.bip-logo { display: block; width: 7rem; max-width: 100%; height: auto; object-fit: contain; }
.site-brand { min-width: 0; color: var(--navy-950); text-decoration: none; max-width: 45rem; overflow-wrap: anywhere; }
.site-brand__eyebrow { display: block; color: var(--red-700); font-size: .82rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.site-brand__name { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.45rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.14; margin-top: .3rem; }
.menu-toggle { display: none; min-height: 2.8rem; border: 2px solid var(--navy-900); border-radius: var(--radius); color: var(--navy-900); background: #fff; padding: .45rem .9rem; font-weight: 700; cursor: pointer; }
.search-band { background: var(--navy-900); border-top: .28rem solid var(--gold-500); }
.site-search { display: grid; grid-template-columns: auto minmax(12rem, 34rem); justify-content: end; align-items: center; gap: 1rem; min-height: 5rem; }
.site-search label { color: #fff; font-weight: 700; }
.search-field { display: grid; grid-template-columns: 1fr auto; }
.search-field input { min-width: 0; min-height: 3rem; border: 2px solid #fff; border-radius: .25rem 0 0 .25rem; padding: .55rem .8rem; background: #fff; }
.search-field button { min-height: 3rem; border: 2px solid var(--gold-500); border-radius: 0 .25rem .25rem 0; padding: .5rem 1.1rem; color: #111; background: var(--gold-500); font-weight: 800; cursor: pointer; }
.search-field button:hover { background: #e3b342; }

.layout { display: grid; grid-template-columns: minmax(15.5rem, 18rem) minmax(0, 1fr); gap: 3rem; align-items: start; padding-block: 2rem 4.5rem; }
.side-nav { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-nav section + section { border-top: 1px solid var(--line); }
.side-nav h2 { margin: 0; padding: 1rem 1.15rem; color: #fff; background: var(--navy-900); font-size: 1rem; line-height: 1.35; }
.side-nav ul { list-style: none; padding: .5rem 0; margin: 0; }
.side-nav li { margin: 0; }
.side-nav a { display: block; position: relative; color: var(--ink); padding: .7rem 1.8rem .7rem 1.15rem; text-decoration: none; border-left: .28rem solid transparent; font-weight: 600; line-height: 1.4; }
.side-nav a::after { content: '›'; position: absolute; right: 1rem; color: var(--blue-700); font-size: 1.25rem; line-height: 1; }
.side-nav a:hover { background: var(--blue-050); border-left-color: var(--gold-500); }
.side-nav a[aria-current="page"] { color: var(--navy-950); background: var(--blue-100); border-left-color: var(--red-700); font-weight: 800; }
.side-nav__extra h2 { background: var(--navy-800); }
.main-content { min-width: 0; }
.breadcrumbs { margin-bottom: 1.6rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem .65rem; list-style: none; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: .65rem; color: #7c8995; }
.breadcrumbs a { color: inherit; }

.page-heading { margin-bottom: 2rem; padding-bottom: 1.6rem; border-bottom: 3px solid var(--navy-900); }
.page-heading--home { position: relative; padding: 1.65rem 2rem 1.85rem; color: #fff; background: var(--navy-900); border-bottom: .35rem solid var(--gold-500); box-shadow: var(--shadow); }
.page-heading h1, .article-detail h1 { margin: .1rem 0 .65rem; color: var(--navy-950); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.13; letter-spacing: -.02em; overflow-wrap: anywhere; }
.page-heading--home h1 { color: #fff; }
.page-heading p { max-width: 48rem; margin: .45rem 0 0; font-size: 1.05rem; }
.eyebrow { margin: 0 0 .25rem!important; color: var(--red-700); font-size: .8rem!important; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.page-heading--home .eyebrow { color: #ffdc82; }

.article-list { display: grid; gap: 1rem; }
.article-card { padding: 1.45rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-left: .3rem solid var(--gold-500); box-shadow: 0 7px 20px rgba(7,26,45,.045); }
.article-card__meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; align-items: center; color: var(--muted); font-size: .88rem; }
.category-label { display: inline-flex; width: fit-content; color: var(--blue-700); background: var(--blue-050); border: 1px solid #b8d2e4; border-radius: 10rem; padding: .2rem .65rem; font-size: .8rem; font-weight: 800; text-decoration: none; }
.article-card h2 { margin: .65rem 0 .35rem; color: var(--navy-950); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.25; }
.article-card h2 a { color: inherit; text-decoration: none; }
.article-card h2 a:hover { color: var(--blue-700); text-decoration: underline; }
.article-card p { margin: .35rem 0 .75rem; }
.read-more { font-weight: 800; }
.read-more span { margin-left: .2rem; }
.empty-state { padding: clamp(1.5rem, 5vw, 3.5rem); text-align: center; background: var(--surface); border: 1px dashed #91a1b0; }
.empty-state h1, .empty-state h2 { color: var(--navy-950); font-family: Georgia, 'Times New Roman', serif; }
.error-code { margin: 0; color: var(--red-700); font-size: 4rem; font-weight: 900; line-height: 1; }
.button-link { display: inline-block; color: #fff; background: var(--navy-900); padding: .65rem 1rem; font-weight: 800; text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; margin-top: 2rem; }
.pagination a { min-height: 2.75rem; display: inline-flex; align-items: center; color: #fff; background: var(--navy-900); border-radius: .25rem; padding: .4rem 1rem; font-weight: 700; text-decoration: none; }

.article-detail > header { margin-bottom: 2rem; padding-bottom: 1.7rem; border-bottom: 3px solid var(--navy-900); }
.article-detail > header .category-label { margin-bottom: .8rem; }
.article-lead { max-width: 50rem; margin: .7rem 0; color: #314252; font-size: 1.18rem; line-height: 1.55; }
.article-date { color: var(--muted); font-size: .9rem; }
.prose { max-width: 54rem; font-size: 1.04rem; overflow-wrap: anywhere; }
.prose h2, .prose h3, .prose h4 { color: var(--navy-950); font-family: Georgia, 'Times New Roman', serif; line-height: 1.25; margin: 1.8em 0 .55em; }
.prose h2 { font-size: 1.75rem; }
.prose h3 { font-size: 1.4rem; }
.prose h4 { font-size: 1.18rem; }
.prose del { text-decoration-thickness: .12em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin-block: 0 1.2rem; }
.prose blockquote { margin-left: 0; padding: .5rem 1.2rem; border-left: .3rem solid var(--gold-500); background: var(--blue-050); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .65rem; text-align: left; vertical-align: top; }
.prose th { color: #fff; background: var(--navy-900); }
.attachments, .bip-metadata, .change-register, .contact-card { margin-top: 2.4rem; padding: 1.35rem 1.5rem; background: var(--surface); border: 1px solid var(--line); }
.attachments h2, .bip-metadata h2, .contact-card h2 { margin: 0 0 1rem; color: var(--navy-950); font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; }
.attachments ul { list-style: none; padding: 0; margin: 0; }
.attachments li + li { border-top: 1px solid var(--line); }
.attachments a { display: flex; align-items: center; gap: 1rem; padding: .85rem 0; text-decoration: none; }
.attachments a:hover strong { text-decoration: underline; }
.attachments a span span, .attachments small { display: block; color: var(--muted); font-weight: 400; }
.file-type { flex: 0 0 3.7rem; padding: .55rem .3rem; color: #fff!important; background: var(--red-700); text-align: center; font-size: .72rem; font-weight: 900!important; }
.bip-metadata { border-top: .3rem solid var(--navy-900); }
.bip-metadata dl { margin: 0; }
.bip-metadata dl div { display: grid; grid-template-columns: minmax(12rem, 38%) 1fr; gap: 1rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.bip-metadata dt { color: var(--muted); font-weight: 600; }
.bip-metadata dd { margin: 0; font-weight: 700; }
.change-register summary { color: var(--navy-950); font-weight: 800; cursor: pointer; }
.change-register ol { margin-bottom: 0; padding-left: 1.4rem; }
.change-register li + li { margin-top: .55rem; }
.article-actions { margin-top: 1rem; text-align: right; }
.article-actions button { min-height: 2.75rem; border: 2px solid var(--navy-900); border-radius: .25rem; color: var(--navy-900); background: #fff; padding: .45rem 1rem; font-weight: 800; cursor: pointer; }
.contact-card address { font-style: normal; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.change-table { width: 100%; min-width: 42rem; border-collapse: collapse; }
.change-table caption { padding: .8rem; font-weight: 700; text-align: left; }
.change-table th { color: #fff; background: var(--navy-900); text-align: left; }
.change-table th, .change-table td { padding: .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.change-table td small { display: block; color: var(--muted); }
.sitemap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sitemap-grid section { padding: 1.25rem; background: #fff; border: 1px solid var(--line); }
.sitemap-grid section:last-child { grid-column: 1 / -1; }
.sitemap-grid h2 { margin-top: 0; font-family: Georgia, 'Times New Roman', serif; }

.site-footer { color: #fff; background: var(--navy-950); border-top: .4rem solid var(--gold-500); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr .7fr; gap: 2.5rem; padding-block: 2.8rem; }
.site-footer h2 { margin: 0 0 .7rem; color: #fff; font-size: 1.05rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-top: 1px solid rgba(255,255,255,.25); font-size: .9rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 54rem) {
    .utility-inner { align-items: flex-start; padding-block: .55rem; }
    .brand-row { min-height: 7.5rem; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; }
    .bip-symbol { width: 4.2rem; border-width: .32rem; box-shadow: inset .8rem 0 0 var(--red-700); font-size: 1.25rem; }
    .bip-logo { width: 5.4rem; }
    .site-brand__name br { display: none; }
    .menu-toggle { grid-column: 1 / -1; width: 100%; }
    .js .menu-toggle { display: block; }
    .site-search { grid-template-columns: 1fr; gap: .35rem; padding-block: .8rem; }
    .layout { grid-template-columns: 1fr; gap: 1.4rem; padding-top: 1.25rem; }
    .side-nav { position: static; }
    .js .side-nav:not(.is-open) { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid section:last-child { grid-column: 1 / -1; }
}

@media (max-width: 38rem) {
    .container { width: min(calc(100% - 1.25rem), var(--content)); }
    .utility-inner { display: flex; flex-direction: column; gap: .45rem; }
    .accessibility-tools { width: 100%; }
    .accessibility-tools button { flex: 1 1 auto; }
    .site-brand__eyebrow { font-size: .7rem; }
    .site-brand__name { font-size: 1.28rem; }
    .search-field { grid-template-columns: 1fr; gap: .4rem; }
    .search-field input, .search-field button { width: 100%; border-radius: .25rem; }
    .page-heading--home { padding: 1.25rem; }
    .article-card { padding: 1.15rem; }
    .attachments, .bip-metadata, .change-register, .contact-card { padding: 1.1rem; }
    .attachments a { align-items: flex-start; gap: .7rem; }
    .bip-metadata dl div { grid-template-columns: 1fr; gap: .1rem; }
    .sitemap-grid, .footer-grid { grid-template-columns: 1fr; }
    .sitemap-grid section:last-child, .footer-grid section:last-child { grid-column: auto; }
    .footer-bottom { display: block; }
    .footer-bottom p { margin-bottom: .5rem; }
}

@media (max-width: 28rem) {
    .brand-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .menu-toggle { grid-column: 1; }
    .site-brand { justify-self: stretch; }
    .site-brand__name { font-size: 1.2rem; }
    .page-heading h1, .article-detail h1 { font-size: 1.75rem; }
}

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

@media print {
    .utility-bar, .search-band, .side-nav, .breadcrumbs, .article-actions, .site-footer, .menu-toggle { display: none!important; }
    body { color: #000; background: #fff; font-size: 11pt; }
    .brand-row { min-height: auto; padding-block: .5rem; }
    .layout { display: block; padding: 0; }
    .article-detail { max-width: none; }
    a { color: #000; text-decoration: underline; }
    .attachments, .bip-metadata, .change-register { break-inside: avoid; box-shadow: none; }
}
