:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #10254a;
  background: #f4f7fc;
}

@font-face {
  font-family: "IM Fell English";
  src: url("assets/fonts/im-fell-english-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IM Fell English";
  src: url("assets/fonts/im-fell-english-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #f4f7fc 0%, #ffffff 70%); }
.site-shell { position: relative; isolation: isolate; width: min(68rem, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 4rem; }
.page-content { max-width: 52rem; }
.masthead { position: relative; height: clamp(9rem, 22vw, 15rem); margin: -3rem 0 2.2rem; overflow: hidden; border-radius: 0 0 1.25rem 1.25rem; background: #0b367c; box-shadow: 0 .7rem 1.5rem rgba(16, 37, 74, .16); }
.masthead img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.site-wordmark { position: absolute; top: 20%; left: calc(20% + 2.25ch); margin: 0; color: #fff; font-family: inherit; font-size: clamp(2rem, 6vw, 4.5rem); font-style: normal; font-weight: 850; line-height: 1; text-align: center; -webkit-text-stroke: 5px #10254a; paint-order: stroke fill; text-shadow: 0 .16rem 0 #10254a, 0 .32rem .5rem rgba(16, 37, 74, .55); transform: translate(-50%, -50%); white-space: nowrap; }
header { max-width: 48rem; }
.page-header { margin: 3rem 0 2.2rem; }
.eyebrow { margin: 0 0 .6rem; color: #b22940; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: none; margin: 0; font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 850; line-height: .96; letter-spacing: -.05em; white-space: nowrap; }
.page-header h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.lede { max-width: 42rem; margin: 1.35rem 0 0; color: #465775; font-size: 1.08rem; line-height: 1.65; }
.privacy-reassurance { margin-bottom: 1.35rem; }
.page-header .lede { margin-top: 1rem; color: #5c6d89; font-size: 1rem; }
.search-card { max-width: 52rem; padding: 1.3rem; border: 1px solid #c5d1e3; border-top: .35rem solid #173f7a; border-radius: .9rem; background: #fff; box-shadow: 0 .9rem 2.2rem rgba(16, 37, 74, .1); }
.fields { display: grid; grid-template-columns: 2fr 1.45fr .7fr 1fr; gap: .8rem; }
label { display: grid; gap: .35rem; color: #263e69; font-size: .9rem; font-weight: 750; }
input { width: 100%; min-height: 3rem; padding: .7rem .8rem; border: 2px solid #8499b8; border-radius: .55rem; color: #10254a; background: #fff; font: inherit; }
input:focus { outline: 3px solid #b22940; outline-offset: 2px; border-color: #173f7a; }
.submit-row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
button { min-height: 3.1rem; padding: .75rem 1.2rem; border: 0; border-radius: .55rem; color: #fff; background: #173f7a; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 .3rem .7rem rgba(23, 63, 122, .2); }
button:hover { background: #102f62; }
button:disabled { cursor: wait; opacity: .65; }
#status { min-height: 1.4rem; margin: 0; color: #98263c; font-weight: 700; line-height: 1.4; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.7rem 0 1rem; }
h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; }
.results-note { margin: 0; color: #5c6d89; font-size: .9rem; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.location-card { padding: 1.2rem; border-top: .35rem solid #b22940; background: #fff; box-shadow: 0 .35rem 1.2rem rgba(16, 37, 74, .08); }
h3 { margin: 0 0 .7rem; font-size: 1.05rem; }
address { margin: 0 0 .8rem; color: #4b5c78; font-style: normal; line-height: 1.55; white-space: pre-line; }
.location-meta { margin: .45rem 0 0; color: #4b5c78; font-size: .9rem; line-height: 1.45; }
.location-meta strong { color: #23457e; }
.official-badge { display: inline-block; margin: .9rem 0 0; padding: .25rem .5rem; border-radius: 999px; color: #173f7a; background: #e1ebfa; font-size: .78rem; font-weight: 800; }
.fallback { margin-top: 1.2rem; padding: 1rem 1.1rem; border: 1px solid #d6ad32; background: #fff8dc; line-height: 1.5; }
.fallback p { margin: 0; }
.fallback p + p { margin-top: .75rem; }
.fallback a { color: #98263c; font-weight: 800; }
.back-link { color: #23457e; font-size: .9rem; font-weight: 750; }
.content-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #c5d1e3; }
.content-section h2 { margin-bottom: .7rem; font-size: 1.35rem; }
p { color: #465775; line-height: 1.65; }
a { color: #1d4f91; }
footer { max-width: 52rem; margin-top: 3rem; color: #5c6d89; font-size: .9rem; line-height: 1.55; }
.privacy-page footer { padding-top: 1.5rem; border-top: 1px solid #c5d1e3; }
.privacy-note { margin: 1.2rem 0 0; color: #71809a; font-size: .78rem; font-style: italic; line-height: 1.5; }
.privacy-note a { color: inherit; font-weight: 700; }
.copyright { margin: 1.2rem 0 0; color: #71809a; font-size: .75rem; text-align: center; }

@media (max-width: 48rem) {
  .fields { grid-template-columns: 1fr 1fr; }
  .fields label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 34rem) {
  .site-shell { padding-top: 2rem; }
  .masthead { margin-top: -2rem; }
  .site-wordmark { font-size: clamp(1.8rem, 9vw, 3rem); }
  h1 { white-space: normal; }
  .fields { grid-template-columns: 1fr; }
  .fields label:first-child { grid-column: auto; }
  .submit-row { align-items: stretch; flex-direction: column; }
  button { width: 100%; }
  .results-heading { align-items: flex-start; flex-direction: column; }
}
