@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Archivo+Narrow:wght@600;700&display=swap');

:root {
    color-scheme: light;
    font: 100%/1.55 Inter, Arial, sans-serif;
    --navy: #102b44;
    --deep: #0b2237;
    --ink: #182b3d;
    --muted: #44586a;
    --paper: #fff;
    --surface: #f2f5f7;
    --line: #d7e0e7;
    --blue: #00539f;
    --amber: #ffba62;
    --error: #a02a22;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: #004a8e; text-underline-offset: .19em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #00539f; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.skip-link { position: absolute; top: .75rem; left: .75rem; z-index: 2; padding: .75rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.masthead { background: var(--paper); }
.masthead-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead-inner { min-height: 4.5rem; }
.brand { border-left: 4px solid #d77400; padding-left: .7rem; color: var(--deep); line-height: 1.1; text-decoration: none; }
.brand strong, .brand span { display: block; }
.brand strong { font: 700 1.45rem/1.05 'Archivo Narrow', Arial, sans-serif; }
.brand span { margin-top: .2rem; font-size: .78rem; }
.masthead-link { font-weight: 600; font-size: .9rem; text-align: right; }

.masthead-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

    .masthead-brand > .brand {
        display: block;
    }

.hero { background: var(--navy); color: #fff; padding: clamp(2rem, 5vw, 3.75rem) 0; }
.hero.compact { padding: 2rem 0; }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
h1, h2 { font-family: 'Archivo Narrow', Arial, sans-serif; font-weight: 700; line-height: 1.05; }
h1 { font-size: clamp(2.25rem, 5.6vw, 4.5rem); }
h2 { font-size: 1.85rem; }
.hero p { color: #e1ebf4; margin-top: .9rem; max-width: 48rem; }
.back-link { display: inline-block; margin-bottom: .85rem; color: #fff; }
.hero :focus-visible { outline-color: var(--amber); }
.page-body { padding-block: clamp(1.4rem, 3.8vw, 2.75rem); }
.search-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.panel, .search-help { background: var(--paper); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1.2rem, 3.2vw, 2.15rem); }
.panel h1 { margin-bottom: .75rem; }
.panel > p + p { margin-top: .6rem; }
.panel > p + .button { margin-top: 1.25rem; }
.search-panel { box-shadow: 0 5px 18px rgb(16 43 68 / 5%); }
.search-help { background: #fff9ef; border-color: #f0d9b9; border-top: 4px solid #da7900; }
.search-help h2 { font-size: 1.55rem; }
.search-help p { margin-top: .6rem; color: #513c27; }
form { margin-top: 1.25rem; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .field > label { padding: 0; font-weight: 700; }
.choice-group { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .55rem; }
.choice { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid #a9bac9; border-radius: .45rem; min-height: 2.85rem; padding: .55rem .85rem; font-weight: 600; cursor: pointer; }
.choice:has(:checked) { border-color: var(--blue); background: #eaf3fd; color: #073a67; }
.choice input { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.field { display: grid; gap: .4rem; margin-top: 1.15rem; }
.field input { width: 100%; min-width: 0; min-height: 2.9rem; border: 1px solid #93a6b8; border-radius: .4rem; padding: .55rem .7rem; font: inherit; color: var(--ink); background: #fff; }
.field input::placeholder { color: #546678; }
.field small, .result-list small { color: var(--muted); font-size: .86rem; }
.field [aria-invalid="true"] { border: 2px solid var(--error); }
.field-error { color: var(--error); font-size: .9rem; font-weight: 600; }
.field-validation-valid, .validation-summary-valid { display: none; }
.validation-summary-errors { margin-bottom: 1rem; color: var(--error); border-left: 4px solid var(--error); padding: .6rem .8rem; background: #fff5f3; }
.validation-summary ul { margin: 0; padding-left: 1.2rem; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .55rem .95rem; border: 1px solid transparent; border-radius: .4rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: #00417d; }
.button.secondary { color: #004a8e; background: #fff; border-color: #9cb2c7; }
.button.secondary:hover { background: #eaf3fd; }
.button:disabled { cursor: wait; opacity: .7; }
.progress { margin-top: .65rem; color: var(--muted); }
.results { scroll-margin-top: 1rem; }
.search-layout + .results { margin-top: 1.5rem; }
.results h2 + p, .results h2 + .notice { margin-top: .65rem; }
.notice { border-radius: .45rem; padding: .85rem 1rem; color: #23475f; background: #e8f1f7; }
.notice.error { color: #7e211d; background: #fff1ef; border: 1px solid #ecc3be; }
.notice small { display: block; margin-top: .4rem; }
.result-list { margin: 1.1rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.result-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.result-list li > div { min-width: 0; overflow-wrap: anywhere; }
.result-list small { display: block; }
.result-list .button { flex-shrink: 0; }
.disclaimer { margin-top: 1.35rem; color: var(--muted); }
.disclaimer summary { cursor: pointer; font-weight: 700; width: fit-content; }
.disclaimer p { margin-top: .45rem; max-width: 52rem; font-size: .9rem; }
.site-footer { background: var(--deep); color: #fff; padding-block: 1.15rem; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer :focus-visible { outline-color: var(--amber); }

.council-logo {
    display: block;
    width: auto;
    flex-shrink: 0;

}
.council-logo-header {
    height: 48px;
}
.council-logo-footer {
    height: 32px;
}

@media (max-width: 46rem) {
    .search-layout { grid-template-columns: 1fr; gap: 1rem; }
    .wide-only { display: none; }
}

@media (max-width: 30rem) {
    .shell { width: calc(100% - 1.75rem); }
    .result-list li, .footer-inner { flex-direction: column; align-items: flex-start; }
    .result-list .button { width: 100%; }
}
