/* LabourWeb 2 layout and typography. Legacy component rules remain in style.css. */
body {
    --lw2-paper: #f8f4ed;
    --lw2-line: #d9d0c5;
    --lw2-heading: "Poppins", system-ui, sans-serif;
}
body.lw-palette-labour { background: var(--lw2-paper); }
.lw-wrap { width: min(1280px, calc(100% - 64px)); }
.lw-topbar { background: var(--lw-navy); }
.lw-topbar-text { font-size: .78rem; letter-spacing: .03em; }
.lw-topbar .lw-wrap { min-height: 38px; }
.lw-top-actions a {
    border: 0;
    border-radius: 0;
    font-size: .76rem;
    padding: .55rem .65rem;
}
.lw-header { background: var(--lw2-paper); border-bottom-color: var(--lw2-line); }
.lw-header .lw-wrap { min-height: 86px; }
.lw-header .lw-brand strong { font-size: clamp(1.15rem, 2.3vw, 1.65rem); }
.lw-header .lw-nav a { border-radius: 0; font-size: .88rem; }
.lw-header .lw-nav .current-menu-item > a { box-shadow: inset 0 -2px var(--lw-red); }
.lw-header .lw-nav li { position: relative; }
.lw-header .lw-nav .sub-menu { display: block; padding-left: 1rem; }
.lw2-menu-toggle {
    border: 1px solid var(--lw2-line);
    background: transparent;
    padding: .55rem .85rem;
    color: var(--lw-ink);
    font: inherit;
    font-weight: 700;
}
.lw2-menu-toggle[hidden], #lw2-navigation[hidden] { display: none; }
.lw2-skip {
    position: fixed;
    z-index: 10000;
    inset: 1rem auto auto 1rem;
    padding: .75rem 1rem;
    background: white;
    transform: translateY(-200%);
}
.lw2-skip:focus { transform: none; }
:where(a, button):focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.lw-footer { border-top: 5px solid var(--lw-red); padding-block: 64px 30px; }
.lw-footer h2 { max-width: 23ch; line-height: 1.15; }
.lw-main .lw-archive-hero { background: var(--lw-red-dark); }
.lw-main .lw-card {
    border: 1px solid var(--lw2-line);
    border-radius: 0;
    box-shadow: none;
}
.lw-main .lw-card h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }

.lw2-home-hero, .lw2-hero .lw-widget-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    align-items: stretch;
    background: var(--lw-red-dark);
    color: white;
    border-radius: 0;
    overflow: hidden;
    gap: 0;
}
.lw2-home-hero { margin-top: clamp(18px, 3vw, 40px); }
.lw2-home-copy, .lw2-hero .lw-widget-hero-copy {
    padding: clamp(30px, 5.5vw, 84px);
    min-width: 0;
    align-self: center;
}
.lw2-home-copy h1, .lw2-hero .lw-widget-hero h1 {
    font: 800 clamp(2.6rem, 6vw, 6.1rem)/.94 var(--lw2-heading);
    letter-spacing: -.075em;
    color: white;
    overflow-wrap: anywhere;
    margin: 0 0 1.4rem;
    max-width: 11ch;
}
.lw2-home-copy p, .lw2-hero .lw-widget-hero-copy p {
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.65;
    max-width: 35ch;
}
.lw2-home-copy .lw-btn { gap: .65rem; }
.lw2-home-hero > img, .lw2-hero .lw-widget-hero-media > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}
.lw2-hero .lw-widget-hero-media { position: relative; min-width: 0; }
.lw2-hero .lw-widget-photo-caption {
    position: absolute;
    inset: auto 0 0 auto;
    max-width: 100%;
    background: var(--lw-navy);
    border-radius: 0;
    padding: .8rem 1.1rem;
    color: white;
}
.lw2-hero .lw-widget-photo-caption:has(strong:empty):has(span:empty) { display: none; }
.lw2-hero .lw-widget-photo-caption span:empty { display: none; }
.lw2-home-copy .lw-btn, .lw2-hero .lw-widget-hero-buttons a { border-radius: 2px; }
.lw2-hero .lw-widget-hero-buttons .lw-button-outline { color: white !important; }
.lw2-hero .lw-widget-hero-buttons .lw-button-white { color: var(--lw-red-dark) !important; }

