/*
Theme Name:   ADI Theme
Theme URI:    http://www.moochcreative.com/
Description:  Bespoke theme for the Association of Dental Implantology.
Author:       Kane Greenway
Author URI:   https://www.moochcreative.co.uk/
Version:      1.0.0
*/

/*

   ____                      _      
  / ___| ___ _ __   ___ _ __(_) ___ 
 | |  _ / _ \ '_ \ / _ \ '__| |/ __|
 | |_| |  __/ | | |  __/ |  | | (__ 
  \____|\___|_| |_|\___|_|  |_|\___|

*/

:root {
    --container-width: 90%;
    --container-max:   1800px;
    --container-narrow-max: 900px;

	--color-indigo: #211747;
    --color-mint: #3CDBC0;

	--color-text-body: var(--color-indigo);
    --color-bg-header: var(--color-indigo);
    --color-accent: var(--color-mint);

	--global-delay: 300ms;
}

html {
	font-size: 62.5%;
    width: 100%;
    overflow-x: hidden;
}

body {
	margin: unset;
	font-family: "Agenda", Arial, sans-serif;
	font-size: 1.8rem;
	font-weight: 300;

	color: var(--color-text-body);

    overflow-x: hidden !important;
    overflow-y: hidden;
    width: 100% !important;
    position: relative;
}

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

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

h1,
.page-title-label {
	font-size: 6.0rem;
	font-weight: 400;
	margin: 0;
}

h2 {
	font-size: 5.2rem;
	font-weight: 400;
	margin: 0;
}

/*
h2.large {
	font-size: 5.6rem;
}
*/

h3 {
	font-size: 2.7rem;
	font-weight: 400;
	margin: 0;
}

h4 {
	font-size: 2.5rem;
	font-weight: 300;
	margin: 0;
}

p {
	font-size: 1.9rem;
	font-weight: 300;
	margin: 0;
}

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

.read-more {
    font-style: italic;
    font-weight: 500;
}

hr {
    border: unset;
    border-bottom: 1px solid #dbdae1;
}

blockquote {
    border-left: 8px solid #dbdae1;
    margin-left: unset;
    padding-left: 15px;
}

.button {
    background-color: #3CDBC0;
    border-radius: 6px;
    padding: 16px 28px;
    font-size: 1.8rem;
    transition: color 150ms ease, background-color 150ms ease;
    display: inline-block;
    min-width: 100px;
    text-align: center;
    white-space: nowrap;
    font-weight: 400;
}

.button:hover {
    background-color: var(--color-indigo);
    color: white;
}

.button.dark-bck:hover {
    background-color: white;
    color: var(--color-indigo);
}

.button.dark {
    background-color: #211747;
    color: white;
}

.button.dark:hover {
    background-color: white;
    color: #211747;
}

.button.white {
    background-color: white;
    color: #211747;
}

.button.white:hover {
    background-color: #3CDBC0;
}

.button.grey {
    background-color: #F2F2F2;
    color: #211747;
}

.button.grey:hover {
    background-color: #3CDBC0;
}

.button.light-bck:hover {
    background-color: #3CDBC0;
    color: var(--color-indigo);
}

.button.alt {
    background-color: unset !important;
    color: #211747;
    position: relative;
    padding: 0;
    font-size: 2rem;
    margin: 16px 28px;
    min-width: unset;
    padding: 0 3px;
}

.button.alt::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    background-color: #3CDBC0;
    height: 2px;
    width: 100%;
    transition: bottom 150ms ease;
}

.button.alt:hover::after {
    bottom: -7px;
}

.button.alt.white {
    color: white;
}

.button.alt.double-white::after {
    background-color: white;
}

.button.alt.dark {
    color: #211747;
}

.button.alt.dark::after {
    background-color: #211747;
}

strong {
    font-weight: 600;
}

select {
    background-color: #F4F4F4;
    border: unset;
    padding: 18px 68px 18px 27px;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("assets/images/chevron-down-colour.svg");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 22px;
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

.custom-dec,
.int-custom-dec,
#site-content.post .post-content a {
    color: inherit;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

.custom-dec::after,
.int-custom-dec::after,
#site-content.post .post-content a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    height: 1px;
    width: 100%;
    transition: transform 300ms;
    transform: scaleX(0);
    transform-origin: right;
}

a:hover .int-custom-dec::after,
label:hover .int-custom-dec::after,
#site-content.post .post-content a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.custom-dec:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.max-width-section-1600 {
    max-width: 1600px;
    margin-inline: auto;
}

section > .container,
.col-spacing {
    width: var(--container-width);
    max-width: var(--container-max);
    margin-inline: auto;
}

section > .container--narrow,
.col-spacing-narrow {
    width: var(--container-width);
    max-width: var(--container-narrow-max);
    margin-inline: auto;
}

/* Laptop — 1200px */
@media ( max-width: 1800px ) {
    :root {
        --container-width: 90%;
    }
}

/* Tablet landscape — 1024px */
@media ( max-width: 1024px ) {
    :root {
        --container-width: 90%;
    }
}

/* Tablet portrait — 768px */
@media ( max-width: 768px ) {
    :root {
        --container-width: 90%;
    }

    h1,
    .page-title-label {
        font-size: 3.8rem;
        font-weight: 400;
        margin: 0;
    }

    h2,
    h2.large {
        font-size: 3.1rem;
        font-weight: 400;
        margin: 0;
    }

    h3 {
        font-size: 2.4rem;
        font-weight: 400;
        margin: 0;
    }

    h4 {
        font-size: 2rem;
        font-weight: 400;
        margin: 0;
    }

    p {
        font-size: 2rem;
        font-weight: 400;
        margin: 0;
    }

    .button {
        font-size: 1.6rem;
    }
}

/* Mobile — 480px */
@media ( max-width: 480px ) {
    :root {
        --container-width: 90%;
    }
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #211747;
    border-radius: 8px;
    margin: 0 0 1.5em;
}

table {
    max-width: 100%;
    overflow-x: auto;
}

@media only screen and (max-width: 768px) {
	
	table {
		display: block;
		overflow-x: auto;
	}
}

th,
td {
    padding: 0.75em 1em;
    text-align: left;
    vertical-align: top;
    border-right: 1px solid #211747;
    border-bottom: 1px solid #211747;
}

th {
    font-weight: 500 !important;
    white-space: nowrap;
}

th select {
    padding: 5px 32px 5px 10px;
    margin-top: 10px;
}

th:last-child,
td:last-child {
    border-right: 0;
}

tbody tr:last-child td {
    border-bottom: 0;
}

thead th {
    background-color: #211747;
    color: #fff;
    border-right-color: rgba(255, 255, 255, 0.15);
    border-bottom: 0;
}

thead th:first-child {
    border-top-left-radius: 7px;
}

thead th:last-child {
    border-top-right-radius: 7px;
}

tbody tr:last-child td:first-child {
    border-bottom-left-radius: 7px;
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: 7px;
}

caption {
    padding: 0.5em 0;
    text-align: left;
}

.table-wrap,
.wp-block-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.wp-block-table table {
    min-width: 100%;
}

/* Swiper */
.swiper-container {
	position: relative;
}

.swiper {
    padding-bottom: 90px !important;
    width: 100% !important;
}

.swiper-pagination {
    position: absolute;
    width: 100% !important;
    left: 0 !important;
    bottom: 50px !important;
}

.swiper-pagination-bullet {
    height: 2.5px !important;
    width: 49px !important;
    border-radius: 2px !important; 
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: #211747;
}

.swiper-buttons {
    position: absolute;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 110px !important;
    z-index: 4 !important;
    display: flex !important;
}

.swiper-button-prev,
.swiper-button-next {
    width: 40px !important;
    height: 40px !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev svg,
.swiper-button-next svg {
    height: 100%;
    width: 100%;
    object-fit: contain;
    fill: #211747;
}

/* Accordion */
section .ac .ac-trigger:focus {
	color: inherit;
}

.ac .ac-panel .ac-text {
	font: inherit !important;
	color: inherit !important;
}

.ac .ac-panel {
    visibility: visible !important;
}

.accordion-container {
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.accordion-container .ac {
    background-color: #F2F2F2;
    padding: 28px;
    border-radius: 10px;
    border: none;
}

.accordion-container .ac button {
    font-weight: 400;
    font-family: "Agenda", Arial, sans-serif;
    font-size: 3rem;
    color: #211747;
    position: relative;
}

.accordion-container .ac button::before,
.accordion-container .ac button::after {
    content: "" !important;
    position: absolute;
    height: 3px;
    width: 23px;
    border-radius: 5px;
    background-color: black;
    top: 50%;
    right: 10px;
    transform: translateY(-50%) rotate(180deg);
    transition: transform 150ms ease;
}

.accordion-container .ac button::after {
    transform: translateY(-50%) rotate(90deg);
}

.accordion-container .ac.is-active button::before {
    transform: translateY(-50%) rotate(0deg);
}

.accordion-container .ac.is-active button::after {
    transform: translateY(-50%) rotate(0deg);
}

.accordion-container .ac-text {
    padding: 0;
}

.accordion-container .ac-text p,
.accordion-container .ac-text li {
    margin-bottom: 20px;
    color: #211747;
    font-size: 2rem;
    font-weight: 300;
    font-family: "Agenda", Arial, sans-serif;
}

.accordion-container .ac-text h3 {
    margin-bottom: 18px;
}

.smaller-titles .accordion-container .ac button {
    font-size: 2.3rem;
}

.accordion-container .ac-text iframe,
.accordion-container .ac-text img {
    border-radius: 10px;
}

.accordion-container .ac-text li {
	margin-bottom: 0;
}

.accordion-container .ac-text p:last-child {
    margin-bottom: 0;
}

/* Spacing */
@media only screen and (min-width: 1025px) { /* Desktop */
	.d-p-t-35 {
		padding-top: 35px;
	}
	.d-p-b-35 {
		padding-bottom: 35px;
	}
	.d-m-t-35 {
		margin-top: 35px;
	}
	.d-m-b-35 {
		margin-bottom: 35px;
	}

	.d-p-t-70 {
		padding-top: 70px;
	}
	.d-p-b-70 {
		padding-bottom: 70px;
	}
	.d-m-t-70 {
		margin-top: 70px;
	}
	.d-m-b-70 {
		margin-bottom: 70px;
	}

	.d-p-t-140 {
		padding-top: 140px;
	}
	.d-p-b-140 {
		padding-bottom: 140px;
	}
	.d-m-t-140 {
		margin-top: 140px;
	}
	.d-m-b-140 {
		margin-bottom: 140px;
	}
}

@media only screen and (min-width: 769px) and (max-width: 1024px) { /* Tablet */
	.t-p-t-35 {
		padding-top: 35px;
	}
	.t-p-b-35 {
		padding-bottom: 35px;
	}
	.t-m-t-35 {
		margin-top: 35px;
	}
	.t-m-b-35 {
		margin-bottom: 35px;
	}

	.t-p-t-70 {
		padding-top: 70px;
	}
	.t-p-b-70 {
		padding-bottom: 70px;
	}
	.t-m-t-70 {
		margin-top: 70px;
	}
	.t-m-b-70 {
		margin-bottom: 70px;
	}

	.t-p-t-140 {
		padding-top: 140px;
	}
	.t-p-b-140 {
		padding-bottom: 140px;
	}
	.t-m-t-140 {
		margin-top: 140px;
	}
	.t-m-b-140 {
		margin-bottom: 140px;
	}
}

@media only screen and (max-width: 768px) { /* Mobile */
	.m-p-t-35 {
		padding-top: 35px;
	}
	.m-p-b-35 {
		padding-bottom: 35px;
	}
	.m-m-t-35 {
		margin-top: 35px;
	}
	.m-m-b-35 {
		margin-bottom: 35px;
	}

	.m-p-t-70 {
		padding-top: 70px;
	}
	.m-p-b-70 {
		padding-bottom: 70px;
	}
	.m-m-t-70 {
		margin-top: 70px;
	}
	.m-m-b-70 {
		margin-bottom: 70px;
	}

	.m-p-t-140 {
		padding-top: 140px;
	}
	.m-p-b-140 {
		padding-bottom: 140px;
	}
	.m-m-t-140 {
		margin-top: 140px;
	}
	.m-m-b-140 {
		margin-bottom: 140px;
	}
}

/* AOS */
[data-aos="fade-up"][data-aos="fade-up"] {
    transform: translate3d(0, 24px, 0);
}

[data-aos="fade-down"][data-aos="fade-down"] {
    transform: translate3d(0, -24px, 0);
}

[data-aos="fade-left"][data-aos="fade-left"] {
    transform: translate3d(24px, 0, 0);
}

[data-aos="fade-right"][data-aos="fade-right"] {
    transform: translate3d(-24px, 0, 0);
}

/* GForm */
.gform-body .gform-field-label {
    font-family: "Agenda", Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
}

.gform-body .gfield_required_text {
    color: #B42318;
    font-weight: 600;
}

.gform_fields {
    row-gap: 30px !important;
}

/* Shared single-line controls — text, email, phone, website, number,
   date (datepicker + dropdown variants), time and select all share the
   same grey pill so no field falls back to the Gravity Forms default. */
.gform-body .gfield.gfield--type-text input,
.gform-body .gfield.gfield--type-email input,
.gform-body .gfield.gfield--type-phone input,
.gform-body .gfield.gfield--type-website input,
.gform-body .gfield.gfield--type-number input,
.gform-body .gfield.gfield--type-date input,
.gform-body .gfield.gfield--type-date select,
.gform-body .gfield.gfield--type-time input,
.gform-body .gfield.gfield--type-select select {
    background-color: #E0E0E0 !important;
    border: unset !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    height: 45px !important;
    color: var(--color-indigo) !important;
}

.gform-body .gfield.gfield--type-textarea textarea {
    background-color: #E0E0E0 !important;
    border: unset !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color: var(--color-indigo) !important;
}

.gform-body .gfield.gfield--type-text input::placeholder,
.gform-body .gfield.gfield--type-email input::placeholder,
.gform-body .gfield.gfield--type-phone input::placeholder,
.gform-body .gfield.gfield--type-website input::placeholder,
.gform-body .gfield.gfield--type-number input::placeholder,
.gform-body .gfield.gfield--type-date input::placeholder,
.gform-body .gfield.gfield--type-time input::placeholder,
.gform-body .gfield.gfield--type-textarea textarea::placeholder {
    color: #767676 !important;
}

/* Select — use the theme chevron rather than the Gravity Forms one */
.gform-body .gfield.gfield--type-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("assets/images/chevron-down-colour.svg") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 18px !important;
    padding-right: 52px !important;
    cursor: pointer;
}

.gform-body .gfield.gfield--type-select select::-ms-expand {
    display: none;
}

/* Date */
.gform-body .gfield.gfield--type-date .ginput_container_date {
    position: relative;
    max-width: 280px;
}

.gform-body .gfield.gfield--type-date input {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-right: 44px !important;
}

.gform-body .gfield.gfield--type-date .gform-datepicker-toggle {
    position: absolute !important;
    top: 0;
    right: 0;
    height: 45px !important;
    width: 45px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: unset !important;
    box-shadow: none !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23211747' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 20px !important;
    cursor: pointer;
    transition: opacity 150ms ease;
    /* Gravity Forms shifts its in-control buttons left by their own width,
       which pulls the icon into the middle of the field. */
    transform: none !important;
}

.gform-body .gfield.gfield--type-date .gform-datepicker-toggle:hover {
    opacity: 0.6;
}

/* Dashicons aren't enqueued for logged-out visitors, so the icon above is
   drawn by the button's own background instead. */
.gform-body .gfield.gfield--type-date .gform-datepicker-toggle-icon {
    display: none !important;
}

/* Time */
.gform-body .gfield.gfield--type-time .ginput_container.ginput_complex {
    display: flex !important;
    align-items: center;
    gap: 10px;
    max-width: 280px;
}

.gform-body .gfield.gfield--type-time .gfield_time_hour,
.gform-body .gfield.gfield--type-time .gfield_time_minute {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
}

.gform-body .gfield.gfield--type-time input {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
}

.gform-body .gfield.gfield--type-time .hour_minute_colon {
    flex: 0 0 auto;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    font-size: 1.8rem;
    line-height: 45px;
    color: var(--color-indigo);
}

.gform-body .gfield.gfield--type-time .gfield_time_ampm select {
    background-color: #E0E0E0 !important;
    border: unset !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    height: 45px !important;
}

/* Section breaks */
.gform-body .gfield.gfield--type-section {
    border-bottom: 1px solid #dbdae1;
    padding-bottom: 14px;
    margin-top: 20px;
}

.gform-body .gfield.gfield--type-section:first-child {
    margin-top: 0;
}

.gform-body .gsection_title {
    font-family: "Agenda", Arial, sans-serif;
    font-size: 2.7rem;
    font-weight: 400;
    color: var(--color-indigo);
    margin: 0;
}

.gform-body .gfield.gfield--type-section .gsection_description {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-indigo);
    padding: 8px 0 0 0;
    margin: 0;
}

/* Character counter */
.gform-body .ginput_counter {
    font-size: 1.3rem !important;
    font-weight: 300;
    color: #767676 !important;
    margin-top: 6px !important;
}

/* Consent */
.gform-body .gfield.gfield--type-consent {
    cursor: pointer;
}

.gform-body .gfield.gfield--type-consent label {
    font-size: 1.8rem !important;
    color: white !important;
    transform: translateY(-2px);
}

.gform-body .gfield.gfield--type-consent input {
    background-color: #E0E0E0;
    border: unset;
    border-radius: 3px;
}

.gform-body .gfield.gfield--type-consent .gfield_required_text {
    padding-left: 10px;
    color: #B42318 !important;
    font-weight: 600;
}

.notice-text {
    font-size: 1.2rem !important;
    color: #c7c7c7;
    margin-bottom: 0 !important;
}

.gform_button[type="submit"] {
    background-color: #3CDBC0 !important;
    border-radius: 6px !important;
    padding: 16px 28px !important;
    font-size: 1.8rem !important;
    transition: color 150ms ease, background-color 150ms ease !important;
    display: inline-block !important;
    min-width: 100px !important;
    text-align: center !important;
    white-space: nowrap !important;
    color: #211747 !important;
    font-size: 1.8rem !important;
    font-weight: 400 !important;
}

.gform_button[type="submit"]:hover {
    background-color: var(--color-indigo) !important;
    color: white !important;
}

/* Indigo panel variant — carry the new field types across too */
.section-contact-form .indigo .gform-body .gfield.gfield--type-website input,
.section-contact-form .indigo .gform-body .gfield.gfield--type-number input,
.section-contact-form .indigo .gform-body .gfield.gfield--type-date input,
.section-contact-form .indigo .gform-body .gfield.gfield--type-date select,
.section-contact-form .indigo .gform-body .gfield.gfield--type-time input,
.section-contact-form .indigo .gform-body .gfield.gfield--type-time .gfield_time_ampm select {
    background-color: #382B6C !important;
    color: white !important;
}

.section-contact-form .indigo .gform-body .gfield.gfield--type-website input::placeholder,
.section-contact-form .indigo .gform-body .gfield.gfield--type-number input::placeholder,
.section-contact-form .indigo .gform-body .gfield.gfield--type-date input::placeholder,
.section-contact-form .indigo .gform-body .gfield.gfield--type-time input::placeholder {
    color: #6d6786 !important;
}

.section-contact-form .indigo .gform-body .gsection_title,
.section-contact-form .indigo .gform-body .gfield.gfield--type-section .gsection_description,
.section-contact-form .indigo .gform-body .gfield.gfield--type-time .hour_minute_colon {
    color: white !important;
}

.section-contact-form .indigo .gform-body .gfield.gfield--type-section {
    border-bottom-color: #382B6C;
}

.section-contact-form .indigo .gform-body .gfield.gfield--type-date .gform-datepicker-toggle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") !important;
}

/* Centred variant — match the taller controls it already uses */
.section-contact-form .centre .gform-body .gfield.gfield--type-website input,
.section-contact-form .centre .gform-body .gfield.gfield--type-number input,
.section-contact-form .centre .gform-body .gfield.gfield--type-date input,
.section-contact-form .centre .gform-body .gfield.gfield--type-date select,
.section-contact-form .centre .gform-body .gfield.gfield--type-time input,
.section-contact-form .centre .gform-body .gfield.gfield--type-time .gfield_time_ampm select {
    font-size: 1.8rem !important;
    height: 55px !important;
}

.section-contact-form .centre .gform-body .gfield.gfield--type-date .gform-datepicker-toggle {
    height: 55px !important;
}

.section-contact-form .centre .gform-body .gfield.gfield--type-time .hour_minute_colon {
    line-height: 55px;
}

/* Validation */
.gform-body .gfield_validation_message,
.gform-body .validation_message {
    background-color: transparent !important;
    border: unset !important;
    border-left: 3px solid #CC27B0 !important;
    border-radius: 0 !important;
    color: #CC27B0 !important;
    font-size: 1.4rem !important;
    padding: 4px 0 4px 12px !important;
    margin-top: 10px !important;
}

.gform-body .gfield_error input,
.gform-body .gfield_error select,
.gform-body .gfield_error textarea {
    outline: 1px solid #CC27B0 !important;
    outline-offset: 0 !important;
}

@media only screen and (max-width: 768px) {
    .gform-body .gsection_title {
        font-size: 2.4rem;
    }

    .gform-body .gfield.gfield--type-date .ginput_container_date,
    .gform-body .gfield.gfield--type-time .ginput_container.ginput_complex {
        max-width: 100%;
    }
}

/* Header */

#site-header {
    position: fixed;
    top: -89px;
    top: 0;
    z-index: 1000;
    width: 100%;
}

#site-header .util-bar {
    background-color: var(--color-bg-header);
    height: 88px;
    display: flex;
    align-items: center;
    width: 100vw;
    border-bottom: 1px solid #3f3660;
    transition: height 300ms ease, padding 300ms ease;
}

#site-header.pink .util-bar,
#site-header.transparent-pink .util-bar {
    background-color: #CC27B0;
    border-color: #d344bb;
}

#site-header.teal .util-bar,
#site-header.transparent-teal .util-bar {
    background-color: #3CDBC0;
    border-color: #33bea7;
}

#site-header:not(.static).is-scrolled .util-bar {
    height: 0;
    overflow: hidden;
    border: 0;
}

#site-header .util-bar .wrapper {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

#site-header .search {
    display: flex;
    justify-content: center;
}

#site-header .search a,
#site-header .account a {
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

#site-header .account a {
    gap: 10px;
}

#site-header svg {
    fill: white;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform 150ms ease;
}

#site-header a:hover svg {
    transform: scale(1.05);
}

#site-header .main-head {
    background-color: #211747;
    border-radius: 0 0 30px 30px;
    transition: background-color 300ms ease;
}

#site-header.pink .main-head {
    background-color: #CC27B0;
}

#site-header.teal .main-head {
    background-color: #3CDBC0;
}

#site-header .main-head > .wrapper {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
}

#site-header.static {
    position: static;
}

.header-spacing.static {
    display: none;
}

#site-header.static .main-head {
    border-radius: unset;
}

#site-header .logo {
    width: 100%;
    max-width: 310px;
    height: 50px;
}

#site-header .logo a {
    width: auto;
    height: 100%;
    display: block;
}

#site-header .logo a:hover img {
    transform: scale(1.02);
}

#site-header .logo img {
    width: auto;
    height: 100%;
    display: block;
    transition: transform 150ms;
    object-fit: contain;
    max-width: 100%;
}

#site-header .menu {
    display: flex;
    width: 500px;
    justify-content: right;
}

#site-header .menu > .button {
    margin-right: 50px;
}

#burger-menu {
    display: flex;
    align-items: center;
}

#burger-menu-input {
    display: none;
}

#burger-menu > #burger-menu-input-label {
    color: white;
    position: relative;
    padding-right: 40px;
    cursor: pointer;
    font-size: 1.8rem;
}

#burger-menu > #burger-menu-input-label::before,
#burger-menu > #burger-menu-input-label::after {
    content: "";
    height: 2.5px;
    width: 24px;
    background-color: white;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    right: 0px;
    transition: transform 150ms ease;
}

#burger-menu > #burger-menu-input-label::before {
    transform: translateY(-5px);
}

#burger-menu > #burger-menu-input-label::after {
    transform: translateY(5px);
}

#burger-menu-input:checked ~ #burger-menu-input-label::before {
    transform: translateY(0px) rotate(135deg);
}

#burger-menu-input:checked ~ #burger-menu-input-label::after {
    transform: translateY(0px) rotate(-135deg);
}

#burger-menu-input:not(:checked) ~ #burger-menu-input-label:hover::before {
    transform: translateY(-5px) scaleX(1.05);
}

#burger-menu-input:not(:checked) ~ #burger-menu-input-label:hover::after {
    transform: translateY(5px) scaleX(1.05);
}

#burger-menu-input:checked ~ #burger-menu-input-label:hover::before {
    transform: translateY(0px) rotate(135deg) scale(1.1);
}

#burger-menu-input:checked ~ #burger-menu-input-label:hover::after {
    transform: translateY(0px) rotate(-135deg) scale(1.1);
}

#site-header .page-title-area {
    padding: 30px 0 70px 0;
    display: flex;
    justify-content: space-between;
    max-height: 200px;
    overflow: hidden !important;
    transition: max-height 300ms ease, padding 300ms ease;
}

#site-header:not(.static).is-scrolled .page-title-area {
    max-height: 0px;
    padding: 0;
}

#site-header .page-title-area h1,
#site-header .page-title-area .page-title-label {
    color: white;
}

#site-header .breadcrumbs {
    display: flex;
    color: white;
    align-items: center;
    overflow: hidden;
    max-width: 700px;
    gap: 7px;
    margin-left: auto;
}

#site-header .breadcrumbs a {
    flex: 0 0 auto;
    white-space: nowrap;
}

#site-header .breadcrumb-current {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#burger-menu-aside #burger-menu-close-label {
    color: white;
    position: absolute;
    right: 90px;
    top: -30px;
    font-size: 1.8rem;
    padding-right: 28px;
    cursor: pointer;
}

#burger-menu-aside #burger-menu-close-label::before,
#burger-menu-aside #burger-menu-close-label::after {
    content: "";
    height: 2px;
    width: 18px;
    background-color: white;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    right: 0px;
    transition: transform 150ms ease;
}

#burger-menu-aside #burger-menu-close-label::before {
    transform: rotate(45deg);
}

#burger-menu-aside #burger-menu-close-label::after {
    transform: rotate(-45deg);
}

#burger-menu-fade {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: #211747;
    opacity: 0;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 100;
    transition: opacity 300ms ease, visibility 0ms linear 300ms;
}

#burger-menu-input:checked ~ #burger-menu-fade {
    opacity: 0.5;
    visibility: visible;
    transition: opacity 300ms ease, visibility 0ms linear 0ms;
}

#burger-menu-aside {
    position: fixed;
    height: 100vh;
    width: 760px;
    top: 0;
    right: -100%;
    z-index: 150;
    transition: right 300ms ease;
    display: flex;
    flex-direction: column;
}

#burger-menu-input:checked ~ #burger-menu-aside {
    right: 0;
}

#burger-menu-aside::before {
    content: "";
    position: absolute;
    background-color: #211747;
    opacity: 1;
    width: 100%;
    height: 100%;
    z-index: -3;
}

#burger-menu-aside .main {
    height: 100%;
    display: flex;
}

#burger-menu-aside .main .inner-wrapper {
    padding: 0 118px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    position: relative;
}

#burger-menu-aside #main-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#burger-menu-aside #main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#burger-menu-aside #main-nav li {
    gap: 8px;
}

#burger-menu-aside #main-nav a {
    color: white;
    font-size: 3.7rem;
}

#burger-menu-aside #main-nav a::after {
    height: 2px;
}

#burger-menu-aside .main .inner-wrapper .account-zone {
    margin-top: 56px;
}

#burger-menu-aside .main .inner-wrapper .button {
    width: 220px;
    padding: 24px 0;
    font-size: 2.4rem;
    text-align: center;
}

#burger-menu-aside .main .inner-wrapper .button:nth-child(2) {
    margin-left: 30px;
}

#burger-menu-aside .extra {
    height: 275px;
    flex-shrink: 0;
    background-color: #3CDBC0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 118px;
    box-sizing: border-box;
}

#burger-menu-aside .extra p {
    font-size: 3.5rem;
    margin-bottom: 32px;
}

#burger-menu-aside .extra .button {
    padding: 24px 40px;
    font-size: 2.4rem;
}

.header-spacing {
    height: 400px;
}

.header-spacing.transparent,
.header-spacing.transparent-indigo,
.header-spacing.transparent-pink,
.header-spacing.transparent-teal {
    height: 0 !important;
}

#site-header.transparent .main-head,
#site-header.transparent-indigo .main-head,
#site-header.transparent-pink .main-head,
#site-header.transparent-teal .main-head {
    background-color: transparent;
}

#site-header.transparent.is-scrolled .main-head,
#site-header.transparent-indigo.is-scrolled .main-head {
    background-color: #211747;
}

#site-header.transparent-pink.is-scrolled .main-head {
    background-color: #CC27B0;
}

#site-header.transparent-teal.is-scrolled .main-head {
    background-color: #3CDBC0;
}

#site-header.transparent-teal.is-scrolled .main-head .menu > .button,
#site-header.teal .main-head .menu > .button{
    background-color: #211747;
    color: white;
}

#site-header.transparent-teal.is-scrolled .main-head .menu > .button:hover,
#site-header.teal .main-head .menu > .button:hover{
    background-color: white;
    color: #211747;
}

#site-header.transparent-teal.is-scrolled #burger-menu > #burger-menu-input-label,
#site-header.teal #burger-menu > #burger-menu-input-label,
#site-header.teal .page-title-area h1,
#site-header.teal .breadcrumbs,
#site-header.teal .search a,
#site-header.transparent-teal .search a,
#site-header.teal .account a,
#site-header.transparent-teal .account a {  
    color: #211747;
}

#site-header.transparent-teal.is-scrolled #burger-menu > #burger-menu-input-label::before, 
#site-header.transparent-teal.is-scrolled #burger-menu > #burger-menu-input-label::after,
#site-header.teal #burger-menu > #burger-menu-input-label::before, 
#site-header.teal #burger-menu > #burger-menu-input-label::after {
    background-color: #211747;
}

#site-header.teal svg,
#site-header.transparent-teal svg {
    fill: #211747;
}

