* {
    font-family: var(--siteFont);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

label {
    font-family: var(--labelFont);
}

footer {
    margin-top: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1 {
    font-weight: 700;
    font-family: var(--largeHeadingFont);
    font-size: 2.5rem;
    line-height: 64px;
}

h2 {
    font-family: var(--largeHeadingFont);
    font-size: 2rem;
    font-weight: 700;
    line-height: 48px;
}

h3, .h3 {
    font-family: var(--smallHeadingFont);
    font-size: 1.75rem;
    line-height: 30px;
    font-weight: 700;
}

h4 {
    margin-bottom: 0.5em;
    font-family: var(--smallHeadingFont);
    line-height: 24px;
    font-size: 1.5rem;
    font-weight: 700;
}

p, .rich-text-container li {
    font-size: 18px;
    line-height: 24px;
}

.large {
    font-size: 24px !important;
    line-height: 32px !important;
}

.small {
    letter-spacing: -.015em;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
}

.small-heading {
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    display: block;
}

a:hover {
    text-decoration: underline;
    cursor: pointer;
}

li {
    margin-bottom: 0.5em;
}

figure {
    margin: 0;
}

.hover-pointer:hover {
    cursor: pointer;
}

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

input[type='checkbox'] {
    accent-color: var(--accentColour);
}

.checkbox-field .primary-input, .primary-input--checkbox {
    min-width: 1.5em;
    height: 42px;
}

.container {
    padding: 3rem;
}

.container__margin-auto {
    max-width: 1140px;
    margin: 2rem auto;
    padding-top: 0;
    padding-bottom: 0;
}

.hidden {
    display: none !important;
}

.hide {
    display: none !important;
}

.show {
    display: block !important;
}

.absolute {
    position: absolute !important;
}

.flex {
    display: flex !important;
}

.flex-basis-45 {
    flex-basis: 45% !important;
}

.grey-900 {
    color: var(--grey-900);
}

.container.rich-text-container > :first-child {
    margin-top: 0;
}

blockquote {
    border-color: var(--nav-child--background-color) !important;
    border-left: 5px solid;
    margin-bottom: 1.5rem;
    margin-left: 0;
    padding: 10px 20px;
    font-size: 1.25rem;
    line-height: 26px;
}

.flex--column {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.danger, .error {
    color: #D90000;
}

.success {
    color: green;
    font-weight: 600;
}

.primary-input {
    font-family: Noto Sans, sans-serif;
    /* color: #737373; */
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    padding: 12px;
}

.primary-dropdown {
    height: 42px;
    /* color: #737373; */
    background-color: #fff;
    border: 1px solid #aaa;
    padding: 0 2px;
}

    .primary-dropdown option:disabled {
        background-color: lightgray;
    }

.disabled {
    background-color: lightgray !important;
}

    .disabled:hover {
        cursor: not-allowed !important;
    }

.highlight {
    font-weight: 600;
}

.no-button-styles {
    border: none;
    background-color: transparent;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    padding: 0;
}

    .no-button-styles:hover {
        cursor: pointer;
    }

.buttons-container {
    display: flex;
    gap: 1.5em;
    margin-top: 2em;
}

    .buttons-container a {
        text-decoration: none !important;
    }

.buttons-container--spread {
    justify-content: space-between;
}

.primary-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid black;
    border-radius: 4px;
    /* box-shadow: 3px 3px 6px rgba(0, 0, 0, .25); */
    text-decoration: none;
    justify-content: center;
    text-align: center;
    display: flex;
    width: fit-content;
    background-color: var(--primaryButtonColour);
    color: var(--primaryButtonTextColour);
}

    .primary-button:hover {
        cursor: pointer;
        filter: brightness(110%);
        text-decoration: none;
    }

    .primary-button a:hover {
        text-decoration: none;
    }

    .primary-button.danger {
        color: #fff;
        background-color: #dc3545;
        border-color: #dc3545;
        font-weight: 400;
        box-shadow: none;
    }

    .primary-button.success {
        color: #fff;
        background-color: #28a745;
        border-color: #28a745;
        font-weight: 400;
        box-shadow: none;
    }

.primary-button.transparent-button {
    background-color: transparent;
    border-color: var(--primaryButtonColour);
    color: var(--primaryButtonColour);
}

.datepicker-button {
    background-color: transparent;
    border: none;
    font-size: 16px;
}

.drawn-border {
    background: transparent;
    padding: 0.5rem 0.5rem;
    font-size: 1rem;
    border-top-left-radius: 255px 15px;
    border-top-right-radius: 15px 225px;
    border-bottom-right-radius: 225px 15px;
    border-bottom-left-radius: 15px 255px;
}

.drawn-border--thick {
    border: solid 3px;
}

.centered-form {
    display: flex;
    justify-content: center;
    padding: 2.5em 0 2em 0;
}

    .centered-form form {
        display: flex;
        flex-direction: column;
        gap: 2em;
        padding: 2rem;
        border-radius: 1rem;
        width: 60%;
    }

.tags {
    --tag-pad: 0;
    max-width: 19em;
    border-radius: 8px;
    min-height: 2em;
}

.fa-magnifying-glass {
    color: #000000;
}

/*Mobile*/
@media (max-width: 550px) {
    h1 {
        font-size: 32px;
        line-height: 40px;
    }

    h2 {
        font-size: 28px;
        line-height: 36px;
    }

    h3, .h3 {
        font-size: 24px;
        line-height: 32px;
    }

    .large {
        font-size: 20px;
        line-height: 24px;
    }

    p, .rich-text-container li {
        font-size: 16px;
        line-height: 20px;
    }
}

.no-top-bottom-padding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.no-padding {
    padding: 0 !important;
}

.no-padding-right {
    padding-right: 0 !important;
}

.alert-banner {
    padding: 0.5em;
    min-height: 1.75em;
    background-color: #fff2cd;
    color: #61552e;
    display: flex;
    align-items: center;
    gap: 0.5em;
    justify-content: center;
    border: 1px solid #61552e;
    border-radius: 8px;
}

.rich-text-container {
    word-break: break-word;
}

    .rich-text-container a {
        color: var(--accentColour);
        text-decoration: underline;
    }

        .rich-text-container a:hover {
            filter: brightness(110%);
        }

table {
    width: 100%;
    border-collapse: collapse;
}

    table *, table td {
        padding: .5rem .5rem;
    }

    table td, table th {
        text-align: left;
        vertical-align: middle;
    }

    table .sortable.asc .fa-solid, table .sortable.desc .fa-solid {
        color: var(--accentColour);
    }

    table .sortable {
        min-width: 6em;
    }

    table a, table span {
        padding: 0;
    }

.quill-rte {
    border-radius: 0 0 8px 8px;
    margin-top: 0 !important;
    min-height: 15em;
    padding: initial;
}

.form-field.form-field--quill {
    gap: 0;
}

.form-field--quill label {
    margin-bottom: 0.5em;
}

/*Mobile*/
@media (max-width: 750px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .container__margin-auto {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hide-mobile {
        display: none !important;
    }
}

/*Desktop*/
@media screen and (min-width: 991px) {
    .hide-desktop {
        display: none !important;
    }
}

/*Large desktop*/
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1320px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em 0 3em 0;
    }

        .container.sidebar {
            padding: 3em;
        }

    .container--list, .container--fit-large-screen {
        min-width: 1320px;
    }
}

/*Loading spinner start*/
.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    z-index: 99;
}

