:root {
  color-scheme: light;
  --ink: #18313b;
  --muted: #53666d;
  --blue: #176c7a;
  --blue-dark: #10515d;
  --coral: #c94d3d;
  --paper: #f5f7f5;
  --line: #dce5e1;
  --white: #fff;
}

* { box-sizing: border-box; }

body.site-enhanced {
  margin: 0;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
}

.site-enhanced a { color: var(--blue-dark); }
.site-enhanced a:focus-visible { outline: 3px solid #e5a53a; outline-offset: 3px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .site-main, .footer-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink) !important; text-decoration: none; }
.brand img { width: 76px; height: auto; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 19px; letter-spacing: .04em; }
.brand-copy span { margin-top: 5px; color: var(--muted); font-size: 12px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 20px; }
.main-nav a { color: var(--ink) !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--coral) !important; }
.main-nav .nav-cta { padding: 10px 16px; border-radius: 3px; background: var(--blue); color: var(--white) !important; }
.main-nav .nav-cta:hover { background: var(--blue-dark); }
.site-main { min-height: 65vh; padding: 42px 0 64px; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-intro h1 { max-width: 780px; margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 500; line-height: 1.08; }
.page-intro p { max-width: 730px; margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.legacy-content { display: block; margin-top: 28px; }
.legacy-panel { min-width: 0; margin: 0; padding: 0; overflow-wrap: anywhere; border: 0; background: transparent; }
.legacy-panel.legacy-item-title { margin: 18px 0 2px; font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 700; line-height: 1.35; }
.legacy-panel.legacy-documents { margin: 0 0 9px 12px; padding-left: 12px; border-left: 2px solid var(--blue); }
.legacy-panel.legacy-documents a { font-size: 13px; font-weight: 700; text-decoration: none; }
.legacy-panel.legacy-image { margin: 0 0 16px; }
.legacy-panel font { color: inherit !important; font-family: inherit !important; font-size: inherit !important; }
.legacy-panel img { display: block; max-width: 100% !important; height: auto !important; margin: 4px auto; }
.legacy-panel table { width: 100% !important; max-width: 100%; border-collapse: collapse; }
.legacy-panel table, .legacy-panel tbody, .legacy-panel tr, .legacy-panel td { border: 0 !important; background: transparent !important; }
.legacy-panel td { padding: 3px 8px; }
.legacy-panel form { width: 100%; }
.legacy-panel input, .legacy-panel select, .legacy-panel textarea { max-width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #aebdb7; border-radius: 2px; background: #fff; color: var(--ink); font: inherit; }
.legacy-panel input[type="submit"], .legacy-panel input[type="reset"] { min-width: 100px; border: 0; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; }
.legacy-panel p { max-width: 75ch; }
.site-footer { padding: 24px 0; background: #17343d; color: #edf4f0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 13px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #fff; }
.home-gate { max-width: 780px; margin: 34px auto; padding: 28px; border-left: 4px solid var(--coral); background: var(--white); }
.home-gate p { color: var(--muted); }
.home-gate font { color: inherit !important; font-family: inherit !important; font-size: inherit !important; }
.entry-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.entry-links a { display: inline-flex; min-height: 46px; align-items: center; padding: 10px 16px; border: 1px solid var(--blue); border-radius: 3px; font-weight: 800; text-decoration: none; }
.entry-links a:first-child { background: var(--blue); color: #fff; }

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding: 16px 0; }
  .main-nav { justify-content: flex-start; gap: 10px 16px; }
  .site-main { padding: 32px 0 48px; }
  .page-intro { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-intro h1 { font-size: 38px; }
  .legacy-content { margin-top: 24px; }
}

@media (max-width: 460px) {
  .header-inner, .site-main, .footer-inner { width: min(100% - 28px, 1120px); }
  .brand img { width: 62px; }
  .brand-copy strong { font-size: 17px; }
  .main-nav { gap: 8px 13px; }
  .main-nav a { font-size: 13px; }
  .page-intro h1 { font-size: 34px; }
  .legacy-panel.legacy-item-title { font-size: 18px; }
  .legacy-panel table, .legacy-panel tbody, .legacy-panel tr, .legacy-panel td { display: block; width: 100% !important; }
}