/* KCEMSS — accessible site styles. Target: WCAG 2.1 AA.
   Brand colors sampled from the KCEMSS logo. Contrast on white:
   navy #183E6E = 10.9:1, red #B01B2A = 6.9:1, body #1F2328 = 15.8:1, muted #4A5260 = 7.9:1 */
:root {
  --navy: #183E6E;
  --navy-dark: #0F2A4D;
  --red: #B01B2A;
  --ink: #1F2328;
  --muted: #4A5260;
  --line: #D5DAE1;
  --bg: #FFFFFF;
  --bg-alt: #F3F5F8;
  --focus: #FFDD00;
  --focus-ink: #0B0C0C;
  --max: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: "Oswald", "Arial Narrow", Arial, sans-serif; color: var(--navy); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; letter-spacing: .01em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.3rem; margin: 1.75rem 0 .5rem; }
h4 { font-size: 1.1rem; margin: 1.25rem 0 .4rem; }
p, ul, ol, table { margin: 0 0 1rem; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: .15em; }
a:hover { color: var(--red); text-decoration-thickness: 2px; }

/* Focus: high-visibility yellow with dark underline — visible on every background */
a:focus-visible, button:focus-visible, iframe:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid transparent;
  background: var(--focus) !important; color: var(--focus-ink) !important;
  box-shadow: 0 -2px var(--focus), 0 4px var(--focus-ink);
  text-decoration: none;
}
.map-wrap { border-radius: 6px; }
.map-wrap:focus-within { outline: 4px solid var(--focus-ink); outline-offset: 2px; box-shadow: 0 0 0 8px var(--focus); }
a.imglink:focus-visible { box-shadow: 0 0 0 4px var(--focus), 0 0 0 7px var(--focus-ink); }

.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--focus); color: var(--focus-ink); padding: .75rem 1rem; font-weight: 700;
}
.skip-link:focus { top: .5rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* Utility bar */
.utility { background: #222; color: #fff; font-size: .95rem; }
.utility .wrap { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: center; padding-block: .4rem; }
.utility a { color: #fff; }

/* Header */
.site-header { background: var(--bg); border-bottom: 4px solid var(--red); }
.site-header .brand-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { width: 72px; height: auto; }
.brand span { font-family: "Oswald", Arial, sans-serif; font-weight: 600; font-size: 1.15rem; line-height: 1.15; max-width: 16rem; }
.menu-toggle {
  display: none; align-items: center; gap: .5rem;
  font: inherit; font-weight: 700; color: #fff; background: var(--navy);
  border: 0; border-radius: 4px; padding: .6rem .9rem; cursor: pointer; min-height: 44px;
}
.menu-toggle svg { width: 20px; height: 20px; }

/* Primary navigation */
.primary-nav { background: var(--navy); }
.primary-nav > ul { list-style: none; margin: 0 auto; padding: 0 1rem; max-width: var(--max); display: flex; flex-wrap: wrap; }
.primary-nav li { position: relative; margin: 0; }
.primary-nav a, .primary-nav .sub-toggle {
  display: flex; align-items: center; gap: .35rem; min-height: 44px; padding: .55rem .75rem;
  color: #fff; text-decoration: none; font: inherit; font-weight: 600; font-size: 1rem;
  background: none; border: 0; cursor: pointer;
}
.primary-nav a:hover, .primary-nav .sub-toggle:hover { background: var(--navy-dark); text-decoration: underline; color: #fff; }
.primary-nav a[aria-current="page"] { background: var(--navy-dark); box-shadow: inset 0 -4px 0 #fff; }
.sub-toggle .chev { width: 12px; height: 12px; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.primary-nav .submenu { list-style: none; margin: 0; padding: .25rem 0; background: var(--navy-dark); min-width: 19rem; display: none; }
.primary-nav .submenu.open { display: block; position: absolute; top: 100%; left: 0; z-index: 50; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.primary-nav .submenu a { font-weight: 400; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav[data-collapsed="true"] { display: none; }
  .primary-nav > ul { flex-direction: column; padding: .25rem 0; }
  .primary-nav a, .primary-nav .sub-toggle { width: 100%; padding-inline: 1rem; }
  .primary-nav .submenu.open { position: static; box-shadow: none; }
  .primary-nav .submenu a { padding-left: 2rem; }
  .brand span { font-size: 1rem; }
}

/* Hero */
.hero { position: relative; background: var(--navy-dark); color: #fff; }
.hero img { width: 100%; height: clamp(220px, 38vw, 440px); object-fit: cover; opacity: .35; }
.hero .hero-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1rem; }
.hero h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 5vw, 3.4rem); text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.hero h1 small { display: block; font-size: .55em; font-weight: 400; letter-spacing: .08em; }

/* Main */
main { padding: 0 0 3rem; }
main > .wrap { padding-top: 1.5rem; }
main:focus { outline: none; }
.page-title { border-bottom: 2px solid var(--line); padding-bottom: .5rem; }
.lede { font-size: 1.15rem; }
.card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem; margin-bottom: 1.25rem; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.two-col { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .two-col { grid-template-columns: 16rem minmax(0, 1fr); } }
.note { color: var(--muted); }
.callout { border-left: 5px solid var(--red); background: var(--bg-alt); padding: .9rem 1.1rem; margin: 1rem 0; }
hr { border: 0; border-top: 2px solid var(--line); margin: 2rem 0; }

.btn {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
  padding: .75rem 1.25rem; border-radius: 4px; min-height: 44px;
}
.btn:hover { background: #8E1522; color: #fff; text-decoration: underline; }
.btn-secondary { background: var(--navy); }
.btn-secondary:hover { background: var(--navy-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0; }

.doc-list { list-style: none; padding: 0; }
.doc-list li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.doc-list .meta { color: var(--muted); font-size: .95rem; }

.agency-list { padding-left: 1.25rem; }
.agency-list li { margin-bottom: .4rem; }

.meetings { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.meetings > li { background: var(--bg-alt); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 6px; padding: 1rem; }
.meetings h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
.meetings p { margin: 0 0 .5rem; }

.staff-grid { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.staff-grid li { border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }
.staff-grid a { font-weight: 700; font-size: 1.1rem; }
.staff-photo { border-radius: 6px; max-width: 16rem; width: 100%; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 1rem; }
.table-wrap:focus-visible { outline: 3px solid var(--focus-ink); box-shadow: 0 0 0 6px var(--focus); }
table.rates { border-collapse: collapse; width: 100%; min-width: 34rem; font-variant-numeric: tabular-nums; }
.rates caption { text-align: left; font-weight: 700; padding: .75rem; color: var(--navy); font-size: 1.1rem; }
.rates th, .rates td { padding: .45rem .75rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rates thead th { background: var(--navy); color: #fff; }
.rates tbody th[scope="rowgroup"] { background: var(--bg-alt); color: var(--navy); font-family: "Oswald", Arial, sans-serif; }
.rates td.num { text-align: right; white-space: nowrap; }

.map-frame { width: 100%; height: 320px; border: 1px solid var(--line); border-radius: 6px; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: .35rem; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #fff; padding: 2rem 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin: 0 0 .5rem; }
.site-footer p, .site-footer ul { margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.3); padding-top: 1rem; font-size: .95rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .utility, .primary-nav, .menu-toggle, .skip-link, .site-footer, .hero img { display: none !important; }
  a { color: #000; }
}
