/* **************************************** */
/* * PAGE BASE */
/* **************************************** */
:root {
    --navy: #2f466b;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --green: #2f7d57;
    --red: #c93434;
    --red-dark: #9f2424;
    --ink: #172033;
    --muted: #5f6b7a;
    --line: #dbe3ec;
    --soft: #f5f8fb;
    --white: #ffffff;
}

html {
    background: var(--soft);
    scroll-behavior: smooth;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
}

body * {
    box-sizing: border-box;
}

a {
    color: var(--blue-dark);
}

.skip-link {
    background: var(--white);
    left: 12px;
    padding: 10px 14px;
    position: absolute;
    top: -60px;
    z-index: 2000;
}

.skip-link:focus {
    top: 12px;
}

/* **************************************** */
/* * SITE HEADER */
/* **************************************** */
#siteHeader {
    background: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    line-height: normal;
}

#siteHeader,
#siteHeader * {
    box-sizing: content-box;
}

#top-bar {
    background: var(--navy);
    color: var(--white);
    font-size: 13px;
    padding: 10px 7px 5px;
    text-align: center;
}

#top-bar p {
    color: var(--white);
    font-size: 13px;
    line-height: 16px;
    margin: 0;
}

.inner-wrap {
    margin: 0 auto;
    max-width: 1000px;
    min-width: 300px;
}

.site-identity {
    height: 43.5px;
}

#header-logo {
    color: var(--white);
    display: inline-block;
    float: left;
    padding-left: 10px;
    text-align: center;
    width: 350px;
}

#header-logo img {
    float: left;
    height: 42px;
    max-width: 100%;
    width: auto;
}

#header-logo h2,
#header-logo h3 {
    color: var(--white);
    display: block;
    float: left;
    margin: 0;
    padding-left: 10px;
}

#header-logo h2 {
    font-size: 24px;
    font-weight: 700;
}

#header-logo h3 {
    font-size: 14px;
    font-weight: 100;
    text-align: left;
    width: 242px;
}

#header-text {
    color: var(--white);
    float: right;
    font-size: 13px;
    padding-right: 10px;
    text-align: right;
    width: 350px;
}

#header-text span {
    display: block;
    float: right;
}

.social-logos-facebook-icon,
.social-logos-twitter-icon,
.social-logos-linkedin-icon,
.social-logos-you-tube-icon {
    background-image: url("https://www.gbmaps.com/5-digit-postcode-sector-maps/sprites.png");
    background-repeat: no-repeat;
    height: 35px;
    width: 35px;
}

.social-logos-facebook-icon {
    background-position: -92px -4px;
}

.social-logos-twitter-icon {
    background-position: -138px -4px;
}

.social-logos-linkedin-icon {
    background-position: -182px -4px;
}

.social-logos-you-tube-icon {
    background-position: -224px -4px;
}

#header {
    background: #30466b;
    height: 44px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1100;
}

.header-inner-wrap {
    height: 44px;
    margin: 0 auto;
    max-width: 1000px;
    min-width: 300px;
}

#menu {
    padding-top: 1px;
    position: relative;
}

#menu ul {
    list-style: none;
    margin: 0;
    padding: 0 1%;
}

#navigation {
    float: left;
    margin-right: 250px !important;
}

#menu li {
    float: left;
    position: relative;
}

#menu a {
    background: #000000;
    border: 1px solid var(--white);
    color: var(--white);
    display: block;
    font-size: 16px;
    line-height: normal;
    margin-left: -1px;
    margin-top: -1px;
    padding: 8px;
    text-align: center;
    text-decoration: none;
}

#menu a:hover,
#menu a:focus {
    background: #636466;
}

#help {
    position: absolute;
    right: 0;
}

#helplink {
    float: right !important;
}

#helplink a {
    background: #56ba48;
}

#helplink a:hover,
#helplink a:focus {
    background: #3e9733;
}

#navigation ul {
    display: none;
    left: 0;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    position: absolute;
    top: 100%;
    width: 150%;
    z-index: 1200;
}

#navigation li:hover > ul,
#navigation li:focus-within > ul {
    display: block;
}

#navigation ul a {
    background: #636466;
    border: 0;
    border-bottom: 1px solid #636466;
    border-top: 1px solid #636466;
    color: var(--white);
    display: block;
    font-size: 16px;
    line-height: normal;
    margin-top: 0;
    padding: 8px;
    text-align: center;
    text-decoration: none;
}

#navigation ul a:hover,
#navigation ul a:focus {
    background: #000000;
}

#menu-toggle {
    display: none;
}

#menu li li {
    float: none;
}

.header-clear {
    clear: both;
}

/* **************************************** */
/* * MAIN LAYOUT */
/* **************************************** */
#hosepipeTool {
    margin: 0 auto;
    max-width: 1180px;
    padding: 18px 20px 54px;
}

.breadcrumbs {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 7px;
    margin: 0 0 16px;
}

.breadcrumbs a {
    text-decoration: none;
}

.tool-hero,
.map-card,
.content-card,
.source-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.tool-hero {
    align-items: center;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    padding: 30px;
}

