:root {
  --ink: #202932;
  --muted: #66727d;
  --blue: #164f7c;
  --blue-dark: #0c3555;
  --blue-soft: #eaf3f8;
  --line: #cbd7df;
  --paper: #fff;
  --shadow: 0 14px 38px rgba(19, 47, 68, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #dfe8ed url('/assets/bottom-bg.png') repeat-x bottom; font: 15px/1.55 Arial, Helvetica, sans-serif; }
a { color: #075c97; text-underline-offset: 2px; }
a:hover { color: #9c3c18; }
img { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .7rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.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; }
.site-shell { width: min(980px, calc(100% - 24px)); margin: 18px auto; background: rgba(255,255,255,.96); box-shadow: var(--shadow); border: 1px solid #bdcbd4; }
.site-header { position: relative; min-height: 132px; padding: 18px 20px 0; background: #fff url('/assets/head-bg-tabs.png') repeat-x bottom; }
.brand { display: block; width: 100%; }
.brand img { display: block; width: 100%; max-height: none; object-fit: contain; object-position: left center; image-rendering: auto; }
.site-header nav { margin: 14px -20px 0; background: linear-gradient(#24658f, #123f61); border-top: 1px solid #0e3553; border-bottom: 1px solid #092a42; }
.site-header ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-header li { margin: 0; }
.site-header nav a { display: block; padding: 10px 17px; color: #fff; text-decoration: none; font-weight: bold; border-right: 1px solid rgba(255,255,255,.16); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: rgba(255,255,255,.17); }
.menu-toggle { display: none; position: absolute; right: 18px; top: 30px; padding: .6rem .8rem; border: 1px solid var(--blue); border-radius: 4px; background: #fff; color: var(--blue); font-weight: bold; }
.breadcrumbs { padding: 10px 24px; color: var(--muted); font-size: .9rem; background: #f4f7f9; border-bottom: 1px solid var(--line); }
.breadcrumbs a { text-decoration: none; }
.crumb-separator { margin: 0 .55rem; color: #95a2ab; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; padding: 24px; }
.content-card { min-width: 0; }
.content-card.standalone { min-height: 520px; padding: 28px; }
.page-title, .content-card > h1 { margin: 0 0 20px; color: var(--blue-dark); font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.15; border-bottom: 3px solid #d8e8f1; padding-bottom: 10px; }
.legacy-content { overflow-wrap: anywhere; }
.legacy-content table { max-width: 100%; }
.legacy-content td, .legacy-content th { vertical-align: top; }
.legacy-content img[align="left"], .legacy-content img[style*="float: left"] { margin: 5px 14px 10px 0 !important; }
.legacy-content img[align="right"], .legacy-content img[style*="float: right"] { margin: 5px 0 10px 14px !important; }
.legacy-content [data-missing-asset="true"] { display: none; }
.legacy-content h2, .legacy-content h3, .legacy-content h4 { color: var(--blue-dark); line-height: 1.25; }
.legacy-content .tableblue { width: 100%; }
.sidebar { min-width: 0; }
.side-module { margin: 0 0 18px; padding: 15px; background: linear-gradient(135deg, #f3f8fb, #e5f0f6); border: 1px solid #c5d7e2; border-radius: 4px; }
.side-module h2 { margin: 0 0 10px; color: var(--blue-dark); font-size: 1.05rem; }
.side-module ul { margin: 0; padding-left: 18px; }
.search-row { display: flex; gap: 7px; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; padding: .65rem .7rem; border: 1px solid #9fadb7; border-radius: 3px; background: #fff; }
input:focus, textarea:focus, button:focus, a:focus { outline: 3px solid rgba(28, 122, 183, .28); outline-offset: 2px; }
button, .button-link { display: inline-block; padding: .65rem 1rem; border: 1px solid var(--blue-dark); border-radius: 3px; background: var(--blue); color: #fff; font-weight: bold; text-decoration: none; cursor: pointer; }
button:hover, .button-link:hover { background: var(--blue-dark); color: #fff; }
.button-link.secondary { background: #fff; color: var(--blue); }
.site-footer { padding: 22px; background: #173e58; color: #e7f0f5; text-align: center; font-size: .88rem; }
.site-footer a { color: #fff; margin: 0 .65rem; }
.site-footer p { margin: .45rem 0; }
.contact-form-card, .map-card { clear: both; margin-top: 28px; padding: 20px; background: #f5f8fa; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-grid label { display: grid; gap: 5px; font-weight: bold; }
.form-wide { grid-column: 1 / -1; }
.honeypot { position: absolute !important; left: -9999px; }
.form-status { min-height: 1.5em; }
.map-card iframe { width: 100%; height: 340px; border: 1px solid var(--line); }
.search-page-form { max-width: 650px; }
.search-page-form > label { display: block; margin-bottom: 7px; font-weight: bold; }
.search-result { padding: 17px 0; border-top: 1px solid var(--line); }
.search-result h2 { margin: 0 0 5px; font-size: 1.2rem; }
.search-result p { margin: 0; color: #4e5b65; }
.error-page { width: min(620px, calc(100% - 32px)); margin: 10vh auto; padding: 38px; text-align: center; background: #fff; box-shadow: var(--shadow); }

@media (max-width: 760px) {
  .site-shell { width: 100%; margin: 0; border: 0; }
  .site-header { min-height: 104px; padding: 14px 16px 0; }
  .brand img { width: 100%; }
  .menu-toggle { display: block; }
  .site-header nav { margin: 10px -16px 0; }
  .site-header ul { display: none; flex-direction: column; }
  .site-header ul.is-open { display: flex; }
  .site-header nav a { border-right: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .page-layout { grid-template-columns: 1fr; padding: 18px 16px; }
  .sidebar { display: grid; gap: 12px; }
  .side-module { margin: 0; }
  .legacy-content table, .legacy-content tbody, .legacy-content tr, .legacy-content td { max-width: 100%; }
  .legacy-content img[align], .legacy-content img[style*="float"] { float: none !important; display: block; margin: 10px auto !important; }
  .form-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header nav, .menu-toggle, .sidebar, .breadcrumbs, .site-footer { display: none; }
  .site-shell { width: 100%; margin: 0; border: 0; box-shadow: none; }
  .page-layout { display: block; padding: 0; }
}
