:root {
    --font-body: Noto Sans,sans-serif;
    --font-headings: Noto Sans Display, sans-serif;

    --primary-color: rgb(26 107 229);
    --text-primary: var(--primary-color);
    --gradient: #563FE1, #08C3E0;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 9rem;
    interpolate-size: allow-keywords;
}

a {
    text-underline-offset: 0.25rem;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img, picture {
    font-style: italic;
    font-size: 0.75rem;
}

input,
button,
textarea,
select {
    font: inherit;
}

:focus-visible {
	outline: 3px solid rgb(255 203 0);
	outline-offset: 0.25rem;
}

ul, ol {
    &:not([class]) {
        padding-left: 0;
        list-style: none;
    }
}
button, .button {
    --transition: 0.15s;
    
    color: #000;
    background: linear-gradient(to bottom right, #fff, #fff);
    line-height: 1;
    padding: 0.875rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-style: none;
    border-radius: 20rem;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all var(--transition) ease;
    cursor: pointer;
    text-decoration: none;
    
    &.circle {
        aspect-ratio: 1;
        padding: 0;
        display: grid;
        justify-content: center;
        align-items: center;
    }
    
    svg {
        width: 1rem;
        height: 1rem;
        transition: all var(--transition) ease;
        
        path {
            color: var(--text-primary);
            transition: all var(--transition) ease;
        }
    }

    &:hover {
        color: #fff;
        background: linear-gradient(to bottom right, var(--gradient));
        svg > path { color: #fff; }
    }
    
    &:active {
        color: #fff;
        background: #254088;
        svg > path { color: #fff; }
    }
    
    &.text-primary {
        color: var(--text-primary);
        
        &:hover {
            color: #fff;
        }
    }
    
    &.black {
        background: #000;
        color: #fff;

        svg > path { color: #fff; }
        
        &:hover {
            color: #fff;
            background: linear-gradient(to bottom right, var(--gradient));
        }

        &:active {
            color: #fff;
            background: linear-gradient(to bottom right, #254088, 254088);
        }
    }
}

textarea {
    field-sizing: content;
}

article, blockquote, dl, embed, iframe, ol, p, table, ul {
    margin-block-start: 1.5rem;
    margin-block-end: 0;
 
    &:first-child {
        margin-block-start: 0;
    }
}

/* Layout */
body {
    display: grid;
    grid-template-rows: [header-start] auto [header-end content-start] 1fr [content-end footer-start] auto [footer-end];
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    height: 100%;
    padding: 0;
    margin: 0;
    color: rgb(109 109 109);
    padding-top: 7.25rem;
    position: relative;
    
    > header {
        grid-row: header;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        width: 100%;
        z-index: 500;
        background: linear-gradient(to bottom right, var(--gradient));

        .signup {
            height: 3.25rem;
            background-color: #000;
            color: #fff;
            
            .container {
                display: grid;
                justify-content: center;
                align-items: center;
                height: 100%;
            }

            .heading {
                font-size: 1.3rem;
                font-weight: 900;
                color: #fff;
                display: flex;
                align-items: center;
                gap: 0.5rem;
                text-decoration: none;
                
                &:hover {
                    text-decoration: underline;
                }
                
                svg {
                    width: 1rem;
                    height: 1rem;
                }
            }
        }
        
        .header {
            padding: 0 1.25rem;
            
            .container {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 1rem;
                padding: 0.625rem 0;
                
                
                .site-logo {
                    width: 160px;
                    height: 32px;
                    color: #fff;
                    
                    @media (min-width: 640px) {
                        width: 215px;
                        height: 43px;
                    }
                }
            }
        }
    }

    > main {
        grid-row: content;

        > .content-wrapper {
            padding: 0 1.25rem;
            
            > .content {
                padding: 1.25rem 0;
                
                @media (min-width: 780px) {
                    padding: 3.5rem 0;
                }
            }
        }
        
        .prose {
            text-align: center;
            max-width: 860px;
            margin: 0 auto 3rem auto;
        }
        
        .split-list {
            columns: 2;
            max-width: 1160px;
            margin: 0 auto;
            padding-left: 0;
            
            > li {
                margin-bottom: 0.25rem;
            }
        }
    }

    > footer {
        grid-row: footer;
        background-color: #000;
        color: #fff;
        
        > .footer {
            padding: 0 1.25rem;
            
            > .container {
                padding: 2.5rem 0;
            }
        }
        
        .container {
            display: grid; 
            align-items: start;
            gap: 1rem;
            grid-template-columns: repeat(2, 1fr);
            
            @media (min-width: 900px) {
                grid-template-columns: 2fr 1fr 1fr;
            }

            .footer-logos {
                display: flex;
                gap: 1rem;
                align-items: center;

                .site-logo { 
                    width: 150px; 
                    height: 30px;
                }
                .qgov-logo { 
                    width: 350px;
                    /*width:115px; */
                    /*height: 38px;*/
                }

                @media (width < 900px) {
                    grid-column: span 3;
                }

                @media (min-width: 900px) {
                    .site-logo { 
                        width: 216px; 
                        height: 43px;
                    }
                    .qgov-logo { 
                        /*width: 164px; 
                        height: 54px;*/
                        width:450px;
                    }
                }
            }
            
            .footer-links {
                display: grid;
                gap: 0.25rem;
                list-style: none;
                padding: 0;
                margin: 0;
                
                a {
                    color: #fff;
                    font-size: 0.875rem;
                }
            }
            
            .contact-us {
                display: grid;
                gap: 1rem;
                justify-items: start;

                * { margin: 0; }
                
                .phone-link {
                    display: flex;
                    gap: 0.5rem;
                    align-items: center;
                    color: #fff;
                    font-weight: 700;
                    text-decoration: none;
                    
                    svg > path {
                        color: #fff;
                    }
                }
            }
            
            &.copyright {
                grid-template-columns: unset;
                padding: 1.5rem 0;

                @media (min-width: 900px) {
                    justify-content: end;
                }

                p { 
                    font-size: 0.875rem;
                    margin: 0;
                }
            }

            &.footer {
                padding: 2.5rem 0 4rem 0;
            }
        }
        
        
        hr {
            height: 0;
            color: #fff;
            border-style: none;
            border-top: 1px solid #fff;
            margin: 0;
        }
    }
    
    .container {
        width: 100%;
        max-width: 1310px;
        margin: 0 auto;
    }
}

h1, h2, h3, h4, h5, h6, .heading,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-headings);
    font-weight: 900;
    font-style: italic;
    text-wrap: balance;
    text-transform: uppercase;
    line-height: 1.2;
    margin-block-end: 0;
    
    .content & {
        color: #000;
    }
    
     &:first-child {
        margin-block-start: var(--element-start-spacing, 0);
    }
}

h1, .h1 { 
    font-size: 2.75rem;
    
    @media (min-width: 1024px) {
        font-size: 3rem; 
    }
}
h2, .h2 { font-size: 2.5rem; }
h3, .h3 { font-size: 1.875rem; }
h4, .h4 { font-size: 1.5rem; margin-block-end: 0; }

h4 + p {
    margin-block-start: 0.5rem;
}

p {
    text-wrap: pretty;
}

.page-banner {
    overflow: hidden;
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    padding: 0 1.5rem;
    background: linear-gradient(to bottom right, var(--gradient));
    height: 400px;
    
    @media (min-width: 640px) {
        height: 590px;
    }

    img {
        position: absolute;
        inset: 0;
        object-fit: cover;
        object-position: 50% 50%;
        width: 100%;
        height: 100%;
        z-index: -1;
        animation: fade-in 1s ease forwards;
    }
    
    video {
        position: absolute;
        inset: 0;
        object-fit: cover;
        object-position: 50% 50%;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 10;
    }
    
    #video-pause-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 20;
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .banner-box {
        display: grid;
        justify-content: center;
        background: linear-gradient(to bottom right, var(--gradient));
        color: #fff;
        max-width: 1080px;
        width: 100%;
        text-shadow: 1px 1px 2px rgb(0 0 0 / 25%);
        z-index: 20;
        padding: 1.5rem 2.5rem;

        @meda (min-width: 768px) {
            padding: 2rem 2.5rem;
        }
        
        p {
            text-align: center;
            font-size: 0.75rem;
            margin-bottom: 0.5rem;
        }
        
        h1 {
            color: #fff;
            margin: 0;
            line-height: 1;
            font-size: clamp(1.75rem, 4vw, 3rem);
            text-align: center;
        }
    }
}

.promo-banner {
    background: linear-gradient(to bottom right, var(--gradient));
    padding: 2.5rem 1.25rem;
    color: #fff;
    
    .container {
        display: flex;
        justify-content: start;
        flex-direction: column;
        gap: 1rem;
        
        @media (min-width: 768px) {
            flex-direction: row;
            justify-content: space-between;
        }
    }
}

/* Gradient class applied via Design Customisation optional variables */
.delivery-plan {
    h1.page-heading {
        margin-bottom: 1.5rem;
        color: #fff;
        text-shadow: 1px 1px 2px rgb(0 0 0 / 25%);
    }
    
    .content-wrapper {
        position: relative;
        isolation: isolate;

        &::before,
        &::after {
            position: absolute;
            width: 100%;
            height: 75vh;
            content: '';
        }

        &::before {
            top: 0;
            left: 0;
            background: linear-gradient(to bottom right, var(--gradient));
            z-index: -1;
            
        }
        
        /* White Gradient */
        &::after {
            position: absolute;
            top: 0;
            left: 0;
            background: linear-gradient(to top, white, transparent);
            z-index: -1;
        }
    }
}

.delivery-updates {
    list-style: none;
    padding: 0;
    max-width: 860px;
    margin: 0 auto;
    
    ul {
        list-style: disc;
        margin: 0;
    }
}


.breadcrumbs-container {
    padding: 0 1.25rem;
}
.breadcrumbs {
    list-style: none;
    padding: 0;
    display: flex;
    padding: 0.75rem 0;

    li {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--primary-color);
        
        a {
            color: var(--primary-color);
        }
        
        &:not(:last-child):after {
            margin: 0 0.5rem;
            content: '>';
        }
    }
}

.image-cards {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 3rem 4rem;
    margin-bottom: 3rem;

    > li {
        display: grid;
        align-items: center;
        grid-template-rows: [image-start] auto [image-end content-start] auto [content-end];
        row-gap: 2rem;
        
        @media (min-width: 768px) {
            row-gap: unset;
            gap: 2rem;
            grid-template-rows: unset;
    
            &:nth-child(odd)  { grid-template-columns: [image-start] 1fr [image-end content-start] 1fr [content-end]; }
            &:nth-child(even) { grid-template-columns: [content-start] 1fr [content-end image-start] 1fr [image-end]; }
        }
        @media (min-width: 1440px) {
            &:nth-child(odd)  { grid-template-columns: [image-start] 2fr [image-end content-start] 1fr [content-end]; }
            &:nth-child(even) { grid-template-columns: [content-start] 1fr [content-end image-start] 2fr [image-end]; }
        }
        
        .card-image {
            grid-column: image;
            grid-row: image;
            aspect-ratio: 4/3;
            
            @media (min-width: 1024px) {
                grid-row: unset;
            }
            
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            figcaption {
                font-size: 0.75rem;
                margin-top: 0.25rem;
                color: #666;
            }
        }

        .card-text {
            display: grid;
            align-items: center;
            grid-column: content;
            grid-row: content;
            
            @media (min-width: 1024px) {
                grid-row: 1;
            }

            .card-container {
                display: grid;
                align-items: start;
                
                .card-header {
                    display: grid;
                    gap: 0.75rem;
                    line-height: 1.2;
                    margin-bottom: 2rem;
                    
                    * {
                        margin: 0;
                    }

                    h2 {
                        line-height: 1.2;
                    }

                    .category,
                    .location {
                        color: var(--text-primary);
                        font-size: 0.875rem;
                    }
                    
                    .category {
                        text-transform: uppercase;
                        font-weight: 600;
                    }
                    
                    .location {
                        display: flex;
                        align-items: center;
                        gap: 0.5rem;
                    }
                }

                ul {
                    list-style: disc;
                    padding: 0 0 0 1rem;
                    margin: 0;
                }
                
                .card-button {
                    margin-top: 2rem;
                }
            }
        }
    }
    
    &.columns-2 {
        > li {
            @media (min-width: 1024px) {
                &:nth-child(odd) {
                    grid-template-columns: [image-start] 1fr [image-end content-start] 1fr [content-end];
                }
                &:nth-child(even) {
                    grid-template-columns: [content-start] 1fr [content-end image-start] 1fr [image-end];
                }
            }
            
            .card-image {
                aspect-ratio: unset;
            }
        }
    }
    
    &.swap {
        > li {
            @media (min-width: 1024px) {
                &:nth-child(even) {
                    grid-template-columns: [image-start] 2fr [image-end content-start] 1fr [content-end];
                }
                &:nth-child(odd) {
                    grid-template-columns: [content-start] 1fr [content-end image-start] 2fr [image-end];
                }
            }
        }
    }
}

.info-cards {
    display: grid;
    grid-template-rows: auto auto auto;
    align-items: start;
    gap: 2rem;
    list-style: none;
    padding: 0;

    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
    }

    > li {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        align-items: start;
        gap: 1.5rem;

        @media (min-width: 1440px) {
            padding: 0 3rem;
        }
        
        .card-header {
            display: grid;
            gap: 0.25rem;
            text-align: center;
        
            * {
                margin: 0;
            }
        
            .category,
            .location {
                color: var(--text-primary);
                font-size: 0.875rem;
            }
            
            .category {
                text-transform: uppercase;
                font-weight: 600;
            }
            
            .location {
                display: flex;
                align-items: center;
                gap: 0.5rem;
                justify-content: center;
            }
        }
        
        .card-content {
            text-align: left;
            padding: 0 1rem;
        }
 
        .card-image {
            aspect-ratio: 14/9;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
            figcaption {
                font-size: 0.75rem;
                margin-top: 0.25rem;
                color: rgb(173 173 173);
                text-align: left;
            }            
        }
    }
}

.delivery-updates {
    display: grid;
    gap: 4rem;
    
    li ul {
            margin: 1rem 0 1rem 2.5rem;
            /*
        margin-left:20px;margin-top:20px;*/}
    
    > li {
        .date {
            color: var(--text-primary);
            font-size: 0.875rem;
            font-weight: 700;
        }
        h2 {
            margin-top: 1rem;
        }
        
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        p > img + em {
            display: block;
            margin-top: 0.25rem;
            font-size: 0.875rem;
        }
        
        .card-button {
            margin-top: 1.5rem;
        }
    }
}

.page-not-found {
    text-align: center;
    max-width: 1080px;
    margin: 0 auto;
    
    h1, h2 {
        line-height: 1;
    }

    h1.title {
        background-clip: text;
        color: #fff;
        clip-path: inset(2px);
        -webkit-text-stroke: 5px transparent;
        font-size: 18.75rem;
        margin: 0;
        background-image: linear-gradient(to bottom right,var(--gradient));
    }
    
    h2.sub-title {
        background-clip: text;
        color: transparent;
        clip-path: inset(2px);
        background-image: linear-gradient(to bottom right,var(--gradient));
        font-size: 2.5rem;
    }
    .button {
        margin-top: 1.5rem;
    }
}


.w25 { width: 25%; }
.w50 { width: 50%; }
.w75 { width: 75%; }
.center { 
    margin-left: auto; 
    margin-right: auto;
    text-align: center;
}

.statistics {
    background-color: rgb(245 245 245);
    padding: 3.5rem 1rem;
    margin-bottom: 4rem;
    display: grid;
    list-style: none;
    padding-left: 0;
    gap: 1rem;
    
    @media (min-width: 1024px) {
        grid-template-columns: repeat(3, 1fr);
    }

    > li {
        display: grid;
        font-family: var(--font-headings);
        font-weight: 900;
        font-style: italic;
        text-transform: uppercase;
        background-clip: text;
        clip-path: inset(2px);
        background-image: linear-gradient(to bottom right,var(--gradient));
        color: transparent;
        text-align: center;
        padding: 0 1.5rem;

        .number {
            font-size: 10rem;
            line-height: 1;
            > span {
                font-size: 3.5rem;
            }
        }
        .text {
            font-size: 2.125rem;
            line-height: 1.1;
        }
    }
}

.timeline-container {
    max-width: 1080px;
    margin: 0 auto 4rem auto;

    .timeline {
        color: #fff;
        background-image: linear-gradient(to bottom right,var(--gradient));
        list-style: none;
        padding: 3rem 0;
        box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.1);
        
        > li {
            display: grid;
            grid-template-columns: 3.5fr 5.75fr;
            align-items: center;
            text-shadow: 1px 1px 2px rgb(0 0 0 / 25%);
            line-height: 1.3;
            
            .date {
                position: relative;
                text-align: right;
                padding: 1rem;
                font-family: var(--font-headings);
                font-weight: 800;
                font-size: clamp(1rem, 3vw, 1.875rem);
                font-style: italic;
    
                @media(min-width: 760px) {
                    padding: 3rem;
                }

                &::before,
                &::after {
                    position: absolute;
                    background-color: #fff;
                    content: '';
                }
                
                &::before {
                    width: 2px;
                    height: calc(100% + 4rem);
                    top: -2rem;
                    left: calc(100% + 1px);
                }
    
                &::after {
                    width: 0.75rem;
                    height: 0.75rem;
                    display: block;
                    border-radius: 1rem;
                    top: 50%;
                    left: calc(100% - 0.25rem);
                    transform: translateY(-50%);
                }
            }
            .description {
                padding: 1.5rem;
                font-size: 1.5rem;
                font-size: clamp(1rem, 3vw, 1.5rem);
                text-wrap: balance;

                @media(min-width: 760px) {
                    padding: 3rem;
                }
            }
    
            &:first-child {
                .date:before {
                    top: 50%;
                }            
            }
        }
    }
}

@starting-style {
    #primary-nav { transform: translateX(100%);  }

    #primary-nav::backdrop { opacity: 0; }
}

#primary-nav {
    margin: 0 0 0 auto;
    border-style: none;
    background-image: linear-gradient(to bottom right, var(--gradient));
    z-index: 500;
    height: 100vh;
    color: #fff;
    max-height: unset;
    text-shadow: 1px 1px 2px rgb(0 0 0 / 25%);
    box-shadow: 0 10px 30px 0 rgb(0 0 0 / 30%);
    padding: 1rem 1rem 1rem 2rem;
    width: 100%;
    
    @media (min-width: 768px) {
        width: 50%;
    }

    .nav-content {
        display: grid;
        align-content: start;
    }

    a {
        color: #fff;
            text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
        
        &:not(.heading) {
            font-weight: 700;
            font-size: 1.125rem;
            transition: opacity 0.15s ease;
            opacity: 0.75;
            padding-left: 1rem;
            
            &:hover {
                opacity: 1;
            }
        }
    }
    
    .primary-nav {
        list-style: none;
        padding-left: 0;
        display: grid;
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }
    
    .closeDialog {
        justify-self: end;
        width: 3rem;
        width: 3rem;
        
        svg {
            width: 1.75rem;
            height: 1.75rem;
        }
    }
    
    .qgov-nav-logo {
        width: 220px;
    }
    
    &:modal::backdrop {
        background-color: rgb(0 0 0 / 50%);
        backdrop-filter: blur(4px);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    &[open] {
        animation: slide-in 0.3s ease-in forwards;
        
        &::backdrop { opacity: 1; }
    }

    &.closing {
        animation: slide-out 0.2s ease-out forwards;
    
        &::backdrop { opacity: 0; }
    }
}

@keyframes slide-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slide-out {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

body:has(dialog[open]) {
    overflow: hidden;
}



.legacy-container {
    padding: 3rem 1.5rem;
    background-color: rgb(245 245 245);
    
    .legacy-for-qld {
        display: grid;
        align-items: center;
        max-width: 1310px;
        margin: 0 auto;
        gap: 2rem;

        @media (min-width: 1440px) {
            gap: 4rem;
            grid-template-columns: repeat(2, 1fr);
        }
        
        .cards {
            display: grid;
            list-style: none;
            padding: 0;
            margin: 0;
            height: 100%;
            gap: 1.5rem;

            @media (min-width: 640px) {
                grid-template-columns: repeat(2, 1fr);
            }    
            
            > li {
                display: grid;
                padding: 0;
                position: relative;
                
                > * {
                    grid-area: 1 / 1;
                }
                
                background: linear-gradient(to bottom right, var(--gradient));
                overflow: hidden;
    
                p, .button {
                    z-index: 5;
                }
                
                p {
                    color: #fff;
                    text-shadow: 0 2px 16px rgb(0 0 0 / 75%);
                    line-height: 1.1;
                    justify-self: center;
                    align-self: center;
                    text-align: center;
                    margin-top: -1rem;
                    max-width: 75%;
                }
    
                .button {
                    align-self: end;
                    justify-self: center;
                    margin-bottom: 1rem;
    
                    &::after {
                        position: absolute;
                        inset: 0;
                        content: '';
                    }
                }
            
                
                .image {
                    background-color: transparent;
                    transition: background-color 0.25s ease-in-out;
                    aspect: 1;
                    
                    img {
                        padding: 1rem 1rem 2rem 1rem;
                        width: 100%;
                        height: 100%;
                        aspect-ratio: 1;
                        object-fit: cover;
                        z-index: 1;
                        scale: 1;
                        background-color: transparent;
                        transition: scale 0.25s ease-in-out, opacity 0.25s ease-in-out;
                    }
                }
                
                &:hover {
                    .image {
                        background-color: #000;
    
                        img {
                            scale: 1.3;
                            opacity: 0.8;
                        }
                    }
                }
            }
        }
    }
}

.subscribe {
    display: grid;
    gap: 2rem;
    list-style: none;
    padding: 0;

    @media (min-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 8rem;
    }
    
}

.page-header {
    display: grid;
    height: calc(100vh - 7.25rem);
    background: linear-gradient(to bottom right, var(--gradient));
    align-items: center;
    justify-items: center;
    position: relative;
    overflow: hidden;

    /* Gradient */
    &::after {
        position: absolute;
        bottom: 0;
        left: 0;
        background: linear-gradient(to top, white, transparent);
        width: 100%;
        height: 25%;
        z-index: 10;
        content: '';
    }

    > * {
        grid-area: 1 / 1;
    }
    
    .page-text {
        max-width: 1310px;
        width: 100%;
        display: grid;
        justify-items: center;
        z-index: 20;
        padding: 0 2.5rem;
        
        h1, p {
            color: #fff;
            text-align: center;
            text-shadow: 0 2px 16px rgba(0,0,0,.75);
        }
        
        h1 {
            font-size: clamp(3rem, 5vw, 7rem);
            line-height: 1;
        }
        
        p {
            font-weight: 700;
        }
        .button {
            margin-top: 1.5rem;
        }
    }
    
    video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 10;
        align-self: center;
        overflow: hidden;
    }
    
    #video-pause-button {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 20;
        width: 1.75rem;
        height: 1.75rem;
        z-index: 50;
    }
}


