:root {
    --cw-demand-navy: #102033;
    --cw-demand-blue: #0b2947;
    --cw-demand-gold: #b9892f;
    --cw-demand-cream: #f7f2e8;
    --cw-demand-ink: #17202b;
    --cw-demand-line: #d8d2c7;
}

.cw-demand-wrap,
.cw-demand-search-page > .cw-demand-wrap {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.cw-demand-search-page {
    padding: 72px 0 96px;
    color: var(--cw-demand-ink);
    background: #fff;
}

.cw-demand-search-page h1 {
    max-width: 900px;
    margin: 0 0 24px;
    color: var(--cw-demand-navy);
    font-size: 62px;
    line-height: 1.06;
    letter-spacing: 0;
}

.cw-demand-kicker {
    margin: 0 0 8px;
    color: #7a5a1d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cw-demand-search {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.cw-demand-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 56px;
    border: 2px solid var(--cw-demand-navy);
    background: #fff;
    box-shadow: 0 8px 24px rgb(16 32 51 / 10%);
}

.cw-demand-search-control input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0;
    padding: 14px 18px !important;
    color: var(--cw-demand-ink) !important;
    background: #fff !important;
    font-size: 17px !important;
}

.cw-demand-search-control button,
.cw-demand-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 0;
    border-radius: 4px;
    padding: 12px 20px;
    color: #fff !important;
    background: var(--cw-demand-navy);
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
}

.cw-demand-search-control button {
    border-radius: 0;
}

.cw-demand-search-control button:focus-visible,
.cw-demand-button:focus-visible,
.cw-demand-dialog-close:focus-visible,
.cw-demand-header-search:focus-visible,
.cw-demand-typeahead a:focus-visible {
    outline: 3px solid #d4a853;
    outline-offset: 3px;
}

.cw-demand-typeahead {
    position: absolute;
    z-index: 10020;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: min(520px, 70vh);
    overflow: auto;
    border: 1px solid var(--cw-demand-line);
    background: #fff;
    box-shadow: 0 18px 40px rgb(16 32 51 / 22%);
}

.cw-demand-typeahead-group h3 {
    margin: 0;
    padding: 10px 14px;
    color: #fff;
    background: var(--cw-demand-blue);
    font-size: 12px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cw-demand-typeahead a {
    display: block;
    padding: 11px 14px;
    border-bottom: 1px solid #ece8df;
    color: var(--cw-demand-navy) !important;
    text-decoration: none !important;
}

.cw-demand-typeahead a span {
    display: block;
    color: #4e5965;
    font-size: 13px;
}

.cw-demand-summary {
    margin: 22px 0 6px;
    color: #4e5965;
}

.cw-demand-result-group {
    margin-top: 42px;
}

.cw-demand-result-group > h2 {
    border-bottom: 2px solid var(--cw-demand-gold);
    padding-bottom: 10px;
    color: var(--cw-demand-navy);
    font-size: 26px;
    letter-spacing: 0;
}

.cw-demand-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--cw-demand-line);
    background: var(--cw-demand-line);
}

.cw-demand-result {
    min-width: 0;
    padding: 22px;
    background: #fff;
}

.cw-demand-result h3 {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: 0;
}

.cw-demand-result h3 a {
    color: var(--cw-demand-navy) !important;
}

.cw-demand-result-meta {
    color: #7a5a1d;
    font-size: 13px;
    font-weight: 700;
}

.cw-demand-directory-search,
.cw-demand-home-search,
.cw-demand-town-request,
.cw-opportunity-areas,
.cw-demand-custom-products,
.cw-demand-form-intro {
    margin: 36px auto;
    padding: 42px 32px;
    color: var(--cw-demand-ink);
    background: var(--cw-demand-cream);
    border-top: 4px solid var(--cw-demand-gold);
}

.cw-demand-directory-search {
    margin-top: 0;
}

.cw-demand-directory-search h2,
.cw-demand-home-search h2,
.cw-demand-town-request h2,
.cw-opportunity-areas h2,
.cw-demand-custom-products h1,
.cw-demand-form-intro h1 {
    margin: 0 0 16px;
    color: var(--cw-demand-navy);
    letter-spacing: 0;
}

.cw-demand-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
}

.cw-demand-link {
    color: var(--cw-demand-navy) !important;
    font-weight: 800;
}

.cw-demand-town-request {
    width: min(1040px, calc(100% - 32px));
}

.cw-demand-status-note {
    border-left: 4px solid var(--cw-demand-gold);
    padding: 12px 16px;
    background: #fff;
}

.cw-demand-lanes,
.cw-opportunity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0;
}

.cw-demand-lanes article,
.cw-opportunity-grid article {
    min-width: 0;
    border: 1px solid var(--cw-demand-line);
    border-radius: 6px;
    padding: 20px;
    background: #fff;
}

.cw-demand-lanes h2,
.cw-opportunity-grid h3 {
    margin: 0 0 8px;
    color: var(--cw-demand-navy);
    font-size: 20px;
    letter-spacing: 0;
}

.cw-demand-dialog[hidden] {
    display: none;
}

.cw-demand-dialog {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: 8vh 20px 20px;
}

.cw-demand-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(8 18 29 / 78%);
}

.cw-demand-dialog-panel {
    position: relative;
    width: min(900px, 100%);
    border-top: 5px solid var(--cw-demand-gold);
    padding: 34px;
    background: #fff;
    box-shadow: 0 24px 70px rgb(0 0 0 / 35%);
}

.cw-demand-dialog-panel h2 {
    margin: 0 0 18px;
    color: var(--cw-demand-navy);
    font-size: 30px;
    letter-spacing: 0;
}

.cw-demand-dialog-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--cw-demand-navy);
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

.cw-demand-header-search {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 4px;
    color: #fff;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

body.cw-demand-search-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .cw-demand-wrap,
    .cw-demand-search-page > .cw-demand-wrap {
        width: min(100% - 28px, 1120px);
    }

    .cw-demand-search-page {
        padding: 42px 0 70px;
    }

    .cw-demand-search-page h1 {
        font-size: 38px;
    }

    .cw-demand-search-control {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .cw-demand-search-control input {
        font-size: 16px !important;
    }

    .cw-demand-search-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .cw-demand-results,
    .cw-demand-lanes,
    .cw-opportunity-grid {
        grid-template-columns: 1fr;
    }

    .cw-demand-directory-search,
    .cw-demand-home-search,
    .cw-demand-town-request,
    .cw-opportunity-areas,
    .cw-demand-custom-products,
    .cw-demand-form-intro {
        margin: 24px auto;
        padding: 30px 18px;
    }

    .cw-demand-dialog {
        padding: 12px;
    }

    .cw-demand-dialog-panel {
        padding: 52px 16px 24px;
    }
}

@media (max-width: 360px) {
    .cw-demand-search-control input {
        padding-inline: 10px !important;
    }
}
.cw-demand-site-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin: .67em 0;
}

.cw-demand-site-title a {
    color: inherit;
    text-decoration: inherit;
}