#site-header.teal .account-avatar,
#site-header.transparent-teal .account-avatar {
    background-color: #211747;
    border-color: #211747;
}

@media only screen and (max-height: 1000px) {
    #burger-menu-aside .extra {
        display: none !important;
    }
}

@media only screen and (max-width: 768px) {
    .header-spacing {
        height: 260px;
    }

    #site-header .util-bar {
        height: 49px;
    }

    #site-header .search a,
    #site-header .account a {
        font-size: 1.5rem;
    }

    #site-header svg {
        height: 18px;
        width: 18px;
    }

    #site-header .search .int-custom-dec {
        display: none;
    }

    #site-header .main-head > .wrapper {
        padding: 25px 0;
    }

    #site-header .logo {
        max-width: 190px;
    }

    #site-header .menu > .button {
        display: none;
    }

    #site-header .page-title-area {
        padding: 10px 0 35px 0;
        flex-direction: column-reverse;
    }

    #site-header .page-title-area h1,
    #site-header .page-title-area .page-title-label {
        font-size: 3.8rem;
    }

    #site-header .breadcrumbs {
        font-size: 1.5rem;
        margin-left: unset;
    }

    #burger-menu-aside {
        width: 100vw;
    }

    #burger-menu-aside #burger-menu-close-label {
        right: 0;
    }

    #burger-menu-fade {
        display: none !important;
    }

    #burger-menu-aside .main .inner-wrapper {
        padding: 0;
        width: 85%;
        max-width: 450px;
        margin-inline: auto;
    }

    #burger-menu-aside .main .inner-wrapper .button {
        padding: 16px 0;
        font-size: 1.8rem;
        max-width: 400px;
        width: 100%;
    }

    #burger-menu-aside #main-nav a {
        font-size: 3.2rem;
    }

    #burger-menu-aside .main .inner-wrapper .account-zone {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #burger-menu-aside .main .inner-wrapper .button:nth-child(2) {
        margin-left: unset;
    }

    #burger-menu-aside .extra {
        display: none !important;
    }
}

/* Footer */

.footer-cta {
    background-color: #3CDBC0;
    padding: 91px 0;
    box-sizing: border-box;
    width: 95%;
    max-width: 1800px;
    margin-inline: auto;
    transform: translateY(20%);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1400px;
    /* margin-bottom: -50px; */
}

.footer-cta h2 {
    font-size: 6rem;
}

.footer-cta.pink,
.footer-cta.transparent-pink {
    background-color: #CC27B0;
}

.footer-cta.pink p,
.footer-cta.transparent-pink p,
.footer-cta.pink h2,
.footer-cta.transparent-pink h2 {
    color: white;
}

.footer-cta.static {
    visibility: hidden;
    height: 100px;
    margin: unset !important;
    padding: unset !important;
    display: none;
}


.footer-cta h2 {
    text-align: center;
    margin-bottom: 21px;
    width: 90%;
}

.footer-cta p {
    font-size: 3rem;
    text-align: center;
    width: 90%;
    max-width: 950px;
    margin-bottom: 46px;
}

#site-footer {
    position: relative;
}

#site-footer .footer-wrapper {
    background-color: #211747;
    border-radius: 10px 10px 0 0;
    padding-bottom: 100px;
    padding-top: 260px;
}

#site-footer.static .footer-wrapper {
    border-radius: unset;
}

#site-footer .main {
    display: flex;
    justify-content: space-between;
}

#site-footer .main .col {
    width: 42%;
}

#site-footer .main.nav .col {
	width: 38%;
}

#site-footer .newsletter h2:not(.gform_submission_error) {
    color: white;
    font-size: 5rem;
    margin-bottom: 30px;
}

#site-footer .newsletter p {
    color: white;
    font-size: 2.7rem;
    max-width: 850px;
}

.socials {
    display: flex;
    gap: 5px;
    margin-top: 64px;
}

.socials.mobile {
    display: none;
}

.socials .social-icon {
    background-color: white;
    padding: 14px;
    border-radius: 6px;
    transition: background-color 150ms ease;
}

.socials .social-icon svg {
    width: 19px;
    height: 19px;
    fill: #211747;
    transition: fill 150ms ease;
    display: block;
}

.socials .social-icon:hover {
    background-color: #3cdbc0;
}

.socials .social-icon:hover svg {
    fill: white;
}

#site-footer .misc p:last-child {
    margin-bottom: unset;
}

#site-footer .nav h3 {
    color: #3CDBC0;
    margin-bottom: 31px;
    font-size: 3rem;
}

#footer-nav {
    column-count: 2;
}

#footer-nav ul {
    margin: unset;
    padding: 0;
    list-style: none;
}

#footer-nav li {
    margin-bottom: 4px;
}

#footer-nav a {
    color: white;
    font-size: 2.2rem;
}


#site-footer .misc {
    color: #A9A2C4;
    margin-top: 65px;
    display: flex;
    justify-content: space-between;
}

#site-footer .misc p {
    margin-bottom: 20px;
}

#site-footer .misc .footer-logo {
    width: 400px;
    display: flex;
}

#site-footer .misc .footer-logo a {
    display: block;
    width: auto;
    height: 50px;
    margin-top: auto;
    margin-left: auto;
    transition: transform 150ms ease;
}

#site-footer .misc .footer-logo a:hover {
    transform: scale(1.05);
}

#site-footer .misc .footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#site-footer .gform_fields {
    margin-top: 45px;
}

#site-footer form {
    position: relative;
    max-width: 650px;
}

#site-footer .gform_fields .gfield--type-email input {
    background-color: #332958 !important;
    border: unset !important;
    color: white !important;
    font-size: 2.2rem !important;
    padding: 38px 32px !important;
    border-radius: 10px !important;
}

#site-footer .gform_fields .gfield--type-email input::placeholder {
    color: #625b7f !important;
    font-size: 2.2rem !important;
}

#site-footer .gform-footer {
    margin-top: unset;
}

#site-footer #gform_submit_button_1,
#site-footer .gform-footer button {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    padding: 0 !important;
    background: unset;
    transition: filter 150ms ease !important;
    min-width: unset !important;
    border-radius: 10px !important;
    overflow: hidden;
	border: unset !important;
}

#site-footer .gform_button:hover {
    filter: grayscale(100%) contrast(5);
}

#site-footer .gform_validation_errors {
    margin-top: 30px !important;
    margin-bottom: 0px !important;
}


#site-footer .validation_message {
    display: none;
}
#site-footer .gform_submission_error {
    font-size: 2rem !important;
}

#site-footer #gform_ajax_spinner_1 {
    position: absolute !important;
    right: -50px;
    top: 25px;
    height: 30px;
    width: 30px;
}

#site-footer #gform_confirmation_message_1 {
    color: white;
    font-size: 2.7rem;
    margin-top: 40px;
}

@media only screen and (max-width: 1024px) {
    .footer-cta h2 {
        font-size: 4rem;
    }

    #site-footer .footer-wrapper {
        padding-top: 320px;
        padding-bottom: 40px;
    }
    
    #site-footer .main {
        flex-direction: column;
        gap: 51px;
    }
    
    #site-footer .main .col {
        width: 100% !important;
    }
    
    #site-footer .socials.desktop {
        display: none;
    }
    
    #site-footer .socials.mobile {
        display: flex;
    }
    
    #site-footer .misc {
        flex-direction: column-reverse;
        margin-top: 51px;
    }
    
    #site-footer .misc .footer-logo a {
        margin-left: unset;
        margin-top: unset;
        margin-bottom: 51px;
    }
}

@media only screen and (max-width: 768px) {
    #footer-nav {
        column-count: 1;
    }
}

@media only screen and (max-width: 1250px) {   
    .footer-cta {
        padding: 60px 0;
    }
}

@media only screen and (max-width: 1250px) {   
    .footer-cta p {
        font-size: 2rem;
    }
    
    .footer-cta {
        margin-bottom: -150px;
    }
    
    #site-footer .newsletter h2:not(.gform_submission_error) {
        font-size: 3rem;
    }
    
    #site-footer .newsletter p {
        font-size: 2rem;
    }
    
    #site-footer .gform_fields .gfield--type-email input {
        font-size: 2rem;
    }
    
    #footer-nav a {
        font-size: 2rem;
    }
    
    #site-footer .misc p {
        font-size: 1.5rem;
    }
}

/* Singular */
#site-content.post .main {
    display: flex;
    margin-top: 80px;
}

#site-content.post .main .content {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 90px;
}

#site-content.post .post-date {
    color: #211747;
    opacity: 0.57;
    margin-bottom: 20px;
}

#site-content.post .post-title {
    margin-bottom: 42px;
}
.video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    margin-bottom: 30px !important;
    background-image: url('/wp-content/themes/adi-theme/assets/images/video-backdrop.png');
    background-size: cover;
    background-position: center;
    background-repeat: none;
    border-radius: 10px;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
}

@media only screen and (max-width: 1024px) {
    /* Portrait videos only; landscape videos keep 16:9 */
    .video-embed.portrait {
        width: 100%;
        aspect-ratio: 9 / 16;
    }
}

#site-content.post .post-content a {
	font-weight: 500;
}

#site-content.post .post-content {
    box-sizing: border-box;
    padding-right: 120px;
}

#site-content.post .post-content .sidebar_container {
	display: none;
}

#site-content.post .post-content img {
    border-radius: 10px;
}

#site-content.post .main .quick-links {
    flex: 0 0 400px;
    width: 400px;
}

#site-content.post .main .quick-links .wrapper {
    background-color: #211747;
    border-radius: 10px;
    padding: 36px 38px;
}

#site-content.post .main .quick-links .wrapper {
    color: white;
}

#site-content.post .main .quick-links .wrapper .links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#site-content.post .main .quick-links .wrapper .links a {
    font-size: 2.2rem;
    align-self: start;
}

#site-content.post .related-posts h2 {
    margin-top: 90px;
    margin-bottom: 60px;
}

#site-content.post .related-posts .posts-wrapper {
    padding-bottom: 50px;
}

@media only screen and (max-width: 1600px) {
    #site-content.post .post-content {
        padding-right: 80px;
    }
}

@media only screen and (max-width: 1024px) {
    #site-content.post .main {
        display: block;
    }
    
    #site-content.post .post-content {
        padding-right: 0;
    }
    
    #site-content.post .main .quick-links {
        display: none;
    }
    
    #site-content.post .main .content {
        margin-bottom: 35px;
    }
    
    #site-content.post .related-posts h2 {
        margin-top: 35px;
        margin-bottom: 30px;
    }
    
    #site-content.post .related-posts .posts-wrapper {
        padding-bottom: 70px;
    }
}

#site-content.post .post-content {
    --pc-space-3xs: 0.5rem;
    --pc-space-2xs: 0.75rem;
    --pc-space-xs: 1rem;
    --pc-space-sm: 1.25rem;
    --pc-space-md: 1.5rem;
    --pc-space-lg: 2rem;
    --pc-space-xl: 2.5rem;
    --pc-space-2xl: 3rem;
}


#site-content.post .post-content > *:first-child {
    margin-top: 0;
}

#site-content.post .post-content > *:last-child {
    margin-bottom: 0;
}

#site-content.post .post-content h1 {
    margin-top: var(--pc-space-2xl);
    margin-bottom: var(--pc-space-sm);
}

#site-content.post .post-content h2 {
    margin-top: var(--pc-space-xl);
    margin-bottom: var(--pc-space-xs);
}

#site-content.post .post-content h3 {
    margin-top: var(--pc-space-lg);
    margin-bottom: var(--pc-space-xs);
}

#site-content.post .post-content h4 {
    margin-top: var(--pc-space-md);
    margin-bottom: var(--pc-space-2xs);
}

#site-content.post .post-content h5,
#site-content.post .post-content h6 {
    margin-top: var(--pc-space-md);
    margin-bottom: var(--pc-space-3xs);
}

#site-content.post .post-content h1 + h2,
#site-content.post .post-content h2 + h3,
#site-content.post .post-content h3 + h4,
#site-content.post .post-content h4 + h5,
#site-content.post .post-content h5 + h6 {
    margin-top: var(--pc-space-xs);
}

#site-content.post .post-content p {
    margin-top: 0;
    margin-bottom: var(--pc-space-md);
}

#site-content.post .post-content address {
    margin-top: 0;
    margin-bottom: var(--pc-space-md);
}

#site-content.post .post-content blockquote,
#site-content.post .post-content .wp-block-quote,
#site-content.post .post-content .wp-block-pullquote {
    margin-top: var(--pc-space-lg);
    margin-bottom: var(--pc-space-lg);
}

#site-content.post .post-content blockquote > *:last-child {
    margin-bottom: 0;
}

#site-content.post .post-content pre,
#site-content.post .post-content .wp-block-code,
#site-content.post .post-content .wp-block-preformatted,
#site-content.post .post-content .wp-block-verse {
    margin-top: var(--pc-space-md);
    margin-bottom: var(--pc-space-md);
}

#site-content.post .post-content ul,
#site-content.post .post-content ol,
#site-content.post .post-content .wp-block-list {
    margin-top: 0;
    margin-bottom: var(--pc-space-md);
}

#site-content.post .post-content li {
    margin-top: 0;
    margin-bottom: var(--pc-space-3xs);
}

#site-content.post .post-content li:last-child {
    margin-bottom: 0;
}

#site-content.post .post-content li > ul,
#site-content.post .post-content li > ol {
    margin-top: var(--pc-space-3xs);
    margin-bottom: 0;
}

#site-content.post .post-content dl {
    margin-top: 0;
    margin-bottom: var(--pc-space-md);
}

#site-content.post .post-content dt {
    margin-top: var(--pc-space-2xs);
    margin-bottom: 0;
}

#site-content.post .post-content dd {
    margin-top: 0;
    margin-bottom: var(--pc-space-3xs);
}

#site-content.post .post-content figure,
#site-content.post .post-content .wp-block-image,
#site-content.post .post-content .wp-block-gallery,
#site-content.post .post-content .wp-block-video,
#site-content.post .post-content .wp-block-audio,
#site-content.post .post-content .wp-block-cover,
#site-content.post .post-content .wp-block-media-text {
    margin-top: var(--pc-space-lg);
    margin-bottom: var(--pc-space-lg);
}

#site-content.post .post-content figcaption,
#site-content.post .post-content .wp-caption-text,
#site-content.post .post-content .wp-element-caption {
    margin-top: var(--pc-space-3xs);
    margin-bottom: 0;
}

#site-content.post .post-content .wp-block-embed,
#site-content.post .post-content iframe,
#site-content.post .post-content video {
    margin-top: var(--pc-space-lg);
    margin-bottom: var(--pc-space-lg);
}

#site-content.post .post-content .aligncenter,
#site-content.post .post-content .alignwide,
#site-content.post .post-content .alignfull {
    margin-top: var(--pc-space-lg);
    margin-bottom: var(--pc-space-lg);
}

#site-content.post .post-content .alignleft,
#site-content.post .post-content .alignright {
    margin-top: var(--pc-space-3xs);
    margin-bottom: var(--pc-space-xs);
}

#site-content.post .post-content table,
#site-content.post .post-content .wp-block-table {
    margin-top: var(--pc-space-md);
    margin-bottom: var(--pc-space-md);
}

#site-content.post .post-content .wp-block-table figcaption {
    margin-top: var(--pc-space-3xs);
    margin-bottom: 0;
}

#site-content.post .post-content hr,
#site-content.post .post-content .wp-block-separator {
    margin-top: var(--pc-space-2xl);
    margin-bottom: var(--pc-space-2xl);
}

#site-content.post .post-content .wp-block-spacer {
    margin-top: 0;
    margin-bottom: 0;
}

#site-content.post .post-content .wp-block-group,
#site-content.post .post-content .wp-block-columns,
#site-content.post .post-content .wp-block-buttons,
#site-content.post .post-content .wp-block-table-of-contents {
    margin-top: var(--pc-space-lg);
    margin-bottom: var(--pc-space-lg);
}

#site-content.post .post-content .wp-block-column > *:first-child {
    margin-top: 0;
}

#site-content.post .post-content .wp-block-column > *:last-child {
    margin-bottom: 0;
}

#site-content.post .post-content .more-link,
#site-content.post .post-content .page-links {
    margin-top: var(--pc-space-lg);
    margin-bottom: 0;
}

@media (max-width: 600px) {
    #site-content.post .post-content {
        --pc-space-md: 1.25rem;
        --pc-space-lg: 1.75rem;
        --pc-space-xl: 2rem;
        --pc-space-2xl: 2.25rem;
    }
}

#site-content.post .post-content img,
#site-content.post .post-content object {
    max-width: 100%;
    height: auto;
}

#site-content.post .post-content figure {
    margin: 0 0 1.5em;
}

#site-content.post .post-content .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

#site-content.post .post-content .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

#site-content.post .post-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

#site-content.post .post-content .alignnone {
    display: block;
    margin: 0 0 1.5em;
}

.alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.alignnone {
    display: block;
    margin: 0 0 1.5em;
}

#site-content.post .post-content .wp-block-image.alignleft,
#site-content.post .post-content figure.alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

#site-content.post .post-content .wp-block-image.alignright,
#site-content.post .post-content figure.alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

#site-content.post .post-content .wp-block-image.aligncenter,
#site-content.post .post-content figure.aligncenter {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#site-content.post .post-content::after {
    content: "";
    display: table;
    clear: both;
}

#site-content.post .post-content .wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

#site-content.post .post-content .wp-caption img {
    display: block;
    margin: 0;
}

#site-content.post .post-content .wp-caption-text,
#site-content.post .post-content .wp-element-caption,
#site-content.post .post-content .gallery-caption,
#site-content.post .post-content figcaption {
    margin-top: 0.5em;
    font-size: 0.875em;
    line-height: 1.5;
    color: #666;
    text-align: center;
}

#site-content.post .post-content .alignwide {
    margin-left: calc(50% - 45vw);
    margin-right: calc(50% - 45vw);
    max-width: 90vw;
    width: 90vw;
}

#site-content.post .post-content .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

#site-content.post .post-content .alignfull img {
    width: 100%;
}

@media (max-width: 600px) {
    #site-content.post .post-content .alignleft,
    #site-content.post .post-content .alignright,
    #site-content.post .post-content .wp-block-image.alignleft,
    #site-content.post .post-content .wp-block-image.alignright,
    #site-content.post .post-content figure.alignleft,
    #site-content.post .post-content figure.alignright {
        float: none;
        display: block;
        margin: 0 auto 1.5em;
    }
	
	.alignleft,
    .alignright {
        float: none;
        display: block;
        margin: 0 auto 1.5em;
    }
}

.screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}


/*

  ____  _                       _       _       
 | __ )| |_   _  ___ _ __  _ __(_)_ __ | |_ ___ 
 |  _ \| | | | |/ _ \ '_ \| '__| | '_ \| __/ __|
 | |_) | | |_| |  __/ |_) | |  | | | | | |_\__ \
 |____/|_|\__,_|\___| .__/|_|  |_|_| |_|\__|___/
                    |_|       

*/

/* Standard Content */
.section-standard-content h2 {
    margin-bottom: 44px;
}

.section-standard-content h3 {
    margin-bottom: 23px;
}

.section-standard-content p {
    max-width: 1050px;
    margin-bottom: 23px;
}

.section-standard-content .centre .wrapper {
    text-align: center;
}

.section-standard-content .centre p {
    margin-inline: auto;
}

/* Hero */
.section-hero .container-fw {
    position: relative;
    margin-bottom: 140px;
}

.section-hero .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.section-hero .wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: calc(70vh);
    min-height: 100px;
    padding-top: 300px;
    padding-bottom: 230px;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
}

.section-hero .wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 23, 71, 0.73);
    z-index: -1;
}

.section-hero .main {
    display: flex;
    height: 100%;
}

.section-hero .content {
    display: flex;
    flex-direction: column;
    justify-content: end;
    width: 50%;
}

.section-hero .content h1 {
    color: white;
    font-size: 6rem;
    max-width: 725px;
}

.section-hero .content p {
    color: white;
    font-size: 3rem;
    max-width: 700px;
    margin-top: 30px;
}

.section-hero .stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    width: 50%;
    gap: 30px;
}

.section-hero .stat {
    width: 460px;
    margin-left: auto;
}

.section-hero .stat .ind-stat {
    color: white;
    font-size: 7rem;
    font-weight: 600;
}

.section-hero .stat hr {
    border: 1px solid #3CDBC0;
}

.section-hero .stat .name {
    color: white;
    font-size: 3rem;
}

.section-hero .extra {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}

.section-hero .video-controller {
    background-color: #453c72;
    border: unset;
    padding: 17px;
    border-radius: 50%;
    opacity: 0.88;
    cursor: pointer;
    transition: background-color 150ms ease;
}

.section-hero .video-controller:hover {
    background-color: white;
}

.section-hero .video-controller svg {
    width: 30px;
    height: 30px;
    display: block;
    fill: white;
    transition: fill 150ms ease;
}

.section-hero .video-controller:hover svg {
    fill: black;
}

.section-hero .buttons {
    display: flex;
    gap: 30px;
}

.section-hero .buttons .button {
    margin: auto 0;
}

.section-hero .upcoming-events {
    bottom: 0;
    position: absolute;
    width: 100%;
    transform: translateY(50%);
}

.section-hero .upcoming-events .inside {
    background-color: #7760FF;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 40px 60px;
    display: flex;
}

.section-hero .upcoming-events .legend {
    border-right: 2px solid #6350D5;
    padding: 20px 60px 20px 0;
}

.section-hero .upcoming-events .legend h3 {
    color: white;
    margin-bottom: 30px;
    white-space: nowrap;
}

