/* Merseyside RAYNET – shared stylesheet */
:root {
    --navy: #03236f;
    --red: #c8102e;
    --paper: #f6f7f8;
    --grey: #49505a;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    border-top: 5px solid #272031;
    background: var(--paper);
    color: var(--navy);
    font: 18px/1.6 Outfit, Arial, sans-serif;
}

a { color: var(--navy); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

/* Header and navigation */
header {
    width: calc(100% - 32px);
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 34px;
    min-height: 89px;
    background: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 44px;
}

header img { width: 156px; height: auto; display: block; }

h1, .site-name {
    margin: 0;
    color: var(--red);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    line-height: 1.2;
}

header nav { margin-left: auto; }
header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
header nav a { text-decoration: none; font-weight: 600; padding: 4px 0; border-bottom: 3px solid transparent; }
header nav a:hover, header nav a[aria-current="page"] { border-bottom-color: var(--red); }

main {
    width: calc(100% - 64px);
    max-width: 1568px;
    margin: 0 auto;
}

.breadcrumb { font-size: 15px; color: var(--grey); margin: 14px 0 10px; }

/* Main intro box */
.intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    border: 5px solid var(--navy);
    border-radius: 5px;
    padding: 56px 16px 50px;
}
.intro.single { grid-template-columns: 1fr; padding: 44px 24px 30px; }

h2 {
    color: var(--red);
    font-size: clamp(32px, 2.9vw, 48px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.18;
    margin: 0 0 42px;
    text-wrap: pretty;
}
.intro.single h2 { margin-bottom: 24px; }

.lead {
    max-width: 760px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 24px;
}

.intro ul { margin: 0; padding-left: 40px; }

/* Group cards */
.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.card {
    min-height: 205px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background: white;
    border: 5px solid var(--navy);
    border-radius: 5px;
    padding: 20px 8px;
    box-shadow: 0 5px 22px #0001;
    text-decoration: none;
    color: inherit;
}
a.card { transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px #0002; }

.card-icon { display: flex; color: var(--red); }
.card-icon svg { width: 25px; height: 25px; fill: currentColor; }
.card h3 { color: var(--red); font-size: clamp(21px, 2.25vw, 36px); line-height: 1.2; margin: 3px 0 0; }
.card p { color: var(--grey); font-size: 16px; margin: 0; }

/* Text panels */
.panel {
    background: white;
    border: 5px solid var(--navy);
    border-radius: 5px;
    padding: 32px 24px;
    margin-top: 16px;
}
.panel h2 { font-size: clamp(26px, 2.4vw, 36px); margin-bottom: 18px; }
.panel p { max-width: 900px; margin: 0 0 14px; }

.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; }
.two-col .panel { margin-top: 16px; }

.facts { width: 100%; border-collapse: collapse; font-size: 17px; }
.facts th, .facts td { text-align: left; padding: 9px 6px; border-bottom: 1px solid #e3e5ea; vertical-align: top; }
.facts th { width: 42%; color: var(--grey); font-weight: 500; }

/* Buttons */
.actions { text-align: center; margin: 16px 0; }
.btn {
    display: inline-block;
    padding: 11px 25px;
    border-radius: 999px;
    color: white;
    background: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

footer {
    width: calc(100% - 32px);
    max-width: 1600px;
    margin: 20px auto 0;
    background: white;
    padding: 18px 32px;
    display: flex;
    gap: 12px 32px;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 16px;
}
footer a { color: inherit; }

@media (max-width: 850px) {
    .intro { gap: 26px; padding-block: 32px; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .two-col { grid-template-columns: 1fr; }
    header nav { margin-left: 0; width: 100%; }
}

@media (max-width: 600px) {
    header { width: 100%; padding: 18px 16px; }
    main { width: calc(100% - 24px); }
    .intro { grid-template-columns: 1fr; }
    h2 { margin-bottom: 22px; }
    .lead { font-size: 19px; line-height: 1.3; margin-bottom: 18px; }
    .intro ul { padding-left: 22px; }
    .card { min-height: 140px; }
}

/* Lists and sub-columns */
.ticks { margin: 0; padding-left: 22px; }
.ticks li { margin-bottom: 10px; }
.panel h3 { color: var(--navy); font-size: 22px; margin: 0 0 8px; }
.two-col.plain { grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 850px) { .two-col.plain { grid-template-columns: 1fr; } }