.eyebrow {
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.tool-hero h1,
.section-heading h2,
.legal-content > h2,
.source-panel h2 {
    color: var(--navy);
    font-weight: 750;
    letter-spacing: -.02em;
}

.tool-hero h1 {
    font-size: 38px;
    line-height: 1.12;
    margin: 0 0 12px;
}

.hero-copy > p:last-child {
    color: var(--muted);
    font-size: 17px;
    margin: 0;
    max-width: 650px;
}

/* **************************************** */
/* * POSTCODE SEARCH */
/* **************************************** */
#postcodeSearchForm {
    background: #eff6ff;
    border: 1px solid #cfe0f7;
    border-radius: 9px;
    padding: 20px;
}

#postcodeSearchForm label {
    color: var(--navy);
    display: block;
    font-size: 15px;
    font-weight: 750;
    margin-bottom: 8px;
}

.postcode-controls {
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) auto;
}

#postcode {
    background: var(--white);
    border: 1px solid #9fb1c5;
    border-radius: 7px;
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    min-height: 50px;
    padding: 0 14px;
    text-transform: uppercase;
    width: 100%;
}

#postcode:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
    outline: none;
}

#postcodeSearchButton {
    background: var(--blue);
    border: 0;
    border-radius: 7px;
    color: var(--white);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    min-height: 50px;
    padding: 0 18px;
}

#postcodeSearchButton:hover,
#postcodeSearchButton:focus {
    background: var(--blue-dark);
}

#postcodeSearchButton:disabled {
    cursor: wait;
    opacity: .65;
}

.form-note,
.form-error {
    font-size: 12px;
    margin: 8px 0 0;
}

.form-note {
    color: var(--muted);
}

.form-error {
    color: var(--red-dark);
    font-weight: 700;
    min-height: 19px;
}

/* **************************************** */
/* * POSTCODE RESULT */
/* **************************************** */
.postcode-result {
    border: 1px solid;
    border-radius: 10px;
    margin-top: 18px;
    padding: 20px 24px;
}

.postcode-result.is-ban {
    background: #fff2f2;
    border-color: #efb5b5;
}

.postcode-result.is-clear {
    background: #edf9f2;
    border-color: #acd8bc;
}

.postcode-result.is-error {
    background: #fff8e8;
    border-color: #ead39c;
}

.result-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.postcode-result h2 {
    color: var(--ink);
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 7px;
}

.postcode-result > p:not(.result-label) {
    margin: 0;
}

#postcodeResultSource {
    display: inline-block;
    font-weight: 700;
    margin-top: 9px;
}

/* **************************************** */
/* * MAP */
/* **************************************** */
.map-card,
.content-card {
    margin-top: 20px;
    padding: 24px;
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-heading h2,
.legal-content > h2 {
    font-size: 27px;
    line-height: 1.2;
    margin: 0;
}

.checked-date {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
}

#hosepipeBanMap {
    background: #eaf0f5;
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 590px;
    overflow: hidden;
    width: 100%;
}

.leaflet-popup-content {
    color: var(--ink);
    line-height: 1.45;
    margin: 14px 16px;
}

.leaflet-popup-content strong,
.leaflet-popup-content span,
.leaflet-popup-content a {
    display: block;
}

.leaflet-popup-content strong {
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 3px;
}

.leaflet-popup-content span {
    color: var(--muted);
    font-size: 12px;
}

.leaflet-popup-content a {
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

.map-key {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 13px;
}

.map-key span {
    align-items: center;
    color: #445469;
    display: flex;
    font-size: 13px;
    gap: 7px;
}

.map-key i {
    display: inline-block;
    height: 14px;
    width: 14px;
}

.ban-swatch {
    background: rgba(201, 52, 52, .55);
    border: 2px solid var(--red-dark);
}

.postcode-swatch {
    background: var(--blue);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--blue-dark);
}

.map-note {
    color: var(--muted);
    font-size: 13px;
    margin: 10px 0 0;
}

/* **************************************** */
/* * ACTIVE BAN LIST */
/* **************************************** */
.source-link {
    font-size: 13px;
    font-weight: 700;
}

.ban-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ban-list a {
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 7px;
    color: var(--ink);
    min-height: 78px;
    padding: 13px 14px;
    text-decoration: none;
}

.ban-list a:hover,
.ban-list a:focus {
    background: #fff7f7;
    border-color: #e8b4b4;
    border-left-color: var(--red-dark);
}

.ban-list strong,
.ban-list span {
    display: block;
}

.ban-list strong {
    color: var(--navy);
    font-size: 14px;
    margin-bottom: 4px;
}

.ban-list span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

/* **************************************** */
/* * LAW CONTENT */
/* **************************************** */
.legal-content > h2 {
    margin-bottom: 18px;
}