.section-hero .upcoming-events .info {
    padding-left: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-hero .upcoming-events .info a {
    text-decoration: none;
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.section-hero .upcoming-events .info h3,
.section-hero .upcoming-events .info p {
    color: white;
    transition: color 150ms ease;
}

.section-hero .upcoming-events .info svg {
    height: 30px;
    width: 30px;
    fill: white;
    transition: fill 150ms ease, transform 150ms ease;
}


.section-hero .upcoming-events .info a:hover svg {
    fill: #3CDBC0;
    transform: translateX(5px);
}


.section-hero .upcoming-events .info .button {
    display: none;
}

@media only screen and (max-width: 1248px) {
    .section-hero .stat {
        width: 25vw;
        max-width: 370px;
    }
    
    .section-hero .stat .name {
        font-size: 2.4rem;
    }
}

@media only screen and (max-width: 1024px) {
    .section-hero .container-fw {
        margin-bottom: 200px;
    }
    
    .section-hero .wrapper {
        padding-top: 280px;
        justify-content: start;
        height: auto;
    }
    
    .section-hero .main {
        flex-direction: column-reverse;
        justify-content: start;
        height: auto;
    }
    
    .section-hero .stats {
        width: 100%;
        padding-top: 0;
    }
    
    .section-hero .stats .stat {
        width: 100%;
        max-width: unset;
    }
    
    .section-hero .stats .stat:not(:first-child) {
        display: none;
    }
    
    .section-hero .content {
        width: 100%;
        margin-top: 300px;
    }
    
    .section-hero .extra {
        flex-direction: column-reverse;
    }
    
    .section-hero .controls {
        margin-top: 40px;
    }
    
    .section-hero .upcoming-events .inside {
        flex-direction: column;
    }
    
    .section-hero .upcoming-events .legend {
        border-right: unset;
        padding: 0;
    }
    
    .section-hero .upcoming-events .legend .button {
        display: none;
    }
    
    .section-hero .upcoming-events .info {
        padding-left: 0;
    }
    
    .section-hero .upcoming-events .info .button {
        display: inline-block;
        align-self: start;
        margin-top: 34px;
        padding: 16px 42px;
    }
}

@media only screen and (max-width: 768px) {
    .section-hero .wrapper {
        padding-top: 200px;
    }
    
    .section-hero .content h1 {
        font-size: 3.8rem;
        max-width: unset;
    }
    
    .section-hero .content p {
        font-size: 2rem;
        max-width: unset;
    }
    
    .section-hero .stat .ind-stat {
        font-size: 4.6rem;
    }
    
    .section-hero .stat .name {
        font-size: 2.4rem;
    }
    
    .section-hero .upcoming-events .inside {
        padding: 32px 30px;
    }
    
    .section-hero .upcoming-events .info h3 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .section-hero .upcoming-events .info p {
        font-size: 1.5rem;
    }
}

.section-hero .stat {
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-hero .stat.is-active {
    opacity: 1;
    transform: translateY(0);
}

.section-hero .stat hr {
    border: none;
    height: 2px;
    background: #3CDBC0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.section-hero .stat hr::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        140deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
}

.section-hero .stat.is-active hr::after {
    animation: shineSweep 3s ease-out forwards;
    animation-delay: 300ms;
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@media (max-width: 768px) {

    .section-hero .stats .stat {
        display: none;
    }

    .section-hero .stats .stat.is-mobile-visible {
        display: block;
    }

}

/* Text & Image */
.section-text-and-image .container {
    display: flex;
}

.section-text-and-image .container.image-left {
    flex-direction: row-reverse;
}

.section-text-and-image .text {
    width: 50%;
}

.section-text-and-image .wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
    padding-right: 50px;
}

.section-text-and-image .image-left .wrapper {
    padding-right: 0;
    padding-left: 50px;
}

.section-text-and-image h2 {
    margin-bottom: 28px;
}

.section-text-and-image h3 {
    max-width: 580px;
    margin-bottom: 28px;
}

.section-text-and-image p {
    max-width: 660px;
    margin-bottom: 22px;
}

.section-text-and-image .button {
    align-self: start;
    margin-top: 5px;
}

.section-text-and-image .image {
    width: 50%;
	height: 38vw;
	max-height: 900px;
}

.section-text-and-image .image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
	height: 100%;
}

@media only screen and (max-width: 1024px) {
    .section-text-and-image .container {
        flex-direction: column !important;
    }
    
    .section-text-and-image .text,
    .section-text-and-image .image {
        width: 100%;
    }
    
    .section-text-and-image .wrapper {
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 50px;
    }
	
	.section-text-and-image .image {
		height: auto;
		max-height: 500px;
	}
	
	.section-text-and-image h2,
	.section-text-and-image h3,
	.section-text-and-image p {
		max-width: unset;
	}
}

/* Icon Cards */
.section-icon-cards .cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 20px;
	row-gap: 60px;
}

.section-icon-cards img {
    width: 45px;
    height: 45px;
    display: block;
    margin-bottom: 33px;
    object-fit: contain;
}

.section-icon-cards h3 {
    margin-bottom: 18px;
	font-weight: 400;
}

.section-icon-cards p {
    max-width: 360px;
    margin-bottom: 30px;
    margin-inline: auto;
}

.section-icon-cards p:last-child {
	margin-bottom: 0 !important;
}

.section-icon-cards .rows-2 p {
    max-width: 700px;
}

.section-icon-cards a {
    margin-top: auto;
    align-self: start;
}

.section-icon-cards .card {
    display: flex;
}

.section-icon-cards .card .wrapper {
    display: flex;
    flex-direction: column;
}

.section-icon-cards .swiper {
    display: none;
}

.section-icon-cards .bottom-button {
    margin-top: 70px;
}

.section-icon-cards .centre .card {
    text-align: center;
}

.section-icon-cards .centre .card .wrapper {
    margin-inline: auto;
}

.section-icon-cards .centre img {
    margin-inline: auto;
}

.section-icon-cards .centre .button_button {
    display: flex;
    justify-content: center;
}

@media only screen and (min-width: 1201px) {
    .section-icon-cards .rows-3 .cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media only screen and (min-width: 1201px) {
    .section-icon-cards .rows-2 .cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media only screen and (max-width: 1200px) {
    .section-icon-cards .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 768px) {
    .section-icon-cards .container {
        width: 100%;
    }
    
    .section-icon-cards .container > .cards {
        display: none;
    }
    
    .section-icon-cards .swiper {
        display: block;
    }
    
    .section-icon-cards .card {
        width: 90%;
        margin-inline: auto;
    }

    .section-icon-cards .bottom-button {
        margin-top: 40px;
    }
	
	.section-icon-cards .button_button {
		width: 90%;
		margin-inline: auto;
	}
}

/* Scrolling Text */
.section-scrolling-text .marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.section-scrolling-text .marquee__track {
    display: inline-flex;
    width: max-content;
    animation: marquee 120s linear infinite;
}

.section-scrolling-text .marquee__group {
    padding-right: 3rem;
    font-size: 17rem;
    opacity: 0.07;
    user-select: none;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-scrolling-text .marquee__track {
        animation: none;
    }
}

.section-scrolling-text .marquee__separator {
    font-size: 9rem;
    display: inline-block;
    vertical-align: middle;
    padding: 0 0.5rem;
}

.section-scrolling-text .marquee__group {
	font-weight: 400;
}

@media only screen and (max-width: 1024px) {
    .section-scrolling-text .marquee__group {
        font-size: 10rem;
    }
    
    .section-scrolling-text .marquee__separator {
        font-size: 4rem;
    }
}

@media only screen and (max-width: 768px) {
    .section-scrolling-text .marquee__group {
        font-size: 5rem;
    }
    
    .section-scrolling-text .marquee__separator {
        font-size: 2rem;
    }
}

/* Cards */
.section-cards h2 {
    margin-bottom: 60px;
}

.section-cards h2.centre {
    text-align: center;
}


.section-cards .cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
}

.section-cards .card {
    display: flex;
    flex-direction: column;
    background-color: #211747;
    border-radius: 10px;
    overflow: hidden;
	width: 100%;
}

.section-cards .pink .card {
    background-color: #CC27B0;
}

.section-cards .teal .card {
    background-color: #3CDBC0;
}

.section-cards .image {
    height: 15.5vw;
    height: 17vw;
    max-height: 300px;
    flex-shrink: 0;
}

.section-cards img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.section-cards .content {
    box-sizing: border-box;
    padding: 52px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.section-cards .content h3 {
    color: white;
    margin-bottom: 21px;
}

.section-cards .teal .content h3 {
    color: #211747;
}

.section-cards .content p {
    color: white;
    margin-bottom: 31px;
}

.section-cards .teal .content p {
    color: #211747;
}

.section-cards .content a {
    margin-top: auto;
    align-self: start;
}

.section-cards .swiper {
    display: none;
}

.section-cards h2 {
    margin-bottom: 85px;
    font-size: 4.5rem;
}

@media only screen and (max-width: 1600px) {
    .section-cards .cards {
        gap: 18px;
    }
    
    .section-cards .content {
        padding: 55px 40px;
    }
}

@media only screen and (max-width: 1200px) {
	.section-cards h2 {
		width: 90%;
		margin-inline: auto;
	}
	
    .section-cards .container {
        width: 100%;
    }
    
    .section-cards .container > .cards {
        display: none;
    }
    
    .section-cards .swiper {
        display: block;
    }
	
	.section-cards .swiper .card {
		width: 90%;
		margin-inline: auto;
	}
}

@media only screen and (max-width: 768px) {
    .section-cards .swiper .content {
        padding: 40px 30px;
    }

    .section-cards h2 {
        margin-bottom: 35px;
        font-size: 3.4rem;
    }
}

.section-cards .swiper .card,
.section-cards .style-2 .card {
    margin-inline: auto;
    background-color: unset !important;
    border-radius: unset;
    height: 100%;
}

.section-cards .swiper .swiper-slide {
    height: auto;
}

.section-cards .style-2 .image {
    border-radius: 10px;
    overflow: hidden;
    max-height: unset;
	max-height: 300px;
}

.section-cards .swiper .image {
    border-radius: 10px;
    overflow: hidden;
    max-height: unset;
    height: 50vw;
}

.section-cards .swiper .content,
.section-cards .style-2 .card .content {
    background-color: #211747;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 28px;
    height: 100%;
}

.section-cards .pink.swiper .content,
.section-cards .style-2.pink .card .content {
    background-color: #CC27B0;
}

.section-cards .teal.swiper .content,
.section-cards .style-2.teal .card .content {
    background-color: #3CDBC0;
}

/* Split Text */
.section-split-text .container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 64px;
}

.section-split-text .title,
.section-split-text .text {
    display: flex;
    flex-direction: column;
    width: 50%;
    max-width: 650px;
    position: relative;
    justify-content: center;
}

.section-split-text .title h2 {
    
}

.section-split-text .text {
    max-width: 550px;
}

.section-split-text p {
    font-size: 2.8rem;
}

.section-split-text a {
    align-self: start;
    position: absolute;
    bottom: -64px;
    left: 0;
}

.section-split-text .extended-fields .title {
    max-width: 725px;
}

.section-split-text .extended-fields .text {
	max-width: 625px;
}

.section-split-text .extended-fields .title {
    padding-right: 60px;
}

@media only screen and (max-width: 1248px) {
    .section-split-text .container {
        flex-direction: column;
        gap: 24px;
        padding-bottom: 0;
    }
    
    
    .section-split-text .title,
    .section-split-text .text {
        width: 100%;
        max-width: 90%;
    }
    
    .section-split-text a {
        position: static;
        margin-top: 30px;
    }


    .section-split-text .extended-fields .title {
        padding-right: 0;
    }
}

@media only screen and (max-width: 768px) {
    .section-split-text .title h2 {
        font-size: 3.1rem;
    }

    .section-split-text p {
        font-size: 2rem;
    }
}

/* Events */
.section-events .container > h3,
.section-events-upcoming .container > h3 {
    margin-bottom: 34px;
	font-weight: 400;
}

.section-events .events,
.section-events-upcoming .events {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 34px;
	row-gap: 30px;
}

.section-events .events p,
.section-events-upcoming .events p {
	font-size: 1.7rem;
}

.section-events .event,
.section-events-upcoming .event {
    background-color: #3CDBC0;
    padding: 34px;
    box-sizing: border-box;
    border-radius: 10px;
}

.section-events .event a,
.section-events-upcoming .event a {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.section-events .event .legend,
.section-events-upcoming .event .legend {
    display: flex;
    gap: 9px;
}

.section-events .event .legend p,
.section-events-upcoming .event .legend p {
    display: flex;
    border-radius: 6px;
    background-color: #211747;
    color: white;
    font-size: 1.2rem;
    padding: 10px 15px;
    align-items: center;
}

.section-events .event .legend img,
.section-events .event .legend svg,
.section-events-upcoming .event .legend img,
.section-events-upcoming .event .legend svg {
    fill: white;
    width: 13px;
    height: 13px;
    margin: auto 0;
    margin-right: 6px;
    object-fit: contain;
}

.section-events .event h3,
.section-events-upcoming .event h3 {
    margin-top: 16px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.section-events .event p.info,
.section-events-upcoming .event p.info {
    margin-top: 0;
}

.section-events-upcoming .event p.excerpt {
    display: none;
}

.section-events .event a > svg,
.section-events-upcoming .event a > svg {
    fill: #211747;
    height: 30px;
    width: 30px;
    margin-top: 30px;
    object-fit: contain;
    transition: fill 150ms ease, transform 150ms ease;
    display: block;
}

.section-events .event a:hover > svg,
.section-events-upcoming .event a:hover > svg {
    fill: white;
    transform: translateX(5px);
}

@media only screen and (max-width: 1600px) {
    .section-events .events,
    .section-events-upcoming .events {
        column-gap: 12px;
		row-gap: 12px;
    }

    .section-events .event,
    .section-events-upcoming .event {
        padding: 25px 25px 15px 25px;
    }
}

@media only screen and (max-width: 1248px) {
    .section-events .events,
    .section-events-upcoming .events {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-events-upcoming .event:nth-last-child(-n+2) {
        display: none;
    }
}

@media only screen and (max-width: 1024px) {
    .section-events .events,
    .section-events-upcoming .events {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-events-upcoming .event:nth-last-child(-n+2) {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .section-events .events,
    .section-events-upcoming .events {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .section-events .event,
    .section-events-upcoming .event {
        background-color: #3CDBC0;
        padding: 34px 30px 28px 30px;
    }

    .section-events-upcoming .event:nth-last-child(-n+5) {
        display: none;
    }
}

.section-events h2 {
    margin-bottom: 38px;
}

.section-events .events {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 90%;
    margin-inline: auto;
}

.section-events .filtered .events {
    margin-inline: unset;
}

.section-events .event {
    box-sizing: border-box;
    padding-right: 80px;
    background-color: #211747;
}

.section-events .event .legend p {
    background-color: #7760FF  
}

.section-events .event .legend p:nth-child(2n) {
    background-color: #2ED8C3  
}

.section-events .event h3 {
    display: -webkit-box;
    color: white;
}

.section-events .event .info {
    color: white;
}

.section-events .event .excerpt {
    margin-top: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: white;
	font-size: 1.9rem;
	line-height: 1.1;
}

.section-events .event a > svg {
    margin-top: 45px !important;
}

.section-events .event a > svg path {
	fill: #3CDBC0;
}

.section-events .event a:hover > svg path {
	fill: white !important;
}

.section-events .region-map {
    text-decoration: underline;
}

#events-load-more {
    width: 90%;
    display: block;
    margin-top: 67px;
    border: unset;
    cursor: pointer;
    padding: 23px 0;
    margin-inline: auto;
}

.section-events .container.filtered #events-load-more {
    margin-inline: unset;
}

@media only screen and (max-width: 1800px) {
    .section-events .events {
        width: 100%;
    }

    #events-load-more {
        width: 100%;
    }
}

@media only screen and (max-width: 1500px) {
    .section-events .event {
        padding-right: 25px;
    }
}

@media only screen and (max-width: 1024px) {
    .section-events .events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 768px) {
    .section-events .events {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Text & Image Block */
.section-text-and-image-block .container {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
}

.section-text-and-image-block .container.teal {
    background-color: #3CDBC0;
}

.section-text-and-image-block .container.indigo {
    background-color: #211747;
}

.section-text-and-image-block .container.pink {
    background-color: #CC27B0;
}

.section-text-and-image-block .container.image-left {
    flex-direction: row-reverse;
}

.section-text-and-image-block .text,
.section-text-and-image-block .image {
    width: 50%;
	max-height: 78vh;
}

.section-text-and-image-block .text {
    display: flex;
}

.section-text-and-image-block .text .wrapper {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: center;
    padding: 60px 70px;
    gap: 20px;
}

/*
.section-text-and-image-block .text h2 {
    font-size: 6rem;
}
*/

.section-text-and-image-block .text p {
    font-size: 2.8rem;
}

.section-text-and-image-block .text a {
    align-self: start;
	margin-top: 10px;
}

.section-text-and-image-block .container.indigo .text h2,
.section-text-and-image-block .container.indigo .text p,
.section-text-and-image-block .container.pink .text h2,
.section-text-and-image-block .container.pink .text p {
    color: white;
}

.section-text-and-image-block img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 1248px) {
    .section-text-and-image-block .container {
        flex-direction: column-reverse !important;
    }
    
    .section-text-and-image-block .text,
    .section-text-and-image-block .image {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .section-text-and-image-block .text .wrapper {
        padding: 50px 40px 55px 40px;
        gap: 21px;
    }
    
    .section-text-and-image-block .text p {
        font-size: 2rem;
    }

    .section-text-and-image-block .text h2 {
        font-size: 3.1rem;
    }
}

.section-events .filter-controls {
    display: flex;
    align-items: center;
    column-gap: 90px;
    row-gap: 20px;
    margin-bottom: 60px;
}

.section-events .filter-controls .filter-group-1,
.section-events .filter-controls .filter-group-2 {
    display: flex;
    gap: 23px;
    align-items: center;
}

.section-events .filter-controls .misc-group {
    margin-left: auto;
}
.section-events .filter-controls .login a {
    color: #3CDBC0;
}

@media only screen and (max-width: 1600px) {
    .section-events .filter-controls {
        flex-direction: column;
        align-items: start;
    }
	
	.section-events .filter-controls .filter-group-1,
	.section-events .filter-controls .filter-group-2 {
		width: 100%;
	}

	.section-events .filter-controls .filter-group-1 select,
	.section-events .filter-controls .filter-group-2 select {
		width: 100%;
	}
    
    .section-events .filter-controls .misc-group {
        margin-left: 5px;
        margin-top: 20px;
    }
	
    .section-events .filter-controls .filter-group-1,
    .section-events .filter-controls .filter-group-2 {
        flex-direction: column;
        gap: 20px;
    }
}

.section-events .banner {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 60px;
    width: 90%;
    margin-inline: auto;
    background-position: center;
    background-size: cover;
    background-color: #211747;
}

.section-events .banner .wrapper {
    padding: 30px 40px;
    display: flex;
}

.section-events .banner .image {
    width: 200px;
    flex-shrink: 0;
}

.section-events .banner img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.section-events .banner .content {
    margin-left: 48px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.section-events .banner h3 {
    font-family: "Allotrope-Variable", "Agenda", Arial, sans-serif;
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    margin-bottom: 10px;
    font-size: 3.2rem;
    color: white;
    transform: scale(0.8, 1.1);
    transform-origin: left;
}

.section-events .banner p {
    color: white;
}

.section-events .banner .button-wrapper {
    display: flex;
    align-items: center;
}

@media only screen and (max-width: 1800px) {
    .section-events .banner {
        width: 100%;
    }
}

@media only screen and (max-width: 1200px) {
    .section-events .banner .wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-events .banner .image {
        padding-left: 48px;
        width: 100%;
        max-width: 400px;
    }
    
    .section-events .banner .content {
        flex-direction: column;
        gap: 20px;
    }
}

@media only screen and (max-width: 768px) { 
    .section-events .banner .image {
        padding-left: 0;
    }
    
    .section-events .banner .content {
        margin-left: 0;
    }
    
    .section-events .banner h3 {
        font-size: 2.4rem;
    }
}

/* News */
.section-news #filter-by-month {
    margin-bottom: 58px;
}

.section-news .posts,
.section-featured-news .posts,
#site-content.post .related-posts .posts-wrapper,
#site-content.search-results .posts-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 50px;
    row-gap: 32px;
}

.section-news .news-item,
.section-featured-news .news-item,
#site-content.post .related-posts .posts-wrapper .news-item,
#site-content.search-results .posts-wrapper .news-item {
    background-color: #F2F2F2;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-news .news-item .image-wrapper,
.section-featured-news .news-item .image-wrapper,
#site-content.post .related-posts .posts-wrapper .news-item .image-wrapper,
#site-content.search-results .posts-wrapper .news-item .image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    height: 16.5vw;
    max-height: 300px;
    flex-shrink: 0;
}

.section-news .news-item img,
.section-featured-news .news-item img,
#site-content.post .related-posts .posts-wrapper .news-item img,
#site-content.search-results .posts-wrapper .news-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.section-news .news-item .content,
.section-featured-news .news-item .content,
#site-content.post .related-posts .posts-wrapper .news-item .content,
#site-content.search-results .posts-wrapper .news-item .content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-news .news-item .content .title,
.section-featured-news .news-item .content .title,
#site-content.post .related-posts .posts-wrapper .news-item .content .title,
#site-content.search-results .posts-wrapper .news-item .content .title {
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	font-weight: 400;
}

.section-news .news-item .content .excerpt,
.section-featured-news .news-item .content .excerpt,
#site-content.post .related-posts .posts-wrapper .news-item .content .excerpt,
#site-content.search-results .posts-wrapper .news-item .content .excerpt {
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
	font-size: 1.8rem;
}

.section-news .news-item .content .read-more,
.section-featured-news .news-item .content .read-more,
#site-content.post .related-posts .posts-wrapper .news-item .content .read-more,
#site-content.search-results .posts-wrapper .news-item .content .read-more {
    margin-top: auto;
    padding-top: 20px;
    align-self: start;
    font-weight: 400;
	font-size: 1.8rem;
}

.section-news .news-item .content .read-more::after,
.section-featured-news .news-item .content .read-more::after,
#site-content.post .related-posts .posts-wrapper .news-item .content .read-more::after,
#site-content.search-results .posts-wrapper .news-item .content .read-more::after {
    height: 1.5px;
}

.section-news .news-item:hover .read-more::after,
.section-featured-news .news-item:hover .read-more::after,
#site-content.post .related-posts .posts-wrapper .news-item:hover .read-more::after,
#site-content.search-results .posts-wrapper .news-item:hover .read-more::after {
    transform: scaleX(1);
    transform-origin: left;
}

.section-news .news-item .content .date,
.section-featured-news .news-item .content .date,
#site-content.post .related-posts .posts-wrapper .news-item .content .date,
#site-content.search-results .posts-wrapper .news-item .content .date {
    margin-top: 60px;
    color: #211747;
    opacity: 0.57;
    margin-bottom: 12px;
	font-size: 1.8rem;
}

@media only screen and (max-width: 1400px) {
    .section-news .posts,
    .section-featured-news .posts,
    #site-content.post .related-posts .posts-wrapper,
    #site-content.search-results .posts-wrapper {
        column-gap: 20px;
        row-gap: 20px;
    }
}


@media only screen and (max-width: 1024px) {
    .section-news .posts,
    .section-featured-news .posts,
    #site-content.post .related-posts .posts-wrapper,
    #site-content.search-results .posts-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-news .news-item .image-wrapper,
    .section-featured-news .news-item .image-wrapper,
    #site-content.post .related-posts .posts-wrapper .news-item .image-wrapper,
    #site-content.search-results .posts-wrapper .news-item .image-wrapper {
        height: 27.5vw;
    }

    #site-content.post .related-posts .posts-wrapper .news-item:last-child {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .section-news .posts,
    .section-featured-news .posts,
    #site-content.post .related-posts .posts-wrapper,
    #site-content.search-results .posts-wrapper {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 30px;
    }

    .section-news .news-item .image-wrapper,
    .section-featured-news .news-item .image-wrapper,
    #site-content.post .related-posts .posts-wrapper .news-item .image-wrapper,
    #site-content.search-results .posts-wrapper .news-item .image-wrapper {
        height: 50vw;
        max-height: unset;
    }

    #site-content.post .related-posts .posts-wrapper .news-item:last-child {
        display: flex;
    }
}

.news-pagination,
.search-pagination,
.colleague-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 72px;
}

.search-pagination {
    padding-bottom: 80px;
}

.pagination-numbers {
    display: flex;
    gap: 7px;
}

.pagination-arrow,
.pagination-number {
    width: 50px;
    height: 50px;
    background-color: #F2F2F2;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
    font-weight: normal !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-arrow svg {
	width: 23px !important;
}

.pagination-number {
    color: #211747;
}

.pagination-number.is-active {
    background-color: #3cdbc0;
    color: white;
    pointer-events: none;
}

.pagination-blank {
    width: 59px;
    height: 59px;
}

.pagination-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.pagination-number.is-active {
    font-weight: bold;
}

.pagination-blank {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    visibility: hidden;
}

.pagination-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #211747;
}

.pagination-arrow-icon {
    width: 26px;
    height: 26px;
    display: block;
}

.pagination-arrow:disabled {
    opacity: 0.3;
}

.pagination-arrow:not(:disabled):hover,
.pagination-number:hover{
    background-color: #3cdbc0;
    color: white;
}

@media only screen and (max-width: 768px) {
    .pagination-arrow,
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 1.8rem;
    }

    .pagination-arrow-icon {
        width: 18px;
        height: 18px;
    }

    .pagination-blank {
        width: 35px;
        height: 35px;
    }
}

.news-results {
    position: relative;
}

.news-results.is-loading {
    pointer-events: none;
}

.news-results.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.news-results.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 3;
    animation: news-spinner-spin 0.8s linear infinite;
}

@keyframes news-spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

#events-load-more {
    position: relative;
}

#events-load-more.is-loading {
    color: transparent;
}

#events-load-more.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: news-spinner-spin 0.8s linear infinite;
}

/* Contact Form */
.section-contact-form .wrapper {
    background-color: #F2F2F2;
    box-sizing: border-box;
    border-radius: 10px;
    padding: 90px;
    display: flex;
    justify-content: space-between;
}
.section-contact-form .main {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 60px;
}

.section-contact-form .es .main {
    max-width: 980px;
}

.section-contact-form .main h2:not(.gform_submission_error) {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.section-contact-form .main p {
    margin-bottom: 25px;
	font-size: 2.8rem;
}

.section-contact-form .form {
}

.section-contact-form .ex {
    flex: 0 0 400px;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 45px;
}

.section-contact-form .ex h3 {
    font-weight: 500;
    font-size: 3.5rem;
}

.section-contact-form .ex .row-content {
    margin-top: 13px;
    font-size: 3rem;
}

.section-contact-form .ex .row-content > * {
    font-size: 2.5rem;
    font-weight: 300;
}

.section-contact-form .ex .row-content.socials {
    padding-top: 5px;
}

.section-contact-form .ex .row-content.socials a {
    background-color: #211747;
}

.section-contact-form .ex .row-content.socials svg {
    fill: white;
}

.section-contact-form .ex .row-content.socials a:hover {
    background-color: #3cdbc0;
}

.section-contact-form .ex .row-content .custom-dec::after {
    height: 1.5px;
}

.section-contact-form .indigo .wrapper {
    background-color: #211747;
    color: white;
}

.section-contact-form .indigo .gfield_label {
    color: white !important;
}

.section-contact-form .indigo .gform-body .gfield_required_text {
    color: #6d6786 !important;
}

.section-contact-form .indigo .gform-body .gfield.gfield--type-text input,
.section-contact-form .indigo .gform-body .gfield.gfield--type-email input,
.section-contact-form .indigo .gform-body .gfield.gfield--type-phone input,
.section-contact-form .indigo .gform-body .gfield.gfield--type-textarea textarea,
.section-contact-form .indigo .gform-body .gfield.gfield--type-select select {
    background-color: #382B6C !important;
    color: white !important;
}
.section-contact-form .indigo .gform-body .gfield.gfield--type-select select::picker-icon {
    color: #ffffff !important;
}

.section-contact-form .indigo .gform-body .gfield.gfield--type-text input::placeholder,
.section-contact-form .indigo .gform-body .gfield.gfield--type-email input::placeholder,
.section-contact-form .indigo .gform-body .gfield.gfield--type-phone input::placeholder,
.section-contact-form .indigo .gform-body .gfield.gfield--type-textarea textarea::placeholder {
    color: #6d6786 !important;
}

.section-contact-form .indigo .gform_button[type="submit"]:hover {
    background-color: white !important;
    color: #211747 !important;
}

.section-contact-form .indigo .gform-body .gfield_required_text {
    color: white !important;
}

.section-contact-form .indigo .gform-body .gfield.gfield--type-consent input {
    background-color: #382B6C !important; 
}

@media only screen and (max-width: 1400px) {
    .section-contact-form .ex {
        flex: 0 0 250px;
        width: 250px;
    }
}

@media only screen and (max-width: 1024px) {
    .section-contact-form .wrapper {
        flex-direction: column;
        padding: 60px 70px;
    }
    
    .section-contact-form .main {
        width: 100%;
        padding-right: 0;
        max-width: unset;
    }
    
    .section-contact-form .ex {
        width: 100%;
        margin-top: 40px;
        gap: 18px;
    }
    
    .section-contact-form .ex h3 {
        font-size: 2.5rem;
    }
}

@media only screen and (max-width: 768px) {
    .section-contact-form .wrapper {
        padding: 30px;
    }
	
	
	.section-contact-form .main p {
		font-size: 2rem;
	}
}

.section-contact-form .centre .main h2  {
    text-align: center;
    font-size: 4.5rem;
}

.section-contact-form .centre .main p:not(.notice-text) {
    text-align: center;
    max-width: 975px;
    margin-inline: auto;
    font-size: 3rem;
}

.section-contact-form .centre .main .notice-text {
    text-align: center;
}

.section-contact-form .centre .form {
    max-width: 925px;
    margin-inline: auto;
}

.section-contact-form .gform-theme--framework .gform_validation_errors .gform_submission_error {
    font-size: 2rem !important;
}

.section-contact-form .centre .gfield_label {
    font-size: 1.8rem !important;
}

.section-contact-form .centre .gform-body .gfield_required_text {
    font-size: 1.4rem !important;
}

.section-contact-form .centre .gform-body .gfield.gfield--type-text input,
.section-contact-form .centre .gform-body .gfield.gfield--type-email input,
.section-contact-form .centre .gform-body .gfield.gfield--type-phone input,
.section-contact-form .centre .gform-body .gfield.gfield--type-select select {
    font-size: 1.8rem !important;
    height: 55px !important;
}

.section-contact-form .centre .gform-body .gfield.gfield--type-textarea textarea {
    font-size: 1.8rem !important;
}

.section-contact-form .centre .gform-footer {
    display: flex !important;
    justify-content: center;
    margin-top: 50px;
}

@media only screen and (max-width: 768px) {
    .section-contact-form .centre .main p:not(.notice-text) {
        font-size: 2rem;
    }
}

/* Header Image */
.section-header-image .container-fw {
    width: 100%;
    height: 90vh;
    max-height: 940px;
    border-radius: 0 0 30px 30px;
    overflow: hidden;
    position: relative;
}

.section-header-image .backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-header-image .container-fw.indigo::after,
.section-header-image .container-fw.pink::after,
.section-header-image .container-fw.teal::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #211747;
    opacity: 0.86;
	mix-blend-mode: multiply;
}

.section-header-image .container-fw.pink::after {
    background-color: #CC27B0;
}

.section-header-image .container-fw.teal::after {
    background-color: #167969;
}

@media only screen and (max-width: 1024px) {
    .section-header-image .container-fw {
        height: 78vh;
    }
}

@media only screen and (max-width: 768px) {
    .section-header-image .container-fw {
        height: 60vh;
    }
}

.section-header-image .wrapper {
    position: absolute;
    inset-inline: 0;
    bottom: 120px;
    height: 100%;
    width: var(--container-width);
    max-width: var(--container-max);
    margin-inline: auto;
}

.section-header-image .gfx-1,
.section-header-image .gfx-2 {
    position: absolute;
    bottom: 0;
    height: auto;
    z-index: 2;
}

.section-header-image .gfx-1 {
    width: 620px;
    left: 0;
}

.section-header-image .gfx-2 {
    width: 200px;
    right: 0;
}

@media only screen and (max-width: 1024px) {
    .section-header-image .wrapper {
        bottom: 60px;
    }
    
    .section-header-image .gfx-1 {
        width: 400px;
    }
    
    .section-header-image .gfx-2 {
        width: 160px;
    }
}

@media only screen and (max-width: 768px) {
    .section-header-image .wrapper {
        bottom: 30px;
    }
    
    .section-header-image .gfx-1 {
        width: 100%;
        max-width: 400px;
    }
    
    .section-header-image .gfx-2 {
        width: 160px;
        display: none;
    }
}

/* Standard Content w/ Box */
.section-floor-plan .container,
.section-my-account .container,
.section-colleague-directory .container,
.section-standard-content-with-box .container {
    display: flex;
}

.section-floor-plan .wrapper,
.section-my-account .wrapper,
.section-colleague-directory .wrapper,
.section-standard-content-with-box .wrapper {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 90px;
}

.section-standard-content-with-box .wrapper h1,
.section-floor-plan .wrapper h1,
.section-my-account .wrapper h1,
.section-colleague-directory .wrapper h1,
.section-floor-plan .wrapper h2,
.section-my-account .wrapper h2,
.section-colleague-directory .wrapper h2,
.section-standard-content-with-box .wrapper h2 {
    margin-bottom: 44px;
}

.section-floor-plan .wrapper h3,
.section-my-account .wrapper h3,
.section-colleague-directory .wrapper h3,
.section-standard-content-with-box .wrapper h3 {
    margin-bottom: 23px;
}

.section-floor-plan .wrapper p,
.section-my-account .wrapper p,
.section-colleague-directory .wrapper p,
.section-standard-content-with-box .wrapper p {
    max-width: 1050px;
    margin-bottom: 23px;
}

.section-floor-plan .wrapper h3,
.section-my-account .wrapper h3,
.section-colleague-directory .wrapper h3,
.section-standard-content-with-box .wrapper h3,
.section-floor-plan .wrapper h4,
.section-my-account .wrapper h4,
.section-colleague-directory .wrapper h4,
.section-standard-content-with-box .wrapper h4 {
    max-width: 1050px;
}

.section-floor-plan .box-type-text .wrapper p,
.section-my-account .box-type-text .wrapper p,
.section-colleague-directory .box-type-text .wrapper p,
.section-standard-content-with-box .box-type-text .wrapper p,
.section-floor-plan .box-type-text .wrapper h3,
.section-my-account .box-type-text .wrapper h3,
.section-colleague-directory .box-type-text .wrapper h3,
.section-standard-content-with-box .box-type-text .wrapper h3,
.section-floor-plan .box-type-text .wrapper h4,
.section-my-account .box-type-text .wrapper h4,
.section-colleague-directory .box-type-text .wrapper h4,
.section-standard-content-with-box .box-type-text .wrapper h4 {
    max-width: 875px;
}

.section-floor-plan .box,
.section-my-account .box,
.section-colleague-directory .box,
.section-standard-content-with-box .box {
    flex: 0 0 575px;
    width: 575px;
    background-color: #211747;
    padding: 48px 48px 58px 48px;
    box-sizing: border-box;
    border-radius: 10px;
    align-self: flex-start;
    color: white;
}

.section-floor-plan .box.pink,
.section-my-account .box.pink,
.section-colleague-directory .box.pink,
.section-standard-content-with-box .box.pink {
    background-color: #CC27B0;
}

.section-floor-plan .box.teal,
.section-my-account .box.teal,
.section-colleague-directory .box.teal,
.section-standard-content-with-box .box.teal {
    background-color: #3CDBC0;
    color: #211747;
}

.section-floor-plan .box h3,
.section-my-account .box h3,
.section-colleague-directory .box h3,
.section-standard-content-with-box .box h3 {
    margin-bottom: 20px;
}

.section-floor-plan .box p,
.section-my-account .box p,
.section-colleague-directory .box p,
.section-standard-content-with-box .box p {
    margin-bottom: 27px;
    max-width: 420px;
}

.section-floor-plan .wrapper a,
.section-my-account .wrapper a,
.section-standard-content-with-box .wrapper a {
    margin-top: 20px;
}

.section-floor-plan .box.links,
.section-my-account .box.links,
.section-colleague-directory .box.links,
.section-standard-content-with-box .box.links {
    flex: 0 0 420px;
    width: 420px;
}

.section-floor-plan .box .links,
.section-my-account .box .links,
.section-colleague-directory .box .links,
.section-standard-content-with-box .box .links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-floor-plan .box .links a,
.section-my-account .box .links a,
.section-colleague-directory .box .links a,
.section-standard-content-with-box .box .links a {
    font-size: 2.3rem;
    display: block;
    align-self: start;
}

@media only screen and (max-width: 1200px) {
    .section-floor-plan .wrapper,
    .section-my-account .wrapper,
    .section-colleague-directory .wrapper,
    .section-standard-content-with-box .wrapper {
        padding-right: 35px;
    }

    .section-floor-plan .box,
    .section-my-account .box,
    .section-colleague-directory .box,
    .section-standard-content-with-box .box {
        flex: 0 0 500px;
        width: 500px;
    }
}

@media only screen and (max-width: 1024px) {
    .section-floor-plan .container,
    .section-my-account .container,
    .section-colleague-directory .container,
    .section-standard-content-with-box .container {
        display: block;
    }

    .section-floor-plan .wrapper,
    .section-my-account .wrapper,
    .section-colleague-directory .wrapper,
    .section-standard-content-with-box .wrapper {
        padding-right: 0;
    }

    .section-floor-plan .box,
    .section-my-account .box,
    .section-colleague-directory .box,
    .section-standard-content-with-box .box {
        margin-top: 50px;
        width: 100% !important;
        max-width: 575px !important;
        padding: 25px 25px 35px 25px;
    }
}

@media only screen and (max-width: 768px) {
	.section-standard-content-with-box .wrapper h1,
	.section-floor-plan .wrapper h1,
	.section-my-account .wrapper h1,
	.section-colleague-directory .wrapper h1,
	.section-floor-plan .wrapper h2,
	.section-my-account .wrapper h2,
	.section-colleague-directory .wrapper h2,
	.section-standard-content-with-box .wrapper h2 {
		font-size: 3.1rem;
		margin-bottom: 30px;
	}
}
/* Featured News */
.section-featured-news h2 {
    font-size: 4.5rem;
    margin-bottom: 57px;
}

@media only screen and (max-width: 1024px) {
    .section-featured-news .news-item:last-child {
        display: none;
    }
}

@media only screen and (max-width: 768px) {
    .section-featured-news h2 {
        font-size: 3.4rem;
    }

    .section-featured-news .news-item:last-child {
        display: flex;
    }
}