/* Video Player */
.video {
    position: relative;
    isolation: isolate;
    aspect-ratio: 14/9;
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto 2rem auto;
    
    @media (min-width: 780px) {
        margin: 0 auto 4rem auto;
    }
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        width: 3.5rem;
        height: 3.5rem;
        box-shadow: 2px 3px 5px 0 rgb(0 0 0 / 25%);

        &:active {
            box-shadow: 0 0 2px 0 rgb(0 0 0 / 50%);
            top: calc(50% + 2px);
        }
        
        svg {
            width: 2.5rem;
            height: 2.5rem;
        }
    }
}

#video-player {
    background-color: #000;
    border-style: none;
    padding: 2rem;
    width: 100%;
    
    @media (min-width: 1024px) { width: 75%; }
    @media (min-width: 1440px) { width: 50%; }
    
    .video-container {
        max-width: 1320px;
        width: 100%;
        gap: 0.5rem;
        color: #ccc;
        
        .toolbar {
            display: flex;
            justify-content: end;
            
            button {
                justify-self: end;
                align-self: top;
            }
        }
        
        iframe {
            aspect-ratio: 16 / 9;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        
        details {
            summary {
                cursor: pointer;
                padding: 0.5rem 1rem;
                border-bottom: 1px solid #999;
            }

            .transcript-content {
                max-height: 210px;
                overflow-y: auto;
                font-size: 0.9rem;
                padding: 0 2rem 0 1rem;

                p {
                    margin-block-start: 1rem;
                }
            }
        }

        .closeDialog {
            justify-self: end;
            width: 3rem;
            width: 3rem;
            
            svg {
                width: 1.75rem;
                height: 1.75rem;
            }
        }
    }

     &::backdrop {
        background-color: rgb(0 0 0 / 85%);
        backdrop-filter: blur(4px);
    }   
}

