/* The editorial directory is confined to the Here4.uk front page. */
body.page-id-9 #header-grid,
body.page-id-9 .h4hub-legal-strip {
    display: none !important;
}

.h4-index,
.h4-index * {
    box-sizing: border-box;
}

.h4-index {
    --index-navy: #112a49;
    --index-burgundy: #87223f;
    --index-line: #ccd8df;
    --index-muted: #40536a;
    width: 100%;
    overflow: hidden;
    background: #fff;
    color: var(--index-navy);
    font-family: Georgia, 'Times New Roman', serif;
}

.h4-index__shell {
    width: min(1410px, calc(100% - 80px));
    margin: 0 auto;
}

.h4-index a {
    color: inherit;
    text-decoration: none;
}

.h4-index a:focus-visible {
    outline: 3px solid var(--index-burgundy);
    outline-offset: 4px;
}

.h4-index__header-inner {
    display: flex;
    min-height: 80px;
    align-items: center;
    gap: 23px;
    border-bottom: 1px solid var(--index-line);
}

.h4-index__brand,
.h4-index__footer-brand a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

.h4-index__brand img {
    display: block;
    width: 158px;
    height: auto;
}

.h4-index__tagline {
    margin: 0 !important;
    color: var(--index-muted);
    font-size: 15px;
    line-height: 1.4;
}

.h4-index__nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 42px);
    margin-left: auto;
}

.h4-index__nav a {
    position: relative;
    padding: 8px 0;
    font-size: 17px;
    line-height: 1.3;
}

.h4-index__nav a[aria-current='page']::after,
.h4-index__nav a:hover::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--index-burgundy);
    content: '';
}

.h4-index__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    min-height: 326px;
    align-items: center;
    gap: 20px;
    padding: 24px 0 14px;
}

.h4-index__hero-copy {
    padding: 18px 0 22px;
}

.h4-index__hero h1 {
    margin: 0 !important;
    color: var(--index-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(62px, 6.7vw, 106px);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: .91;
}

.h4-index__hero h1 span {
    color: var(--index-burgundy);
}

.h4-index__hero p {
    max-width: 600px;
    margin: 22px 0 0 !important;
    color: var(--index-muted);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.3;
}

.h4-index__illustration {
    display: block;
    width: 100%;
    max-width: 610px;
    height: auto;
    justify-self: end;
    align-self: end;
}

.h4-index__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(245px, 25%);
    gap: clamp(26px, 3vw, 44px);
    border-top: 1px solid var(--index-line);
}

.h4-index__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.h4-index__row {
    display: grid;
    grid-template-columns: minmax(190px, 30%) minmax(118px, 17%) minmax(0, 1fr) 27px;
    min-height: 66px;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--index-line);
    transition: background-color .18s ease;
}

.h4-index__row:hover,
.h4-index__row:focus-visible {
    background: #f4f9fa;
}

.h4-index__site-name {
    color: var(--index-navy);
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.1;
    white-space: nowrap;
}

.h4-index__digit {
    color: var(--index-burgundy);
}

.h4-index__category {
    align-self: center;
    min-height: 27px;
    padding-left: 15px;
    border-left: 1px solid #9dafbc;
    color: #80614a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 27px;
    text-transform: uppercase;
    white-space: nowrap;
}

.h4-index__description {
    color: var(--index-muted);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.3;
}

.h4-index__arrow {
    color: var(--index-burgundy);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 27px;
    line-height: 1;
    text-align: right;
    transition: transform .18s ease;
}

.h4-index__row:hover .h4-index__arrow,
.h4-index__row:focus-visible .h4-index__arrow {
    transform: translateX(3px);
}

.h4-index__about {
    margin-top: 20px;
    padding: 5px 0 20px clamp(26px, 3vw, 44px);
    border-left: 1px solid var(--index-line);
}