/* Duel Image */
.section-duel-image .container {
    display: flex;
    gap: 20px;
}

.section-duel-image .image {
    width: 50%;
    border-radius: 10px;
    overflow: hidden;
}

.section-duel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 768px) {
    .section-duel-image .container {
        flex-direction: column;
    }
    
    .section-duel-image .image {
        width: 100%;
    }
}

/* Video */
.section-video .container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 10px;
}

.section-video h2 {
    text-align: center;
    margin-bottom: 65px;
}

@media only screen and (max-width: 768px) {
    .section-video h2 {
        margin-bottom: 35px;
    }
}

/* Tiers */
.section-tiers .container {
    margin-top: 60px;
}

.section-tiers .tiers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 160px;
}

.section-tiers .tier {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.section-tiers .tier img {
    width: 90%;
    max-width: 250px;
    margin-inline: auto;
    display: block;
    transform: translateY(-40%);
    margin-bottom: -60px;
    flex-shrink: 0;
}

.section-tiers .tier .wrapper {
    padding: 0 25px 25px 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.section-tiers .tier .content {
    color: white;
    max-width: 92%;
    margin-bottom: 60px;
}

.section-tiers .tier .content p {
    margin-bottom: 20px;
}

.section-tiers .tier a {
    margin-top: auto;
}

@media only screen and (max-width: 1700px) {
    .section-tiers .tier .content {
        width: 100%;
    }
}

@media only screen and (max-width: 1400px) {
    .section-tiers .tiers {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 768px) {
    .section-tiers .tiers {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Accordion */
.section-accordion .accordion-container {
    max-width: 1500px;
    margin-inline: auto;
}

@media only screen and (max-width: 768px) {
    .accordion-container .ac button {
        font-size: 2.2rem;
    }
}


/* === Post Sections === */
/* Event Section Intro */
.event-section-intro {
    margin-top: 70px;
}

.event-section-intro .container {
    display: flex;
}

.event-section-intro .text {
    width: 50%;
    box-sizing: border-box;
    padding-right: 80px;
}

.event-section-intro .speakers {
    width: 50%;
}

.event-section-intro .container:not(:has(.speakers)) .text {
    width: 100% !important;
}

.event-section-intro .text h1 {
    margin-bottom: 22px;
}

.event-section-intro .text .info {
    margin-top: 24px;
}

.event-section-intro .text .buttons {
    margin-top: 32px;
    margin-bottom: 32px;
}

.event-section-intro .text .add-to-calendar {
    margin-top: 32px;
}

.event-section-intro .text .warning-info p {
    margin-bottom: 30px;
}

.event-section-intro .text .warning-info p:last-child {
    margin-bottom: 0;
}

.event-section-intro .speakers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.event-section-intro .speaker {
    width: 100%;
    height: 28vw;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    max-height: 510px;
}

.event-section-intro .speaker img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-section-intro .speaker .legend-text {
    position: absolute;
    bottom: 18px;
    left: 16px;
    background-color: #3CDBC0;
    font-size: 1.4rem;
    padding: 9px 18px;
    border-radius: 6px;
}

@media only screen and (max-width: 1400px) {
    .event-section-intro .text {
        width: 60%;
    }
    
    .event-section-intro .speakers {
        width: 40%;
    }
    
    .event-section-intro .speaker {
        height: 24vw;
    }
}

@media only screen and (max-width: 1024px) {
    .event-section-intro .container {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .event-section-intro .speaker {
        height: 56vw;
    }
    
    .event-section-intro .text,
    .event-section-intro .speakers {
        width: 100%;
    }

    .event-section-intro .text {
        padding-right: 0;
    }
}

/* Event Section Accordion */
.event-section-accordion {
    margin-top: 105px;
    padding-bottom: 140px;
}

.event-section-accordion .container {
    display: flex;
}

.event-section-accordion .accordion-flex {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 90px;
}

.event-section-accordion .box {
    flex: 0 0 420px;
    width: 420px;
    background-color: #211747;
    padding: 48px 48px 58px 48px;
    box-sizing: border-box;
    border-radius: 10px;
    align-self: flex-start;
    color: white;
}

.event-section-accordion .box h3 {
    margin-bottom: 20px;
}

.event-section-accordion .box .links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-section-accordion .box .links a {
    font-size: 2.3rem;
    display: block;
    align-self: start;
}

@media only screen and (max-width: 1024px) {
    .event-section-accordion .container {
        display: block;
    }
    
    .event-section-accordion .accordion-flex {
        padding-right: 0;
    }
    
    .event-section-accordion .box {
        margin-top: 50px;
        width: 100% !important;
        max-width: 575px !important;
        padding: 25px 25px 35px 25px;
    }
    
    .event-section-accordion {
        padding-bottom: 70px;
    }
}

/* Partner Boxes */
.section-partner-boxes .boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.section-partner-boxes .box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 12px 30px;
    background-color: white;
    border: 1px solid  #211747;
    border-radius: 14px;
    padding: 45px 55px 55px 55px;
    box-sizing: border-box;
}

.section-partner-boxes .logo {
    grid-column: 2;
    grid-row: 1;
}

.section-partner-boxes .logo img {
    width: 250px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

.section-partner-boxes .content {
    grid-column: 1;
    grid-row: 1;
}

.section-partner-boxes .content h3 {
    margin-bottom: 16px;
}

.section-partner-boxes .content p {
    line-height: 1.6;
}

.section-partner-boxes .content a {
    color: var(--color-indigo);
    text-decoration: underline;
    transition: color 150ms ease;
}

.section-partner-boxes .content a:hover {
    color: var(--color-mint);
}

.section-partner-boxes .button {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    margin-top: 10px;
}

@media only screen and (max-width: 1450px) {
    .section-partner-boxes .logo img {
        width: 190px;
    }
}

@media only screen and (max-width: 1248px) {
    .section-partner-boxes .boxes {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .section-partner-boxes .logo img {
        width: 250px;
    }
}

@media only screen and (max-width: 768px) {
    .section-partner-boxes .box {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .section-partner-boxes .logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .section-partner-boxes .content {
        grid-column: 1;
        grid-row: 2;
    }

    .section-partner-boxes .button {
        grid-row: 3;
    }
}

/* Programme Timetable */
.section-programme-timetable .day-select p,
.section-programme-timetable .delegate-select p {
    font-size: 2.6rem;
    font-weight: 500;
    margin-bottom: 22px;
}

.section-programme-timetable .day-tabs,
.section-programme-timetable .delegate-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.section-programme-timetable .day-tab,
.section-programme-timetable .delegate-tab {
    flex: 1 1 200px;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    height: 132px;
    font-size: 2.6rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
    color: #211747;
    background-color: #faeaf7;
}

.section-programme-timetable .pink .day-tab,
.section-programme-timetable .pink .delegate-tab {
    color: #CC27B0;
    background-color: #faeaf7;
}

.section-programme-timetable .teal .day-tab,
.section-programme-timetable .teal .delegate-tab {
    color: #3CDBC0;
    background-color: #faeaf7;
}

.section-programme-timetable .day-tab:hover,
.section-programme-timetable .delegate-tab:hover {
    background-color: #211747;
    color: white;
}

.section-programme-timetable .pink .day-tab:hover,
.section-programme-timetable .pink .delegate-tab:hover {
    background-color: #CC27B0;
    color: white;
}

.section-programme-timetable .teal .day-tab:hover,
.section-programme-timetable .teal .delegate-tab:hover {
    background-color: #3CDBC0;
    color: #211747;
}

.section-programme-timetable .day-tab.active,
.section-programme-timetable .delegate-tab.active {
    background-color: #211747;
    color: white;
}

.section-programme-timetable .pink .day-tab.active,
.section-programme-timetable .pink .delegate-tab.active {
    background-color: #CC27B0;
    color: white;
}

.section-programme-timetable .teal .day-tab.active,
.section-programme-timetable .teal .delegate-tab.active {
    background-color: #3CDBC0;
    color: #211747;
}

.section-programme-timetable .timetable-day,
.section-programme-timetable .timetable-panel {
    display: none;
    opacity: 0;
    transition: opacity 300ms ease;
}

.section-programme-timetable .timetable-day.active,
.section-programme-timetable .timetable-panel.active {
    display: block;
}

/* Added by JS a frame after .active, so the browser has something to
   transition FROM - display:none can't animate directly. See "Programme
   Timetable Tabs" in footer.js. */
.section-programme-timetable .timetable-day.active.is-visible,
.section-programme-timetable .timetable-panel.active.is-visible {
    opacity: 1;
}

.section-programme-timetable .timetable-panels {
    padding-top: 10px;
}

.section-programme-timetable .timetable-panel {
    border-radius: 10px;
    padding: 60px;
    background-color: #211747;
    color: white;
}

.section-programme-timetable .pink .timetable-panel {
    background-color: #CC27B0;
    color: white;
}

.section-programme-timetable .teal .timetable-panel {
    border-radius: 10px;
    padding: 60px;
    background-color: #3CDBC0;
    color: #211747;
}

.section-programme-timetable .slot {
    display: grid;
    grid-template-columns: 160px 1fr 200px;
    gap: 30px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.section-programme-timetable .slot:last-child {
    border-bottom: none;
}

.section-programme-timetable .time {
    white-space: nowrap;
    font-size: 2.6rem;
}

.section-programme-timetable .info p {
    margin-bottom: 28px;
    font-size: 2.6rem;
}

.section-programme-timetable .info p:last-child {
    margin-bottom: 0;
}

.section-programme-timetable .location {
    text-align: right;
    font-size: 2.6rem;
}

@media only screen and (max-width: 1024px) {
    .section-programme-timetable .slot {
        grid-template-columns: 120px 1fr;
    }

    .section-programme-timetable .location {
        grid-column: 1 / -1;
        text-align: left;
        font-style: italic;
    }
}

@media only screen and (max-width: 1024px) {
    /* Horizontal-scroll tabs instead of stacking. The fade at each edge
       only shows while there's actually more to scroll to in that
       direction - no JS, just two gradients per side: a "cover" gradient
       that scrolls WITH the content (background-attachment: local) sitting
       over a "fade" gradient pinned to the container's edge
       (background-attachment: scroll). At rest the left cover masks the
       left fade (nothing to scroll back to); scrolling drags the cover
       away, revealing it, and the right cover slides in to mask the right
       fade once you reach the end. */
    .section-programme-timetable .day-tabs,
    .section-programme-timetable .delegate-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;

        /* background-image:
            linear-gradient(to right, white, rgba(255, 255, 255, 0)),
            linear-gradient(to left, white, rgba(255, 255, 255, 0)),
            linear-gradient(to right, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0)),
            linear-gradient(to left, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
        background-repeat: no-repeat;
        background-size: 40px 100%, 40px 100%, 20px 100%, 20px 100%;
        background-position: left center, right center, left center, right center;
        background-attachment: local, local, scroll, scroll; */

        -webkit-mask-image: linear-gradient(to right, transparent 0, black var(--top-mask-size, 0), black calc(100% - var(--bottom-mask-size, 0)), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, black var(--top-mask-size, 0), black calc(100% - var(--bottom-mask-size, 0)), transparent 100%);
        --top-mask-size: 0px;
        --bottom-mask-size: 0px;
    }

    /* Toggled by footer.js based on actual scroll position - see "Scroll
       Fades" in footer.js */
    .section-programme-timetable .day-tabs.can-scroll-left,
    .section-programme-timetable .delegate-tabs.can-scroll-left {
        --top-mask-size: 90px;
    }

    .section-programme-timetable .day-tabs.can-scroll-right,
    .section-programme-timetable .delegate-tabs.can-scroll-right {
        --bottom-mask-size: 90px;
    }

    .section-programme-timetable .day-tab,
    .section-programme-timetable .delegate-tab {
        flex: 0 0 auto;
        width: 260px;
        height: 70px;
        font-size: 2rem;
    }

    .section-programme-timetable .slot {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .section-programme-timetable .timetable-panel {
        padding: 10px 25px;
    }

    .section-programme-timetable .time,
    .section-programme-timetable .info p,
    .section-programme-timetable .location {
        font-size: 2rem;
    }

    .section-programme-timetable .location {
        padding-top: 14px;
    }
}

.section-programme-timetable .container {
    margin-bottom: 100px;
}

.section-programme-timetable .e-text {
    text-align: center;
    max-width: 1230px;
    margin-inline: auto;
    margin-top: 73px;
    font-style: italic;
}

/* Floor Plan */
.section-floor-plan .floor-plan .direction {
    font-weight: 500;
    font-size: 2.2rem;
    margin-top: 70px;
    margin-bottom: 30px;
}

.section-floor-plan .floor-plan .login-notice {
    background-color: #211747;
    border-radius: 10px;
    padding: 42px 39px;
    color: white;
}

.section-floor-plan .floor-plan .login-notice p {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.section-floor-plan .floor-plan .login-notice p:last-child {
    margin-bottom: 0;
}

.section-floor-plan .floor-plan .login-notice a {
    color: #CC27B0;
    text-decoration: underline;
}



.section-floor-plan .floor-plan .legend {
    display: flex;
    margin: 40px 0;
    gap: 25px;
}

.section-floor-plan .floor-plan .legend__item {
    display: flex;
    align-items: center;
}

.section-floor-plan .floor-plan .legend__item .colour {
    height: 50px;
    width: 68px;
    border-radius: 5px;
    margin-right: 12px;
}



.section-floor-plan .floor-plan .floor-plan-img {
    width: 100%;
    max-width: 1200px;
}

@media only screen and (max-width: 768px) {
    .section-floor-plan .floor-plan .legend {
        flex-direction: column;
    }
}

/* Log In */
.section-login-form .container {
    display: flex;
    gap: 42px;
}

.section-login-form .container > * {
    display: flex;
    flex-direction: column;
    width: 50%;
    justify-content: center;
    border-radius: 10px;
    padding: 56px 61px;
    box-sizing: border-box;
}

.section-login-form .login {
    background-color: #3CDBC0;
}

.section-login-form .register {
    background-color: #191039;
    color: white;
    gap: 30px;
}

.section-login-form h2 {
    margin-bottom: 20px;
}

.section-login-form p {
    font-size: 3rem;
}



.section-login-form .login-form h2 {
    display: none;
}

.section-login-form .login-form .login-username label {
    display: none;
}

.section-login-form .login-form .login-password label {
    display: none;
}

.section-login-form  #loginform {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 35px;
}

.section-login-form .login-form .login-username input,
.section-login-form .login-form .login-password input {
    background-color: #19BCA0;
    border: unset;
    border-radius: 6px;
    box-shadow: none;
    height: 45px;
    font-size: 1.8rem;
    color: #211747;
    padding: 24px 18px;
    width: 100%;
    box-sizing: border-box;
}

.section-login-form .login-form .login-remember label {
    font-size: 1.8rem;
    color: #211747;
}

/* Remember Me: a tick box like the site's other forms (Register, Find a Dentist), 27 Nov. */
.section-login-form .login-form .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.section-login-form .login-form .login-remember input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: none;
    -webkit-appearance: auto;
    appearance: auto;
    accent-color: #211747;
    cursor: pointer;
}

.section-login-form .login-form .login-submit input {
    background-color: #211747;
    color: white;
    border: unset;
    padding: 16px 66px;
    cursor: pointer;
}

.section-login-form .login-form .login-submit {
    margin-top: 20px;
}

.section-login-form .login-form .login-submit input:hover {
    background-color: white;
    color: #211747;
}

.section-login-form .login-form .login-username {
    order: 1;
}

.section-login-form .login-form .login-password {
    order: 2;
}

.section-login-form .login-form .login-submit {
    order: 3;
}

.section-login-form .login-form .login-remember {
    order: 4;
}
/* Turnstile (ADI Core) between the password and Log In; it comes after the password in the form, so the same order keeps it below (27 Nov). */
.section-login-form .login-form .adi-turnstile {
    order: 2;
}

.section-login-form .login-form  .pmpro_card_actions {
    display: none;
}

.pmpro_form_field-password-toggle {
    display: none;
}

.section-login-form .forgot-pass {
    margin-top: 23px;
    color: #2f7f87;
    font-size: 1.8rem;
    align-self: start;
}

.section-login-form .register .button {
    color: #211747;
    align-self: start;
}

.section-login-form .register .extra-text {
    font-size: 2.5rem;
    max-width: 500px;
}

.section-login-form .register .extra-text a {
    color: #3CDBC0;
}

@media only screen and (max-width: 1200px) {
    .section-login-form .container {
        flex-direction: column;
    }
    
    .section-login-form .container > * {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .section-login-form p {
        font-size: 2rem;
    }
    
    .section-login-form .container > * {
        padding: 25px 35px;
    }
    
    .section-login-form .register .extra-text {
        font-size: 1.8rem;
    }
}

/* Register Form */
.section-register-form .container {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
}

.section-register-form .container > * {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 61px;
    box-sizing: border-box;
}

.section-register-form .register {
    background-color: #191039;
    color: white;
    gap: 30px;
    width: 60%;
}

.section-register-form .membership {
    background-color: #3CDBC0;
    width: 40%;
}

.section-register-form h2 {
    margin-bottom: 20px;
}

.section-register-form p {
    font-size: 3rem;
}

.section-register-form .button {
    align-self: start;
    margin-top: 30px;
}

.section-register-form .register .button {
    color: #211747;
}

@media only screen and (max-width: 1200px) {
    .section-register-form .container {
        flex-direction: column;
    }
    
    .section-register-form .container > * {
        width: 100% !important;
    }
}

@media only screen and (max-width: 768px) {
    .section-register-form p {
        font-size: 2rem;
    }
    
    .section-register-form .container > * {
        padding: 25px 35px;
        width: 100%;
    }
}

/* Header Account (logged in) */
#site-header .account.logged-in a {
    gap: 10px;
}

#site-header .account-name {
    font-size: 1.8rem;
    padding-right: 2px;
    white-space: nowrap;
}

#site-header .account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid white;
    display: block;
    transition: transform 150ms ease;
	background-color: white;
}

#site-header .account-link:hover .account-avatar {
    transform: scale(1.05);
}

@media only screen and (max-width: 768px) {
    #site-header .account-name {
        display: none;
    }

    #site-header .account-avatar {
        width: 26px;
        height: 26px;
        border-width: 1.5px;
    }
}

/* Search Lightbox */
.search-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 200ms ease, visibility 200ms ease;
}

.search-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.search-lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(20, 14, 46, 0.94);
}

.search-lightbox-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 90%;
    max-width: 700px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 18px;
    transform: translateY(-10px);
    transition: transform 200ms ease;
}

.search-lightbox.is-open .search-lightbox-form {
    transform: translateY(0);
}

.search-lightbox-close,
.search-lightbox-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    color: white;
}

.search-lightbox-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

.search-lightbox-submit svg {
    width: 26px;
    height: 26px;
    fill: white;
    transition: transform 150ms ease;
}

.search-lightbox-submit:hover svg {
    transform: scale(1.05);
}

.search-lightbox-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 2.6rem;
    color: white;
    background: transparent;
    font-family: inherit;
}

.search-lightbox-form input[type="search"]:focus-visible {
    outline: 2px solid #3CDBC0;
    outline-offset: 4px;
}

.search-lightbox-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.search-lightbox-active {
    overflow: hidden;
}

@media only screen and (max-width: 768px) {
    .search-lightbox-form {
        gap: 16px;
        padding-bottom: 14px;
    }

    .search-lightbox-form input[type="search"] {
        font-size: 1.9rem;
    }

    .search-lightbox-submit svg {
        width: 22px;
        height: 22px;
    }
}

/* Search Results */
#site-content.search-results {
    display: block;
    margin-top: 80px;
    margin-bottom: 90px;
}

#site-content.search-results .search-results-count {
    margin-bottom: 40px;
    opacity: 0.7;
}

#site-content.search-results .no-results {
    font-size: 2.2rem;
}

/* My Account */
.section-my-account p {
    font-size: 2.8rem;
}

.section-my-account .dashboard-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-my-account .dashboard-links a {
    background-color: #3CDBC0;
    border-radius: 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 44px 38px;
    font-size: 2.8rem;
    font-weight: 500;
}

.section-my-account .dashboard-links a svg {
    height: 34px;
    width: 34px;
    fill: #211747;
    transition: transform 150ms;
}

.section-my-account .dashboard-links a:hover svg {
    transform: translateX(7px);
}

@media only screen and (max-width: 768px) {
    .section-my-account p,
    .section-my-account .dashboard-links a {
        font-size: 2rem;
    }
}

.section-my-account .find-colleague hr {
    margin: 78px 0 70px 0;
}

.section-my-account .find-colleague h3 {
    margin-bottom: 40px;
}

.section-my-account .find-colleague #simple-colleague-search-form {
    position: relative;
}

.section-my-account .find-colleague .field-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-my-account .find-colleague input.text {
    background-color: #332958;
    border: unset;
    color: white;
    font-size: 2.2rem;
    padding: 38px 32px;
    border-radius: 10px;
    height: 0px;
    width: 100%;
    box-sizing: border-box;
}

.section-my-account .find-colleague input.submit {
    position: absolute;
    top: 0;
    right: -1px;
    height: 100%;
    padding: 0;
    background: unset;
    transition: filter 150ms ease !important;
}

.section-my-account .find-colleague input.submit:hover {
    filter: grayscale(100%) contrast(5);
}

/* Colleague Search */
.colleague-search {
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    box-sizing: border-box;
    margin-top: 50px;
}

.colleague-search .search-field {
    margin-bottom: 24px;
}

.colleague-search .search-field:last-of-type {
    margin-bottom: 0;
}

.colleague-search label {
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.colleague-search input[type="text"],
.colleague-search select {
    background-color: #E0E0E0;
    border: none;
    border-radius: 6px;
    height: 54px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1.6rem;
    color: var(--color-indigo);
}

.colleague-search select {
    padding-right: 50px;
}

.colleague-search input[type="text"]::placeholder {
    color: #9b9b9b;
}

.colleague-search .search-field-group {
    display: flex;
    gap: 20px;
}

.colleague-search .search-field-group input {
    flex: 1 1 0;
    min-width: 0;
}

.colleague-search .button {
    margin-top: 40px;
    border: unset;
    cursor: pointer;
    padding: 14px 42px;
}

@media only screen and (max-width: 768px) {
    .colleague-search {
        padding: 25px;
    }

    .colleague-search .search-field-group {
        flex-direction: column;
    }
}

/* Colleague Directory Listing */
.colleague-directory-listing {
    margin-top: 50px;
}

.colleague-alphabet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0px;
    background-color: #211747;
    border-radius: 10px;
    padding: 15px 25px;
}

.colleague-alphabet button {
    background: unset;
    border: none;
    padding: 4px 6px;
    color: white;
    font-size: 1.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: color 150ms ease;
}

.colleague-alphabet button:hover,
.colleague-alphabet button.is-active {
    color: #3cdbc0;
}

