/* Global header and footer styles */

:root {
    --ncc-green: hsl(114, 51.95%, 30.2%);
}

.global-header, .global-footer {
    background-color: #414343;
}

.global-header {
    padding: 0.5rem 0;
    position: relative;
    z-index: 999;
}

.global-ncc-logo {
    height: 30px;
}

.global-footer {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

    .global-footer ul {
        margin: 0;
        padding: 0;
    }

    .global-footer li {
        display: inline-block;
    }

.global-social-logos li {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.global-social-logos img {
    height: 40px;
}

.global-footer-text {
    font-size: 0.7rem;
    color: #fff;
}

@media (min-width: 768px) {
    .global-footer-text {
        text-align: right;
    }
}

.global-footer-text li:not(:last-of-type) {
    margin-right: 0.5rem;
}

.global-footer-text a {
    color: inherit;
    text-decoration: underline;
}

/*Sitewide alert extra styles*/

.site-alert {
    padding: 0.5rem;
}

    .site-alert a, .site-alert a:hover {
        color: inherit;
        text-decoration: underline;
    }

    .site-alert p:last-of-type {
        margin-bottom: 0;
    }
    
div.site-alert.alert-mourning {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    display: block;
}    

/* Cookie message */

#cookie-message {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    padding: 0 15px;
    font-size: 12pt;
    max-height: 0;
    transition: max-height 0.2s;
}

@media (min-width: 768px) {
    #cookie-message {
        font-size: 14pt;
    }
}

#cookie-message p {
    margin: 15px 0;
}

#cookie-message a {
    color: inherit;
    text-decoration: underline;
}

    #cookie-message a:hover {
        color: #ccc;
    }

#accept-cookies {
    font-size: inherit;
    color: #fff !important;
    background-color: #dc2626;
    transition: background-color 0.25s;
    padding: 6px 20px;
    border: 0;
    border-radius: 6px;
    margin: 0 0 15px;
}

    #accept-cookies:hover {
        text-decoration: none;
        background-color: #e24f4f;
    }

/* Scroll to top button */

#scrollToTop {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    width: 2rem;
    text-align: center;
    line-height: 2rem;
    border-radius: 50%;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.25s, opacity 0.25s;
    z-index: 3;
}

    #scrollToTop.show {
        visibility: visible;
        opacity: 1;
    }

html {
    scroll-behavior: smooth;
}

/*video embed margins*/

.fluid-width-video-wrapper {
    margin: 1.2em 0;
}

figure {
        /* width: min-content; */

        &.logo {
            @media (min-width: 992px) {
            float: right;
            margin-left: 2rem;
            }
        }
}

figure.logo img {
    width: 380px;
    object-fit: contain;
    margin: 2rem 0;
}

.umb-block-list:has(.feature-icon, a .card, .flex-block) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
}

.umb-block-list {
    display: contents;
}
.cta-block-items {
    justify-content: center;
}
.flex240 {
        flex-basis: 240px;

        & .card-body {
            padding: 0.65rem;
        }
    }

.flex360 {
    flex: 360px 1 0;
}
    .video-container {
        width: 745px;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        margin: 2rem auto;
        box-shadow: 0 12px 16px -10px;
        color: #000000;
        border-radius: 9px;
        overflow: hidden;
}

.card-deck {
    gap: 0.85rem;
}

.image-card img, .tile img {
    width: 100%;
    max-height: 240px;
    object-fit: cover;

    &.sq {
    aspect-ratio: 1;

    }
}

.row:has(.image-card), .row:has(.tile) {
    gap:1.2rem;
}

.row.v-centre > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

}

.checked-list {
    ul {
        list-style-type: none;
        padding-left: 0;
        li {
            display: flex;
            justify-content: space-between;
            &::after {
                content: "\2611";
                margin-right: 1rem;
                margin-top: -5px;
                font-size: 1.6em;
            }
        }
    }
}

/* THEME COLOURS (FALLBACKS) */

.grey-bg {
  background-color: #f1f1f1;
}

.teal-bg {
  background-color: #026666;
}

.terracotta-bg {
  background-color: #c55030;
}

.blue-bg {
  background-color: #2b475a;
}

.gold-bg {
  background-color: #767641;
}

.dark-bg {
  background-color: #444;
}

.button.teal {
  background-image: linear-gradient(#027f7f, #026666);
}
.button.teal:hover {
  background-image: linear-gradient(#026666, #027f7f);
}
.button.terracotta {
  background-image: linear-gradient(#d05e3e, #c55030);
}
.button.terracotta:hover {
  background-image: linear-gradient(#c55030, #d05e3e);
}
.button.blue {
  background-image: linear-gradient(#33556b, #2b475a);
}
.button.blue:hover {
  background-image: linear-gradient(#2b475a, #33556b);
}
.button.gold {
  background-image: linear-gradient(#86864a, #767641);
}
.button.gold:hover {
  background-image: linear-gradient(#767641, #86864a);
}
.button.dark {
  background-image: linear-gradient(#515151, #444);
}
.button.dark:hover {
  background-image: linear-gradient(#444, #515151);
}


/* TIPTAP FORCES P TAGS INTO LI LIST ELEMENTS - STYLE AROUND THIS BY REMOVING PARAGRAPH MARGIN FOR LISTS  */
li > p {
    margin-bottom: 0;
}


/*  DEFAULTS FOR THE ON THIS PAGE BLOCK  */
#tocTarget {
    border-bottom: 6px solid;
    border-top: 1px solid;
    margin: 1rem auto;
    padding: 1.45rem 1rem;
    background: aliceblue;

    & h2 {
        font-size: 1.35rem;
        font-weight: 700;
    }
}