/* WPD Ambulance - Rosthern Charity Golf Tournament 2026 content block v5
   Intended to be embedded inside the existing WPD site header/footer.
   Uses Bootstrap/container classes already present on the site, with all custom rules namespaced. */

.wpd-golf-2026 {
    --golf-green-dark: #001f0b;
    --golf-green: #073d16;
    --golf-green-mid: #1f6b25;
    --golf-lime: #c7ef00;
    --golf-lime-soft: #8cc83a;
    --golf-white: #ffffff;
    --golf-ink: #03190b;
    --golf-title-dark: #003619;
    --golf-panel: #f8fbf4;
    --golf-shadow: rgba(0, 0, 0, 0.35);
    background: var(--golf-green-dark);
    color: var(--golf-white);
    font-family: inherit;
    overflow: hidden;
}

.wpd-golf-2026 * {
    box-sizing: border-box;
}

.wpd-golf-2026 a {
    color: var(--golf-lime);
    font-weight: 700;
    text-decoration: underline;
}

.wpd-golf-2026 a:hover,
.wpd-golf-2026 a:focus {
    color: var(--golf-white);
}

.wpd-golf-hero,
.wpd-golf-event-title,
.wpd-golf-details,
.wpd-golf-sponsors,
.wpd-golf-raffle {
    position: relative;
    isolation: isolate;
}

.wpd-golf-hero::before,
.wpd-golf-event-title::before,
.wpd-golf-sponsors::before,
.wpd-golf-raffle::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 9% 18%, transparent 0 3.7rem, rgba(199, 239, 0, 0.16) 3.85rem 4.05rem, transparent 4.2rem),
        radial-gradient(circle at 18% 56%, transparent 0 4.2rem, rgba(199, 239, 0, 0.18) 4.35rem 4.6rem, transparent 4.75rem),
        radial-gradient(circle at 33% 30%, transparent 0 3.2rem, rgba(140, 200, 58, 0.14) 3.35rem 3.55rem, transparent 3.7rem),
        radial-gradient(circle at 52% 72%, transparent 0 4.8rem, rgba(199, 239, 0, 0.13) 4.95rem 5.2rem, transparent 5.35rem),
        radial-gradient(circle at 73% 23%, transparent 0 4.3rem, rgba(140, 200, 58, 0.16) 4.45rem 4.7rem, transparent 4.85rem),
        radial-gradient(circle at 89% 62%, transparent 0 3.6rem, rgba(199, 239, 0, 0.13) 3.75rem 3.95rem, transparent 4.1rem),
        radial-gradient(circle at 3% 82%, rgba(199, 239, 0, 0.14) 0 3.1rem, transparent 3.25rem),
        radial-gradient(circle at 97% 12%, rgba(140, 200, 58, 0.10) 0 3.6rem, transparent 3.8rem);
    background-size: 100% 100%;
    opacity: 0.98;
}

.wpd-golf-hero::after,
.wpd-golf-event-title::after,
.wpd-golf-sponsors::after,
.wpd-golf-raffle::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(199, 239, 0, 0.08) 0 1px, transparent 2px);
    background-size: 8.2rem 8.2rem, 5.8rem 5.8rem;
    background-position: 0.7rem 1.1rem, 3.2rem 2.6rem;
    opacity: 0.75;
    pointer-events: none;
}

.wpd-golf-hero > .container,
.wpd-golf-event-title > .container,
.wpd-golf-sponsors > .container,
.wpd-golf-raffle > .container {
    position: relative;
    z-index: 1;
}

.wpd-golf-hero {
    padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(0, 18, 5, 0.98), rgba(5, 64, 21, 0.96) 58%, rgba(5, 55, 20, 0.98));
}

.wpd-golf-presented-by {
    max-width: 980px;
    margin: 0 auto 1rem;
    font-size: clamp(0.95rem, 1.6vw, 1.45rem);
    line-height: 1.18;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 6px var(--golf-shadow);
}

.wpd-golf-presented-by span {
    display: block;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9em;
}

.wpd-golf-logo-word {
    margin: 0;
    color: var(--golf-lime);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0.08em 0 #376b16, 0 0.12em 0.18em rgba(0, 0, 0, 0.55);
}

.wpd-golf-logo-word .small-word {
    display: block;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.13em;
}

.wpd-golf-logo-word .large-word {
    display: block;
    font-size: clamp(3.2rem, 9vw, 8rem);
}