.colleague-list {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.colleague-entry {
    padding: 0px 0;
    color: var(--color-indigo);
    font-size: 1.8rem;
    text-decoration: none;
    align-self: start;
}

.colleague-entry:hover {
    color: #3cdbc0;
}

.colleague-pagination {
    justify-content: left;
    margin-top: 40px;
}

@media only screen and (max-width: 768px) {
    .colleague-alphabet {
        justify-content: flex-start;
        border-radius: 20px;
        padding: 20px;
    }

    .colleague-entry {
        font-size: 1.6rem;
    }

    .colleague-pagination {
        justify-content: center;
    }
}

/* Manage Profile */
.manage-profile .pmpro_card {
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    box-sizing: border-box;
}

.manage-profile .pmpro_form_fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.manage-profile .pmpro_form_legend {
    padding: 0;
    margin-bottom: 24px;
    width: 100%;
}

.manage-profile .pmpro_form_heading {
    margin: 0;
}

.manage-profile .pmpro_form_fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.manage-profile .pmpro_form_fields.pmpro_cols-2,
.manage-profile .pmpro_cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.manage-profile .pmpro_form_label {
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.manage-profile .pmpro_form_input {
    background-color: #E0E0E0;
    border: none;
    border-radius: 6px;
    height: 54px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1.6rem;
    color: var(--color-indigo);
}

.manage-profile .pmpro_form_input:read-only {
    opacity: 0.6;
}

.manage-profile .pmpro_form_hint {
    font-size: 1.3rem;
    color: #9b9b9b;
    margin: 10px 0 0;
}

.manage-profile .pmpro_asterisk {
    color: #CC27B0;
}

.manage-profile .pmpro_form_submit {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
}

.manage-profile .pmpro_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 16px 28px;
    font-size: 1.6rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.manage-profile .pmpro_btn-submit-update-profile,
.manage-profile .pmpro_btn-submit-change-password {
    background-color: #3CDBC0;
    color: #211747;
}

.manage-profile .pmpro_btn-submit-update-profile:hover,
.manage-profile .pmpro_btn-submit-change-password:hover {
    background-color: #211747;
    color: white;
}

.manage-profile .pmpro_btn-cancel {
    background-color: #211747;
    color: white;
    border: unset;
}

.manage-profile .pmpro_btn-cancel:hover {
    background-color: #3cdbc0;
    color: #211747;
}

.manage-profile .pmpro_message {
    border-radius: 10px;
    padding: 20px 24px;
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.manage-profile .pmpro_message a {
    color: inherit;
    text-decoration: underline;
}

.manage-profile .pmpro_success {
    background-color: #E4FBF6;
    color: #167969;
}

.manage-profile .pmpro_error {
    background-color: #FBE9F6;
    color: #CC27B0;
}

.manage-profile .pmpro_alert {
    background-color: #F2F2F2;
    color: var(--color-indigo);
}

.manage-profile .pmpro_alert a {
    color: var(--color-indigo);
    text-decoration: underline;
}

.manage-profile-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.manage-profile-tabs a {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 14px 24px;
    background-color: #F2F2F2;
    color: var(--color-indigo);
    font-size: 1.6rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.manage-profile-tabs a:hover {
    background-color: #E0E0E0;
}

.manage-profile-tabs a.active {
    background-color: #211747;
    color: white;
    pointer-events: none;
}

.manage-profile .pmpro_spacer {
    height: 24px;
}

.manage-profile .pmpro_form_field-file-preview {
    margin-bottom: 16px;
}

.manage-profile .pmpro_form_field-file-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.manage-profile .pmpro_form_field-file-name {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.manage-profile .pmpro_form_field-file-name a {
    color: var(--color-indigo);
    text-decoration: underline;
}

.manage-profile .pmpro_form_field-file-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.manage-profile input.pmpro_form_input-file {
    height: auto;
    background-color: transparent;
    padding: 0;
}

.manage-profile .pmpro_btn-delete {
    background-color: #FBE9F6;
    color: #CC27B0;
}

.manage-profile .pmpro_btn-delete:hover {
    background-color: #CC27B0;
    color: white;
}

.manage-profile .pmpro_btn-secondary {
    background-color: #F2F2F2;
    color: var(--color-indigo);
}

.manage-profile .pmpro_btn-secondary:hover {
    background-color: #E0E0E0;
}

.manage-profile .pmpro_btn-submit-change-avatar {
    background-color: #3CDBC0;
    color: #211747;
}

.manage-profile .pmpro_btn-submit-change-avatar:hover {
    background-color: #211747;
    color: white;
}

@media only screen and (max-width: 768px) {
    .manage-profile-tabs {
        flex-direction: column;
    }

    .manage-profile .pmpro_form_field-file-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .manage-profile .pmpro_card {
        padding: 25px;
    }

    .manage-profile .pmpro_form_fields.pmpro_cols-2,
    .manage-profile .pmpro_cols-2 {
        grid-template-columns: 1fr;
    }

    .manage-profile .pmpro_form_submit {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Payment History */
.payment-history .pmpro_section_title {
    margin: 0 0 24px;
}

.payment-history .pmpro_card {
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    box-sizing: border-box;
}

.payment-history .no-payments {
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    box-sizing: border-box;
    font-size: 1.6rem;
    margin: 0;
}

.payment-history table.pmpro_table_orders {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.6rem;
}

.payment-history .pmpro_table_orders thead th {
    text-align: left;
    font-size: 1.4rem;
    font-weight: 500;
    color: #9b9b9b;
    padding: 0 12px 16px;
    border-bottom: 1px solid #E0E0E0;
}

.payment-history .pmpro_table_orders tbody th,
.payment-history .pmpro_table_orders tbody td {
    text-align: left;
    font-weight: normal;
    color: var(--color-indigo);
    padding: 18px 12px;
    border-bottom: 1px solid #E0E0E0;
}

.payment-history .pmpro_table_orders tbody tr:last-child th,
.payment-history .pmpro_table_orders tbody tr:last-child td {
    border-bottom: none;
}

.payment-history .pmpro_table_orders tbody th a {
    color: inherit;
    text-decoration: underline;
}

.payment-history .pmpro_tag {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 1.3rem;
    font-weight: 600;
}

.payment-history .pmpro_tag-success {
    background-color: #E3F8E9;
    color: #1B8A47;
}

.payment-history .pmpro_tag-alert {
    background-color: #FFF6DA;
    color: #B7791F;
}

.payment-history .pmpro_tag-error {
    background-color: #FFEAD5;
    color: #C2540B;
}

.payment-history .pmpro_card_actions {
    margin-top: 24px;
}

.payment-history .pmpro_card_actions a {
    color: var(--color-indigo);
    text-decoration: underline;
    font-size: 1.6rem;
}

.payment-history .pmpro_card_actions p {
    font-size: 1.4rem;
    color: #9b9b9b;
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .payment-history .pmpro_card,
    .payment-history .no-payments {
        padding: 25px;
    }

    .payment-history table.pmpro_table_orders,
    .payment-history table.pmpro_table_orders thead,
    .payment-history table.pmpro_table_orders tbody,
    .payment-history table.pmpro_table_orders tr {
        display: block;
    }

    .payment-history table.pmpro_table_orders thead {
        display: none;
    }

    .payment-history .pmpro_table_orders tbody tr {
        padding: 16px 0;
        border-bottom: 1px solid #E0E0E0;
    }

    .payment-history .pmpro_table_orders tbody tr:last-child {
        border-bottom: none;
    }

    .payment-history .pmpro_table_orders tbody th,
    .payment-history .pmpro_table_orders tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 6px 0;
        border-bottom: none;
    }

    .payment-history .pmpro_table_orders tbody th::before,
    .payment-history .pmpro_table_orders tbody td::before {
        content: attr(data-title);
        font-size: 1.3rem;
        font-weight: 500;
        color: #9b9b9b;
    }
}

.payment-history-custom-card {
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    box-sizing: border-box;
}

.payment-history-custom-table-wrapper {
    overflow-x: auto;
}

.payment-history-custom-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    font-size: 1.6rem;
}

.payment-history-custom-table thead th {
    text-align: left;
    font-size: 1.4rem;
    font-weight: 500;
    color: #9b9b9b;
    padding: 0 12px 16px;
    border-bottom: 1px solid #E0E0E0;
    white-space: nowrap;
}

.payment-history-custom-table tbody th,
.payment-history-custom-table tbody td {
    text-align: left;
    font-weight: normal;
    color: var(--color-indigo);
    padding: 18px 12px;
    border-bottom: 1px solid #E0E0E0;
    white-space: nowrap;
}

.payment-history-custom-table tbody tr:last-child th,
.payment-history-custom-table tbody tr:last-child td {
    border-bottom: none;
}

.payment-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.payment-tag-success {
    background-color: #E3F8E9;
    color: #1B8A47;
}

.payment-tag-alert {
    background-color: #FFF6DA;
    color: #B7791F;
}

.payment-tag-refunded {
    background-color: #FFEAD5;
    color: #C2540B;
}

.payment-tag-error {
    background-color: #FBE9F6;
    color: #CC27B0;
}

@media only screen and (max-width: 768px) {
    .payment-history-custom-card {
        padding: 25px;
    }

    .payment-history-custom-table,
    .payment-history-custom-table thead,
    .payment-history-custom-table tbody,
    .payment-history-custom-table tr {
        display: block;
        min-width: 0;
    }

    .payment-history-custom-table thead {
        display: none;
    }

    .payment-history-custom-table tbody tr {
        padding: 16px 0;
        border-bottom: 1px solid #E0E0E0;
    }

    .payment-history-custom-table tbody tr:last-child {
        border-bottom: none;
    }

    .payment-history-custom-table tbody th,
    .payment-history-custom-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 6px 0;
        border-bottom: none;
        white-space: normal;
        text-align: right;
    }

    .payment-history-custom-table tbody th::before,
    .payment-history-custom-table tbody td::before {
        content: attr(data-title);
        font-size: 1.3rem;
        font-weight: 500;
        color: #9b9b9b;
        text-align: left;
    }
}

/* Event Attendance */
.event-attendance-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.event-attendance-tabs a {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 14px 24px;
    background-color: #F2F2F2;
    color: var(--color-indigo);
    font-size: 1.6rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.event-attendance-tabs a:hover {
    background-color: #E0E0E0;
}

.event-attendance-tabs a.active {
    background-color: #211747;
    color: white;
    pointer-events: none;
}

.event-attendance-placeholder-notice {
    background-color: #FFF6DA;
    color: #B7791F;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1.4rem;
    margin: 0 0 24px;
}

.event-attendance-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-attendance-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #F2F2F2;
    border-radius: 10px;
    padding: 20px 24px;
    box-sizing: border-box;
}

.event-attendance-info h3 {
    font-size: 1.8rem;
    color: var(--color-indigo);
    margin: 0 0 6px;
}

.event-attendance-info p {
    font-size: 1.4rem;
    color: #9b9b9b;
    margin: 0;
}

.event-attendance-date {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    padding: 8px 18px;
    background-color: #E4FBF6;
    color: #167969;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.event-attendance-list .no-events {
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    box-sizing: border-box;
    font-size: 1.6rem;
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .event-attendance-tabs {
        flex-direction: column;
    }

    .event-attendance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Leaflet Orders */
.leaflet-orders-placeholder-notice {
    background-color: #FFF6DA;
    color: #B7791F;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1.4rem;
    margin: 0 0 24px;
}

.leaflet-orders-card {
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    box-sizing: border-box;
}

.leaflet-orders-table-wrapper {
    overflow-x: auto;
}

.leaflet-orders-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    font-size: 1.6rem;
}

.leaflet-orders-table thead th {
    text-align: left;
    font-size: 1.4rem;
    font-weight: 500;
    color: #9b9b9b;
    padding: 0 12px 16px;
    border-bottom: 1px solid #E0E0E0;
    white-space: nowrap;
}

.leaflet-orders-table tbody th,
.leaflet-orders-table tbody td {
    text-align: left;
    font-weight: normal;
    color: var(--color-indigo);
    padding: 18px 12px;
    border-bottom: 1px solid #E0E0E0;
    white-space: nowrap;
}

.leaflet-orders-table tbody tr:last-child th,
.leaflet-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.leaflet-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.leaflet-tag-success {
    background-color: #E3F8E9;
    color: #1B8A47;
}

.leaflet-tag-alert {
    background-color: #FFF6DA;
    color: #B7791F;
}

.leaflet-tag-refunded {
    background-color: #FFEAD5;
    color: #C2540B;
}

.leaflet-tag-error {
    background-color: #FBE9F6;
    color: #CC27B0;
}

.no-leaflet-orders {
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    box-sizing: border-box;
    font-size: 1.6rem;
    margin: 0;
}

@media only screen and (max-width: 768px) {
    .leaflet-orders-card {
        padding: 25px;
    }

    .leaflet-orders-table,
    .leaflet-orders-table thead,
    .leaflet-orders-table tbody,
    .leaflet-orders-table tr {
        display: block;
        min-width: 0;
    }

    .leaflet-orders-table thead {
        display: none;
    }

    .leaflet-orders-table tbody tr {
        padding: 16px 0;
        border-bottom: 1px solid #E0E0E0;
    }

    .leaflet-orders-table tbody tr:last-child {
        border-bottom: none;
    }

    .leaflet-orders-table tbody th,
    .leaflet-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 6px 0;
        border-bottom: none;
        white-space: normal;
        text-align: right;
    }

    .leaflet-orders-table tbody th::before,
    .leaflet-orders-table tbody td::before {
        content: attr(data-title);
        font-size: 1.3rem;
        font-weight: 500;
        color: #9b9b9b;
        text-align: left;
    }
}


/* Members List */
.section-members-list .wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-members-list .member {
    display: flex;
    gap: 30px;
}

.section-members-list .member-profile {
    width: 250px;
    height: 250px;
    flex-shrink: 0;
}

.section-members-list .member-profile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.section-members-list .member-content {
    width: 100%;
    padding-top: 20px;
}

.section-members-list .member-content h3 {
	font-weight: 400;
}

.section-members-list .member-content .member-role {
    margin-bottom: 5px;
}

.section-members-list .member-content .ac {
    margin-top: 20px;
    padding: 10px;
}

.section-members-list .accordion-container .ac button {
    font-size: 2.4rem;
}

.accordion-container .ac button::before, .accordion-container .ac button::after {
    width: 20px;
}

@media only screen and (max-width: 768px) {
    .section-members-list .member {
        flex-direction: column;
    }
	
	.section-members-list .member-profile {
		width: 200px;
		height: 200px;
	}
    
    .section-members-list .member-content {
        padding-top: 0px;
    }
}

/* Find a Dentist */
.section-find-dentist .wrapper {
    padding: 50px;
    background-color: #3cdbc0;
    border-radius: 10px;
    max-width: 1050px;
    justify-content: left;
}

.section-find-dentist h2 {
    margin-bottom: 20px;
}

.section-find-dentist .find-dentist-form {
    display: grid;
    row-gap: 30px;
}

.section-find-dentist .form-field label {
    display: block;
    font-family: "Agenda", Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.section-find-dentist .form-field input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 45px;
    padding: 0 16px;
    background-color: white;
    border: none;
    border-radius: 6px;
    box-shadow: none;
    color: var(--color-indigo);
    font-family: inherit;
    font-size: inherit;
}

.section-find-dentist .form-field input::placeholder {
    color: #767676;
}

.section-find-dentist .form-field input:focus-visible {
    outline: 2px solid var(--color-indigo);
    outline-offset: 2px;
}

.section-find-dentist .find-dentist-form button[type="submit"] {
    justify-self: start;
    display: inline-block;
    min-width: 100px;
    padding: 16px 28px;
    background-color: #211747;
    border: none;
    border-radius: 6px;
    color: white;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease;
    margin-top: 10px;
}

.section-find-dentist .find-dentist-form button[type="submit"]:hover,
.section-find-dentist .find-dentist-form button[type="submit"]:focus-visible {
    background-color: white;
    color: #211747;
}

.section-find-dentist .find-dentist-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 30px;
}

.section-find-dentist .form-field--full,
.section-find-dentist .find-dentist-form button[type="submit"] {
    grid-column: 1 / -1;
}

@media only screen and (max-width: 768px) {
    .section-find-dentist .find-dentist-form {
        grid-template-columns: 1fr;
    }
    
    .section-find-dentist .wrapper {
        padding: 25px 25px 35px 25px;
    }
}


/* Resources - Resource Children + Resource Search layouts (same card look as News) */
.section-resource-children h2, .section-resource-search h2 {
    font-size: 4.5rem;
    margin-bottom: 57px;
}

.section-resource-children .posts, .section-resource-search .posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 50px;
    row-gap: 32px;
}

.section-resource-children .news-item, .section-resource-search .news-item {
    background-color: #F2F2F2;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-resource-children .news-item .image-wrapper, .section-resource-search .news-item .image-wrapper {
    border-radius: 10px;
    overflow: hidden;
    height: 16.5vw;
    max-height: 300px;
    flex-shrink: 0;
}

.section-resource-children .news-item img, .section-resource-search .news-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.section-resource-children .news-item .content, .section-resource-search .news-item .content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-resource-children .news-item .content .title, .section-resource-search .news-item .content .title {
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

.section-resource-children .news-item .content .excerpt, .section-resource-search .news-item .content .excerpt {
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.8rem;
}

.section-resource-children .news-item .content .read-more, .section-resource-search .news-item .content .read-more {
    margin-top: auto;
    padding-top: 20px;
    align-self: start;
    font-weight: 400;
    font-size: 1.8rem;
}

.section-resource-children .news-item .content .read-more::after, .section-resource-search .news-item .content .read-more::after {
    height: 1.5px;
}

.section-resource-children .news-item:hover .read-more::after, .section-resource-search .news-item:hover .read-more::after {
    transform: scaleX(1);
    transform-origin: left;
}

.section-resource-search .posts .no-posts {
    grid-column: 1 / -1;
}

.resource-search-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 58px;
}

.resource-search-filters input[type="search"] {
    flex: 1 1 320px;
    min-width: 0;
    box-sizing: border-box;
    background-color: #F4F4F4;
    border: 0;
    border-radius: 10px;
    padding: 18px 27px;
    font-family: inherit;
    font-size: 1.8rem;
    font-weight: 300;
    color: #000;
    -webkit-appearance: none;
    appearance: none;
}

.resource-search-filters input[type="search"]:focus-visible {
    outline: 2px solid #211747;
    outline-offset: 2px;
}

.resource-search-filters button {
    border: 0;
    cursor: pointer;
}

.resource-search-filters select {
    flex: 0 1 320px;
    min-width: 0;
}

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

@media only screen and (max-width: 1400px) {
    .section-resource-children .posts, .section-resource-search .posts {
        column-gap: 20px;
        row-gap: 20px;
    }
}

@media only screen and (max-width: 1024px) {
    .section-resource-children .posts, .section-resource-search .posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-resource-children .news-item .image-wrapper, .section-resource-search .news-item .image-wrapper {
        height: 27.5vw;
    }
}

@media only screen and (max-width: 768px) {
    .section-resource-children h2, .section-resource-search h2 {
        font-size: 3.4rem;
    }

    .section-resource-children .posts, .section-resource-search .posts {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        row-gap: 30px;
    }

    .section-resource-children .news-item .image-wrapper, .section-resource-search .news-item .image-wrapper {
        height: 50vw;
        max-height: unset;
    }
}


/* Resources - citation/endnote anchors ([i] <-> References) land below the fixed header */
.post-content [id^="_edn"], .section-standard-content [id^="_edn"] {
    scroll-margin-top: 250px;
}


/* Links in body copy - Standard Content, Standard Content w/ Box, posts and
   resources. Same hover animation as .custom-dec (underline grows from the
   left, retracts to the right), but drawn as a background so links can wrap
   over several lines - .custom-dec's white-space: nowrap + absolute ::after
   pushes long links (e.g. references) off the edge of the page. Buttons and
   image links are left alone. */
.section-standard-content .wrapper a:not(.button):not(:has(img)),
.section-standard-content-with-box .wrapper a:not(.button):not(:has(img)),
#site-content.post .post-content a:not(.button):not(:has(img)) {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 0% 1px;
    padding-bottom: 2px;
    transition: background-size 300ms;
}

.section-standard-content .wrapper a:not(.button):not(:has(img)):hover,
.section-standard-content .wrapper a:not(.button):not(:has(img)):focus-visible,
.section-standard-content-with-box .wrapper a:not(.button):not(:has(img)):hover,
.section-standard-content-with-box .wrapper a:not(.button):not(:has(img)):focus-visible,
#site-content.post .post-content a:not(.button):not(:has(img)):hover,
#site-content.post .post-content a:not(.button):not(:has(img)):focus-visible {
    background-position: left bottom;
    background-size: 100% 1px;
}

/* The old ::after underline on post links is replaced by the rule above
   (and shouldn't appear inside buttons). */
#site-content.post .post-content a::after {
    content: none;
}

/* Stop consecutive aligned images stacking sideways in posts */
#site-content.post .post-content .alignright {
    clear: right;
}

#site-content.post .post-content .alignleft {
    clear: left;
}

/* Admin-only note on page builder blocks restricted by membership */
section.has-visibility-toast {
    position: relative;
}

.section-visibility-toast {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: min(360px, calc(100% - 32px));
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(33, 23, 71, 0.94);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    pointer-events: none;
}

.section-visibility-toast__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

/* Register form (non-member accounts) */
.section-register-form .adi-register-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-register-form .register-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.section-register-form .register-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-register-form .register-field label {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 500;
}

.section-register-form .register-field input {
    box-sizing: border-box;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    background-color: #332958;
    color: #fff;
    font-family: inherit;
    font-size: 1.8rem;
}

.section-register-form .register-field input:focus {
    outline: none;
    border-color: #3CDBC0;
}

.section-register-form .register-field input[aria-invalid="true"] {
    border-color: #ff8a8a;
}

.section-register-form .register-field-error {
    color: #ffb3b3;
    font-size: 1.7rem;
}

.section-register-form .register-hint {
    font-size: 1.7rem;
    opacity: 0.8;
}

.section-register-form .register-hint a,
.section-register-form .register-alert a {
    color: #3CDBC0;
    text-decoration: underline;
}

.section-register-form .register-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.9rem;
    cursor: pointer;
}

.section-register-form .register-checkbox input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #3CDBC0;
}

.section-register-form .register-alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(255, 138, 138, 0.12);
    font-size: 1.9rem;
    line-height: 1.4;
}

.section-register-form .register-alert.is-info {
    background: rgba(60, 219, 192, 0.12);
}

.section-register-form .register-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.section-register-form .adi-register-form .button {
    margin-top: 10px;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

@media only screen and (max-width: 767px) {
    .section-register-form .register-row {
        grid-template-columns: 1fr;
    }
}

/* Manage Profile: keep PMPro checkboxes checkbox-sized (the general
   .manage-profile .pmpro_form_input rule is meant for text inputs) */
.manage-profile .pmpro_form_field-checkbox .pmpro_form_label-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.manage-profile .pmpro_form_input.pmpro_form_input-checkbox {
    flex: 0 0 auto;
    width: 22px;
    min-width: 0;
    height: 22px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    accent-color: #211747;
    cursor: pointer;
}

/* Manage Profile: profile picture (PMPro change-avatar form) */
.manage-profile .pmpro_form_field-pmpro_avatar {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: start;
    column-gap: 32px;
    row-gap: 14px;
}

.manage-profile .pmpro_form_field-pmpro_avatar .pmpro_form_field-file-preview {
    grid-row: 1 / span 3;
}

.manage-profile #pmpro_avatar_preview {
    display: block;
    width: 120px;
    height: 120px;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(33, 23, 71, 0.15);
    object-fit: cover;
}

.manage-profile .pmpro_form_field-file-name {
    align-self: end;
    color: #211747;
    font-size: 1.6rem;
}

.manage-profile .pmpro_form_field-file-name a {
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
}

.manage-profile .pmpro_form_field-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.manage-profile .pmpro_form_field-file-actions .pmpro_btn {
    padding: 12px 22px;
    border: 2px solid #211747;
    border-radius: 6px;
    background: #fff;
    color: #211747;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 200ms, color 200ms, border-color 200ms;
}

.manage-profile .pmpro_form_field-file-actions .pmpro_btn:hover,
.manage-profile .pmpro_form_field-file-actions .pmpro_btn:focus-visible {
    background: #211747;
    color: #fff;
}

.manage-profile .pmpro_form_field-file-actions .pmpro_btn-delete {
    border-color: rgba(179, 38, 30, 0.35);
    color: #b3261e;
}

.manage-profile .pmpro_form_field-file-actions .pmpro_btn-delete:hover,
.manage-profile .pmpro_form_field-file-actions .pmpro_btn-delete:focus-visible {
    border-color: #b3261e;
    background: #b3261e;
    color: #fff;
}

.manage-profile .pmpro_form_field-file-upload {
    grid-column: 2;
    padding: 20px 22px;
    border: 2px dashed #c9c5d9;
    border-radius: 10px;
    background: #fff;
}

.manage-profile .pmpro_form_field-file-upload .pmpro_form_label {
    display: block;
    margin-bottom: 12px;
    color: #211747;
    font-size: 1.6rem;
    font-weight: 500;
}

.manage-profile .pmpro_form_input.pmpro_form_input-file {
    width: 100%;
    opacity: 1;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #211747;
    font-family: inherit;
    font-size: 1.5rem;
}

.manage-profile .pmpro_form_input-file::file-selector-button {
    margin-right: 16px;
    padding: 12px 22px;
    border: 0;
    border-radius: 6px;
    background: #211747;
    color: #fff;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 200ms, color 200ms;
}

.manage-profile .pmpro_form_input-file::file-selector-button:hover {
    background: #3CDBC0;
    color: #211747;
}

.manage-profile .pmpro_form_field-file-upload .pmpro_form_hint {
    margin: 10px 0 0;
    font-size: 1.4rem;
    opacity: 0.7;
}

@media only screen and (max-width: 600px) {
    .manage-profile .pmpro_form_field-pmpro_avatar {
        grid-template-columns: 1fr;
    }

    .manage-profile .pmpro_form_field-pmpro_avatar .pmpro_form_field-file-preview {
        grid-row: auto;
    }

    .manage-profile .pmpro_form_field-file-upload {
        grid-column: 1;
    }
}

/* Event Attendance: real booking details (ADI Core PortalData::eventAttendance) */
.event-attendance-info h3 a {
    color: inherit;
    text-decoration: none;
}

.event-attendance-info h3 a:hover,
.event-attendance-info h3 a:focus-visible {
    text-decoration: underline;
}

.event-attendance-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.event-attendance-ref {
    color: var(--color-indigo);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.event-attendance-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 1.2rem;
    font-weight: 600;
}

.event-attendance-badge.is-waitlist {
    background-color: #FFF6DA;
    color: #9A6212;
}

.event-attendance-badge.is-pending {
    background-color: #FDE8E8;
    color: #B3261E;
}

.event-attendance-badge.is-attended {
    background-color: #E4FBF6;
    color: #167969;
}

.event-attendance-side {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.event-attendance-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.event-attendance-actions .button {
    margin: 0;
    padding: 10px 18px;
    font-size: 1.4rem;
}

@media only screen and (max-width: 768px) {
    .event-attendance-side {
        align-items: flex-start;
    }

    .event-attendance-actions {
        justify-content: flex-start;
    }
}

/* Event booking page (Contact Form block holding the ADI booking form) */
.section-contact-form .booking-event-summary {
    margin-bottom: 30px;
    padding: 20px 24px;
    border-radius: 10px;
    background-color: #fff;
}

.section-contact-form .booking-event-label {
    display: block;
    margin-bottom: 6px;
    color: #167969;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-contact-form .booking-event-summary h3 {
    margin: 0 0 6px;
    color: var(--color-indigo);
    font-size: 2.2rem;
}

.section-contact-form .booking-event-summary h3 a {
    color: inherit;
    text-decoration: none;
}

.section-contact-form .booking-event-summary h3 a:hover,
.section-contact-form .booking-event-summary h3 a:focus-visible {
    text-decoration: underline;
}

.section-contact-form .booking-event-summary p {
    margin: 0;
    color: var(--color-indigo);
    font-size: 1.6rem;
}

.section-contact-form .booking-unavailable {
    padding: 20px 24px;
    border-radius: 10px;
    background-color: #FFF6DA;
    color: #7A4E0E;
    font-size: 1.7rem;
    line-height: 1.5;
}

.section-contact-form .booking-unavailable p {
    margin: 0;
}

.section-contact-form .booking-unavailable a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Single event: prices (ADI Core EventMeta::pricing, shown when booking is on) */
.event-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 0;
}

.event-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
    padding: 14px 20px;
    border-radius: 10px;
    background-color: #F2F2F2;
    color: var(--color-indigo);
}

.event-price.is-current,
.event-price.is-free {
    background-color: #E4FBF6;
}

.event-price-label {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.7;
}

.event-price-amount {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.event-price-tag {
    align-self: flex-start;
    margin-top: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    background-color: #167969;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.event-pricing-hint {
    margin: 10px 0 0;
    color: var(--color-indigo);
    font-size: 1.5rem;
}

.event-pricing-hint a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Single event: joining details (Zoom) and recording (ADI Core RecordingAccess) */
.event-online {
    box-sizing: border-box;
    max-width: 760px;
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: 10px;
    background-color: #F2F2F2;
    color: var(--color-indigo);
}

.event-online h4 {
    margin: 0 0 8px;
    font-size: 2.2rem;
}

.event-online p {
    margin: 0 0 14px;
    font-size: 1.8rem;
}

.event-online p:last-child {
    margin-bottom: 0;
}

.event-online p a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.event-online .button {
    margin: 0;
}

.event-online-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-online .video-embed {
    margin: 8px 0 0 !important;
}

/* Single event: venue (ADI Core venue record) */
.event-online .event-venue-address {
    line-height: 1.5;
}

/* Leaflet orders: remaining yearly allowance (ADI Core leafletQuotaRemaining) */
.leaflet-orders-quota {
    margin: 0 0 24px;
    padding: 14px 20px;
    border-radius: 8px;
    background-color: #E4FBF6;
    color: #167969;
    font-size: 1.6rem;
}

/* Leaflet orders table: opt out of the theme's base content-table styles
   (indigo header, cell borders, rounded outline) so it keeps its own design */
.leaflet-orders .leaflet-orders-table {
    display: table;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    border-collapse: collapse;
}

.leaflet-orders .leaflet-orders-table th,
.leaflet-orders .leaflet-orders-table td {
    border-right: 0;
    vertical-align: middle;
}

.leaflet-orders .leaflet-orders-table thead th {
    padding: 0 12px 16px;
    border-bottom: 1px solid #E0E0E0;
    border-radius: 0;
    background-color: transparent;
    color: #9b9b9b;
}

.leaflet-orders .leaflet-orders-table tbody th {
    padding: 18px 12px;
    border-bottom: 1px solid #E0E0E0;
    color: var(--color-indigo);
    font-size: 1.6rem;
}

.leaflet-orders .leaflet-orders-table tbody tr:last-child th {
    border-bottom: none;
}

/* Addresses wrap instead of stretching the table */
.leaflet-orders .leaflet-orders-table td[data-title="Billing Address"],
.leaflet-orders .leaflet-orders-table td[data-title="Shipping Address"] {
    min-width: 220px;
    max-width: 280px;
    line-height: 1.4;
    white-space: normal;
}


/* Leaflet order form (ADI Core leaflet Gravity Form) above the order history */
.leaflet-order-form {
    margin: 0 0 48px;
    padding: 40px;
    border-radius: 14px;
    background-color: #F2F2F2;
    box-sizing: border-box;
}

.leaflet-order-form h3,
.leaflet-orders-heading {
    margin: 0 0 20px;
    color: var(--color-indigo);
    font-size: 2.4rem;
}

.leaflet-order-form .gform_wrapper {
    max-width: 760px;
}

@media (max-width: 767px) {
    .leaflet-order-form {
        padding: 25px;
    }
}

/* The form sits on a grey card, so its fields go white to stand out */
.leaflet-order-form .gform-body .gfield input,
.leaflet-order-form .gform-body .gfield textarea {
    background-color: #fff !important;
}


/* Recommend a Friend panel on the My Account dashboard (ADI Core RafCodes) */
.recommend-a-friend {
    margin-top: 40px;
    padding: 32px;
    border-radius: 14px;
    background-color: #F2F2F2;
    box-sizing: border-box;
}

.recommend-a-friend h3 {
    margin: 0 0 12px;
    color: var(--color-indigo);
    font-size: 2.4rem;
}

.recommend-a-friend p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.5;
}

.recommend-a-friend .raf-code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
}

.recommend-a-friend .raf-code-value {
    padding: 14px 20px;
    border-radius: 6px;
    background-color: #fff;
    color: var(--color-indigo);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.recommend-a-friend .raf-code .button {
    margin: 0;
}

.recommend-a-friend .raf-copy {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.recommend-a-friend .raf-uses {
    color: #6b6b6b;
    font-size: 1.5rem;
}

@media (max-width: 767px) {
    .recommend-a-friend {
        padding: 25px;
    }
}


/* ---------------------------------------------------------------------------
 * Directories: shared results styles (Find a Dentist, Find an ADI Colleague)
 * ------------------------------------------------------------------------ */
.section-find-dentist .form-field select {
    display: block;
    width: 100%;
    height: 45px;
    padding: 0 52px 0 16px;
    border-radius: 6px;
    background-color: white;
    background-size: 18px;
    color: var(--color-indigo);
    font-family: inherit;
    font-size: 1.6rem;
}

.section-find-dentist .form-field select:focus-visible {
    outline: 2px solid var(--color-indigo);
    outline-offset: 2px;
}

.directory-results {
    margin-top: 56px;
    scroll-margin-top: 140px;
}

.directory-count {
    margin: 0 0 24px;
    color: var(--color-indigo);
    font-size: 1.8rem;
    font-weight: 500;
}

.directory-notice {
    margin: 0;
    padding: 18px 24px;
    border-radius: 10px;
    background-color: #F2F2F2;
    color: var(--color-indigo);
    font-size: 1.6rem;
}

.directory-pagination {
    margin-top: 48px;
}

.directory-pagination a.pagination-number,
.directory-pagination span.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.directory-pagination .pagination-arrow {
    background-color: #211747;
    color: white;
}

.directory-pagination .pagination-arrow:hover {
    background-color: #3cdbc0;
}

.directory-pagination .pagination-prev svg {
    transform: rotate(180deg);
}

.directory-pagination .pagination-ellipsis {
    align-self: flex-end;
    padding: 0 4px 10px;
    color: #9b9b9b;
}

/* Find a Dentist result cards */
.dentist-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.dentist-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    border-radius: 14px;
    background-color: #F2F2F2;
}

.dentist-card h3 {
    margin: 0;
    color: var(--color-indigo);
    font-size: 2.2rem;
}

.dentist-card p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.4;
}

.dentist-card .dentist-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.dentist-card .dentist-distance {
    display: block;
    margin-top: 4px;
    color: #167969;
    font-weight: 500;
}

.dentist-card .dentist-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 1.5rem;
}

.dentist-card .dentist-gdc {
    color: #6b6b6b;
}

.dentist-card .dentist-links a {
    color: var(--color-indigo);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1024px) {
    .dentist-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dentist-results {
        grid-template-columns: 1fr;
    }

    .dentist-card {
        padding: 22px;
    }
}


/* Find an ADI Colleague (ADI Core colleague directory) */
.colleague-search .search-field-group select {
    flex: 0 0 220px;
    width: auto;
}

.colleague-search .colleague-search-clear {
    display: inline-block;
    margin: 40px 0 0 20px;
    color: var(--color-indigo);
    font-size: 1.6rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.colleague-members-only {
    margin-top: 40px;
}

.colleague-members-only a {
    color: var(--color-indigo);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.colleague-alphabet a {
    padding: 4px 6px;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    transition: color 150ms ease;
}

.colleague-alphabet a:hover,
.colleague-alphabet a.is-active {
    color: #3cdbc0;
}

.colleague-directory-listing .directory-notice,
.colleague-directory-listing .directory-count {
    margin-top: 40px;
}

.colleague-directory-listing .directory-count + .colleague-list {
    margin-top: 0;
}

ul.colleague-list {
    gap: 12px;
    padding: 0;
    list-style: none;
}

ul.colleague-list .colleague-entry {
    margin: 0;
    padding: 0;
}

ul.colleague-list .colleague-entry:hover {
    color: var(--color-indigo);
}

.colleague-entry .colleague-distance {
    margin-left: 8px;
    color: #167969;
    font-size: 1.5rem;
    font-weight: 500;
}

@media (max-width: 767px) {
    .colleague-search .search-field-group input,
    .colleague-search .search-field-group select {
        flex: 0 0 auto;
        width: 100%;
    }

    .colleague-search .colleague-search-clear {
        display: block;
        margin: 20px 0 0;
    }
}


/* Company Member Directory: phone number in each company box */
.partner-phone {
    margin: 8px 0 0;
    font-size: 1.6rem;
}

.partner-phone a {
    color: var(--color-indigo);
    text-decoration: none;
}

.partner-phone a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* Directories: AJAX loading states (same look as the news results spinner) */
.directory-results[hidden],
.colleague-search .colleague-search-clear[hidden] {
    display: none !important;
}

.directory-results {
    position: relative;
}

.directory-results:focus {
    outline: none;
}

.directory-results.is-loading {
    min-height: 120px;
    pointer-events: none;
}

.directory-results.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.directory-results.is-loading::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 50%;
    width: 36px;
    height: 36px;
    margin-left: -18px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 3;
    animation: news-spinner-spin 0.8s linear infinite;
}

/* Company Member Directory: Load More */
.company-directory-load-more {
    margin-top: 48px;
    text-align: center;
}

#company-directory-more {
    position: relative;
    min-width: 220px;
}