.h4-index__about h2 {
    margin: 0 0 10px !important;
    color: var(--index-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(27px, 2.6vw, 37px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.1;
}

.h4-index__publisher {
    margin: 0 0 33px !important;
    color: var(--index-navy) !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.5 !important;
    text-transform: uppercase;
}

.h4-index__about p:not(.h4-index__publisher) {
    margin: 0 0 19px;
    color: var(--index-muted);
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.48;
}

.h4-index__about .h4-index__motto {
    margin-top: 31px !important;
    padding-top: 21px;
    color: var(--index-navy) !important;
    font-style: italic;
    line-height: 1.45;
}

.h4-index__motto::before {
    display: block;
    width: 46px;
    height: 1px;
    margin: -21px 0 21px;
    background: #8ba3b0;
    content: '';
}

.h4-index__retired {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: 14px;
    margin: 18px 0 20px;
    padding: 8px 16px;
    border-radius: 11px;
    background: #e9f4f6;
}

.h4-index__retired-icon {
    display: inline-flex;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #397d8d;
    color: #fff;
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
}

.h4-index__retired h3 {
    flex: 0 0 auto;
    margin: 0 !important;
    color: var(--index-navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.h4-index__retired p {
    margin: 0 !important;
    color: var(--index-muted);
    font-size: 16px;
    line-height: 1.35;
}

.h4-index__retired a,
.h4-index__footer nav a:hover {
    color: var(--index-burgundy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.h4-index__footer {
    border-top: 1px solid var(--index-line);
}

.h4-index__footer-inner {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.h4-index__footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.h4-index__footer-brand img {
    display: block;
    width: 105px;
    height: auto;
}

.h4-index__footer-brand span {
    color: var(--index-muted);
    font-size: 13px;
}

.h4-index__footer nav {
    display: flex;
    align-items: center;
    gap: 17px;
    font-size: 15px;
}

.h4-index__footer nav a + a {
    padding-left: 17px;
    border-left: 1px solid #b7c7d0;
}

.h4-index__company {
    margin: 0 auto 15px !important;
    color: #596e7b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .h4-index__row {
        grid-template-columns: minmax(180px, 30%) minmax(105px, 18%) minmax(0, 1fr) 23px;
        gap: 9px;
    }

    .h4-index__site-name {
        font-size: 25px;
    }

    .h4-index__category {
        padding-left: 10px;
        font-size: 10px;
    }
}

@media (max-width: 900px) {
    .h4-index__columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .h4-index__row {
        grid-template-columns: minmax(210px, 31%) minmax(140px, 20%) minmax(0, 1fr) 25px;
    }

    .h4-index__about {
        margin: 6px 0 28px;
        padding: 26px 0 0;
        border-top: 1px solid var(--index-line);
        border-left: 0;
    }

    .h4-index__about p:not(.h4-index__publisher) {
        max-width: 630px;
    }
}

@media (max-width: 680px) {
    .h4-index__shell {
        width: min(100% - 32px, 1410px);
    }

    .h4-index__header-inner {
        min-height: 93px;
        flex-wrap: wrap;
        gap: 0 16px;
        padding: 10px 0;
    }

    .h4-index__brand img {
        width: 123px;
    }

    .h4-index__tagline {
        width: 100%;
        order: 3;
        font-size: 13px;
    }

    .h4-index__nav {
        gap: 16px;
    }

    .h4-index__nav a {
        font-size: 14px;
    }

    .h4-index__hero {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 0;
        padding: 24px 0 0;
    }

    .h4-index__hero-copy {
        padding: 0;
    }

    .h4-index__hero h1 {
        font-size: clamp(52px, 12vw, 78px);
    }

    .h4-index__hero p {
        margin-top: 18px !important;
        font-size: 18px;
    }

    .h4-index__illustration {
        width: min(100%, 420px);
        margin-top: 10px;
    }

    .h4-index__row {
        grid-template-columns: minmax(0, 1fr) 24px;
        min-height: 102px;
        gap: 0 12px;
        padding: 13px 0;
    }

    .h4-index__site-name {
        grid-column: 1;
        font-size: clamp(26px, 7.5vw, 32px);
    }

    .h4-index__category {
        grid-column: 1;
        min-height: 0;
        padding: 0;
        border: 0;
        font-size: 10px;
        line-height: 1.35;
    }

    .h4-index__description {
        grid-column: 1;
        font-size: 15px;
    }

    .h4-index__arrow {
        grid-column: 2;
        grid-row: 1 / 4;
        align-self: center;
    }

    .h4-index__retired {
        flex-wrap: wrap;
        gap: 5px 10px;
    }

    .h4-index__retired p {
        flex-basis: 100%;
        padding-left: 35px;
        font-size: 15px;
    }

    .h4-index__footer-inner,
    .h4-index__footer-brand {
        flex-wrap: wrap;
    }

    .h4-index__footer-inner {
        align-items: flex-start;
        padding: 17px 0 10px;
    }

    .h4-index__footer nav {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .h4-index__nav { gap: 10px; }
    .h4-index__nav a { font-size: 13px; }
    .h4-index__brand img { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
    .h4-index__row,
    .h4-index__arrow { transition: none; }
}