.wpd-golf-association {
    margin: clamp(0.75rem, 1.3vw, 1.2rem) 0 0.35rem;
    font-size: clamp(1rem, 2vw, 1.7rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.wpd-golf-date {
    margin: 0;
    font-size: clamp(1.45rem, 3.35vw, 3.05rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 8px var(--golf-shadow);
}

.wpd-golf-event-title {
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    text-align: center;
    background: linear-gradient(135deg, #b9ef18, #50a833 45%, #8fd843 100%);
    color: var(--golf-ink);
}

.wpd-golf-event-title h1,
.wpd-golf-event-title .h1 {
    margin: 0 auto 1.2rem;
    max-width: 1080px;
    color: var(--golf-title-dark) !important;
    font-size: clamp(1.45rem, 3.25vw, 3.35rem);
    line-height: 1.18;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    font-weight: 900;
}

.wpd-golf-event-logos {
    display: block;
    width: min(620px, 82vw);
    height: auto;
    margin: 0 auto;
}

.wpd-golf-details {
    background: #001906;
    padding: 1rem 0 0;
    color: var(--golf-white);
}


.wpd-golf-detail-layout {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(0.75rem, 1.4vw, 1.1rem);
    align-items: stretch;
}

.wpd-golf-details .container {
    width: min(1140px, calc(100% - 2rem));
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.wpd-golf-detail-main {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
    line-height: 1.25;
    font-weight: 700;
}

.wpd-golf-detail-copy p {
    margin: 0 0 0.35rem;
}

.wpd-golf-detail-side {
    display: flex;
    flex: 0 0 clamp(250px, 30%, 335px);
    min-width: 250px;
}

.wpd-golf-highlight-list {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.45rem;
}

.wpd-golf-highlight-card {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    border-radius: 0.35rem;
    background: #2d7c34;
    color: var(--golf-lime);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(0.72rem, 1.25vw, 1rem);
    font-weight: 700;
    line-height: 1.12;
}

.wpd-golf-alibi {
    align-self: stretch;
    width: 100%;
    margin-top: 0.55rem;
    padding: 0.38rem 1rem 0.44rem;
    background: linear-gradient(90deg, #7bbd36, #b3e94f 91%, transparent 92%);
    color: var(--golf-white);
    font-size: clamp(0.82rem, 1.24vw, 1.06rem);
    font-style: italic;
    font-weight: 900;
    line-height: 1.05;
    text-align: left;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.wpd-golf-alibi span {
    display: block;
    white-space: normal;
}

.wpd-golf-sponsors {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    background: linear-gradient(180deg, #001906, #03240d 55%, #001906);
}

.wpd-golf-sponsor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: start;
}

.wpd-golf-sponsor-col {
    display: grid;
    gap: clamp(1rem, 2vw, 1.35rem);
}

.wpd-golf-sponsor-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.28);
    background: var(--golf-panel);
}

.wpd-golf-raffle {
    padding: 0 0 clamp(2rem, 4vw, 3rem);
    background: #001906;
    text-align: center;
}

.wpd-golf-raffle h2 {
    margin: 0 0 0.2rem;
    color: var(--golf-lime);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 700;
    text-transform: uppercase;
}

.wpd-golf-raffle ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: clamp(0.95rem, 1.5vw, 1.25rem);
    font-weight: 700;
}

.wpd-golf-raffle li::before {
    content: "\25AA";
    margin-right: 0.45rem;
    color: var(--golf-white);
}

.wpd-golf-poster-link {
    padding: 1rem 0 2rem;
    background: #001906;
    text-align: center;
}

.wpd-golf-poster-link a {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    border: 0.18rem solid var(--golf-lime);
    border-radius: 999px;
    color: var(--golf-lime);
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.wpd-golf-poster-link a:hover,
.wpd-golf-poster-link a:focus {
    background: var(--golf-lime);
    color: var(--golf-ink);
}

@media (max-width: 991px) {
    .wpd-golf-sponsor-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .wpd-golf-detail-layout {
        display: block;
    }

    .wpd-golf-detail-main {
        display: block;
    }

    .wpd-golf-detail-side {
        display: block;
        min-width: 0;
        margin-top: 0.75rem;
    }

    .wpd-golf-highlight-list {
        display: grid;
    }

    .wpd-golf-alibi {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .wpd-golf-hero {
        padding-top: 2rem;
    }

    .wpd-golf-presented-by {
        font-size: 0.9rem;
    }

    .wpd-golf-logo-word .large-word {
        letter-spacing: 0.03em;
    }

    .wpd-golf-association,
    .wpd-golf-date {
        letter-spacing: 0.05em;
    }

    .wpd-golf-date {
        font-size: clamp(1.35rem, 8vw, 2.15rem);
    }

    .wpd-golf-details {
        padding-top: 1.25rem;
    }

    .wpd-golf-alibi {
        background: #7bbd36;
        border-radius: 0.35rem;
    }

    .wpd-golf-alibi span {
        white-space: normal;
    }

    .wpd-golf-raffle ul {
        display: block;
    }

    .wpd-golf-raffle li {
        margin-top: 0.25rem;
    }
}
/* FINAL WPD Golf live patch
   This targets the actual rendered source:
   #loc_main_content > section > section:nth-of-type(...)
*/

body#secondary #loc_main_content > section {
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    background: #001f0b !important;
    color: #ffffff !important;
    overflow: hidden !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

body#secondary #loc_main_content > section > section {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
}

body#secondary #loc_main_content > section > section > .container {
    position: relative !important;
    z-index: 1 !important;
    width: min(1140px, calc(100% - 2rem)) !important;
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Golf-ball dimple background */
body#secondary #loc_main_content > section > section:nth-of-type(1)::before,
body#secondary #loc_main_content > section > section:nth-of-type(2)::before,
body#secondary #loc_main_content > section > section:nth-of-type(4)::before,
body#secondary #loc_main_content > section > section:nth-of-type(5)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 9% 18%, transparent 0 3.7rem, rgba(199, 239, 0, 0.16) 3.85rem 4.05rem, transparent 4.2rem),
        radial-gradient(circle at 18% 56%, transparent 0 4.2rem, rgba(199, 239, 0, 0.18) 4.35rem 4.6rem, transparent 4.75rem),
        radial-gradient(circle at 33% 30%, transparent 0 3.2rem, rgba(140, 200, 58, 0.14) 3.35rem 3.55rem, transparent 3.7rem),
        radial-gradient(circle at 52% 72%, transparent 0 4.8rem, rgba(199, 239, 0, 0.13) 4.95rem 5.2rem, transparent 5.35rem),
        radial-gradient(circle at 73% 23%, transparent 0 4.3rem, rgba(140, 200, 58, 0.16) 4.45rem 4.7rem, transparent 4.85rem),
        radial-gradient(circle at 89% 62%, transparent 0 3.6rem, rgba(199, 239, 0, 0.13) 3.75rem 3.95rem, transparent 4.1rem);
    opacity: 0.98;
}

/* Hero */
body#secondary #loc_main_content > section > section:nth-of-type(1) {
    padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem) !important;
    text-align: center !important;
    background: linear-gradient(180deg, rgba(0, 18, 5, 0.98), rgba(5, 64, 21, 0.96) 58%, rgba(5, 55, 20, 0.98)) !important;
}

body#secondary #loc_main_content .wpd-golf-date {
    font-size: clamp(1.15rem, 2.3vw, 2.15rem) !important;
    line-height: 1 !important;
}

/* Event title band */
body#secondary #loc_main_content > section > section:nth-of-type(2) {
    padding: clamp(1.25rem, 2.5vw, 2.25rem) 0 !important;
    text-align: center !important;
    background: linear-gradient(135deg, #b9ef18, #50a833 45%, #8fd843 100%) !important;
    color: #003619 !important;
}

body#secondary #loc_main_content h1#wpd-golf-2026-title {
    margin: 0 auto 1rem !important;
    max-width: 1080px !important;
    color: #003619 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(1.35rem, 2.6vw, 2.65rem) !important;
    line-height: 1.16 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
    text-align: center !important;
}