#company-directory-more.is-loading {
    color: transparent;
    pointer-events: none;
}

#company-directory-more.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: news-spinner-spin 0.8s linear infinite;
}

#company-directory .boxes .box:focus {
    outline: none;
}

#company-directory .boxes .box:focus-visible {
    outline: 2px solid var(--color-indigo);
    outline-offset: 4px;
}


/* ---------------------------------------------------------------------------
 * Header hide on scroll (assets/js/footer.js, "Header Hide on Scroll").
 * The header slides up and fades out while scrolling down, and comes back on
 * scroll up. Only applies while the script adds .is-hidden, so removing that
 * block (or setting HEADER_AUTO_HIDE to false) switches it off.
 * ------------------------------------------------------------------------ */
#site-header:not(.static) {
    transition: transform 350ms ease, opacity 350ms ease;
}

#site-header.is-hidden:not(.static) {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* While hidden, the shrink to the compact header happens instantly, out of
   sight, so it never animates at the same time as the slide. */
#site-header.is-hidden:not(.static) .util-bar,
#site-header.is-hidden:not(.static) .page-title-area,
#site-header.is-hidden:not(.static) .main-head {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    #site-header:not(.static) {
        transition: none;
    }
}


/* ---------------------------------------------------------------------------
 * Transparent teal header: the regular logo over the photo at the top of the
 * page, the teal-page logo once the header turns solid teal on scroll
 * (header.php outputs both only for this header type).
 * ------------------------------------------------------------------------ */
#site-header.transparent-teal:not(.is-scrolled) .logo-when-scrolled,
#site-header.transparent-teal.is-scrolled .logo-at-top {
    display: none;
}


/* ---------------------------------------------------------------------------
 * Gravity Forms 3: submit button while a form is sending. GF adds
 * .gform-has-spinner to the button and a .gform-loader spinner inside it; the
 * theme's own (!important) button styles were keeping the text visible over
 * the spinner. While loading: greyed out, label hidden, indigo spinner in the
 * middle, and no second clicks.
 * ------------------------------------------------------------------------ */
.gform_wrapper .gform-has-spinner:not(.gform_image_button),
.gform_wrapper .gform_button.gform-has-spinner:not(.gform_image_button)[type="submit"] {
    position: relative !important;
}

/* Image buttons (e.g. the footer newsletter arrow) keep their own position
   and shape; only the arrow image is swapped for the spinner. */
.gform_wrapper .gform_image_button.gform-has-spinner img {
    visibility: hidden;
}

.gform_wrapper .gform-has-spinner,
.gform_wrapper .gform_button.gform-has-spinner[type="submit"] {
    background-color: #D6D6D6 !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    box-shadow: none !important;
    cursor: wait !important;
    pointer-events: none !important;
}

.gform_wrapper .gform-has-spinner .gform-loader {
    position: absolute !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    width: 22px !important;
    height: 22px !important;
    margin: -11px 0 0 -11px !important;
    border: 3px solid rgba(33, 23, 71, 0.2) !important;
    border-top-color: #211747 !important;
    border-radius: 50% !important;
    animation: gformLoader 0.8s linear infinite !important;
}

@media (prefers-reduced-motion: reduce) {
    .gform_wrapper .gform-has-spinner .gform-loader {
        animation-duration: 2s !important;
    }
}


/* ---------------------------------------------------------------------------
 * 404 page
 * ------------------------------------------------------------------------ */
.error404-content {
    padding: 100px 0 120px;
}

.error404-inner {
    max-width: 760px;
}

.error404-code {
    margin: 0 0 12px;
    color: #167969;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error404-inner h2 {
    margin: 0 0 20px;
    color: var(--color-indigo);
}

.error404-inner > p:not(.error404-code) {
    margin: 0 0 40px;
    font-size: 1.8rem;
    line-height: 1.5;
}

.error404-search-label {
    display: block;
    margin-bottom: 12px;
    font-size: 1.6rem;
    font-weight: 500;
}

.error404-search-row {
    display: flex;
    gap: 12px;
}

.error404-search-row input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 54px;
    padding: 0 20px;
    border: none;
    border-radius: 6px;
    background-color: #F2F2F2;
    color: var(--color-indigo);
    font-family: inherit;
    font-size: 1.6rem;
}

.error404-search-row input[type="search"]:focus-visible {
    outline: 2px solid var(--color-indigo);
    outline-offset: 2px;
}

.error404-search-row .button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.error404-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

@media (max-width: 767px) {
    .error404-content {
        padding: 60px 0 80px;
    }

    .error404-search-row {
        flex-direction: column;
    }
}

/* My Account: sign out link */
.box-type-links .account-sign-out {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 4px;
}

.box-type-links .account-sign-out:hover,
.box-type-links .account-sign-out:focus-visible {
    text-decoration-thickness: 2px;
}

/* ---------------------------------------------------------------------------
 * My Account: membership panel + next events (ADI Core PortalData)
 * ------------------------------------------------------------------------ */
.section-my-account .membership-panel {
    margin: 32px 0 24px;
    padding: 32px;
    border-radius: 14px;
    background-color: var(--color-indigo);
    color: #fff;
    box-sizing: border-box;
}

.section-my-account .membership-panel-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-my-account .membership-panel-label {
    color: var(--color-mint);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-my-account .membership-panel h3 {
    margin: 0;
    color: #fff;
    font-size: 3.2rem;
    line-height: 1.15;
}

.section-my-account .membership-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.section-my-account .membership-facts div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.section-my-account .membership-facts dt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
}

.section-my-account .membership-facts dd {
    margin: 0;
    font-size: 2rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.section-my-account .membership-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 16px;
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08);
}

.section-my-account .membership-status p {
    flex: 1 1 280px;
    margin: 0;
    color: #fff;
    font-size: 1.7rem;
    line-height: 1.45;
}

.section-my-account .membership-status .button {
    margin: 0;
}

.section-my-account .membership-status-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.section-my-account .membership-panel.is-ok .membership-status-icon { stroke: var(--color-mint); }
.section-my-account .membership-panel.is-ok .membership-status-icon circle { stroke: var(--color-mint); }

.section-my-account .membership-panel.is-action .membership-status {
    background-color: #FFF1D6;
}
.section-my-account .membership-panel.is-action .membership-status p { color: #5A3A00; font-weight: 500; }
.section-my-account .membership-panel.is-action .membership-status-icon { stroke: #B45309; }

.section-my-account .membership-panel.is-pending .membership-status-icon { stroke: var(--color-mint); }

.section-my-account .membership-panel.is-none {
    background-color: #F2F2F2;
    color: var(--color-indigo);
}
.section-my-account .membership-panel.is-none .membership-panel-label { color: #167969; }
.section-my-account .membership-panel.is-none h3 { color: var(--color-indigo); font-size: 2.6rem; }
.section-my-account .membership-panel.is-none .membership-status { background-color: #fff; }
.section-my-account .membership-panel.is-none .membership-status p { color: var(--color-indigo); }

/* Next events */
.section-my-account .dashboard-upcoming {
    margin: 0 0 24px;
}

.section-my-account .dashboard-upcoming-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.section-my-account .dashboard-upcoming-head h3 {
    margin: 0;
    font-size: 2.4rem;
}

.section-my-account .dashboard-upcoming-head a {
    font-size: 1.6rem;
    font-weight: 500;
}

.section-my-account .dashboard-upcoming ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-my-account .dashboard-upcoming li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border-radius: 10px;
    background-color: #F2F2F2;
}

.section-my-account .upcoming-date {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--color-indigo);
    color: #fff;
    line-height: 1;
}

.section-my-account .upcoming-day {
    font-size: 2.4rem;
    font-weight: 600;
}

.section-my-account .upcoming-month {
    margin-top: 3px;
    color: var(--color-mint);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-my-account .upcoming-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-my-account .upcoming-title {
    align-self: flex-start;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
}

/* No sliding underline under the event title: it only underlines on hover (beats the global content-link rule). */
.section-my-account .dashboard-upcoming .upcoming-info a.upcoming-title {
    padding-bottom: 0;
    background-image: none;
}

.section-my-account a.upcoming-title:hover,
.section-my-account a.upcoming-title:focus-visible {
    text-decoration: underline;
}

.section-my-account .upcoming-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #6b6b6b;
    font-size: 1.4rem;
}

.section-my-account .upcoming-calendar {
    flex: 0 0 auto;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .section-my-account .membership-panel { padding: 24px; }
    .section-my-account .membership-panel h3 { font-size: 2.6rem; }
    .section-my-account .membership-facts { gap: 14px 28px; }
    .section-my-account .dashboard-upcoming li { flex-wrap: wrap; padding: 14px 16px; }
    .section-my-account .upcoming-calendar { margin-left: 78px; }
}

@media (prefers-reduced-motion: reduce) {
    .section-my-account .dashboard-links a svg { transition: none; }
}

/* ---------------------------------------------------------------------------
 * Announcement banner (top of the fixed header) + homepage popup
 * Banner colour contrasts with the header colour beneath it:
 * mint on indigo pages, indigo on pink (Congress) and teal (Patient Info).
 * ------------------------------------------------------------------------ */
.has-site-banner .header-spacing {
    padding-top: var(--site-banner-h, 0px);
}

.site-banner {
    background-color: #3CDBC0;
    color: #211747;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 300ms ease;
}

#site-header.pink .site-banner,
#site-header.transparent-pink .site-banner,
#site-header.teal .site-banner,
#site-header.transparent-teal .site-banner {
    background-color: #211747;
    color: #fff;
}

#site-header:not(.static).is-scrolled .site-banner {
    max-height: 0;
}

.site-banner-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 56px;
    box-sizing: border-box;
}

.site-banner-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: inherit;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
}

a.site-banner-message:hover span,
a.site-banner-message:focus-visible span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-banner-message svg.site-banner-arrow {
    flex: 0 0 auto;
    width: 24px;
    height: 13px;
    fill: currentColor;
    transition: transform 150ms ease;
}

a.site-banner-message:hover svg {
    transform: translateX(4px);
}

.site-banner-close {
    position: absolute;
    top: 50%;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.site-banner-close:hover,
.site-banner-close:focus-visible {
    background-color: rgba(33, 23, 71, 0.12);
}

#site-header.pink .site-banner-close:hover,
#site-header.transparent-pink .site-banner-close:hover,
#site-header.teal .site-banner-close:hover,
#site-header.transparent-teal .site-banner-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.site-banner-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.site-banner a:focus-visible,
.site-banner button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media only screen and (max-width: 768px) {
    .site-banner-inner { padding: 8px 48px 8px 16px; justify-content: flex-start; }
    .site-banner-message { font-size: 1.4rem; text-align: left; }
    .site-banner-close { right: 8px; }
}

/* Homepage popup */
.site-popup-open,
.site-popup-open body {
    overflow: hidden !important;
}

.site-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.site-popup[hidden] {
    display: none;
}

.site-popup-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(33, 23, 71, 0.6);
    animation: site-popup-fade 250ms ease;
}

.site-popup-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 44px 40px 36px;
    border-radius: 14px;
    background-color: #fff;
    color: #211747;
    box-shadow: 0 24px 60px rgba(33, 23, 71, 0.3);
    box-sizing: border-box;
    animation: site-popup-rise 300ms ease;
}

.site-popup-card:focus {
    outline: none;
}

.site-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #F2F2F2;
    color: #211747;
    cursor: pointer;
}

.site-popup-close:hover,
.site-popup-close:focus-visible {
    background-color: #3CDBC0;
}

.site-popup-close:focus-visible {
    outline: 2px solid #211747;
    outline-offset: 2px;
}

.site-popup-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.site-popup-content > :first-child { margin-top: 0; }
.site-popup-content > :last-child { margin-bottom: 0; }
.site-popup-content h2 { font-size: 3.4rem; line-height: 1.15; margin: 0 0 14px; }
.site-popup-content h3 { font-size: 2.6rem; margin: 0 0 12px; }
.site-popup-content p { font-size: 1.8rem; line-height: 1.5; margin: 0 0 14px; }
.site-popup-content img { display: block; max-width: 100%; height: auto; margin: 0 0 18px; border-radius: 10px; }
.site-popup-content a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.site-popup-content .button { margin-top: 6px; }

@keyframes site-popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes site-popup-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media only screen and (max-width: 768px) {
    .site-popup { padding: 16px; align-items: flex-end; }
    .site-popup-card { padding: 40px 24px 28px; max-height: 80vh; }
    .site-popup-content h2 { font-size: 2.6rem; }
    .site-popup-content p { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-banner, .site-banner-message svg { transition: none; }
    .site-popup-backdrop, .site-popup-card { animation: none; }
}

/* Logged-in staff: sit the fixed header below the WordPress admin bar, so the
   announcement banner isn't hidden behind it (visitors are unaffected). */
@media screen and (min-width: 601px) {
    .admin-bar #site-header {
        top: var(--wp-admin--admin-bar--height, 32px);
    }
}

/* Banner arrow follows the banner's text colour (header icon rules would otherwise turn it white) */
#site-header .site-banner .site-banner-arrow,
#site-header .site-banner .site-banner-arrow path {
    fill: currentColor;
}

/* ---------------------------------------------------------------------------
 * Colour-coded event types (format "Calendar Colour", via theme_format_colours)
 * Indigo cards (events listing): type chip filled with the type colour.
 * Mint cards (Upcoming events block): chip stays indigo, with a coloured dot.
 * ------------------------------------------------------------------------ */
.section-events .event.has-type-colour .legend p.event-type {
    background-color: var(--type-colour);
    color: var(--type-ink);
    font-weight: 500;
}

/* Type icons are white images: darken them on light chips */
.section-events .event.type-ink-dark .legend p.event-type img {
    filter: brightness(0) saturate(100%) invert(9%) sepia(37%) saturate(3870%) hue-rotate(241deg) brightness(92%) contrast(104%);
}

/* Duration chip goes neutral so it never looks like a second type */
.section-events .event .legend p.event-duration {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.section-events .event .legend p.event-duration svg,
.section-events .event .legend p.event-duration svg path {
    fill: #fff;
}

.section-events-upcoming .event.has-type-colour .legend p.event-type::before {
    content: "";
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    background-color: var(--type-colour);
}

/* Key above the listing */
.section-events .event-type-key {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.section-events .event-type-key li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-indigo);
    font-size: 1.5rem;
}

.section-events .event-type-key-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(33, 23, 71, 0.15);
}

@media only screen and (max-width: 768px) {
    .section-events .event-type-key { gap: 8px 16px; margin-bottom: 24px; }
    .section-events .event-type-key li { font-size: 1.4rem; }
}

/* Event cards: date and time larger than the body text (excerpt is 1.9rem) */
.section-events .event p.info,
.section-events-upcoming .event p.info {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.3;
}

@media only screen and (max-width: 768px) {
    .section-events .event p.info,
    .section-events-upcoming .event p.info {
        font-size: 1.9rem;
    }
}


/* Payment history: "Show all orders" toggle (2 Oct) */
.payment-history-custom {
    scroll-margin-top: 160px;
}

.payment-history-custom-table tbody tr[hidden] {
    display: none !important;
}

.payment-history-custom:not(.is-expanded) .payment-row-cutoff th,
.payment-history-custom:not(.is-expanded) .payment-row-cutoff td {
    border-bottom: none;
}

.payment-history-more {
    display: flex;
    justify-content: center;
    padding-top: 32px;
}

.payment-history-more .payment-history-toggle {
    cursor: pointer;
    font-family: inherit;
}

@media only screen and (max-width: 768px) {
    .payment-history-custom:not(.is-expanded) tr.payment-row-cutoff {
        border-bottom: none;
    }

    .payment-history-more .payment-history-toggle {
        width: 100%;
        justify-content: center;
    }
}


/* Booking form: free events hide the £0.00 fee and total (functions.php) */
.gform_wrapper .gfield.theme-free-hidden {
    display: none !important;
}


/* ==========================================================================
   Demo feedback quick fixes (2 Oct)
   ========================================================================== */

/* Row 100: homepage hero buttons ran off the screen on phones. Stack them
   full width, and drop the sideways fade so nothing slides off the edge. */
@media only screen and (max-width: 600px) {
    .section-hero .buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .section-hero .buttons > .button {
        flex: 1 1 100%;
        text-align: center;
    }

    .section-hero .buttons[data-aos] {
        transform: none !important;
    }
}

/* Rows 55 and 86: form notices and the consent label were too light on the
   grey form background. Dark on light forms; the indigo form variant keeps
   its light text. */
.section-contact-form .notice-text,
.section-contact-form .gfield_html p,
.section-contact-form .gfield_html a {
    color: var(--color-indigo);
}

.section-contact-form .gfield_html a {
    text-decoration: underline;
}

.section-contact-form .gform-body .gfield.gfield--type-consent label {
    color: var(--color-indigo) !important;
}

.section-contact-form .indigo .notice-text,
.section-contact-form .indigo .gfield_html p,
.section-contact-form .indigo .gfield_html a {
    color: #c7c7c7;
}

.section-contact-form .indigo .gform-body .gfield.gfield--type-consent label {
    color: white !important;
}

/* Row 68: payment history table picked up the global table outline and
   column lines, which sat square inside the rounded card. */
.payment-history-custom-table {
    border: 0;
    border-radius: 0;
}

.payment-history-custom-table th,
.payment-history-custom-table td {
    border-right: 0;
}

/* Payment history: the site-wide dark table header (thead th) sat behind the
   table's light grey labels, which were pushed to the top of the bar. Use the
   site header properly: white labels centred in the bar, white rows on the
   grey card. Phones keep the stacked layout. */
.payment-history-custom-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.payment-history-custom-table thead th {
    padding: 15px 18px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    vertical-align: middle;
    border-bottom: 0;
}

@media only screen and (min-width: 769px) {
    .payment-history-custom-card {
        padding: 32px;
    }

    .payment-history-custom-table tbody th,
    .payment-history-custom-table tbody td {
        padding: 18px;
        vertical-align: middle;
        background-color: #fff;
    }

    .payment-history-custom-table tbody th {
        font-weight: 600 !important;
    }

    .payment-history-custom-table tbody tr:last-child th:first-child {
        border-bottom-left-radius: 7px;
    }

    .payment-history-custom:not(.is-expanded) .payment-row-cutoff th:first-child {
        border-bottom-left-radius: 7px;
    }

    .payment-history-custom:not(.is-expanded) .payment-row-cutoff td:last-child {
        border-bottom-right-radius: 7px;
    }
}

/* Resource pages: a pair of images part-way through the article (Nov 2026).
   Same crop for both, side by side; stacked on phones. */
#site-content.post .post-content figure.resource-image-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pc-space-md, 1.5rem);
    margin: var(--pc-space-lg, 2rem) 0;
    max-width: none;
}

#site-content.post .post-content figure.resource-image-pair img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
    margin: 0;
}

@media only screen and (max-width: 600px) {
    #site-content.post .post-content figure.resource-image-pair {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Row 51: tables in event text (fees, programmes) didn't wrap, so a
   three-column fees table was over 1,300px wide on a phone. */
.ac-text table th,
.ac-text table td {
    white-space: normal;
}

@media only screen and (max-width: 768px) {
    .ac-text table th,
    .ac-text table td {
        padding: 0.6em 0.7em;
        font-size: 1.4rem;
        hyphens: auto;
    }
}

/* Row 45: "View your events" and the calendar download were full buttons
   competing with booking; now quieter text links. */
.event-secondary-link {
    display: inline-block;
    margin-top: 12px;
    margin-right: 24px;
    font-size: 1.6rem;
}

/* Row 5: event tagline (the "second heading", e.g. "Tissue Is The Issue")
   under the title on event cards and the homepage's next event. */
.event .event-tagline,
.section-hero .upcoming-events .event-tagline {
    margin: 4px 0 10px;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.35;
    color: inherit;
    opacity: 0.85;
}

@media only screen and (max-width: 768px) {
    .event .event-tagline,
    .section-hero .upcoming-events .event-tagline {
        font-size: 1.6rem;
    }
}

/* Row 12: landing page banners filled most of the screen, so visitors had to
   scroll to reach any content. Roughly half the previous height. */
.section-header-image .container-fw {
    height: 55vh;
    min-height: 480px;
    max-height: 620px;
}

.section-header-image .wrapper {
    bottom: 70px;
}

@media only screen and (max-width: 1024px) {
    .section-header-image .container-fw {
        height: 50vh;
        min-height: 440px;
    }
}

@media only screen and (max-width: 768px) {
    .section-header-image .container-fw {
        height: 45vh;
        min-height: 380px;
    }

    .section-header-image .wrapper {
        bottom: 50px;
    }
}

/* Row 95: no membership call to action on Patient Information pages, so the
   footer doesn't need the space the overlapping CTA box normally takes. */
#site-footer.no-footer-cta .footer-wrapper {
    padding-top: 100px;
}

@media only screen and (max-width: 1024px) {
    #site-footer.no-footer-cta .footer-wrapper {
        padding-top: 60px;
    }
}

/* Row 44: booking actions near the top of event pages. */
.event-section-intro .event-booking-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 8px 0 24px;
}

.event-booking-soon {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 18px;
    border-radius: 6px;
    background-color: #F2F2F2;
    color: var(--color-indigo);
    font-size: 1.6rem;
    font-weight: 500;
}

/* Row 46: venue as a line, styled like "Presented by" in the event info. */
.event-section-intro .event-venue-info {
    margin-top: 12px;
}

.event-section-intro .event-venue-info .event-venue-line {
    margin-bottom: 20px;
}

.event-section-intro .event-venue-line .event-venue-map {
    margin-left: 8px;
    text-decoration: underline;
    white-space: nowrap;
}

/* Members-only pages (row 52): gate for non-members, note for editors. */
.section-members-only {
    padding: 70px 0;
}

.members-only-card {
    max-width: 760px;
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    display: grid;
    gap: 14px;
}

.members-only-card h2 {
    margin: 0;
}

.members-only-card p {
    margin: 0;
}

.members-only-card .members-only-label {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #CC27B0;
}

.members-only-card .buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.members-only-preview {
    background-color: #FFF6DA;
    color: var(--color-indigo);
    font-size: 1.5rem;
    padding: 12px 0;
}

@media only screen and (max-width: 768px) {
    .section-members-only {
        padding: 35px 0;
    }

    .members-only-card {
        padding: 25px;
    }
}

.members-only-preview .container {
    width: var(--container-width);
    max-width: var(--container-max);
    margin-inline: auto;
}

/* Row 93: Congress programme "View details" (abstract + speakers). */
.section-programme-timetable .slot-toggle {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin-top: 12px;
    color: inherit;
    font: inherit;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-programme-timetable .slot-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 150ms ease;
}

.section-programme-timetable .slot-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg) translateY(-2px);
}

.section-programme-timetable .slot-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.section-programme-timetable .slot-details {
    grid-column: 2 / -1;
    display: grid;
    gap: 24px;
    padding: 24px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.12);
}

.section-programme-timetable .slot-details[hidden] {
    display: none;
}

.section-programme-timetable .slot-abstract > :first-child {
    margin-top: 0;
}

.section-programme-timetable .slot-abstract > :last-child {
    margin-bottom: 0;
}

.section-programme-timetable .slot-speaker {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: start;
}

.section-programme-timetable .slot-speaker img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.section-programme-timetable .slot-speaker-name {
    margin: 0;
    font-weight: 600;
}

.section-programme-timetable .slot-speaker-creds {
    margin: 2px 0 10px;
    opacity: 0.85;
}

.section-programme-timetable .slot-speaker-bio p:last-child {
    margin-bottom: 0;
}

@media only screen and (max-width: 768px) {
    .section-programme-timetable .slot-details {
        grid-column: 1 / -1;
        padding: 18px;
    }

    .section-programme-timetable .slot-speaker {
        grid-template-columns: 80px 1fr;
        gap: 14px;
    }

    .section-programme-timetable .slot-speaker img {
        width: 80px;
        height: 80px;
    }
}

.section-programme-timetable .slot-details p,
.section-programme-timetable .slot-details li {
    font-size: 2rem;
}

.section-programme-timetable .slot-details li p {
    font-size: inherit;
}

.section-programme-timetable .slot-details .slot-speaker-name {
    font-size: 2.2rem;
}

@media only screen and (max-width: 1024px) {
    .section-programme-timetable .slot-details p,
    .section-programme-timetable .slot-details li {
        font-size: 1.7rem;
    }

    .section-programme-timetable .slot-details .slot-speaker-name {
        font-size: 1.9rem;
    }
}

/* Row 97: Find a Dentist terms tick box. */
.find-dentist-form .form-terms {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
}

.find-dentist-form .form-terms input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: none;
    accent-color: var(--color-indigo);
}

.find-dentist-form .form-terms label {
    margin: 0;
}

.find-dentist-form .form-terms a {
    text-decoration: underline;
}

/* Row 35: footer sign-up (posts to the Register page). Matches the old form. */
#site-footer .footer-signup {
    display: flex;
    gap: 12px;
    max-width: 740px;
    margin-top: 24px;
}

#site-footer .footer-signup input[type="email"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 76px;
    padding: 0 32px;
    border: 0;
    border-radius: 10px;
    background-color: #332958;
    color: #ffffff;
    font-family: inherit;
    font-size: 2.2rem;
}

#site-footer .footer-signup input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#site-footer .footer-signup button {
    flex: none;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background-color: #3CDBC0;
    cursor: pointer;
    display: grid;
    place-items: center;
}

/* The arrow SVG is the whole button (teal square + arrow), so it fills the button */
#site-footer .footer-signup button img {
    display: block;
    width: 100%;
    height: 100%;
}

#site-footer .footer-signup input:focus-visible,
#site-footer .footer-signup button:focus-visible {
    outline: 2px solid #3CDBC0;
    outline-offset: 2px;
}

#site-footer .footer-signup-account {
    margin: 20px 0 16px;
}

@media only screen and (max-width: 768px) {
    #site-footer .footer-signup input[type="email"] {
        height: 60px;
        padding: 0 20px;
        font-size: 1.8rem;
    }

    #site-footer .footer-signup button {
        width: 60px;
        height: 60px;
    }
}

/* Row 30: Student and Company membership as two tiles side by side. */
.benefit-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.benefit-tile {
    background-color: #F2F2F2;
    border-radius: 14px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.benefit-tile > :first-child {
    margin-top: 0;
}

.benefit-tile > :last-child {
    margin-bottom: 0;
    margin-top: auto;
    padding-top: 10px;
}

@media only screen and (max-width: 900px) {
    .benefit-tiles {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .benefit-tile {
        padding: 25px;
    }
}


/* About Us: affiliation logos (BDIA, BADN, MHWD) carried over from the old site. */
.affiliation-logos .wrapper h3 {
    margin-bottom: 2rem;
}

.affiliation-logos .wrapper p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.affiliation-logos .wrapper p a {
    display: block;
    line-height: 0;
}

.affiliation-logos .wrapper img {
    width: auto;
    height: 130px;
    border-radius: 14px;
}

@media (max-width: 600px) {
    .affiliation-logos .wrapper p {
        gap: 2rem;
    }

    .affiliation-logos .wrapper img {
        height: 100px;
    }
}


/* Osteocom: monthly lecture list. Clearer breaks between the Implantology,
   Periodontology and New for 2026 sections (add the class "lecture-list"
   to a Standard Content block to use it elsewhere). */
.lecture-list .wrapper h3 {
    margin-top: 6rem;
    padding-top: 5rem;
    border-top: 1px solid #D9D6E3;
    font-size: 3.6rem;
}

.lecture-list .wrapper h3 + p {
    margin-top: 2.5rem;
}

.lecture-list .wrapper p:has(> strong:only-child) {
    margin-top: 3.5rem;
    color: #332958;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .lecture-list .wrapper h3 {
        margin-top: 4rem;
        padding-top: 3.5rem;
        font-size: 3rem;
    }
}


/* Cards block with "Show images" switched off: text-only cards. */
.cards.no-images .card .content,
.deploy-swiper.no-images .card .content {
    margin-top: 0;
    height: 100%;
}

.cards.no-images {
    align-items: stretch;
}


/* Training Discounts: one entry per provider (heading, bullets, link),
   separated by a thin full-width rule. */
.discount-list .wrapper h3 {
    margin-top: 4.5rem;
    padding-top: 4rem;
    border-top: 1px solid #D9D6E3;
}

.discount-list .wrapper h2 + h3 {
    margin-top: 3rem;
    padding-top: 0;
    border-top: 0;
}

.discount-list .wrapper ul {
    margin: 1.5rem 0;
    padding-left: 2.2rem;
}

.discount-list .wrapper li {
    margin-bottom: 0.6rem;
}

@media (max-width: 768px) {
    .discount-list .wrapper h3 {
        margin-top: 3.5rem;
        padding-top: 3rem;
    }
}


/* Row 31: in-text links. Links in body text (page builder text blocks, news
   posts and resources) now carry a permanent mint underline so they stand
   out from bold text. On hover the theme's existing line still sweeps across,
   in the text colour, over the mint one. The link text keeps its own colour,
   so it stays readable on light and dark backgrounds. Buttons and image
   links are untouched. Same selectors as the theme's original link rule, so
   this overrides it. */
.section-standard-content .wrapper a:not(.button):not(:has(img)),
.section-standard-content-with-box .wrapper a:not(.button):not(:has(img)),
#site-content.post .post-content a:not(.button):not(:has(img)),
section .wrapper :is(p, li, td, dd) a:not(.button):not(:has(img)) {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentcolor, currentcolor), linear-gradient(#3CDBC0, #3CDBC0);
    background-repeat: no-repeat;
    background-position: right bottom, left bottom;
    background-size: 0% 2px, 100% 2px;
    padding-bottom: 2px;
    transition: background-size 300ms;
}

.section-standard-content .wrapper a:not(.button):not(:has(img)):hover,
.section-standard-content .wrapper a:not(.button):not(:has(img)):focus-visible,
.section-standard-content-with-box .wrapper a:not(.button):not(:has(img)):hover,
.section-standard-content-with-box .wrapper a:not(.button):not(:has(img)):focus-visible,
#site-content.post .post-content a:not(.button):not(:has(img)):hover,
#site-content.post .post-content a:not(.button):not(:has(img)):focus-visible,
section .wrapper :is(p, li, td, dd) a:not(.button):not(:has(img)):hover,
section .wrapper :is(p, li, td, dd) a:not(.button):not(:has(img)):focus-visible {
    background-position: left bottom, left bottom;
    background-size: 100% 2px, 100% 2px;
}

/* The .custom-dec hover line would double up with the underline above. */
.section-standard-content .wrapper a.custom-dec:not(.button):not(:has(img))::after,
.section-standard-content-with-box .wrapper a.custom-dec:not(.button):not(:has(img))::after,
#site-content.post .post-content a.custom-dec:not(.button):not(:has(img))::after,
section .wrapper :is(p, li, td, dd) a.custom-dec:not(.button):not(:has(img))::after {
    display: none;
}


/* Footnote under a table (e.g. the BADN note under Membership Rates). */
.wrapper .table-note {
    margin-top: 2rem;
    font-size: 1.6rem;
}


/* Row 64: branded password reset on the Log In page. PMPro's lost-password
   and choose-a-new-password forms use different markup from the login form,
   so they get the same mint-panel styling here. */
.section-login-form .login-form .pmpro_card,
.section-login-form .login-form .pmpro_section_content {
    background: none;
    border: 0;
    box-shadow: none;
}

.section-login-form .login-form .pmpro_card_content {
    padding: 0;
}

.section-login-form .login-form .pmpro_form_fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-login-form .login-form .pmpro_form_label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 500;
    color: #211747;
}