.lw2-home-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    border-bottom: 1px solid var(--lw2-line);
    margin-top: 14px;
}
.lw2-home-links a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1rem;
    color: var(--lw-ink);
    font-weight: 700;
    text-decoration: none;
}
.lw2-home-links a:hover { color: var(--lw-red-dark); text-decoration: underline; }
.lw2-home-news { padding-block: clamp(36px, 6vw, 76px); }
.lw2-home-news h2, .lw2-news .lw-widget-section-intro h2, .lw2-team .lw-widget-section-intro h2 {
    font-size: clamp(2rem, 4.5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -.065em;
    margin: 0 0 1.4rem;
}
.lw-native-section:is(.lw2-hero, .lw2-quick-links, .lw2-news, .lw2-team, .lw2-involvement) > :is(.elementor-container, .e-con-inner) {
    width: min(1280px, calc(100% - 44px));
    max-width: none;
}
.lw-native-section.lw2-quick-links { padding-block: 0 8px !important; }
.lw2-quick-links .lw-widget-action-card {
    border: 0;
    border-block: 1px solid var(--lw2-line);
    border-radius: 0;
    box-shadow: none;
}
.lw2-news .lw-widget-post-card, .lw2-team .lw-widget-post-card {
    border: 1px solid var(--lw2-line);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}
.lw2-news .lw-widget-post-body { padding: clamp(16px, 2.6vw, 34px); }
.lw2-news .lw-widget-post-body h3 {
    font-size: clamp(1.2rem, 2.25vw, 2.2rem);
    line-height: 1.14;
    letter-spacing: -.045em;
}
.lw2-team .lw-widget-post-image img { object-position: center 25%; }
@media (min-width: 901px) {
    .lw-header .lw-nav .sub-menu {
        display: none;
        position: absolute;
        z-index: 3;
        min-width: max(12rem, 100%);
        inset: 100% 0 auto auto;
        background: var(--lw2-paper);
        border: 1px solid var(--lw2-line);
        padding: .35rem;
    }
    .lw-header .lw-nav li:is(:hover, :focus-within) > .sub-menu { display: block; }
    .lw-header .lw-nav .sub-menu .sub-menu { inset: 0 100% auto auto; }
    .lw2-news .lw-widget-post-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
    .lw2-news .lw-widget-post-card:first-child:nth-last-child(3) { grid-row: span 2; }
    .lw2-news .lw-widget-post-card:first-child:nth-last-child(3) .lw-widget-post-image img { aspect-ratio: 4 / 3; }
}
@media (max-width: 900px) {
    .lw-wrap { width: calc(100% - 36px); }
    .lw-header .lw-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .lw-header .lw-nav { grid-column: 1 / -1; }
    .lw-header .lw-nav ul { display: block; }
    .lw-header .lw-nav a { border-bottom: 1px solid var(--lw2-line); }
    .lw-topbar .lw-wrap { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 760px) {
    .lw2-home-hero, .lw2-hero .lw-widget-hero { grid-template-columns: minmax(0, 1fr); }
    .lw2-home-hero > img, .lw2-hero .lw-widget-hero-media > img { min-height: 0; height: auto; aspect-ratio: 3 / 2; }
    .lw2-home-copy, .lw2-hero .lw-widget-hero-copy { padding: 34px 24px; }
    .lw2-home-links a { border-bottom: 1px solid var(--lw2-line); }
}

.lw2-hero .lw-widget-hero { padding: 0; }
.lw2-hero .lw-widget-hero-media { min-height: 0; border-radius: 0; }
.lw2-hero .lw-widget-hero.lw-colour-red { --card-bg: var(--lw-red-dark); --card-fg: #fff; }
.lw2-quick-links .lw-widget-action-head > span { border-radius: 0; }
.lw2-news .lw-widget-post-grid { align-items: stretch; }
.lw2-involvement .lw-widget-cta { border-radius: 0; }

/* A left-hand masthead keeps the local identity in view as stories scroll. */
.lw-atlas { --atlas-ink: #192624; --atlas-paper: #fbfaf6; background: var(--atlas-paper); }
.lw-atlas-content { min-width: 0; }
.lw-atlas .lw-header { background: var(--atlas-ink); color: white; }
.lw-atlas .lw-brand, .lw-atlas .lw-brand :is(strong,span), .lw-atlas .lw-nav a { color: #fff !important; }
.lw-atlas .lw-nav a:hover, .lw-atlas .lw-nav a:focus-visible { background: #354642; }
.lw-atlas .lw2-menu-toggle { color: white; }
.lw-atlas .lw-header .lw-nav .sub-menu { background: var(--atlas-ink); }
@media (min-width: 901px) {
    .lw-atlas { display: grid; grid-template-columns: clamp(210px,19vw,290px) minmax(0,1fr); }
    .lw-atlas .lw-header { position: sticky; align-self: start; height: 100vh; overflow-y: auto; top: 0; border: 0; }
    .admin-bar .lw-atlas .lw-header { top: 32px; height: calc(100vh - 32px); }
    .lw-atlas .lw-header > .lw-wrap { width: 100%; padding: 3rem 1.5rem; display: flex; flex-direction: column; align-items: stretch; gap: 3rem; }
    .lw-atlas .lw-brand { border-top: 6px solid var(--lw-red); padding-top: 1.4rem; }
    .lw-atlas .lw-nav ul { display: block; }
    .lw-atlas .lw-nav a { border-bottom: 1px solid #52625d; padding: .9rem .2rem; font-size: 1rem; }
    .lw-atlas .lw-nav .sub-menu { position: static; min-width: 0; padding-left: .8rem; border: 0; }
}
.lw-atlas :is(.lw-widget-hero,.lw2-home-hero) {
    position: relative; isolation: isolate; overflow: hidden; display: grid;
    grid-template-columns: 1fr; gap: 0; align-items: end; padding: 0;
    min-height: clamp(420px,65vh,760px); width: 100%; margin: 0; border-radius: 0;
    background: var(--atlas-ink) !important; color: white !important;
}
.lw-atlas :is(.lw-widget-hero-media,.lw2-home-hero > img) {
    position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; margin: 0; border-radius: 0;
}
.lw-atlas .lw-widget-hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.lw-atlas :is(.lw-widget-hero,.lw2-home-hero)::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(0deg,rgba(10,20,18,.98),rgba(10,20,18,.72) 44%,rgba(10,20,18,.06));
}
.lw-atlas :is(.lw-widget-hero-copy,.lw2-home-copy) { align-self: end; padding: clamp(24px,4vw,68px); max-width: 54rem; }
.lw-atlas :is(.lw-widget-hero-copy,.lw2-home-copy) h1 {
    font: 500 clamp(3rem,6.3vw,7rem)/.97 Georgia,serif; letter-spacing: -.055em; max-width: 15ch; text-wrap: balance;
}
.lw-atlas .lw-widget-photo-caption { top: .7rem; right: .7rem; left: auto; bottom: auto; max-width: 48%; }
.lw-atlas .lw-native-hero-section { padding: 0 !important; }
.lw-atlas .lw-native-hero-section > :is(.elementor-container,.e-con-inner) { width: 100%; max-width: none; padding: 0; }
.lw-atlas :is(.lw-widget-section-intro,.lw2-home-news,.lw-archive-hero) :is(h1,h2),
.lw-atlas .lw-article-title { font-family: Georgia,serif; font-weight: 500; letter-spacing: -.045em; }
.lw-atlas :is(.lw-widget-post-card,.lw-widget-action-card) { border-radius: 0; box-shadow: none; }
.lw-atlas .lw-widget-post-body time { text-transform: uppercase; letter-spacing: .11em; font-size: .75rem; }
.lw-atlas .lw2-team { background: #e6eee8; }
.lw-atlas .lw-footer { background: var(--atlas-ink); }
@media(max-width:900px) {
    .lw-atlas .lw-header { position: relative; }
    .lw-atlas .lw-header > .lw-wrap { min-height: 64px; }
}
.lw-atlas .lw-widget-hero-media { z-index: auto; pointer-events: none; }
.lw-atlas .lw-widget-hero-media > img { position: absolute; inset: 0; z-index: -2; }
.lw-atlas .lw-widget-photo-caption { z-index: 1; }
.lw-atlas .lw-widget-hero-copy { position: relative; z-index: 2; }