.legal-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-grid article {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.legal-grid h3 {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.legal-grid p,
.legal-grid ul {
    color: #445469;
    font-size: 14px;
    margin: 0;
}

.legal-grid p + p {
    margin-top: 10px;
}

.legal-grid ul {
    padding-left: 20px;
}

.legal-grid li + li {
    margin-top: 5px;
}

.legal-warning {
    background: #fff8e8;
    border: 1px solid #ead39c;
    border-radius: 7px;
    color: #5f4b1c;
    font-size: 13px;
    margin-top: 14px;
    padding: 12px 14px;
}

/* **************************************** */
/* * SOURCES */
/* **************************************** */
.source-panel {
    margin-top: 20px;
    padding: 18px 22px;
}

.source-panel h2 {
    font-size: 18px;
    margin: 0 0 6px;
}

.source-panel p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

/* **************************************** */
/* * SITE FOOTER */
/* **************************************** */
#footerContainer {
    background: var(--navy);
    border-top: 4px solid #0099ff;
    color: var(--white);
    min-width: 300px;
    padding: 28px 20px 22px;
    width: 100%;
}

#footerContainer > .inner-wrap {
    margin: 0 auto;
    max-width: 1140px;
}

#shortcutRow {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.shortcutColumn,
.shortcutColumn2,
.shortcutColumn3,
.shortcutColumn4,
.shortcutColumn5,
.shortcutColumn6 {
    min-width: 0;
}

#shortcutRow a {
    color: #dbe5f1;
    display: block;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 7px;
    text-decoration: none;
}

#shortcutRow a:hover,
#shortcutRow a:focus {
    color: var(--white);
    text-decoration: underline;
}

#shortcutTitle,
#shortcutTitle2,
#shortcutTitle3,
#shortcutTitle4,
#shortcutTitle5,
#shortcutTitle6 {
    color: var(--white) !important;
    font-size: 15px !important;
    font-weight: 750;
    margin-bottom: 11px !important;
}

#shortcutRow hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .25);
    grid-column: 1 / -1;
    margin: 3px 0 0;
    width: 100%;
}

#myfooter {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding-top: 18px;
}

#footer-logo {
    min-width: 300px;
}

#footer-logo .flag {
    background: url('/images/flag.png') center / cover no-repeat;
    float: left;
    height: 36px;
    margin-right: 12px;
    width: 58px;
}

#footer-logo h2,
#footer-logo h3 {
    color: var(--white);
    line-height: 1.15;
    margin: 0;
    text-align: left;
}

#footer-logo h2 {
    font-size: 21px;
}

#footer-logo h3 {
    font-size: 13px;
    font-weight: 400;
    margin-top: 3px;
}

#footer-text {
    color: #dbe5f1;
    font-size: 12px;
    line-height: 1.55;
    text-align: right;
}

#footer-text a {
    color: var(--white);
}

/* **************************************** */
/* * RESPONSIVE LAYOUT */
/* **************************************** */
@media (max-width: 920px) {
    #header {
        height: auto;
        min-height: 44px;
    }

    .header-inner-wrap,
    #menu {
        height: auto;
        min-height: 44px;
    }

    #menu-toggle {
        background: #30466b;
        border: 0;
        box-sizing: border-box;
        color: var(--white);
        cursor: pointer;
        display: block;
        font: inherit;
        font-weight: 700;
        height: 44px;
        padding: 0 16px;
        text-align: left;
        width: 100%;
    }

    #navigation,
    #help {
        display: none;
    }

    #header.active-menu #navigation,
    #header.active-menu #help {
        display: block;
    }

    #navigation {
        float: none;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    #help {
        padding: 0 !important;
        position: static;
    }

    #navigation li,
    #helplink {
        float: none !important;
    }

    #menu > #navigation > li > a,
    #helplink > a {
        border: 1px solid var(--white);
        height: auto;
        min-height: 0;
        padding: 8px;
        text-align: center;
    }

    #navigation ul,
    #navigation li:hover > ul,
    #navigation li:focus-within > ul {
        display: block;
        max-height: none;
        min-width: 0;
        overflow: visible;
        position: static;
        width: auto;
    }

    #navigation ul a {
        padding: 8px;
    }
}

@media (max-width: 900px) {
    .tool-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .ban-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #shortcutRow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-identity {
        height: auto;
    }

    #header-logo {
        display: block;
        float: none;
        margin: 0 auto;
        padding: 0;
        width: 290px;
    }

    #header-text {
        float: none;
        margin: 0 auto;
        padding: 0;
        text-align: center;
        width: 290px;
    }

    #hosepipeTool {
        padding: 14px 12px 34px;
    }

    .tool-hero,
    .map-card,
    .content-card,
    .source-panel {
        border-radius: 8px;
        padding: 17px;
    }

    .tool-hero {
        gap: 20px;
    }

    .tool-hero h1 {
        font-size: 30px;
    }

    .hero-copy > p:last-child {
        font-size: 15px;
    }

    .postcode-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 7px;
    }

    .section-heading h2,
    .legal-content > h2 {
        font-size: 23px;
    }

    #hosepipeBanMap {
        height: 480px;
    }

    .ban-list,
    .legal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #shortcutRow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #myfooter {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    #footer-text {
        text-align: left;
    }
}

@media (max-width: 420px) {
    #shortcutRow {
        grid-template-columns: minmax(0, 1fr);
    }
}