body#secondary #loc_main_content .wpd-golf-event-logos {
    display: block !important;
    width: min(620px, 82vw) !important;
    height: auto !important;
    margin: 0 auto !important;
}

/* Details row */
body#secondary #loc_main_content > section > section:nth-of-type(3) {
    background: #001906 !important;
    padding: 1rem 0 0 !important;
    color: #ffffff !important;
}

/* Sponsors */
body#secondary #loc_main_content > section > section:nth-of-type(4) {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 !important;
    background: linear-gradient(180deg, #001906, #03240d 55%, #001906) !important;
}

/* Raffle */
body#secondary #loc_main_content > section > section:nth-of-type(5) {
    padding: 0 0 clamp(2rem, 4vw, 3rem) !important;
    background: #001906 !important;
    text-align: center !important;
}

body#secondary #loc_main_content > section > section:nth-of-type(5) h2 {
    margin: 0 0 0.2rem !important;
    color: #c7ef00 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(1.2rem, 2vw, 1.7rem) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

body#secondary #loc_main_content > section > section:nth-of-type(5) ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.25rem 2.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    font-size: clamp(0.95rem, 1.5vw, 1.25rem) !important;
    font-weight: 700 !important;
}

body#secondary #loc_main_content > section > section:nth-of-type(5) li::before {
    content: "\25AA";
    margin-right: 0.45rem;
    color: #ffffff;
}

/* Poster link */
body#secondary #loc_main_content > section > section:nth-of-type(6) {
    padding: 1rem 0 2rem !important;
    background: #001906 !important;
    text-align: center !important;
}

body#secondary #loc_main_content > section > section:nth-of-type(6) a {
    display: inline-block !important;
    padding: 0.85rem 1.4rem !important;
    border: 0.18rem solid #c7ef00 !important;
    border-radius: 999px !important;
    color: #c7ef00 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
}

/* Required font corrections */
body#secondary #loc_main_content .wpd-golf-highlight-card,
body#secondary #loc_main_content > section > section:nth-of-type(5) h2 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 700 !important;
}