.section-login-form .login-form .pmpro_asterisk {
    display: none;
}

.section-login-form .login-form .pmpro_form_input {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    box-sizing: border-box;
    background-color: #19BCA0;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    font-size: 1.8rem;
    color: #211747;
}

.section-login-form .login-form .pmpro_form_input:focus {
    outline: 2px solid #211747;
    outline-offset: 2px;
}

.section-login-form .login-form #resetpassform .pmpro_form_field-password-toggle {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-login-form .login-form .pmpro_btn-password-toggle {
    padding: 0;
    background: none;
    border: 0;
    font-size: 1.4rem;
    color: #211747;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.section-login-form .login-form .pmpro_btn-password-toggle svg {
    display: none;
}

.section-login-form .login-form .pmpro_form_submit {
    margin-top: 20px;
}

.section-login-form .login-form .pmpro_btn-submit {
    padding: 16px 66px;
    background-color: #211747;
    border: 0;
    border-radius: 6px;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

.section-login-form .login-form .pmpro_btn-submit:hover,
.section-login-form .login-form .pmpro_btn-submit:focus-visible {
    background-color: white;
    color: #211747;
}

.section-login-form .login-form .pmpro_message {
    margin: 28px 0 0; /* clear of the intro text above; the form below has its own 35px */
    padding: 14px 18px;
    background-color: white;
    border: 0;
    border-radius: 6px;
    font-size: 1.6rem;
    color: #211747;
}

.section-login-form .login-form .pmpro_message.pmpro_error {
    font-weight: 500;
    color: #9B1C31;
}

.section-login-form .login-form #pass-strength-result,
.section-login-form .login-form .pmpro_form_hint {
    margin-top: 8px;
    font-size: 1.4rem;
    color: #211747;
}

/* Our intro above the form already explains this step. */
.section-login-form .login-form .pmpro_lost_password-instructions {
    display: none;
}

/* The email field has a placeholder (like the login form), so its label is
   kept for screen readers only. */
.section-login-form .login-form #lostpasswordform .pmpro_form_label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.section-login-form .login-form #lostpasswordform {
    margin-top: 20px;
}


/* Manage Profile > Password tab: the theme hides PMPro's password-toggle
   wrapper, which also holds the "Current Password" label, so show the label
   and hide just the Show Password button. */
.manage-profile .pmpro_form_field-password-toggle {
    display: block;
}

.manage-profile .pmpro_btn-password-toggle {
    display: none;
}


/* Row 4: bigger header logo so the "40 years of" strapline is easier to read.
   Desktop: 476 × 64px (was 310 × 42px, capped by its old 310px max-width),
   with less padding so the header stays the same height. On tablets it
   shrinks with the space available. Phones: 230 × 31px (was squeezed to
   145 × 19px because the menu block took more width than it needed). */
#site-header .logo {
    max-width: 480px;
    height: 64px;
}

#site-header .main-head > .wrapper {
    padding: 34px 0;
    align-items: center;
    gap: 24px;
}

@media only screen and (max-width: 768px) {
    #site-header .main-head > .wrapper {
        padding: 25px 0;
        gap: 16px;
    }

    #site-header .main-head .menu {
        width: auto;
        flex: 0 0 auto;
    }

    #site-header .logo {
        max-width: 230px;
        height: 31px;
    }
}

/* Membership application (Become a Member): address inputs match the other fields; grade notes read as guidance. */
.gform-body .gfield.gfield--type-address input,
.gform-body .gfield.gfield--type-address select {
    background-color: #E0E0E0 !important;
    border: unset !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    height: 45px !important;
    color: var(--color-indigo) !important;
}

.gform-body .gfield.gfield--type-address select {
    padding-right: 52px !important;
}

.gform-body .gfield.join-note p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.5;
}

.gform-body .gfield_description a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gform-body .gfield.join-yes-no .gfield_radio {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 8px 32px;
}

.gform_wrapper .gform_footer .gform_save_link {
    background: transparent !important;
    border: 1px solid var(--color-indigo) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    color: var(--color-indigo) !important;
}

.gform_wrapper .gform_footer .gform_save_link svg {
    display: none;
}

.gform-body .gfield.gfield--type-fileupload input[type="file"] {
    background-color: #E0E0E0 !important;
    border: unset !important;
    border-radius: 6px !important;
    color: var(--color-indigo) !important;
}

/* Speakers: cards link to the speaker's page; line-ups of more than four get their own section; single speaker page. */
.event-section-intro .speaker,
.event-section-speakers .speaker {
    display: block;
    color: inherit;
    text-decoration: none;
}

.event-section-intro .speaker img,
.event-section-speakers .speaker img {
    transition: transform 0.4s ease;
}

.event-section-intro .speaker:hover img,
.event-section-intro .speaker:focus-visible img,
.event-section-speakers .speaker:hover img,
.event-section-speakers .speaker:focus-visible img {
    transform: scale(1.04);
}

.event-section-intro .event-image {
    width: 50%;
}

.event-section-intro .event-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (min-width: 1025px) {
    .event-section-intro .container:has(.event-image) .text {
        width: 50% !important;
    }
}

.event-section-speakers {
    margin-top: 70px;
}

.event-section-speakers h2 {
    margin-bottom: 32px;
}

.event-section-speakers .speaker-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.event-section-speakers .speaker {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
}

.event-section-speakers .speaker img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-section-speakers .speaker .legend-text {
    position: absolute;
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    margin: 0;
    padding: 7px 12px;
    border-radius: 6px;
    background-color: #3CDBC0;
    font-size: 1.3rem;
    line-height: 1.3;
}

.speaker-section-intro {
    margin-top: 70px;
    margin-bottom: 100px;
}

.speaker-section-intro .container {
    display: flex;
    align-items: flex-start;
    gap: 80px;
}

.speaker-section-intro .speaker-photo {
    flex: 0 0 36%;
    position: sticky;
    top: 140px;
    border-radius: 10px;
    overflow: hidden;
}

.speaker-section-intro .speaker-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.speaker-section-intro .text {
    flex: 1 1 auto;
    min-width: 0;
}

.speaker-section-intro h1 {
    margin-bottom: 12px;
}

.speaker-section-intro .speaker-credentials {
    margin-bottom: 28px;
    font-size: 1.8rem;
    color: #5F5A78;
}

.speaker-section-intro .speaker-bio p {
    margin-bottom: 18px;
}

.speaker-events {
    margin-top: 40px;
}

.speaker-events h3 {
    margin-bottom: 16px;
}

.speaker-events ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #D9D6E3;
}

.speaker-events li {
    margin: 0;
    border-bottom: 1px solid #D9D6E3;
}

.speaker-events li::before {
    display: none;
}

.speaker-events a {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    color: inherit;
    text-decoration: none;
    background: none;
}

.speaker-events a:hover .speaker-event-title,
.speaker-events a:focus-visible .speaker-event-title {
    text-decoration: underline;
}

.speaker-events .speaker-event-date {
    flex: 0 0 auto;
    color: #5F5A78;
}

.speaker-section-intro .speaker-all-events {
    display: inline-block;
    margin-top: 32px;
}

@media (max-width: 1024px) {
    .event-section-intro .event-image {
        width: 100%;
        margin-top: 32px;
    }

    .event-section-speakers .speaker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .speaker-section-intro .container {
        flex-direction: column;
        gap: 40px;
    }

    .speaker-section-intro .speaker-photo {
        position: static;
        flex: none;
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .event-section-speakers .speaker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .speaker-events a {
        flex-direction: column;
        gap: 4px;
    }
}

/* Event cards: date and place sit straight under the title; the excerpt takes the spare space so it lines up with the arrow at the bottom. */
.section-events .event .excerpt,
.section-events-upcoming .event .excerpt {
    margin-top: auto;
    padding-top: 30px;
}

/* Homepage upcoming events: no excerpt, so the arrow takes the spare space and sits at the bottom of every card. */
.section-events-upcoming .event p.info {
    padding-bottom: 30px;
}

.section-events-upcoming .event a > svg {
    margin-top: auto;
}

/* Event intro: a lone speaker sits in the right-hand column, against the edge, rather than floating mid-page. */
@media (min-width: 1025px) {
    .event-section-intro .speakers .speaker:only-child {
        grid-column: 2;
    }
}

/* Text and image block (stacked): the text box was capped at 78vh, so long text on a narrow or short
   screen overflowed and the heading rode up over the image (Membership page, Fellowship Pathway). */
@media only screen and (max-width: 1248px) {
    .section-text-and-image-block .text {
        max-height: none;
    }
}

/* Footer: grouped links (About ADI / Learn & Connect / Patients) */
#footer-nav.grouped {
    column-count: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 31px;
}

#footer-nav.grouped.groups-3 .footer-nav-group:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

#site-footer .nav #footer-nav.grouped h3 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

@media only screen and (max-width: 768px) {
    #footer-nav.grouped {
        grid-template-columns: 1fr;
    }

    #footer-nav.grouped.groups-3 .footer-nav-group:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Split text: more than one paragraph (blank line between them in the text box) */
.section-split-text .text p + p {
    margin-top: 22px;
}

/* Rounded corners on images in page text (10px, as on the site's other images) */
.section-standard-content:not(.affiliation-logos) .wrapper img,
.section-standard-content-with-box .wrapper img,
.section-standard-content .wrapper iframe,
.section-standard-content-with-box .wrapper iframe,
.section-floor-plan .wrapper > img,
.section-floor-plan .wrapper p img,
.speaker-bio img {
    border-radius: 10px;
}

/* Congress floor plan (ADI Core's interactive SVG): round the plan itself,
   so stand tooltips inside the map aren't clipped. */
.adi-floorplan__map svg {
    border-radius: 10px;
}

/* ___ QA fixes (9 October 2026) ___ */

/* Phones: 16px form text so iOS Safari doesn't zoom in when a field is tapped */
@media only screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="password"],
    input[type="url"],
    input[type="date"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Narrow phones: the Turnstile box is a fixed 300px, so scale it to fit inside form cards */
@media only screen and (max-width: 400px) {
    .ginput_container_turnstile .cf-turnstile {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: -10px;
    }
}

/* Events key: outline the dots so pale colours (e.g. Non-ADI Events) stay visible */
.event-type-key .event-type-key-dot {
    box-shadow: inset 0 0 0 1px rgba(33, 23, 71, 0.35);
}



/* 14 Oct (Chloe): on banners with a graphic (Congress), the shorter Row 12
   banner pushed the graphic up behind the logo. Give those banners enough
   height for the graphic to sit below the header. */
.section-header-image .container-fw:has(.gfx-1) {
    min-height: 600px;
    max-height: 680px;
}

@media only screen and (max-width: 1024px) {
    .section-header-image .container-fw:has(.gfx-1) {
        min-height: 500px;
    }
}

@media only screen and (max-width: 768px) {
    .section-header-image .container-fw:has(.gfx-1) {
        min-height: 420px;
    }
}

/* 14 Oct (Chloe): Text & Image blocks with more than one paragraph (About Us,
   'Building the future...') used the large intro size for every paragraph, so
   the panel grew far taller than the image beside it. */
.section-text-and-image-block .text .wrapper:has(p + p) p {
    font-size: 20px;
    line-height: 1.5;
}

@media only screen and (max-width: 768px) {
    .section-text-and-image-block .text .wrapper:has(p + p) p {
        font-size: 17px;
    }
}


/* 14 Oct (Chloe): the image set the block's height, so a near-square photo made
   the panel much taller than its text. On larger screens the photo now fills
   whatever height the text needs (never less than 420px). */
@media only screen and (min-width: 769px) {
    .section-text-and-image-block .container .image {
        position: relative;
        min-height: 420px;
    }

    .section-text-and-image-block .container .image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Programme timetable: spacing between abstract paragraphs */
.slot-abstract p + p,
.slot-abstract ul + p {
    margin-top: 12px;
}

/* Programme timetable inside an event's Schedule tab */
.accordion-container .ac .is-in-accordion button {
    position: static;
    font-size: 2.2rem;
    font-weight: 300;
}
.accordion-container .ac .is-in-accordion button::before,
.accordion-container .ac .is-in-accordion .day-tab::after,
.accordion-container .ac .is-in-accordion .delegate-tab::after {
    content: none;
}
.accordion-container .ac .is-in-accordion .slot-toggle {
    font-size: 1.8rem;
    font-weight: 600;
    color: inherit;
}
.accordion-container .ac .is-in-accordion .slot-toggle::after {
    position: static;
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: none;
    transform: rotate(45deg) translateY(-2px);
}
.accordion-container .ac .is-in-accordion .slot-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg) translateY(-2px);
}
.ac-text .is-in-accordion .container {
    margin-bottom: 0;
}
.ac-text .is-in-accordion .timetable-panel p,
.ac-text .is-in-accordion .timetable-panel strong,
.ac-text .is-in-accordion .timetable-panel li,
.ac-text .is-in-accordion .timetable-panel a,
.ac-text .is-in-accordion .timetable-panel h4 {
    color: inherit;
}
.ac-text .is-in-accordion .slot .time,
.ac-text .is-in-accordion .slot .info p {
    font-size: 20px;
}
.ac-text .is-in-accordion .slot .info p {
    margin-bottom: 16px;
}
@media only screen and (max-width: 768px) {
    .ac-text .is-in-accordion .timetable-panel {
        padding: 20px;
    }
}
@media only screen and (min-width: 769px) {
    .ac-text .is-in-accordion .timetable-panel {
        padding: 40px;
    }
    .ac-text .is-in-accordion .slot {
        grid-template-columns: 130px minmax(0, 1fr) auto;
        gap: 24px;
    }
}

/* Programme timetable: stack speaker photo above the bio on phones */
@media only screen and (max-width: 600px) {
    .section-programme-timetable .slot-speaker {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .section-programme-timetable .slot-speaker img {
        width: 96px;
        height: 96px;
    }
}

/* Programme timetable: keep session text in its own column when a slot has no time, and show links as links */
@media only screen and (min-width: 1025px) {
    .section-programme-timetable .slot .info {
        grid-column: 2;
    }
}
@media only screen and (min-width: 769px) {
    .ac-text .is-in-accordion .slot .info {
        grid-column: 2;
    }
}
.section-programme-timetable .info a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Manage Profile: grouped checkboxes (e.g. study club regions) laid out like the single tick boxes */
.manage-profile .pmpro_form_field-checkbox_grouped .pmpro_form_label {
    display: block;
    margin-bottom: 12px;
}
.manage-profile .pmpro_form_field-checkbox-grouped ul.pmpro_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.manage-profile .pmpro_form_field-checkbox-grouped .pmpro_list_item {
    margin: 0;
    padding: 0;
    list-style: none;
}
.manage-profile .pmpro_form_field-checkbox-grouped .pmpro_list_item::before,
.manage-profile .pmpro_form_field-checkbox-grouped .pmpro_list_item::marker {
    content: none;
}
.manage-profile .pmpro_form_field-checkbox-grouped-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.manage-profile .pmpro_form_input.pmpro_form_input-checkbox_grouped {
    flex: 0 0 auto;
    width: 22px;
    min-width: 0;
    height: 22px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    accent-color: rgb(33, 23, 71);
    cursor: pointer;
}
.manage-profile .pmpro_form_field-checkbox-grouped-item .pmpro_form_label-inline {
    display: inline;
    margin: 0;
    font-size: 16px;
    cursor: pointer;
}

/* Header: Log out next to the account name (ADI row 113) */
#site-header .account.logged-in {
    display: flex;
    align-items: center;
    gap: 24px;
}
#site-header .logout-link svg {
    fill: none;
    stroke: currentColor;
    width: 20px;
    height: 20px;
}

/* Find an ADI Colleague: result cards with an inline "Send a message" form (ADI row 80).
   Shares its look with the Find a Dentist cards. */
.colleague-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}
.colleague-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px;
    border-radius: 14px;
    background-color: #F2F2F2;
    color: var(--color-indigo);
}
.colleague-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}
.colleague-card h3 {
    margin: 0;
    color: var(--color-indigo);
    font-size: 2.2rem;
    line-height: 1.25;
}
.colleague-card p {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.45;
}
.colleague-card .colleague-grade {
    font-weight: 600;
}
.colleague-card .colleague-distance {
    flex: none;
    font-size: 1.4rem;
    white-space: nowrap;
}
.colleague-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 1.5rem;
}
.colleague-meta li {
    margin: 0;
    padding: 0;
}
.colleague-meta li::before {
    content: none;
}
.colleague-meta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.directory-contact-toggle {
    appearance: none;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.directory-contact-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid;
    border-bottom: 2px solid;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 150ms;
}
.directory-contact-toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg) translateY(-2px);
}
.directory-contact-form {
    display: grid;
    gap: 6px;
    margin-top: 12px;
}
.directory-contact-form[hidden] {
    display: none;
}
.directory-contact-form label {
    margin-top: 6px;
    font-size: 1.5rem;
    font-weight: 600;
}
.directory-contact-form input[type="text"],
.directory-contact-form input[type="email"],
.directory-contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(33, 23, 71, 0.2);
    border-radius: 8px;
    background-color: #FFFFFF;
    color: var(--color-indigo);
    font: inherit;
    font-size: 1.6rem;
}
.directory-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}
.directory-contact-form .directory-contact-note {
    margin-top: 6px;
    font-size: 1.4rem;
}
.directory-contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 10px;
}
.directory-contact-actions .button {
    margin: 0;
}
.directory-contact-cancel {
    appearance: none;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 1.5rem;
    text-decoration: underline;
    cursor: pointer;
}
.directory-contact-form .directory-contact-status:empty {
    display: none;
}
.directory-contact-form .directory-contact-status {
    font-size: 1.5rem;
}
.directory-contact-form .directory-contact-status.is-success {
    color: #17793F;
    font-weight: 600;
}
.directory-contact-form .directory-contact-status.is-error {
    color: #B8202F;
}
.section-colleague-directory .colleague-card p {
    margin: 0;
    max-width: none;
}
.colleague-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
@media only screen and (max-width: 600px) {
    .colleague-grid {
        grid-template-columns: 1fr;
    }
    .colleague-card {
        padding: 22px;
    }
}

/* <button class="button">: match the link buttons (no browser border, theme text colour, pointer) */
button.button {
    appearance: none;
    border: 0;
    color: var(--color-indigo);
    font-family: inherit;
    line-height: normal;
    cursor: pointer;
}
button.button:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Colleague cards: equal heights per row, "Send a message" sits at the bottom */
.colleague-grid {
    align-items: stretch;
}
.colleague-card .directory-contact-toggle {
    margin-top: auto;
    padding-top: 10px;
}

/* Find a Dentist cards (ADI row 96): placeholder photo, practice, footer row and the shared contact form */
.dentist-card .dentist-photo.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #DCD9E6;
}
.dentist-card .dentist-photo.is-placeholder svg {
    width: 100%;
    height: 100%;
    fill: #FFFFFF;
}
.dentist-card .dentist-practice {
    font-weight: 600;
}
.dentist-card .dentist-card-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}
.dentist-card .dentist-card-foot .dentist-links {
    margin-top: 0;
    padding-top: 0;
}
.dentist-card .dentist-card-foot .directory-contact-toggle {
    margin-top: 0;
}
.dentist-card .directory-contact-form p {
    font-size: 1.4rem;
}
.directory-contact-turnstile:empty {
    display: none;
}
.directory-contact-turnstile {
    margin-top: 8px;
}

/* My Organisation (ADI row 105): read-only name, logo preview, save messages */
.manage-profile .pmpro_btn-submit-organisation {
    border: 0;
    background-color: rgb(60, 219, 192);
    color: rgb(33, 23, 71);
    cursor: pointer;
}
.manage-profile .pmpro_btn-submit-organisation:hover {
    background-color: rgb(33, 23, 71);
    color: #FFFFFF;
}
.my-organisation .my-organisation-name .pmpro_form_input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.my-organisation .my-organisation-name .pmpro_form_hint a,
.my-organisation .directory-notice a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.my-organisation .my-organisation-logo-preview {
    display: block;
    max-width: 180px;
    max-height: 120px;
    margin: 4px 0 12px;
    object-fit: contain;
    border-radius: 10px;
    background-color: #FFFFFF;
    padding: 10px;
}
.my-organisation .my-organisation-remove-logo {
    margin-top: 12px;
}
.my-organisation .my-organisation-message {
    margin: 0 0 24px;
    padding: 16px 22px;
    border-radius: 10px;
    font-size: 1.6rem;
}
.my-organisation .my-organisation-message.is-success {
    background-color: #E2F4E8;
    color: #17793F;
}
.my-organisation .my-organisation-message.is-error {
    background-color: #FCE7E9;
    color: #B8202F;
}

/* My Account forms: text areas (Description, Qualifications) taller, with proper inner padding */
.manage-profile textarea.pmpro_form_input {
    height: auto;
    min-height: 180px;
    padding: 16px 20px;
    line-height: 1.5;
    resize: vertical;
}

/* Event fees by role (ADI row 44): Fees tab table and the summary by Book Now */
table.fees-by-role th .sub {
    display: block;
    margin-top: 2px;
    font-size: 0.85em;
    font-weight: 300;
    opacity: 0.85;
}
table.fees-by-role .fees-ended {
    font-weight: 300;
}
table.fees-by-role td.is-ended {
    opacity: 0.55;
}
table.fees-by-role td.is-current {
    font-weight: 600;
}
.event-fees-link {
    margin: 8px 0 0;
    font-size: 1.5rem;
}
.event-fees-link a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Booking form (ADI row 44): "Your role" (a priced option field) styled like the other selects, clearer price and total */
.gform-body .gfield.gfield--type-option select,
.gform-body .gfield.gfield--type-product select {
    background-color: rgb(224, 224, 224) !important;
    border: unset !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    height: 45px !important;
    padding: 0 40px 0 12px !important;
    color: var(--color-indigo) !important;
    background-position: right 16px center !important;
    cursor: pointer;
}
.gform-body .gfield.gfield--type-product .ginput_product_price_wrapper,
.gform-body .gfield.gfield--type-product .ginput_product_price_label,
.gform-body .gfield.gfield--type-product .ginput_product_price {
    color: var(--color-indigo);
    font-size: 1.6rem;
}
.gform-body .gfield.gfield--type-total .ginput_total {
    color: var(--color-indigo);
    font-size: 2rem;
    font-weight: 600;
}

/* Event Fees layout (ADI x01, Congress Book Now): one table per role, columns lined up */
.section-event-fees .wrapper > h2 + .content {
    margin-top: 16px;
}
.section-event-fees .wrapper > .content p + p {
    margin-top: 12px;
}
.section-event-fees .event-fees-groups {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 36px;
}
.section-event-fees table.fees-grouped {
    width: 100%;
    margin: 0;
    table-layout: fixed;
}
.section-event-fees table.fees-grouped caption {
    caption-side: top;
    text-align: left;
    padding: 0 0 12px;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-indigo);
}
.section-event-fees table.fees-grouped thead th:first-child,
.section-event-fees table.fees-grouped tbody th {
    width: 40%;
}
.section-event-fees table.fees-addons td {
    width: 60%;
}
.section-event-fees .event-fees-notes {
    margin-top: 24px;
    font-size: 1.4rem;
}
.section-event-fees .event-fees-notes p + p {
    margin-top: 6px;
}
.section-event-fees table.fees-grouped {
    display: table;
    overflow: visible;
}
.section-event-fees table.fees-grouped th {
    white-space: normal;
}
@media (max-width: 767px) {
    .section-event-fees table.fees-grouped th,
    .section-event-fees table.fees-grouped td {
        padding: 12px 10px;
    }
    .section-event-fees table.fees-grouped th .sub {
        font-size: 1.1rem;
    }
    .section-event-fees table.fees-grouped thead th:first-child,
    .section-event-fees table.fees-grouped tbody th {
        width: 36%;
    }
    .section-event-fees table.fees-grouped caption {
        font-size: 1.9rem;
    }
}

/* Fee tables: no doubled line under the first column of the last row (the table already has a bottom border) */
table.fees tbody tr:last-child th,
table.fees tbody tr:last-child td {
    border-bottom: 0;
}

/* Floor plan on phones (ADI x12): bigger stands to tap, the sideways-scroll hint above the plan,
   and the enquiry heading clear of the fixed header after a stand is chosen */
@media (max-width: 700px) {
    .adi-floorplan {
        --adi-fp-mobile-width: 800px;
    }
    .adi-floorplan__map {
        display: flex;
        flex-direction: column;
    }
    .adi-floorplan__map .adi-floorplan__hint {
        order: -1;
        margin: 0 0 8px;
    }
}
.adi-floorplan__enquiry,
.adi-floorplan__selected {
    scroll-margin-top: 160px;
}
@media (max-width: 768px) {
    .adi-floorplan__enquiry,
    .adi-floorplan__selected {
        scroll-margin-top: 100px;
    }
}

/* Homepage hero on phones (ADI row 99): the portrait video fills the top two thirds,
   sitting a little right of centre so the dentist's face is in frame, then fades into
   solid indigo behind the headline. Less zoomed than stretching it over the whole hero. */
@media (max-width: 767px) {
    .section-hero .container-fw > .wrapper > video.background-video {
        height: 66% !important;
        bottom: auto !important;
        object-position: 68% 35% !important;
    }
    .section-hero .container-fw > .wrapper::before {
        background: linear-gradient(to bottom, rgba(33, 23, 71, 0.5) 0%, rgba(33, 23, 71, 0.6) 40%, rgba(33, 23, 71, 1) 66%) !important;
    }
}

/* Join form (ADI row 34): the "Choose a password" pair (only shown to logged-out applicants)
   gets the same grey fields as the rest of the form */
.gform-body .gfield.gfield--type-password input[type="password"],
.gform-body .gfield.gfield--type-password input[type="text"] {
    width: 100%;
    background-color: #E0E0E0 !important;
    border: unset !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    height: 45px !important;
    color: var(--color-indigo) !important;
}


/* Text and Image Block on desktop (19 Oct): no height cap, so the box grows
   with its text and nothing is cropped on short laptop windows or in browsers
   without :has() (where the paragraphs fall back to 2.8rem). The photo
   already stretches to the text's height (min 420px) from 769px up. */
@media only screen and (min-width: 1249px) {
    .section-text-and-image-block .text,
    .section-text-and-image-block .image {
        max-height: none;
    }
}


/* Text and Image Block height (19 Oct): side by side, the block keeps a
   generous minimum height (as when the photo set it) without running off
   short laptop screens; longer text still makes it taller. */
@media only screen and (min-width: 1249px) {
    .section-text-and-image-block .container {
        min-height: clamp(420px, min(40vw, 75vh), 760px);
    }
}

/* Programme timetable in an event tab: fill the tab's width even when the programme is short, with the extra text underneath. */
.ac-text .is-in-accordion .container { flex-wrap: wrap; }
.ac-text .is-in-accordion .container .timetable-day { flex: 1 1 0; min-width: 0; }
.ac-text .is-in-accordion .container .e-text { flex: 0 0 100%; margin-top: 32px; }

/* ...and keep the accordion's +/- icon (content: "" !important) off the day, delegate and "View details" buttons, where it showed as a stray dash. */
.accordion-container .ac .is-in-accordion .day-tab::before,
.accordion-container .ac .is-in-accordion .day-tab::after,
.accordion-container .ac .is-in-accordion .delegate-tab::before,
.accordion-container .ac .is-in-accordion .delegate-tab::after,
.accordion-container .ac .is-in-accordion .slot-toggle::before { content: none !important; }