.lds-ring--fixed-middle {
    transform: translate(-50%, -50%);
    position: fixed;
    top: 40%;
    left: 50%;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid black;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--nav-child--background-color) transparent transparent transparent;
}

    .lds-ring div:nth-child(1) {
        animation-delay: -0.45s;
    }

    .lds-ring div:nth-child(2) {
        animation-delay: -0.3s;
    }

    .lds-ring div:nth-child(3) {
        animation-delay: -0.15s;
    }

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/*Loading spinner end*/

/*Toast pop-up start*/
.onLoadPopup {
    visibility: hidden;
    min-width: 250px;
    margin: 0 auto;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    z-index: 100;
    bottom: 30px;
    font-weight: 400;
}

.onLoadPopup--top-right {
    left: initial;
    min-width: 10em;
    border: green solid 1px;
    transform: none;
    bottom: initial;
    top: 0;
    right: 0;
    height: fit-content;
    width: fit-content;
}

.onLoadPopup--bottom-right {
    right: 2px;
    bottom: 2px !important;
    left: initial;
    min-width: 10em;
    border: green solid 1px;
    transform: none;
    bottom: initial;
    height: fit-content;
    width: fit-content;
}

.onLoadPopup.success, .success--background {
    background-color: var(--toastSuccess);
    color: black;
}

.onLoadPopup.error, .error--background, .danger--background {
    background-color: var(--toastFail);
    color: black;
}

.onLoadPopup .close-icon {
    font-weight: 600;
    font-size: 20px;
    position: absolute;
    top: -2px;
    right: 6px;
}

    .onLoadPopup .close-icon:hover {
        cursor: pointer;
    }

.onLoadPopup.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 5s;
    animation: fadein 0.5s, fadeout 0.5s 5s;
}

/* Animations to fade the onLoadPopup in and out */
@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}
/*Toast pop-up end*/

.downloadable-documents {
    display: flex;
    flex-direction: column;
    margin-top: 2em;
    gap: 1.75em;
}

    .downloadable-documents .file-extension {
        font-weight: 600;
        margin-right: 1em;
    }

@font-face {
    font-family: 'Agatho';
    src: url('/fonts/agatho-bold.woff2') format('woff2'), url('/fonts/agatho-bold.woff') format('woff');
}

@font-face {
    font-family: 'AvenirLTStd-Book';
    src: url('/fonts/AvenirLTStd-Book.ttf') format('truetype');
}
