/* **************************************** */
/* * UK Postcode Areas Reference */
/* **************************************** */
#postcodeReference {
    color: #24384b;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto 55px;
    max-width: 1180px;
}

#postcodeReference * {
    box-sizing: border-box;
}

#postcodeReference .reference-hero {
    background: linear-gradient(135deg, #123b68 0%, #1e5a91 62%, #2f77ad 100%);
    border-radius: 12px;
    color: #fff;
    margin-bottom: 24px;
    overflow: hidden;
    padding: 42px 44px 38px;
    position: relative;
}

#postcodeReference .reference-hero::after {
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
    height: 300px;
    position: absolute;
    right: -90px;
    top: -130px;
    width: 300px;
}

#postcodeReference .eyebrow {
    color: #cfe9ff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin: 0 0 12px;
    text-transform: uppercase;
}

#postcodeReference h1 {
    color: #fff;
    font-size: 38px;
    line-height: 1.12;
    margin: 0 0 16px;
    max-width: 820px;
    position: relative;
    z-index: 1;
}

#postcodeReference .reference-intro {
    color: #e7f4ff;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
    max-width: 850px;
    position: relative;
    z-index: 1;
}

#postcodeReference .reference-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -2px 0 28px;
}

#postcodeReference .summary-card {
    background: #fff;
    border: 1px solid #d9e3ec;
    border-radius: 9px;
    box-shadow: 0 5px 20px rgba(18, 59, 104, .06);
    padding: 20px 22px;
}

#postcodeReference .summary-card strong {
    color: #123b68;
    display: block;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 7px;
}

#postcodeReference .summary-card span {
    color: #5d7083;
    font-size: 14px;
    line-height: 1.45;
}

#postcodeReference .download-panel {
    align-items: center;
    background: #eaf2fb;
    border: 1px solid #cadcee;
    border-radius: 12px;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(430px, .95fr);
    margin-bottom: 34px;
    padding: 30px;
}

#postcodeReference .download-copy h2,
#postcodeReference .table-heading h2 {
    color: #123b68;
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 10px;
}

#postcodeReference .download-copy p,
#postcodeReference .table-heading p {
    color: #536b80;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

#postcodeReference .download-form {
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 7px 24px rgba(18, 59, 104, .11);
    padding: 20px;
}

#postcodeReference .download-form label {
    color: #24384b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 7px;
}

#postcodeReference .download-form input[type="email"] {
    border: 1px solid #aebfd0;
    border-radius: 7px;
    color: #24384b;
    font: inherit;
    min-height: 48px;
    padding: 0 14px;
    width: 100%;
}

#postcodeReference .download-form input[type="email"]:focus,
#postcodeReference .search-box input:focus {
    border-color: #1e5a91;
    box-shadow: 0 0 0 3px rgba(30, 90, 145, .13);
    outline: none;
}

#postcodeReference .format-buttons {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 10px;
}

#postcodeReference .download-button {
    background: #1e5a91;
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: bold;
    min-height: 46px;
    padding: 8px 7px;
}

#postcodeReference .download-button:hover,
#postcodeReference .download-button:focus {
    background: #123b68;
}

#postcodeReference .download-button:disabled {
    cursor: wait;
    opacity: .65;
}

#postcodeReference .download-button-map {
    background: #25835c;
}

#postcodeReference .download-button-map:hover,
#postcodeReference .download-button-map:focus {
    background: #176442;
}

#postcodeReference .download-note,
#postcodeReference .download-status {
    color: #64778a;
    display: block;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 10px;
}

#postcodeReference .download-note a {
    color: #123b68;
    text-decoration: underline;
}

#postcodeReference .download-status {
    color: #176442;
    font-weight: bold;
    min-height: 17px;
}

#postcodeReference .website-field {
    left: -9999px;
    position: absolute;
}

#postcodeReference .table-toolbar {
    align-items: end;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    margin-bottom: 18px;
}

#postcodeReference .search-box label {
    color: #123b68;
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 7px;
}

#postcodeReference .search-box input {
    background: #fff;
    border: 1px solid #afbfce;
    border-radius: 8px;
    color: #24384b;
    font: inherit;
    min-height: 48px;
    padding: 0 15px;
    width: 100%;
}

#postcodeReference .postcode-table-wrap {
    border: 1px solid #d9e3ec;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(18, 59, 104, .05);
    overflow-x: auto;
}

#postcodeReference .postcode-table {
    border-collapse: collapse;
    font-size: 14px;
    min-width: 980px;
    width: 100%;
}

#postcodeReference .postcode-table caption {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

#postcodeReference .postcode-table th {
    background: #123b68;
    color: #fff;
    font-size: 12px;
    letter-spacing: .25px;
    padding: 15px 13px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

#postcodeReference .postcode-table th:nth-child(6),
#postcodeReference .postcode-table td:nth-child(6) {
    text-align: right;
}

#postcodeReference .postcode-table td {
    border-bottom: 1px solid #e3ebf2;
    color: #31485c;
    line-height: 1.4;
    padding: 12px 13px;
    vertical-align: middle;
}

#postcodeReference .postcode-table tbody tr:nth-child(even) td {
    background: #f6f9fc;
}

#postcodeReference .postcode-table tbody tr:hover td {
    background: #eaf4f8;
}

#postcodeReference .postcode-table tbody tr:last-child td {
    border-bottom: 0;
}

#postcodeReference .area-code {
    background: #eaf2fb;
    border-radius: 5px;
    color: #123b68;
    display: inline-block;
    min-width: 37px;
    padding: 5px 7px;
    text-align: center;
}

#postcodeReference .district-count {
    font-variant-numeric: tabular-nums;
}

#postcodeReference .map-link {
    background: #e7f4ee;
    border-radius: 5px;
    color: #176442;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 9px;
    text-decoration: none;
    white-space: nowrap;
}

#postcodeReference .map-link:hover,
#postcodeReference .map-link:focus {
    background: #cfeadc;
    text-decoration: underline;
}

#postcodeReference .no-results {
    background: #fff7e6;
    border: 1px solid #f0d59e;
    border-radius: 8px;
    color: #805d16;
    display: none;
    margin-top: 14px;
    padding: 14px 16px;
}

#postcodeReference .source-note {
    color: #64778a;
    font-size: 12px;
    line-height: 1.6;
    margin: 16px 2px 0;
}

#postcodeReference .source-note a {
    color: #123b68;
    text-decoration: underline;
}

@media screen and (max-width: 860px) {
    #postcodeReference .reference-hero {
        padding: 34px 28px;
    }

    #postcodeReference h1 {
        font-size: 32px;
    }

    #postcodeReference .reference-summary {
        grid-template-columns: 1fr;
    }

    #postcodeReference .download-panel,
    #postcodeReference .table-toolbar {
        grid-template-columns: 1fr;
    }

    #postcodeReference .download-panel {
        padding: 23px;
    }
}

@media screen and (max-width: 560px) {
    #postcodeReference .reference-hero {
        border-radius: 8px;
        padding: 28px 20px;
    }

    #postcodeReference h1 {
        font-size: 28px;
    }

    #postcodeReference .reference-intro {
        font-size: 16px;
    }

    #postcodeReference .download-panel {
        margin-left: -5px;
        margin-right: -5px;
        padding: 18px;
    }

    #postcodeReference .format-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #postcodeReference .table-toolbar {
        gap: 15px;
    }
}
/* **************************************** */