/* ADI Core v3 booking form: additional delegates and add-on ticks look like the other fields. */
.gform-body .gfield.gfield--type-list .gfield_list_group input { background-color: #E0E0E0 !important; border: unset !important; border-radius: 6px !important; box-shadow: none !important; height: 45px !important; padding: 0 12px !important; color: var(--color-indigo) !important; }
.gform-body .gfield.gfield--type-list .gfield_header_item { color: var(--color-indigo); }
.gform-body .gfield.gfield--type-option input[type="checkbox"] { background-color: #E0E0E0; border: unset; border-radius: 3px; }
.gform-body .gfield.gfield--type-option .gchoice label { color: var(--color-indigo); }
.section-contact-form .booking-unavailable.checkout-refused { margin-bottom: 24px; }

/* My Events: a held place released unpaid. */
.event-attendance-badge.is-expired { background-color: #EDEBF5; color: #6B6684; }
.event-attendance-item.is-expired h3, .event-attendance-item.is-expired h3 a { color: #6B6684; }

/* Booking form with a choice of rates: the £0.00 fee line is hidden from view but still counted in the total. */
.gform-body .gfield.theme-fee-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

/* My Account: membership certificate download in the membership panel. */
.membership-panel .membership-certificate { margin: 18px 0 0; }
.membership-panel .membership-certificate a { font-size: 1.7rem; color: #3CDBC0; }

/* My Account: Direct Debit buttons, and the message after Bottomline's form. */
.section-my-account .membership-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section-my-account .membership-actions .button { margin: 0; }
.section-my-account .dd-return-notice { margin: 32px 0 0; padding: 16px 20px; border-radius: 10px; }
.section-my-account .dd-return-notice p { margin: 0; font-size: 1.7rem; line-height: 1.45; }
.section-my-account .dd-return-notice.is-success { background-color: #E3F8F3; color: var(--color-indigo); }
.section-my-account .dd-return-notice.is-warning { background-color: #FFF1D6; color: #5A3A00; }
.section-my-account .dd-return-notice + .membership-panel { margin-top: 16px; }
.section-my-account .dd-return-notice .dd-return-title { margin-bottom: 6px; }

/* Congress cards: ADI's flagship event gets its own pink card */
.section-events .event.is-format-congress,
.section-events-upcoming .event.is-format-congress { background-color: #CC27B0; }
.section-events .event.is-format-congress h3,
.section-events .event.is-format-congress .info,
.section-events .event.is-format-congress .excerpt,
.section-events-upcoming .event.is-format-congress h3,
.section-events-upcoming .event.is-format-congress .info { color: #FFFFFF; }
.section-events .event.is-format-congress .legend p.event-type { background-color: var(--color-indigo); color: #FFFFFF; }
.section-events .event.is-format-congress a > svg path,
.section-events-upcoming .event.is-format-congress a > svg path { fill: #FFFFFF; }
.section-events .event.is-format-congress a:hover > svg path,
.section-events-upcoming .event.is-format-congress a:hover > svg path { fill: var(--color-indigo) !important; }

/* Event page: space between fees, the booking note and the secondary links (demo feedback row 45) */
.event-section-intro .text .event-pricing ~ .warning-info { margin-top: 28px; }
.event-section-intro .text .event-secondary-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(33, 23, 71, 0.15); }
.event-section-intro .text .event-secondary-links .event-secondary-link { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 1.6rem; font-weight: 500; color: var(--color-indigo); }
.event-section-intro .text .event-secondary-links .event-secondary-link::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; background-color: currentColor; -webkit-mask: var(--link-icon) center / contain no-repeat; mask: var(--link-icon) center / contain no-repeat; }
.event-section-intro .text .event-secondary-links .event-secondary-link::after { left: 26px; width: calc(100% - 26px); }
.event-section-intro .text .event-secondary-links .view-your-events { --link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%207a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202v3a2%202%200%200%200%200%204v3a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2v-3a2%202%200%200%200%200-4z%27%2F%3E%3Cpath%20d%3D%27M13%205v2M13%2011v2M13%2017v2%27%2F%3E%3C%2Fsvg%3E"); }
.event-section-intro .text .event-secondary-links .add-to-calendar { --link-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%273%27%20y%3D%274%27%20width%3D%2718%27%20height%3D%2718%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M16%202v4M8%202v4M3%2010h18%27%2F%3E%3C%2Fsvg%3E"); }

/* Book a Stand: stand list for events without a floor plan (ADI x65 / demo row 44) */
.floor-plan .stand-list { margin-top: 24px; }
.floor-plan .stand-list-preview { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background-color: #FFF1D6; color: #5A3A00; font-size: 1.5rem; }
.floor-plan .stand-list-options { margin: 0; padding: 0; border: 0; min-width: 0; }
.floor-plan .stand-list-options legend { margin: 0 0 12px; padding: 0; font-size: 2rem; font-weight: 500; color: var(--color-indigo); }
.floor-plan .stand-list-options ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.floor-plan .stand-option { margin: 0; padding: 0; }
.floor-plan .stand-option::before { content: none; }
.floor-plan .stand-option label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px; margin: 0; padding: 14px 18px; border: 1px solid rgba(33, 23, 71, 0.15); border-radius: 10px; background-color: #FFFFFF; cursor: pointer; transition: border-color 150ms, background-color 150ms; }
.floor-plan .stand-option label:hover { border-color: var(--color-indigo); }
.floor-plan .stand-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-indigo); }
.floor-plan .stand-option input:focus-visible { outline: 2px solid var(--color-mint); outline-offset: 2px; }
.floor-plan .stand-option-main { display: flex; flex-direction: column; min-width: 0; }
.floor-plan .stand-option-name { font-size: 1.7rem; font-weight: 600; color: var(--color-indigo); }
.floor-plan .stand-option-details { font-size: 1.4rem; color: rgba(33, 23, 71, 0.7); }
.floor-plan .stand-option-price { font-size: 1.6rem; font-weight: 600; color: var(--color-indigo); white-space: nowrap; }
.floor-plan .stand-option-status { padding: 4px 10px; border-radius: 999px; background-color: #E3F8F3; color: #0C5E50; font-size: 1.3rem; white-space: nowrap; }
.floor-plan .stand-option.is-provisional .stand-option-status { background-color: #FFF1D6; color: #5A3A00; }
.floor-plan .stand-option.is-booked .stand-option-status,
.floor-plan .stand-option.is-unavailable .stand-option-status { background-color: #ECEAF2; color: #4A4366; }
.floor-plan .stand-option.is-unavailable label { opacity: 0.55; cursor: not-allowed; }
.floor-plan .stand-option.is-unavailable label:hover { border-color: rgba(33, 23, 71, 0.15); }
.floor-plan .stand-option.is-selected label { border-color: var(--color-indigo); box-shadow: inset 0 0 0 1px var(--color-indigo); background-color: #F4F2FB; }
.floor-plan .stand-list-enquiry { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(33, 23, 71, 0.15); scroll-margin-top: 140px; }
.floor-plan .stand-list-selected { margin: 0 0 8px; }
.floor-plan .stand-list-note { margin: 0 0 12px; }
.floor-plan .stand-list-includes-title { margin: 0; font-weight: 600; }
.floor-plan .stand-list-includes { margin: 4px 0 16px; }
.floor-plan .stand-list-gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media only screen and (max-width: 600px) {
    .floor-plan .stand-option label { grid-template-columns: auto minmax(0, 1fr); }
    .floor-plan .stand-option-price,
    .floor-plan .stand-option-status { grid-column: 2; justify-self: start; }
}
.floor-plan .stand-list-selected:focus { outline: none; }

/* ---------------------------------------------------------------------------
 * Joining payment step: card or Direct Debit (ADI Core PortalData::joining())
 * Become a Member page and the My Account dashboard.
 * ------------------------------------------------------------------------ */
.joining-panel {
    margin: 32px 0 24px;
    padding: 32px;
    border-radius: 14px;
    background-color: #F2F2F2;
    color: var(--color-indigo);
    box-sizing: border-box;
    text-align: left;
}
.joining-panel .joining-head { display: flex; flex-direction: column; gap: 4px; }
.joining-panel .joining-label {
    color: #167969;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.joining-panel h3 { margin: 0; color: var(--color-indigo); font-size: 2.6rem; line-height: 1.15; }
.joining-panel p { margin: 0; font-size: 1.7rem; line-height: 1.45; color: var(--color-indigo); }
.joining-panel .joining-intro { margin-top: 16px; }
.joining-panel .joining-fees {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin: 20px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid rgba(29, 37, 80, 0.12);
}
.joining-panel .joining-fees div { display: flex; flex-direction: column; gap: 2px; }
.joining-panel .joining-fees dt { font-size: 1.4rem; color: #4A5070; }
.joining-panel .joining-fees dd { margin: 0; font-size: 2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.joining-panel .joining-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.joining-panel .joining-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
}
.joining-panel .joining-option h4 { margin: 0; font-size: 2rem; color: var(--color-indigo); }
.joining-panel .joining-option p { flex: 1 1 auto; }
.joining-panel .joining-option .button,
.joining-panel .joining-option form { margin: 6px 0 0; }
.joining-panel .joining-dd-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
.joining-panel .joining-code { width: 100%; font-size: 1.5rem; }
.joining-panel .joining-code summary { cursor: pointer; color: #167969; font-weight: 500; }
.joining-panel .joining-code label { display: block; margin: 10px 0 4px; font-size: 1.4rem; }
.joining-panel .joining-code input {
    width: 100%;
    max-width: 260px;
    padding: 10px 12px;
    border: 1px solid #C9CCD8;
    border-radius: 6px;
    font-size: 1.6rem;
    text-transform: uppercase;
    box-sizing: border-box;
}
.joining-panel .joining-status {
    display: flex;
    align-items: flex-start;
    gap: 14px 16px;
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 10px;
    background-color: #fff;
}
.joining-panel .joining-status-text { display: flex; flex-direction: column; gap: 10px; }
.joining-panel .joining-reference { font-variant-numeric: tabular-nums; }
.joining-panel .joining-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #167969;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.joining-panel .joining-note { margin-top: 16px; font-size: 1.5rem; }
.joining-panel .joining-note a { color: inherit; text-decoration: underline; }
.joining-panel .joining-notice { margin-top: 16px; padding: 14px 18px; border-radius: 10px; background-color: #FFF1D6; }
.joining-panel .joining-notice p { color: #5A3A00; }
.joining-panel .joining-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
    padding: 16px 20px;
    border: 1px solid #F1B5B5;
    border-radius: 10px;
    background-color: #FDECEC;
}
.joining-panel .joining-alert-text { display: flex; flex-direction: column; gap: 4px; }
.joining-panel .joining-alert p,
.section-contact-form .main .joining-panel .joining-alert p { margin: 0; color: #7A1C1C; font-size: 1.7rem; }
.joining-panel .joining-alert .joining-alert-title,
.section-contact-form .main .joining-panel .joining-alert .joining-alert-title { font-size: 1.9rem; font-weight: 600; }
.joining-panel .joining-alert strong { font-weight: 600; }
/* Joining: caution under the Direct Debit option, and card payers' Direct Debit nudge */
.joining-panel .joining-option .joining-option-caution { padding: 10px 12px; border-radius: 8px; background-color: #FFF1D6; color: #5A3A00; font-size: 1.5rem; }
.section-contact-form .main .joining-panel .joining-option .joining-option-caution { font-size: 1.6rem; }
.section-my-account .dd-future-panel { margin: 0 0 24px; padding: 24px 28px; border-radius: 14px; background-color: #F2F2F2; color: var(--color-indigo); }
.section-my-account .dd-future-panel h3 { margin: 0 0 8px; color: var(--color-indigo); font-size: 2.2rem; font-weight: 400; }
.section-my-account .dd-future-panel p { margin: 0 0 14px; font-size: 1.7rem; line-height: 1.45; color: var(--color-indigo); }
.section-my-account .dd-future-panel .dd-future-retry { padding: 10px 14px; border-radius: 8px; background-color: #FFF1D6; color: #5A3A00; }
.section-my-account .dd-future-panel .button { margin: 0; }
.section-my-account .membership-status .membership-dd-retry { flex-basis: 100%; }
.joining-panel .joining-alert-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    fill: none;
    stroke: #C62828;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* Pages without blocks (Paid Memberships Pro checkout, account, billing etc.) */
.section-page-content { padding: 60px 20px 80px; }
.section-page-content .page-content-inner { max-width: 960px; margin: 0 auto; }
.section-page-content .page-content-title { margin: 0 0 32px; color: var(--color-indigo); font-size: 4rem; line-height: 1.1; }
.section-page-content .page-content-body { font-size: 1.7rem; line-height: 1.5; color: var(--color-indigo); }
@media (max-width: 600px) {
    .section-page-content { padding: 36px 16px 56px; }
    .section-page-content .page-content-title { font-size: 3rem; }
}
.joining-panel h3 { font-weight: 400; }
.joining-panel .joining-option h4 { font-size: 2.1rem; font-weight: 500; }
.joining-panel .joining-fees dd { font-size: 2.2rem; }
/* Become a Member page: the section is already a grey panel. */
.section-contact-form .main .joining-panel { margin: 8px 0 0; padding: 0; background: none; }
.section-contact-form .main .joining-panel p { margin-bottom: 0; font-size: 1.9rem; }
.section-contact-form .main .joining-panel .joining-intro { font-size: 2.2rem; }
.section-contact-form .main .joining-panel .joining-note { font-size: 1.7rem; }
@media (max-width: 600px) {
    .joining-panel { padding: 22px 18px; }
    .joining-panel h3 { font-size: 2.2rem; }
}

/* Find a Colleague cards: two columns and labelled details (12 Nov) */
.colleague-grid,
.section-colleague-directory .colleague-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.colleague-card {
    gap: 6px;
    padding: 32px 36px;
}
.colleague-card .colleague-grade {
    color: #167969;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}
.colleague-card .directory-details {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 12px 24px;
    margin: 14px 0 6px;
    padding: 18px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 1.6rem;
    line-height: 1.45;
}
.colleague-card .directory-detail {
    display: contents;
}
.colleague-card .directory-details dt {
    margin: 0;
    font-weight: 600;
}
.colleague-card .directory-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.colleague-card .directory-practice,
.colleague-card .directory-location {
    display: block;
}
.colleague-card .directory-details a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media only screen and (max-width: 900px) {
    .colleague-grid,
    .section-colleague-directory .colleague-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media only screen and (max-width: 480px) {
    .colleague-card {
        padding: 24px 22px;
    }
    .colleague-card .directory-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
    .colleague-card .directory-details dd {
        margin-bottom: 10px;
    }
}



/* Form thank-you messages (inc/form-confirmations.php, feedback rows 139 and 145):
   once a form in the Contact Form layout has been sent, hide the intro and the
   "You're booking" summary, and show the message as a clear panel. */
.section-contact-form .container.is-submitted .main > .content,
.section-contact-form .container.is-submitted .booking-event-summary {
    display: none;
}

/* Membership application: "How joining works" above the form
   (inc/application-payment-messaging.php, feedback row 139). */
.section-contact-form .application-steps {
    margin: 0 0 32px;
    padding: 24px 28px;
    border-radius: 14px;
    background-color: #E3F8F3;
    color: var(--color-indigo);
    font-size: 1.8rem;
    line-height: 1.5;
}
.section-contact-form .main .application-steps p.application-steps-title {
    margin: 0 0 16px;
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 700;
}
.section-contact-form .application-steps ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: application-step;
}
.section-contact-form .application-steps li {
    position: relative;
    margin: 0 0 14px;
    padding-left: 44px;
    counter-increment: application-step;
}
.section-contact-form .application-steps li::before {
    content: counter(application-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-indigo);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
}
.section-contact-form .application-steps li strong {
    display: block;
}
.section-contact-form .application-steps li:last-child {
    margin-bottom: 0;
}
.section-contact-form .main .application-steps p.application-steps-note {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(33, 23, 71, 0.15);
    font-size: 1.6rem;
    line-height: 1.5;
}
.section-contact-form .container.is-submitted .application-steps {
    display: none;
}

/* Stand enquiry thank-you, on the floorplan (ADI Core) and the stand list
   (inc/stand-list.php): a clear panel like the other forms (row 160). */
.adi-floorplan__enquiry .gform_confirmation_message,
.stand-list-enquiry .gform_confirmation_message {
    margin-top: 16px;
    padding: 24px 28px;
    border-radius: 14px;
    background-color: #E3F8F3;
    color: var(--color-indigo);
    font-size: 2rem;
    line-height: 1.5;
}
.adi-floorplan__enquiry .gform_confirmation_message:focus,
.stand-list-enquiry .gform_confirmation_message:focus {
    outline: none;
}
@media only screen and (max-width: 767px) {
    .adi-floorplan__enquiry .gform_confirmation_message,
    .stand-list-enquiry .gform_confirmation_message {
        padding: 20px;
        font-size: 1.8rem;
    }
}

/* My Events: add-ons on a booking, e.g. the Congress Dinner (row 161). */
.event-attendance-addons {
    margin-top: 6px;
}
@media only screen and (max-width: 767px) {
    .section-contact-form .application-steps {
        padding: 20px;
    }
}
.section-contact-form .gform_confirmation_message {
    margin-top: 24px;
    padding: 28px 32px;
    border-radius: 14px;
    background-color: #E3F8F3;
    color: var(--color-indigo);
    font-size: 2rem;
    line-height: 1.5;
}
.section-contact-form .gform_confirmation_message:focus {
    outline: none;
}
.section-contact-form .gform_confirmation_message p {
    margin: 0 0 12px;
}
.section-contact-form .gform_confirmation_message > :last-child,
.section-contact-form .gform_confirmation_message p:last-child {
    margin-bottom: 0;
}
.section-contact-form .gform_confirmation_message .form-confirmation-next {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(33, 23, 71, 0.15);
    font-size: 1.7rem;
}
.section-contact-form .gform_confirmation_message .form-confirmation-next ol {
    margin: 0 0 12px;
    padding-left: 22px;
}
.section-contact-form .gform_confirmation_message .form-confirmation-next li {
    margin-bottom: 6px;
}
@media only screen and (max-width: 767px) {
    .section-contact-form .gform_confirmation_message {
        padding: 20px;
        font-size: 1.8rem;
    }
}


/* Payment step: one "Have a discount code?" box above card and Direct Debit (template-parts/joining-panel.php, feedback rows 151 and 152). */
.joining-panel > .joining-code {
    margin: 20px 0 24px;
}
.joining-panel > .joining-code input[type="text"] {
    max-width: 320px;
}
.joining-panel .joining-code-hint {
    margin: 8px 0 0;
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Payment step: the discount code is checked before card or Direct Debit (inc/joining-code-check.php, 18 Nov 2026). */
.joining-panel .joining-code-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.joining-panel > .joining-code .joining-code-row input[type="text"] {
    flex: 1 1 200px;
}
.joining-panel .joining-code-apply {
    padding: 10px 20px;
}
.joining-panel .joining-code-result {
    margin: 8px 0 0;
    font-size: 1.5rem;
    font-weight: 500;
}
.joining-panel .joining-code-result.is-ok {
    color: #167969;
}
.joining-panel .joining-code-result.is-error {
    color: #B42318;
}
.joining-panel .joining-code.is-checking {
    cursor: progress;
    opacity: 0.7;
}

/* Booking a full event: waiting-list notice, and the £0.00 fee and total hidden (inc/booking-waitlist.php, 18 Nov 2026). */
.section-contact-form .booking-event-summary p.booking-waitlist-notice {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: 8px;
    background-color: #FFF6E5;
    font-size: 1.6rem;
    line-height: 1.5;
}
.gform_wrapper .gfield.theme-waitlist-hide {
    display: none !important;
}

/* A full event on the events list and the event page: "Fully booked" (inc/booking-waitlist.php). */
.section-events .event .legend,
.section-events-upcoming .event .legend {
    flex-wrap: wrap;
}
.section-events .event .legend p.event-full,
.section-events-upcoming .event .legend p.event-full {
    background-color: #FFF6E5;
    color: #7A4B00;
    font-weight: 600;
}
.event-full-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background-color: #FFF6E5;
    color: #7A4B00;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
    white-space: nowrap;
}
.event-full-help {
    margin: 12px 0 0;
    font-size: 1.5rem;
}
.event-full-note {
    display: block;
    width: fit-content;
    margin: 20px 0 14px;
}

/* Card payment fields (Stripe) match the form's other fields: grey, no border, rounded (19 Nov 2026). */
.gform_wrapper .ginput_container_creditcard .StripeElement,
.gform_wrapper .ginput_container_creditcard input[type="text"] {
    height: 45px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background-color: #E0E0E0 !important;
    box-shadow: none !important;
    color: #211747 !important;
}
.gform_wrapper .ginput_container_creditcard .StripeElement {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
}
.gform_wrapper .ginput_container_creditcard .StripeElement > * {
    width: 100%;
}
.gform_wrapper .ginput_container_creditcard .StripeElement--focus {
    outline: 3px solid rgba(32, 76, 229, 0.65) !important;
}
.gform_wrapper .gfield_error .ginput_container_creditcard .StripeElement,
.gform_wrapper .ginput_container_creditcard .StripeElement--invalid {
    outline: 1px solid #CC27B0 !important;
    outline-offset: 0 !important;
}

/* "Who can book" (inc/booking-eligibility.php, 23 Nov 2026). */
.section-contact-form .booking-event-summary p.booking-eligibility-notice {
    margin: 20px 0 0;
    padding: 14px 18px;
    border-radius: 8px;
    background-color: #FFF6E5;
    font-size: 1.6rem;
    line-height: 1.5;
}
.section-contact-form .booking-event-summary p.booking-eligibility-notice a,
.event-eligibility a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}
.event-eligibility {
    margin: 12px 0 0;
    font-size: 1.5rem;
}
.event-eligibility.is-blocked {
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #FFF6E5;
    color: #7A4B00;
}
.section-events .event .legend p.event-restricted,
.section-events-upcoming .event .legend p.event-restricted {
    background-color: #EEF1FD;
    color: #204CE5;
    font-weight: 600;
}

/* Delegate Terms on the event page (x52) */
.event-delegate-terms {
    margin-top: 8px;
}

.event-delegate-terms summary {
    cursor: pointer;
    color: #204CE5;
    font-weight: 600;
    text-decoration: underline;
}

.event-delegate-terms-body {
    margin-top: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
    font-size: 0.9em;
}

/* ==========================================================================
   Accessibility fixes (WCAG 2.2 AA check, 24 Nov, tracker x98)
   ========================================================================== */

/* Skip to content (2.4.1): hidden until it gets keyboard focus. */
.skip-link {
    position: absolute;
    top: -200px;
    left: 16px;
    z-index: 100000;
    padding: 12px 20px;
    border-radius: 6px;
    background-color: #211747;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
    outline: 3px solid #3cdbc0;
    outline-offset: 2px;
}

#site-content:focus {
    outline: none;
}

/* Keep focused elements clear of the fixed header (2.4.11). The offset is set by inc/accessibility.php. */
html {
    scroll-padding-top: var(--adi-header-offset, 160px);
}

/* Text contrast (1.4.3) */
.news-item .content .date,
.post-date {
    opacity: 0.7 !important; /* was 0.57: 3.91:1, now 5.85:1 on grey */
}

.box.indigo a.button.dark-bck {
    color: #211747; /* teal buttons in indigo boxes inherited white text: 1.73:1, now 9.46:1 */
}

.forgot-pass {
    color: #211747; /* was #2f7f87 on teal: 2.68:1 */
}

.section-events .filter-controls .login a {
    color: #211747; /* was teal on white: 1.73:1; the teal underline stays */
}

.pmpro_form_hint,
.manage-profile .pmpro_form_hint {
    color: #6b6b6b; /* was #9b9b9b on grey: 2.48:1, now 4.76:1 */
}

/* Narrow screens / zoom (1.4.10) */
#site-footer .misc .footer-logo,
#site-footer .misc .footer-logo a {
    max-width: 100%;
}

.section-my-account .membership-actions .button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

#site-content .post-content iframe[src*="youtube"],
#site-content .post-content iframe[src*="vimeo"] {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Purple nudged from #7760ff to #6e56ff so white text on it passes 4.5:1 (x98, Kane 24 Nov). Covers the theme's purple boxes and purple chosen in page content. */
.section-hero .upcoming-events .inside,
.section-events .event .legend p {
    background-color: #6e56ff;
}

[style*="7760ff" i] {
    background-color: #6e56ff !important;
}

/* ==========================================================================
   Automatic card renewal (ADI Core, 24 Nov)
   ========================================================================== */

/* Checkout: ADI Core's "Renew automatically each year" tick-box, as a card like the other checkout sections. */
.pmpro_checkout-field.adi-card-autorenew {
    margin: 0 0 18px;
    padding: 20px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 2px 2px 7px rgba(0, 0, 0, 0.07);
}

.pmpro_checkout-field.adi-card-autorenew label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.45;
    color: #211747;
    cursor: pointer;
}

.pmpro_checkout-field.adi-card-autorenew input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #211747;
}

/* My Account: card renewal panel (template-parts/card-renewal-panel.php). */
.section-my-account .card-renewal-panel {
    margin: 0 0 24px;
    padding: 24px 28px;
    border-radius: 14px;
    background-color: #f2f2f2;
    color: var(--color-indigo);
}

.section-my-account .card-renewal-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
}

.section-my-account .card-renewal-head h3 {
    margin: 0;
    color: var(--color-indigo);
    font-size: 2.2rem;
    font-weight: 400;
}

.section-my-account .card-renewal-badge {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 600;
    background-color: #e3f8f3;
    color: #0d5c4f;
}

.section-my-account .card-renewal-panel.is-off .card-renewal-badge {
    background-color: #e2e0ea;
    color: #3d3558;
}

.section-my-account .card-renewal-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin: 0 0 12px;
}

.section-my-account .card-renewal-facts dt {
    margin: 0;
    font-size: 1.4rem;
    color: #5c5477;
}

.section-my-account .card-renewal-facts dd {
    margin: 0;
    font-size: 1.7rem;
}

.section-my-account .card-renewal-panel p {
    margin: 0 0 14px;
    font-size: 1.7rem;
    line-height: 1.45;
    color: var(--color-indigo);
}

.section-my-account .card-renewal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}

.section-my-account .card-renewal-actions .button {
    margin: 0;
    max-width: 100%;
    white-space: normal;
}

.section-my-account .card-renewal-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 10px;
}

.section-my-account .card-renewal-notice p {
    margin: 0;
}

.section-my-account .card-renewal-notice.is-success {
    background-color: #e3f8f3;
}

.section-my-account .card-renewal-notice.is-warning {
    background-color: #fff1d6;
    color: #5a3a00;
}

.section-my-account .card-renewal-notice.is-warning p {
    color: #5a3a00;
}

/* Log In page: new website note above the panels (inc/login-notice.php, 27 Nov). */
.section-login-form .container.login-notice-container {
    display: block;
    margin-top: -35px; /* sits closer to the page title */
    margin-bottom: 42px;
}
.section-login-form .container.login-notice-container > .login-new-site {
    display: block;
    width: 100%;
    padding: 40px 61px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.06);
    color: white;
    box-sizing: border-box;
}
.section-login-form .login-new-site h2 {
    margin-bottom: 16px;
    color: #3CDBC0;
    font-size: 3.6rem;
}
.section-login-form .login-new-site-text p,
.section-login-form .login-new-site-text li {
    font-size: 2rem;
    line-height: 1.5;
}
.section-login-form .login-new-site-text p {
    margin: 0 0 14px;
}
.section-login-form .login-new-site-text ol,
.section-login-form .login-new-site-text ul {
    margin: 0 0 16px;
    padding-left: 24px;
}
.section-login-form .login-new-site-text a {
    color: #3CDBC0;
    text-decoration: underline;
}
.section-login-form .login-new-site .button {
    display: inline-block;
    margin-top: 8px;
    color: #211747;
}
@media only screen and (max-width: 768px) {
    .section-login-form .container.login-notice-container {
        margin-top: -15px;
        margin-bottom: 25px;
    }
    .section-login-form .container.login-notice-container > .login-new-site {
        padding: 25px 35px;
    }
    .section-login-form .login-new-site h2 {
        font-size: 2.6rem;
    }
    .section-login-form .login-new-site-text p,
    .section-login-form .login-new-site-text li {
        font-size: 1.7rem;
    }
}

/* Cookie banner (Complianz): room for ADI's wide logo. Complianz expects a 2:1 logo in a 100px column, so ours spilled over the title (27 Nov). */
body .cmplz-cookiebanner .cmplz-header {
    grid-template-columns: 150px 1fr 40px;
}
body .cmplz-cookiebanner .cmplz-logo img {
    width: 100%;
    max-width: 150px;
    height: auto;
    max-height: none;
}
@media only screen and (max-width: 768px) {
    body .cmplz-cookiebanner .cmplz-header {
        grid-template-columns: 120px 1fr 32px;
    }
    body .cmplz-cookiebanner .cmplz-logo img {
        max-width: 120px;
    }
}

/* Cookie policy (Complianz document, page.php wraps it in standard content): match the privacy policy (27 Nov). */
.section-legal-document #cmplz-document { max-width: none; font-size: 1.8rem; }
.section-legal-document #cmplz-document p,
.section-legal-document #cmplz-document td { font-size: 1.9rem; }
.section-legal-document #cmplz-document li { font-size: 1.8rem; }
.section-legal-document #cmplz-document > p { max-width: 1050px; margin: 0 0 23px; }
.section-legal-document #cmplz-document > h2 { font-size: 5.2rem; font-weight: 400; margin: 0 0 44px; padding: 0; }
.section-legal-document #cmplz-document > h3 { font-size: 2.7rem; font-weight: 400; margin: 0 0 23px; padding: 0; }
.section-legal-document #cmplz-document > p + h2,
.section-legal-document #cmplz-document > ul + h2,
.section-legal-document #cmplz-document > div + h2 { margin-top: 23px; }
.section-legal-document #cmplz-document ul { list-style: disc; margin: 18px 0; padding-left: 40px; }
.section-legal-document #cmplz-document a { font-weight: 500; }
.section-legal-document #cmplz-document .cmplz-dropdown { background: #f6f5f9; border-radius: 10px; margin-bottom: 12px; }
.section-legal-document #cmplz-document .cmplz-dropdown summary { padding: 18px 24px; }
.section-legal-document #cmplz-document .cmplz-dropdown summary h3 { font-size: 2.2rem; font-weight: 400; padding: 0; }
.section-legal-document #cmplz-document .cmplz-service-description,
.section-legal-document #cmplz-document .cmplz-sharing-data { padding: 0 24px 18px; }
.section-legal-document #cmplz-document .cookies-per-purpose { margin: 0 24px 24px; padding: 0; background: #dbdae1; border: 1px solid #dbdae1; border-radius: 8px; overflow: hidden; }
.section-legal-document #cmplz-document .cookies-per-purpose .name-header,
.section-legal-document #cmplz-document .cookies-per-purpose .retention-header,
.section-legal-document #cmplz-document .cookies-per-purpose .function-header { background: #f6f5f9; }
.section-legal-document #cmplz-document .cmplz-dropdown h4 { font-size: 2rem; font-weight: 400; }
.section-legal-document #cmplz-document .cmplz-dropdown h5 { font-size: 1.6rem; font-weight: 500; }
.section-legal-document #cmplz-document .cmplz-dropdown p { font-size: 1.7rem; margin-bottom: 10px; }
@media only screen and (max-width: 768px) {
    .section-legal-document #cmplz-document > h2 { font-size: 3.1rem; margin-bottom: 23px; }
    .section-legal-document #cmplz-document > h3 { font-size: 2.4rem; }
    .section-legal-document #cmplz-document p { font-size: 2rem; font-weight: 400; }
    .section-legal-document #cmplz-document .cmplz-dropdown summary { padding: 15px 18px; }
    .section-legal-document #cmplz-document .cmplz-service-description,
    .section-legal-document #cmplz-document .cmplz-sharing-data { padding: 0 18px 15px; }
    .section-legal-document #cmplz-document .cookies-per-purpose { margin: 0 18px 18px; }
}