form {
    fieldset {
        display: grid;
        gap: 1.5rem;
        border-style: none;
        padding: 0;

        legend.h4 {
            margin-block-end: 1rem;
        }

        .form-group {
            display: grid;
            gap: 0.25rem;
            
            label {
                display: flex;
                gap: 0.25rem;
                font-size: 0.75rem;
                font-weight: 700;
                color: #000;
            }
            
            input {
                background-color: rgb(245 245 245);
                padding: 0.5rem;
                font-size: inherit;
                border-style: none;
                border-bottom: 1px solid #000;
            }
            
            &:has(input[required]) label::before {
                content: "*";
                color: #c00;
            }
            
            button {
                justify-self: start;
            }
        }
        .checkbox-group {
            display: flex;
            gap: 0.5rem;
            align-items: start;
            
            label {
                font-size: 0.875rem;
                
                a {
                    color: inherit;
                    
                    &:hover {
                        color: #000;
                    }
                }
            }
            
            input[type="checkbox"] {
                aspect-ratio: 1;
                width: 1.5rem;
                height: 1.5rem;
                margin: 0;
                padding: 0;
                accent-color: var(--text-primary);
            }
        }
    }
}

.recaptcha-disclaimer {
    margin-top: 3rem;
    font-size: 0.75rem;
    
    a {
        color: inherit;
        
        &:hover {
            color: #000;
        }
    }
}


.news-post {
    .content-wrapper {
        position: relative;
        isolation: isolate;

        &::before,
        &::after {
            position: absolute;
            width: 100%;
            height: 25vh;
            content: '';
        }

        &::before {
            top: 0;
            left: 0;
            background: linear-gradient(to bottom, #eee, #fff);
            z-index: -1;
            
        }
    }
    
    .news-publish-date {
        color: var(--text-primary);
        font-weight: 700;
    }
    
    .news-summary {
        font-size: 1.25rem;
        color: #555;
        margin: 2rem 0 3rem 0;
        text-wrap: balance;
    }
    
    .news-body {
        text-wrap: balance;
        
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            max-width: 1024px;
        }
    }
    .news-body ul {
        list-style:disc;
        padding-left:40px;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.debug, 
.debug * {
    background-color: rgb(255 0 0 / 10%) !important;
}