:root {

    --primary-bg:       #F3FBFF;
    --primary-light:    #C6EDFF;
    --primary-mid:      #7DCAEC;
    --primary:          #018fbe;
    --primary-dark:     #0078ae;
    --primary-darker:   #076794;

    --neutral-bg:       #F2F2F2;
    --neutral-quiet:    #E6E6E6;
    --neutral-light:    #E0E0E0;
    --neutral-mid:      #a1a1a4;
    --neutral:          #3C3C3F;
    --neutral-dark:     #242426;

    --white:            #fff;

    /* semantic colours */

    --paper:            var(--neutral-bg);
    --surface:          var(--white);
    --surface-quiet:    var(--neutral-quiet);
    --surface-hover:    var(--primary-bg);

    --border:           var(--neutral-mid);
    --border-soft:      var(--neutral-light);
    --border-hard:      var(--neutral);

    --ink:              var(--neutral);
    --ink-soft:         var(--neutral-mid);
    --ink-reversed:     var(--white);
    

    /* @link https://utopia.fyi/clamp/calculator?a=448,1344,3—4|6—8|12—16|16—20|20—24|28—32|36—48|42—64|48—96|64—128&p=space */
    /* 448px --> 1344px */
    --space-tiny: clamp(0.1875rem, 0.1563rem + 0.1116vw, 0.25rem);  /* 3-4px */
    --space-xs: clamp(0.375rem, 0.3125rem + 0.2232vw, 0.5rem);      /* 6-8px */
    --space-sm: clamp(0.75rem, 0.625rem + 0.4464vw, 1rem);          /* 12-16px */
    --space-base: clamp(1rem, 0.875rem + 0.4464vw, 1.25rem);        /* 16-20px */
    --space-md: clamp(1.25rem, 1.125rem + 0.4464vw, 1.5rem);        /* 20-24px */
    --space-lg: clamp(1.75rem, 1.625rem + 0.4464vw, 2rem);          /* 28-32px */
    --space-xl: clamp(2.25rem, 1.875rem + 1.3393vw, 3rem);          /* 36-48px */
    --space-xxl: clamp(2.625rem, 1.9375rem + 2.4554vw, 4rem);       /* 42-64px */
    --space-huge: clamp(3rem, 1.5rem + 5.3571vw, 6rem);             /* 48-96px */
    --space-mega: clamp(4rem, 2rem + 7.1429vw, 8rem);               /* 64-128px */

    /* @link https://utopia.fyi/clamp/calculator?a=448,1344,12—14|15—18|18—20|21—24|24—30|28—38|36—60&p=text */
    /* 448px --> 1344px */
    --text-xs:     clamp(0.75rem, 0.6875rem + 0.2232vw, 0.875rem);      /* 12-14 */
    --text-sm:     clamp(0.9375rem, 0.8438rem + 0.3348vw, 1.125rem);    /* 15-18 */   
    --text-base:   clamp(1.125rem, 1.0625rem + 0.2232vw, 1.25rem);      /* 18-20 */
    --text-md:     clamp(1.3125rem, 1.2188rem + 0.3348vw, 1.5rem);      /* 21-24 */
    --text-lg:     clamp(1.5rem, 1.3125rem + 0.6696vw, 1.875rem);       /* 24-30 */
    --text-xl:     clamp(1.75rem, 1.4375rem + 1.1161vw, 2.375rem);      /* 28-38 */
    --text-xxl:    clamp(2.25rem, 1.5rem + 2.6786vw, 3.75rem);          /* 36-60 */

    --font-weight-thin: 300;
    --font-weight-regular: 450;
    --font-weight-medium: 550;
    --font-weight-semibold: 650;
    --font-weight-bold: 750;
    
    --font-condensed:       61.804697%;
    --font-extracondensed:  50%;

    --tracking-sm: 0.02em;
    --tracking-md: 0.033em;
    --tracking-lg: 0.05em;

    --line-height-sm: 1.154;
    --line-height-md: 1.309;
    --line-height-lg: 1.618;

    --max-narrow:   36rem; /* 576px */
    --max-post:     48rem; /* 768px */
    --max-content:  60rem; /* 960px */
    --max-bio:      72rem; /* 1152px */
    --max-wide:     84rem; /* 1344px */
    --max-safe:     120rem; /* 1920px */
    
    --shadow-sm: 0 0 var(--space-xs) rgba(0,0,0,0.06);
    --shadow-md: 0 var(--space-sm) var(--space-sm) rgba(0,0,0,0.06);

    --radius-sm: var(--space-tiny);
    --radius-md: var(--space-sm);
    --radius-lg: var(--space-md);
    --radius-xl: var(--space-lg);
    --radius-btn: var(--radius-sm);

    --gutter: clamp(1rem, -1.5rem + 8.9286vw, 6rem); /* 16px->96px */

    --rowPadMultiple: var(--space-md);
    --rowPadDefault: calc(var(--rowPadMultiple) * 2);
    --rowPadMore: calc(var(--rowPadMultiple) * 4);
    --rowPadLess: calc(var(--rowPadMultiple) * 1.25);

    --transition-card-bg: background-color 0.2s ease-in-out, border-color 0.3s ease-in-out;

}

/*--------------------------------------------------------------------------- */
/* MARK: FONTS
*/

/* Roboto Flex Var */
@font-face {
    font-family: 'font-primary';
    src:    url('/assets/fonts/roboto-flex-var/roboto-flex-var.woff2') format('woff2-variations'),
            url('/assets/fonts/roboto-flex-var/roboto-flex-var.ttf') format('truetype-variations');
    font-weight: 100 1000;
    font-display: swap;
     
}

/*--------------------------------------------------------------------------- */
/* MARK: RESET
*/

/* heavily based on https://www.joshwcomeau.com/css/custom-css-reset/ */
*, *::before, *::after {
    box-sizing: border-box;
}
* {
    margin: 0;
}
*:focus {
    outline: 3px solid #BE3001;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
        scroll-behavior: smooth;
    }
}
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}
input, button, textarea, select {
    font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}
strong {
    font-weight: var(--font-weight-semibold);
}
.has-dropcap > p:first-of-type::first-letter {
    color: var(--primary-dark);
    float: left;
    font-size: 500%;
    font-stretch: var(--font-condensed);
    font-weight: var(--font-weight-bold);
    line-height: 0.82;
    margin: 0.125em 0.0625em 0 0;
    text-transform: uppercase;
}
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
    .has-dropcap > p:first-of-type::first-letter {
        -webkit-initial-letter: 3;
        initial-letter: 3;
        float: none;
        font-size: inherit;
        line-height: inherit;
        margin-right: 0.25em;
    }
}

/*--------------------------------------------------------------------------- */
/* MARK: HTML/BODY
*/

html {
    background-color: var(--paper);
    padding: 0;
}

body {
    /* don't set background-color here, apply to html https://css-tricks.com/html-vs-body-in-css/#aa-quirky-background-color */
    color: var(--ink);
    font-family: 'font-primary', Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif; 
    font-size: var(--text-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-lg);
    -webkit-font-smoothing: antialiased;
}

/*--------------------------------------------------------------------------- */
/* MARK: Site HEADER
*/

.site-wrapper {
    align-items: start;
    display: grid;
}

.site-wrapper > * {
    grid-column: -1 / 1;
}

.site-header {
    align-items: center;
    display: flex;
    background-color: var(--paper);
    justify-content: space-between;
    gap: var(--space-md);
    grid-row: 1 / 2;
    padding: var(--space-base);
    position: relative;
    text-align: center;
    z-index: 99;
}


main {
    grid-row: 1 / 2;
}

.site-header .logo {
    display: block;
    position: relative;
    text-decoration: none;
}

.site-header .logo img {
    height: 5.375rem;
    width: 18rem;
}


/* navigation starts here */

.site-nav {
    display: none; /* for mobile */
    width: 100%;
    z-index: 5;
}

.mobile-nav-toggle {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--primary);
    cursor: pointer;
    display: flex; /* for mobile */
    height: 4rem;
    align-items: center;
    justify-content: center;
    width: 4rem;
    position: relative;
}

.mobile-nav-icon {
    height: 2rem;
    width: 2rem;
}

/* the parent menu and primary nav items */
.site-nav > .menu {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    gap: var(--space-xs) 0;
    justify-content: center;
    list-style: none;
    padding: 0;
}
.site-nav > .menu.omega-btn > li:last-of-type {
    margin-left: var(--space-lg);
    position: relative;
}

.site-nav > .menu > li > a[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(0.5rem);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-color: var(--border-soft);
    color: var(--ink) !important; 
}

.site-nav > .menu.omega-btn > li:last-of-type a {
    border-radius: var(--radius-btn);
    color: var(--ink-reversed);
    position: relative;
}

.site-nav > .menu.omega-btn > li:last-of-type::before {
    content: '';
    position: absolute;
    left: -1rem;
    right: -1rem;
    top: -0.5rem;
    bottom: -0.5rem;
    background-image: url('/assets/img/btn.svg');
    background-size: 100% 100%;
}

.site-nav > .menu > li {
    display: flex;
}
.site-nav > .menu > li.has-submenu {
    position: relative;
}
.site-nav > .menu > li > a {
    border: 2px solid transparent;
    color: var(--ink);
    font-stretch: var(--font-condensed);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--tracking-lg);
    padding: var(--space-xs) var(--space-sm);
    text-decoration: none;
    text-transform: uppercase;
}


/* the drop-down menu and kids */
.site-nav .submenu {
    border-radius: var(--radius-md);
    display: none;
    list-style: none;
    padding: var(--space-sm);
    position: absolute;
}
.site-nav .is-dropdown .submenu {
    background-color: var(--neutral-bg);
    border: 1px solid var(--neutral-light);
    left: 50%;
    margin-left: calc(-0.5 * 16rem);
    top: calc(100% + var(--space-base));
    text-align: center;
    width: 16rem;
}

.site-nav .is-dropdown .submenu:before {
    border-bottom: 2rem solid var(--neutral-bg);
    border-left: 2rem solid transparent;
    border-right: 2rem solid transparent;
    content: '';
    pointer-events: none;
    position: absolute;
    top: -1.5rem;
    left: 50%;
    margin-left: -2rem;
}

.site-nav .submenu a {
    color: var(--ink);
    display: block;
    padding: var(--space-xs);
    position: relative;
    text-decoration: none;
    z-index: 5;
}

/* the MEGA MENU variant */

.site-nav > .menu > li.has-submenu.is-megamenu {
    position: static;
}

.site-nav .is-megamenu .submenu {
    --col-count: 1;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(0.5rem);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    grid-template-columns: repeat(var(--col-count), 1fr);
    left: var(--gutter);
    margin-inline: auto;    
    right: var(--gutter);
    text-align: left;
    top: calc(100% - 2px);
    max-width: var(--max-content);
    width: auto;
    z-index: 1;
}

.site-nav .is-megamenu .menu-column ul {
    list-style: none;
    padding: 0;
}

.site-nav .is-megamenu .menu-column-label {
    color: var(--primary-dark);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--tracking-lg);
    padding: var(--space-tiny);
    text-transform: uppercase;
}

.site-nav .is-megamenu .submenu a {
    font-size: var(--text-sm);
    font-stretch: var(--font-condensed);
    padding: var(--space-tiny);
}

.site-nav .is-megamenu .menu-column:first-of-type a {
    font-size: var(--text-md);
    font-weight: var(--font-weight-medium);
}





/*--------------------------------------------------------------------------- */
/* MARK: Page Title
*/

.page-title {
    background-color: var(--paper);
    display: grid;
    position: relative;
}

.page-title .badge {
    color: var(--ink-reversed);
}

.page-title .inner {
    align-items: center;
    display: grid;
    gap: 0 var(--space-base);
    justify-items: center;
    position: relative;
    text-align: center; /* RTB: left align on desktop */
    width: 100%;
}

.page-title .inner > * {
    width: 100%;
    z-index: 2;
}

.page-title .image {
    aspect-ratio: 1/1;
    filter: contrast(1.1) saturate(1.1);
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

/* Reveal ready hero media without delaying its download or changing its layout. */
@media (prefers-reduced-motion: no-preference) {
    .page-title [data-hero-media] {
        transition: opacity 0.6s ease;
    }
    .hero-media-pending .page-title [data-hero-media]:not(.is-revealed) {
        opacity: 0;
    }
}

.page-title__job-title {
    display: block;
    font-size: var(--text-md);
    margin-bottom: var(--space-tiny);
}

.template-is-bio .page-title {
    padding-top: 7.375rem;
}

.template-is-bio .page-title .copy {
    background-image: linear-gradient(180deg, white 10%, rgba(255,255,255,0) 75%);
}

.template-is-bio.hero-has-image .site-header {
    background-color: white;
}

.template-is-bio.hero-has-image .page-title::after    {
    background-image: linear-gradient(180deg, white 10%, rgba(255,255,255,0) 75%);
}


.template-is-bio .page-title .image {
    aspect-ratio: 1/1;
}

.image.position-left-top            { object-position: left top; }
.image.position-center-top          { object-position: center top; }
.image.position-right-top           { object-position: right top; }
.image.position-left-center         { object-position: left center; }
.image.position-center-center       { object-position: center center; }
.image.position-right-center        { object-position: right center; }
.image.position-left-bottom         { object-position: left bottom; }
.image.position-center-bottom       { object-position: center bottom; }
.image.position-right-bottom        { object-position: right bottom; }


.page-title .post-image-wrap {
    padding-inline: var(--gutter)
}

.page-title .post-image-wrap .image {
    border-radius: var(--radius-lg);
}

.page-title .video {
    background-color: black;
}
.page-title .hero-video {
    aspect-ratio: 1/1;
    position: relative;
}
.page-title .hero-video > .image {
    aspect-ratio: auto;
    inset: 0;
    position: absolute;
}
.hero-video-toggle {
    background: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
    bottom: var(--space-sm);
    color: white;
    cursor: pointer;
    font-size: var(--text-sm);
    line-height: 1.2;
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    position: absolute;
    right: var(--space-sm);
    white-space: nowrap;
    z-index: 6;
}
.hero-video-toggle[hidden] {
    display: none;
}
.hero-video-toggle:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

.page-title .copy {
    align-self: end;
    padding: var(--rowPadDefault) var(--gutter);
    position: relative;
    z-index: 5;
}

.hero-no-image .page-title .copy {
    padding-top: calc( 12rem + var(--space-xxl) );
}

.template-is-post .post-image-wrap {
    padding-top: calc( 6rem + var(--space-xxl) );
}
.template-is-post .page-title .copy {
    padding-bottom: 0;
}

.page-title .kicker {
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
    text-wrap: balance;
}

.page-title .kicker.bio-kicker {
    margin-bottom: 0;
    margin-top: var(--space-sm);
}

.page-title h1 {
    font-size: var(--text-xxl);
    font-stretch: var(--font-extracondensed);
    font-weight: var(--font-weight-bold);
    hyphens: auto;
    line-height: 0.95;
    letter-spacing: var(--tracking-sm);
    text-transform: uppercase;
}

.page-title .lede {
    margin-inline: auto;
    margin-top: var(--space-base);
    max-width: 36rem;
}

.page-title .btns {
    margin-top: var(--space-xl);
    justify-content: center; /* RTB: left-aligned on desktop */
}

.page-title .masked-image {
    margin-inline: auto;
    max-width: 75%;
}


/* dark page title variant */
.hero-is-dark .site-nav > .menu > li > a {
    color: var(--ink-reversed);
}

.hero-is-dark .page-title {
    background-color: var(--neutral-dark);
    color: var(--ink-reversed);
}

.hero-is-video .site-nav > .menu > li > a {
    color: var(--ink-reversed);
}

.hero-is-video .mobile-nav-toggle {
    color: var(--ink);
}

.hero-is-video .page-title {
    background-color: black;
    color: var(--ink-reversed);
}

.hero-is-dark .page-title .copy,
.hero-is-video .page-title .copy {
    background-image: linear-gradient(to bottom, var(--primary-dark), var(--primary-darker));
}

.hero-is-dark .page-title .btn.filled,
.hero-is-video .page-title .btn.filled {
    background-color: white;
    color: var(--primary-dark);
}

.hero-is-video .page-title .lede a {
    color: var(--primary-mid);
}

/* either hero, with image */

.hero-has-image .site-header {
    background-color: transparent;
}

/* light hero, no image */
.hero-is-light.hero-no-image .site-header {
    background: white;
}
.hero-is-light.hero-no-image .page-title {
    background-image: linear-gradient(180deg, white 10%, rgba(255,255,255,0) 100%);
}

/* light hero, with image */
.hero-is-light.hero-has-image .site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 250%;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.95) 25%, transparent 90%);
}

/* post templates dont need the fade */
.template-is-post.hero-has-image .site-header::before,
.template-is-post.hero-has-image .page-title::after {
    display: none !important;
}
.template-is-post .page-title { background-image: linear-gradient(180deg, white 10%, rgba(255,255,255,0) 100%); }

/* neither to bios */
.template-is-bio.hero-is-light.hero-has-image .site-header::before { display: none; }


/* dark hero, with or without image */
.hero-is-dark .page-title .btn.simple,
.hero-is-dark .page-title .kicker,
.hero-is-video .page-title .btn.simple,
.hero-is-video .page-title .kicker {
    color: var(--ink-reversed);
}

/* dark fade for video and dark-with-image heroes */
.hero-is-video.hero-has-image .page-title::before,
.hero-is-dark.hero-has-image .page-title::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: calc(4 * var(--space-huge));
    background-image: linear-gradient(to bottom, black 5%, transparent 90%);
    z-index: 2;
}

/* dark hero, NO image */
.hero-is-dark.hero-no-image .site-header {
    background-color: var(--neutral-dark);
}

/* light hero, with or witout image (unless careers) */
.hero-is-light:not(.template-is-career) .page-title .copy {
    padding-bottom: 0;
}

/* light hero, NO image ~OR~ it's a post-template with or w/o image */
.template-is-post .page-title .copy {
    text-align: center;    
}
.hero-is-light.hero-no-image .page-title .lede,
.template-is-post .page-title .lede {
    margin-inline: auto;
}
.hero-is-light.hero-no-image .page-title .btns,
.template-is-post .page-title .btns {
    justify-content: center;
}
.hero-is-light.hero-no-image .page-title .inner {
    text-align: center;
}
.hero-is-light.hero-no-image .page-title h1 {
    max-width: none;
}

.template-is-post .page-title h1 {
    font-size: calc(1.25 * var(--text-xxl) );
    max-width: var(--max-content);
    margin-inline: auto;
}

.bits {
    align-items: start;
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(2, min-content);
    list-style: none;
    margin-top: var(--space-sm);
    padding: 0;
    width: 100%;
}

.bits .text {
    display: block;
    font-size: var(--text-sm);
    line-height: var(--line-height-md);
    margin-top: var(--space-xs);
}

.bits .icon {
    display: block;
}

.bits svg {
    fill: var(--primary-light);
    height: var(--space-xxl);
    width: var(--space-xxl);
}


/*--------------------------------------------------------------------------- */
/* MARK: Site MAIN
*/

main {
    display: flex;
    flex-direction: column;
}
main > * {
    margin-block: 0;
}

/*--------------------------------------------------------------------------- */
/* MARK: Site CTA
*/

.site-cta {
    padding: 0 var(--gutter);
    position: relative;
    text-align: center;
}

.site-cta::after {
    background-color: var(--primary-dark);
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 50%;
}

.site-cta > .inner {
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    display: grid;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.site-cta .copy {
    padding: var(--space-lg) var(--space-base);
    position: relative;
    z-index: 2;
}

.site-cta .desc {
    margin-top: var(--space-sm);
    max-width: var(--max-narrow);
    margin-inline: auto;
}

.site-cta.has-img > .inner {
    padding-top: 0;
}

.site-cta .kicker {
    margin-bottom: var(--space-sm);
}

.site-cta .heading {
    font-size: var(--text-xxl);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--tracking-sm);
    line-height: 1;
    margin-top: var(--space-xs);
    text-transform: uppercase;
}

.site-cta .btns {
    margin-top: var(--space-lg);
    justify-content: center;
}

.site-cta .image {
    aspect-ratio: 4/3;
    height: 100%;
    margin-inline: auto;
    object-fit: cover;
    width: 100%;
}


/*--------------------------------------------------------------------------- */
/* MARK: Site FOOTER
*/

.site-footer {
    background-color: var(--primary-dark);
    background-image: linear-gradient(to bottom, var(--primary-dark), var(--primary-darker));
    color: var(--ink-reversed);
    display: grid;
    font-size: var(--text-sm);
    gap: var(--space-lg);
    padding: var(--space-huge) var(--gutter) 0 var(--gutter);
}

.template-is-error .site-footer.no-cta,
.template-is-thanks .site-footer.no-cta {
    margin-top: var(--rowPadMore);
}

.site-footer > .cols {
    display: grid;
    gap: var(--space-lg);
    padding-top: var(--space-huge);
    position: relative;
    text-align: center;
}

.site-footer a:hover,
.site-footer .btn:hover {
    color: var(--ink-reversed) !important;
    opacity: 0.5;
}

.site-footer h2 {
    color: var(--ink-reversed);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-medium);
}
.site-footer h3 {
    color: var(--primary-mid);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-sm);
    font-stretch: var(--font-condensed);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
}

.site-footer .locations {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(2, 1fr);
    margin-inline: auto;
    width: auto;    
}

.site-footer .locations h3 {
    margin-bottom: var(--space-xs);
}
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .btns {
    justify-content: center;
    column-gap: var(--space-sm);
}
.site-footer-nav {
    align-content: start;
    display: grid;
    gap: var(--space-xs);
}

.site-footer-nav a {
    color: var(--ink-reversed);
    text-decoration: none;
}

.site-footer .btns {
    gap: var(--space-base);
}
.site-footer .btns .btn {
    border-bottom-color: white;
    color: var(--ink-reversed)
}

.site-footer .social-link {
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    display: block;
    margin-right: calc(-1 * var(--space-sm));
}
.site-footer .social-link svg {
    color: var(--white);
    height: var(--space-lg);
    width: var(--space-lg);
}

.site-footer .contact-info {
    display: grid;
    gap: var(--space-lg);
}
.site-footer .contact-info ul a {
    color: var(--ink-reversed);
    font-size: var(--text-xs);
    text-decoration: none;
}

.site-footer .locations {
    display: grid;
    gap: var(--space-base);
}
.site-meta {
    align-items: center;
    color: var(--ink-reversed);
    display: flex;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    justify-content: space-between;
    line-height: var(--line-height-md);
    padding-bottom: var(--space-base);
    text-align: left;
    width: 100%;
}
.site-meta > :first-child {
    text-wrap: balance;
}
.site-meta > :last-child {
    min-width: 4rem;
    text-align: right;
}
.site-meta a {
    color: white;
}

.site-statements {
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    display: grid;
    font-size: var(--text-xs);
    gap: var(--space-base);
    padding: var(--space-base);
    text-align: center;
}

.site-statement {
    max-width: var(--max-content);
    margin-inline: auto;
}

.site-footer .stamp {
    aspect-ratio: 1;
    align-items: center;
    align-content: center;
    border: 2px dotted var(--primary-mid);
    border-radius: 50%;
    display: grid;
    font-size: var(--text-xs);
    font-stretch: var(--font-condensed);
    justify-content: center;
    left: 50%;
    line-height: 1;
    min-width: 6rem;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: calc( -1 * var(--space-xxl) );
    transform: translateX(-50%) scale(0.8);
    width: var(--space-mega);
    z-index: 2;
}

.site-footer .stamp > * {
    display: block;
}

.site-footer .stamp .caring {
    padding-top: 0.625rem;
}

.site-footer .stamp .since {
    font-size: 75%;
    letter-spacing: 0.3em;
    margin-block: var(--space-tiny);
}

.site-footer .stamp .since::before,
.site-footer .stamp .since::after {
    color: var(--ink-reversed);
    content: '—';
}

.site-footer .stamp .year {
    font-size: var(--text-md);
    font-stretch: var(--font-condensed);
    font-weight: var(--font-weight-medium);
}


/*--------------------------------------------------------------------------- */
/* MARK: ROWS
*/

.row {
    --bg: transparent;
    background-color: var(--bg);
    padding: var(--rowPadDefault) var(--gutter);
    position: relative;
}

.row.faq-group:first-of-type {
    padding-top: var(--rowPadDefault);
}

.row.faq-group {
    padding-top: var(--rowPadLess);
    padding-bottom: 0;
}

.row:last-of-type {
    padding-bottom:   var(--rowPadMore);
}

.row.top-pad-none       { padding-top:      0; }
.row.bot-pad-none       { padding-bottom:   0; }
.row.top-pad-less       { padding-top:      var(--rowPadLess); }
.row.bot-pad-less       { padding-bottom:   var(--rowPadLess); }    
.row.top-pad-more       { padding-top:      var(--rowPadMore); }    
.row.bot-pad-more       { padding-bottom:   var(--rowPadMore); }

.row.has-bg-image,
.row.has-bg-image .kicker {
    color: var(--ink-reversed);
}

.row.has-bg-image a {
    color: inherit;
}
.row > * {
    margin-block: 0;
}

.row-bg-image {
    filter: opacity(1) brightness(0.25) contrast(0.9) saturate(1.2);
    height: 100%;
    left: 0; top: 0; bottom: 0; right: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.row[style="--bg:var(--primary-dark)"],
.row[style="--bg:var(--primary-dark)"] p a,
.row[style="--bg:var(--primary-dark)"] ul a
.row[style="--bg:var(--primary-dark)"] ol a {
  color: white;
}

.row[style="--bg:var(--primary-dark)"] .callout {
    background-color: var(--primary);
    border-color: var(--primary-mid);
}



/*--------------------------------------------------------------------------- */
/* MARK: COLUMNS
*/

.columns {
    display: grid;
    gap: var(--space-xxl) var(--space-xl);
    margin-inline: auto;
}
.column {
    display: flex;
    gap: var(--space-base);
    flex-direction: column;
    position: relative;
    z-index: 2;
}
.columns .column > * {
    margin-block: 0;
    max-width: 100%;
}

.columns--one-third-two-third,
.columns--half-half {
    row-gap: var(--space-lg);
}


/* layout builder settings */

.row-gap--xs        { row-gap: var(--space-xs); }
.row-gap--sm        { row-gap: var(--space-sm); }
.row-gap--base      { row-gap: var(--space-base); }
.row-gap--md        { row-gap: var(--space-md); }
.row-gap--lg        { row-gap: var(--space-lg); }
.row-gap--xl        { row-gap: var(--space-xl); }
.row-gap--xxl       { row-gap: var(--space-xxl); }

.column-gap--xs     { column-gap: var(--space-xs); }
.column-gap--sm     { column-gap: var(--space-sm); }
.column-gap--base   { column-gap: var(--space-base); }
.column-gap--md     { column-gap: var(--space-md); }
.column-gap--lg     { column-gap: var(--space-lg); }
.column-gap--xl     { column-gap: var(--space-xl); }
.column-gap--xxl    { column-gap: var(--space-xxl); }



/*--------------------------------------------------------------------------- */
/* MARK: Auto-Grid
*/

.auto-grid {
    --max-column-width: 100% / var(--auto-grid-max-columns, infinity) - var(--auto-grid-gap);
    --column-width: max(var(--max-column-width), min(var(--auto-grid-min-size, 10rem), 100%));
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--column-width), 1fr));
    gap: var(--auto-grid-gap-vertical, var(--auto-grid-gap, 1rem)) var(--auto-grid-gap, 1rem);

    /* defaults - override these as needed */
    --auto-grid-min-size: 16rem;
    --auto-grid-max-columns: 3;
    --auto-grid-gap: var(--space-md);
}


/*--------------------------------------------------------------------------- */
/* MARK: Headings
*/

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-sm);
    font-stretch: var(--font-condensed);
}

h1 { font-size: var(--text-xxl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

/*--------------------------------------------------------------------------- */
/* MARK: Paragraphs
*/

.lede {
    font-size: var(--text-md);
}
.kicker {
    color: var(--primary-dark);
    font-size: var(--text-sm);
    font-family: 'font-primary';
    font-weight: var(--font-weight-semibold);
    font-stretch: var(--font-extracondensed);
    line-height: var(--line-height-sm);
    letter-spacing: var(--tracking-sm);
    text-transform: uppercase;
}
.callout {
    background-color: white;
    border: 1px solid var(--border-soft);
    border-left: var(--space-tiny) solid var(--primary);
    border-radius: var(--radius-sm);
    padding: var(--space-base);
}

/*--------------------------------------------------------------------------- */
/* MARK: Links
*/

a {
    color: var(--primary-dark);
}
a:hover {
    color: var(--ink);
}
a:active {
    color: var(--ink-soft);
}
/* prevent long emails from overflowing */
a[href^="mailto:"] {
    overflow-wrap: anywhere;
}



/*--------------------------------------------------------------------------- */
/* MARK: Lists
*/

ol, ul {
    padding-left: var(--space-lg);
}

/*--------------------------------------------------------------------------- */
/* MARK: Figures/Images
*/

figure figcaption {
    font-size: var(--space-sm);
    font-weight: var(--font-weight-bold);
    padding-top: var(--space-xs);
    text-align: center;
}

img, image {
    height: auto;
    filter: contrast(1.1) saturate(1.1);
}

/*--------------------------------------------------------------------------- */
/* MARK: HR
*/

hr {
    border: 0;
    padding: 0;
    height: 2px;
    background-color: var(--neutral-mid);
    width: 100%;
    display: block;
}

/*--------------------------------------------------------------------------- */
/* MARK: Blockquote
*/

.post-blocks blockquote {
    border-left: var(--space-sm) solid var(--primary);
    padding-left: var(--space-base);
}

blockquote footer {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
}
blockquote footer::before {
    color: var(--primary);
    content: '— ';
}

/*--------------------------------------------------------------------------- */
/* MARK: Buttons
*/

.btns {
    align-items: center;
    display: flex;
    font-size: var(--text-sm);
    gap: var(--space-xs) var(--space-md);
    flex-wrap: wrap;
}

.btn {
    --btn-theme: var(--primary-dark);
    appearance: none;
    background-color: transparent;
    border: 1px solid var(--primary-dark);
    border-radius: var(--radius-btn);
    color: var(--primary-dark);
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    font-stretch: var(--font-condensed);
    letter-spacing: var(--tracking-sm);
    line-height: 1;
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease-in-out;
}

.btn.filled {
    background-color: var(--btn-theme);
    color: var(--ink-reversed);
    font-weight: var(--font-weight-medium);
}

.btn.simple {
    border-color: transparent;
    border-bottom-color: var(--neutral-mid);
    border-radius: 0;
    color: var(--ink);
    font-weight: var(--font-weight-regular);
    padding-inline: 0;
    padding-block: var(--space-xs)
}

.btn.subtle {
    --btn-theme: var(--neutral-light);
    color: var(--ink);
    font-weight: var(--font-weight-regular);
}
.btn:hover {
    --btn-theme: var(--primary);
    background-color: var(--btn-theme);
    border-color: var(--btn-theme);
    color: var(--ink-reversed);
}
.btn.simple:hover {
    --btn-theme: var(--primary);
    background-color: transparent;
    border-color: transparent;
    border-bottom-color: var(--btn-theme);
    color: var(--btn-theme);
}

/*--------------------------------------------------------------------------- */
/* MARK: BLOCKS
*/

/* leave a gap here to make the sidebar nav useful */


/*--------------------------------------------------------------------------- */
/* MARK: Bio Pages
*/

.bio-block {
    padding: var(--rowPadDefault) var(--gutter) 0  var(--gutter);
    position: relative;
}
.bio-block:last-of-type {
    padding-bottom: var(--rowPadDefault);
}
.builder-block-inner {
    align-items: center;
    display: grid;
    column-gap: var(--rowPadDefault);
    margin-inline: auto;
    max-width: var(--max-bio);
    row-gap: var(--rowPadDefault);
}
.builder-block-inner > * {
    width: 100%;
}
.builder-block-inner .image {
    border-radius: var(--radius-sm);
}
.builder-block-inner.has-offset-heading {
    row-gap: var(--space-base);
}


.builder-prose {
    display: grid;
    gap: var(--space-base);
}
.bio-approach {
    align-content: start;
}
.bio-services-cta {
    display: grid;
    gap: var(--space-lg);
}
.bio-services-cta p {
    text-wrap: balance;
}
.builder-module .bio-services-list {
    display: grid;
    font-size: var(--text-sm);
    gap: 2px;
    list-style: none;
    line-height: var(--line-height-sm);
    padding: 0;
}
.bio-services-list li {
    display: block;
}
.bio-services-list a {
    background-color: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-btn);
    display: block;
    padding: var(--space-xs);
    text-decoration: none;
}


.bio-portrait img {
    border-radius: var(--radius-md);
    margin-inline: auto;
    max-width: 24rem;
    width: 100%;
}
.bio-tip, .bio-areas {
    align-content: center;
}
.bio-areas {
    height: 100%;
}

.builder-module.bio-tip {
    background-color: var(--primary-darker);
    border-color: var(--primary);
    color: white;
    position: relative;
}

.bio-tip__tip {
    font-size: var(--text-md);
    position: relative;
    z-index: 2;
}

.bio-tip__heading {
    position: relative;
    z-index: 2;
}

.bio-tip__texture {
    inset: 0;
    position: absolute;
    z-index: 1;
}

.bio-tip__texture svg {
    display: block;
    object-fit: cover;
    height: 100%;
    width: 100%;
}



.bio-quote-focus-block .builder-block-inner {
    gap: var(--space-base);
}

.bio-quote {
    font-weight: var(--font-weight-medium);
    font-stretch: var(--font-condensed);
    line-height: var(--line-height-sm);
    max-width: var(--max-content);
    text-align: center;
    margin-inline: auto;
    margin-top: var(--space-xl);
}
.bio-quote .bio-caption {
    color: var(--ink-soft);
    font-size: var(--text-base);
    letter-spacing: var(--tracking-lg);
    text-transform: uppercase;
}
.bio-cta-btns   { justify-content: center; }
.bio-cta        { text-align: center; }

.builder-module {
    align-content: start;
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-sm);
    padding: var(--space-lg);
}

.builder-module h2 {
    font-size: var(--text-md);
    text-transform: uppercase;
}

.builder-module ul {
    line-height: var(--line-height-md);
    padding-left: var(--space-base);
}
.builder-module ul ::marker {
    color: var(--primary);
}

.builder-module li {
    padding-bottom: var(--space-xs);
}

.builder-module li:last-child {
    padding-bottom: 0;
}

.builder-module--neutral h2 {
    font-size: var(--text-xl);
}

.bio-outside-clinic-block > * > :first-child {
    order: 2;
}

.bio-outside-image {
    border-radius: var(--radius-md);
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.servicepage-intro-block .builder-module {
    font-size: var(--text-sm);
}

/*--------------------------------------------------------------------------- */
/* MARK: Job Postings Block
*/

.job-postings-block {
    display: grid;
    gap: var(--space-lg);
}

.job-postings-block__header {
    display: grid;
    gap: var(--space-sm);
}

.job-postings-block__intro {
    display: grid;
    gap: var(--space-base);
    max-width: 70ch;
}


.job-postings-block__heading {
    font-size: var(--text-xxl);
    font-stretch: var(--font-extracondensed);
    line-height: 1;
    letter-spacing: var(--tracking-sm);
    text-transform: uppercase;
}

.job-postings {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    list-style: none;
    padding: 0;
}

.job-posting__card {
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-left: var(--space-tiny) solid var(--primary);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    height: 100%;
    align-items: start;
    padding: var(--space-lg) var(--space-md);
}

.job-posting__copy {
    display: grid;
    gap: var(--space-xs);
}

.job-posting__title {
    font-size: var(--text-xl);
}

.job-posting__kicker {
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--tracking-lg);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

.job-posting__desc {
    font-size: var(--text-sm);
    text-wrap: balance;
}

.job-posting__link {
    margin-top: auto;
}

.job-postings-block__footer {
    background-color: var(--surface-quiet);
    border-radius: var(--radius-sm);
    display: grid;
    font-size: var(--text-sm);
    gap: var(--space-xs);
    padding: var(--space-md);
}

/*--------------------------------------------------------------------------- */
/* MARK: Feature Block
*/

.row:has(.feature-block) {
    background-color: var(--primary-dark);
    background-image: linear-gradient(225deg, var(--primary), var(--primary-darker));
    padding: 0;
}

.feature-block {
    align-items: start;
    color: var(--ink-reversed);
    display: grid;
}

.feature-block .image {
    aspect-ratio: 6/5;
    object-fit: cover;
}

.feature-block .kicker {
    color: var(--ink-reversed);
}

.feature-block .copy {
    display: grid;
    gap: var(--space-base);
    justify-items: start;
    padding: var(--rowPadDefault) var(--gutter);
    position: relative;
    z-index: 2;
}
.feature-block .heading {
    font-size: var(--text-xxl);
    font-stretch: var(--font-extracondensed);
    line-height: 1;
    letter-spacing: var(--tracking-sm);
    text-transform: uppercase;
    text-wrap: balance;
}
.feature-block .desc {
    font-weight: var(--font-weight-regular);
    display: grid;
    gap: var(--space-sm);
    max-width: var(--max-narrow);
}
.feature-block .btns {
    margin-top: var(--space-sm);
}
.feature-block .btn.filled {
    background-color: var(--paper);
    color: var(--btn-theme);
}

/*--------------------------------------------------------------------------- */
/* MARK: Portal Block
*/

/* portal defaults */
.portal {
    display: grid;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
}
.portal > .item > * {
    margin-block: 0;
}
.portal .link {
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    display: grid;
    gap: var(--space-base);
    height: 100%;
    text-align: center;
    text-decoration: none;
}

.portal .copy {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: 100%;
    position: relative;
    z-index: 2;
}
.portal .title a {
    text-decoration: none;
}
.portal .desc {
    font-size: var(--text-sm);
    line-height: var(--line-height-md);
}
/* end defaults */




/* DISCIPLINES PORTAL */


.portal-disciplines .image {
    background-color: var(--primary-dark);
    inset: 0;
    height: 100%;
    position: absolute;
    width: 100%;
}

.portal-disciplines img {
    filter: brightness(0.5) contrast(1.1) saturate(1.1);
    inset: 0;
    object-fit: cover;
    height: 100%;
    position: absolute;
    transition: 0.3s ease;
    width: 100%;
}

.portal-disciplines .is-registered-massage-therapy img {
    object-position: bottom left;
}

.portal-disciplines .is-physiotherapy img {
    object-position: right center;
}

.portal-disciplines .link:hover img {
    filter: brightness(0.6) contrast(1.1) saturate(1.1);
}

.portal-disciplines .title  {
    font-size: var(--text-xxl);
    font-stretch: var(--font-extracondensed);
    letter-spacing: var(--tracking-md);
    line-height: 1;
    text-transform: uppercase;
}

.portal-disciplines .link {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    border: 0;
    border-bottom: var(--space-tiny) solid var(--primary);
    color: var(--ink-reversed);
    position: relative;
    overflow: hidden;
    padding: var(--space-md);
    padding-bottom: var(--space-lg);
    padding-top: var(--space-base);
}

.portal-disciplines .copy {
    justify-content: center;    
}

.portal-disciplines .learn-more {
    border-bottom: 1px solid var(--border);
    display: block;
}



/* (BLOG) POSTS PORTAL */

.posts-portal {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.post-filters-panel {
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    scroll-margin-top: 8rem;
    text-align: left;
}

.post-filters-summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-base);
    justify-content: space-between;
    list-style: none;
    min-height: 2.75rem;
    padding: var(--space-sm) var(--space-base);
}

.post-filters-summary::-webkit-details-marker {
    display: none;
}

.post-filters-title {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    gap: var(--space-xs);
}

.post-filters-title::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: '';
    height: 0.5rem;
    margin-left: var(--space-xs);
    transform: rotate(45deg) translateY(-0.125rem);
    width: 0.5rem;
}

.post-filters-panel[open] .post-filters-title::after {
    transform: rotate(225deg) translate(-0.125rem, -0.125rem);
}

.post-filters-count {
    font-weight: var(--font-weight-regular);
}

.post-filters {
    border-top: 1px solid var(--border-soft);
    display: grid;
    gap: var(--space-base);
    padding: var(--space-base);
}

.post-filter-selections,
.post-filter-tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-sm);
}

.post-filter-selections {
    font-size: var(--text-sm);
}

.post-filter-tags {
    list-style: none;
    padding: 0;
}

.post-filter-tags li {
    background-color: var(--primary-light);
    border-radius: var(--radius-btn);
    overflow-wrap: anywhere;
    padding: var(--space-tiny) var(--space-xs);
}

.post-filters-fields {
    display: grid;
    gap: var(--space-base);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.post-filter {
    display: grid;
    gap: var(--space-xs);
    min-width: 0;
}

.post-filter label {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

.post-filter select {
    background-color: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--ink);
    font-size: var(--text-sm);
    min-height: 2.75rem;
    padding: var(--space-xs);
    width: 100%;
}

.post-filters-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    font-size: var(--text-sm);
    gap: var(--space-base);
}

.post-filters-actions button {
    cursor: pointer;
}

.post-results-count {
    font-size: var(--text-sm);
    text-align: left;
}


.portal-posts {
    column-gap: var(--space-lg);
    row-gap: var(--space-xl);
}

.portal-posts .title {
    font-size: var(--text-md);
    font-stretch: var(--font-condensed);
    width: 100%;
}

.portal-posts .link {
    align-content: start;
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-bottom: var(--space-tiny) solid var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    padding: 0;
    text-align: left;
    height: 100%;
    transition: background-color 0.15s ease-in;
}

.portal-posts .copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-tiny);
    padding: var(--space-base) var(--space-base) var(--space-md) var(--space-base);
}

.portal-posts .post-date {
    border-radius: var(--radius-btn);
    color: var(--ink-soft);
    display: inline-block;
    margin-right: auto;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
}

.portal-posts .image {
    display: block;overflow: hidden;
}

.portal-posts img {
    aspect-ratio: 3/2;
    filter: brightness(0.8) contrast(1.1) saturate(1.1);
    object-fit: cover;
    transition: transform 0.2s ease-in;
    width: 100%;
}

.portal-posts .link:hover {
    background-color: var(--surface-hover);
    border-color: var(--primary);
}

.portal-posts .link:hover img {
    transform: scale(1.05);
}




/* SERVICES PORTAL */
.portal-services {
    gap: var(--space-xs) var(--space-base);
}

.portal-services .link {
    align-items: center;
    border: 1px solid var(--border-soft);
    border-left: var(--space-tiny) solid var(--primary);
    border-radius: var(--radius-sm);
    gap: var(--space-sm);
    grid-template-columns: var(--space-xxl) minmax(0, 1fr) var(--space-base);
    padding: var(--space-sm);
    text-align: left;
    transition: var(--transition-card-bg);
}
.portal-services .link:hover {
    background-color: var(--surface-hover);
    border-color: var(--primary);
}


.portal-services .title {
    font-size: var(--text-base);
}
.portal-services .copy {
    align-items: start;
    height: auto;
    gap: var(--space-xs);
}

/* service portal icons */
.portal .icon {
    aspect-ratio: 1;
    display: grid;
    grid-template-areas: "stack";
    /* margin-inline: auto; */
    max-width: var(--space-xxl);
}
.portal .icon > * { 
    grid-area: stack;
}
.portal .icon > :nth-child(1) {
    padding: var(--space-base);
}
.portal .icon > :nth-child(1) > * {
    fill: var(--neutral-light);
    transition: all 0.5s ease;
}
.portal .icon > :nth-child(2) {
    transform: rotate(3.6deg);
    transition: all 0.5s ease;
}
.portal .item:hover .icon > :nth-child(1) > * {
    fill: var(--primary-light);
}
.portal .item:hover .icon > :nth-child(2) {
    transform: rotate(-3.6deg);
}

.portal .chevron path {
    stroke: var(--primary) !important;
}

.cls-1 {
    stroke: var(--primary) !important;
    transition: all 0.2s ease;
}



/* STAFF PORTAL */
.portal-practitioners {
    gap: var(--space-xs) var(--space-base);
    grid-template-columns: repeat(2, 1fr);
}

.portal-practitioners .link {
    align-content: start;
    border-radius: var(--radius-sm);
    border-bottom: var(--space-tiny) solid var(--primary);
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-sm);
    transition: var(--transition-card-bg);
}
.portal-practitioners .copy {
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
}
.portal-practitioners .copy > * {
    width: 100%;
}
.portal-practitioners .given-name {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
}

.portal-practitioners .surname {
    display: block;
    font-size: var(--text-base);
    letter-spacing: var(--tracking-sm);
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
}

.portal-practitioners .jobtitle {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-sm);
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-md);
    margin-top: var(--space-xs);
}

.portal-practitioners .overlapping-discs {
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    margin-inline: auto;
    max-width: 6rem;
    width: 75%;
}
.portal-practitioners img {
    background-color: var(--neutral-mid);
    grid-row: 1 / 8;
    grid-column: 1 / 8;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.portal-practitioners .disc {
    content: '';
    fill: var(--primary);
    grid-row: 2 / 9;
    grid-column: 2 / 9;
    transition: background-color 0.5s ease;
}

.portal-practitioners .link:hover {
    background-color: var(--surface-hover);
    border-color: var(--primary);
}


/* pagination */

.pagination {
    align-items: center;
    color: var(--ink-reversed);
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: var(--space-sm);
    justify-content: space-between;
    width: 100%;
}

.pagination a,
.pagination span {
    display: block;
    background-color: var(--neutral-light);
    border-radius: var(--radius-btn);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-md);
    padding: var(--space-xs) var(--space-sm);
    text-decoration: none;
    text-transform: uppercase;
    font-stretch: var(--font-condensed);
    letter-spacing: var(--tracking-sm);
}

.pagination a {
    background-color: var(--primary-dark);
    color: var(--ink-reversed);
}

.pagination a:hover {
    background-color: var(--primary);
}

.pagination span {
    cursor: not-allowed;
}

.pagination > :nth-child(2) {
    text-align: right;
}

/*--------------------------------------------------------------------------- */
/* MARK: Discipline Pages
*/

/* practioners lists */

.practitioners {
    display: grid;
    font-size: var(--text-sm);
    gap: var(--space-xs);
    line-height: var(--line-height-sm);
}

.practitioners.count-is-1,
.practitioners.count-is-3 {
    grid-template-columns: 1fr;
}

.post-sidebar .practitioners {
    grid-template-columns: 1fr;
}

.post-sidebar .practitioners > li {
    min-width: none;
    width: 100%;
}

.practitioners .link {
    align-items: center;
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) var(--space-sm);
    height: 100%;
    min-height: var(--space-huge);
    overflow: hidden;
    padding-right: var(--space-sm);
    text-decoration: none;
    text-align: left;
    transition: var(--transition-card-bg);
}

.practitioners .link:hover {
    background-color: var(--surface-hover);
    border-color: var(--primary);
}

.practitioners .link .chevron path {
    stroke: var(--primary) !important;
}



.practitioners img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.practitioners .copy {
    display: grid;
    padding: var(--space-sm);
    width: 100%;
}
.practitioners .name {
    font-size: var(--text-md);
}

.practitioners .surname {
    font-size: var(--text-sm);
    display: block;
    color: var(--neutral-mid);
}
.practitioners .role {
    font-size: var(--text-xs);
    text-transform: uppercase;
    font-stretch: var(--font-condensed);
    font-weight: var(--font-weight-medium);
    margin-top: var(--space-xs);
}




/*--------------------------------------------------------------------------- */
/* MARK: Blurbs Block
*/

.blurb .icon svg {
    height: var(--space-xxl);
    width: var(--space-xxl);
}

/*--------------------------------------------------------------------------- */
/* MARK: Section Header Block
*/

.section-header {
    display: grid;
    gap: var(--space-base);
    text-align: center;
}

.section-header .heading {
    font-stretch: var(--font-extracondensed);
    font-size: var(--text-xxl);
    letter-spacing: var(--tracking-md);
    line-height: 1;
    text-transform: uppercase;
}

.section-header .desc {
    display: grid;
    gap: var(--space-sm);
    margin-inline: auto;
    max-width: var(--max-post);
}

.section-header + * {
    padding-top: var(--space-base);
}


/*--------------------------------------------------------------------------- */
/* MARK: Image Block
*/

.image-block img {
    aspect-ratio: var(--ratio);
    border-radius: var(--radius-sm);
    height: auto;
    object-fit: contain;
    width: 100%;
}
.image-block img[data-crop=""] {
    object-fit: cover;
}

.post-blocks .image-block img {
    background-color: var(--white);
    border-radius: var(--radius-md);
}

.op-right-top          { object-position: right top;       }
.op-right-center       { object-position: right center;    }    
.op-right-bottom       { object-position: right bottom;    }
.op-center-top         { object-position: center top;      }
.op-center-center      { object-position: center center;   }
.op-center-bottom      { object-position: center bottom;   }
.op-left-top           { object-position: left top;        }
.op-left-center        { object-position: left center;     }
.op-left-bottom        { object-position: left bottom;     }

/*--------------------------------------------------------------------------- */
/* MARK: Video Block
*/

.video-block {
    display: grid;
    gap: var(--space-xs);
}

.video-caption {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

.video-embed {
    position: relative;
}
.video-embed[open] .video-summary {
    visibility: hidden;
}
.video-embed > .video-summary {
    list-style: none;
}

.video-summary {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    display: grid;
    overflow: hidden;
    grid-template-areas: "stack";
}

.video-playicon {
    grid-area: stack;
    height: var(--space-huge);
    width: var(--space-huge);
    z-index: 2;
    filter: drop-shadow(0 var(--space-sm) var(--space-base) rgba(0, 0, 0, 1));
    fill: var(--white);
    margin: auto;
}

.video-summary:hover .video-playicon {
    fill: var(--neutral-light);
}

.video-thumbnail {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    grid-area: stack;
    aspect-ratio: 16 / 9;
    filter: brightness(0.6) contrast(1.1) saturate(1.1);
}

.video-content {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    aspect-ratio: 16 / 9;
}
.video-content > iframe {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9;
}

/*--------------------------------------------------------------------------- */
/* MARK: Gallery Block
*/

.gallery-block .gallery {
    --auto-grid-min-size: 8rem;
    --auto-grid-max-columns: 4;
    --auto-grid-gap: var(--space-sm);
    align-items: center;
    list-style: none;
    padding: 0;
}
.gallery-block .gallery img {
    aspect-ratio: var(--ratio);
    background-color: var(--neutral-bg);
    height: auto;
    object-fit: contain;
    width: 100%;
}
.gallery-block .gallery img[data-crop=""] {
    object-fit: cover;
}

/*--------------------------------------------------------------------------- */
/* MARK: Accordions Block / FAQs
*/

summary {
    cursor: pointer;
}

.accordions {
    display: grid;
    gap: calc( 0.5 * var(--space-xs) );
}

.accordions.fees-group {
    gap: 0;
}

.accordion, .fees-row {
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
}

.accordion {
    box-shadow: var(--shadow-sm);
}

.accordion > .question::-webkit-details-marker {
    display: none;
}

.accordion:hover {
    border-color: var(--primary);
    background-color: var(--surface-hover);
    transition: var(--transition-card-bg);
}

.accordion > .question,
.fees-row > .question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--space-md);
    font-weight: var(--font-weight-medium);
    list-style: none;
    padding: var(--space-base);
    padding-right: var(--space-sm);
}

.fees-row > .question {
    display: flex;
    justify-content: space-between;
}

.fees-group .accordion > .question,
.fees-row > .question {
    padding: var(--space-xs) var(--space-sm);
}

.accordion > .question .chevron {
    align-self: center;
    align-items: center;
    justify-content: center;
    display: flex;
    height: var(--space-md);
    transition: rotate 0.2s ease;
    width: var(--space-md);
}

.accordion[open] > .question .chevron {
    rotate: 90deg;
}

.accordion summary:focus {
    position: relative;
    z-index: 2;
}

.accordion > .question .chevron path {
    stroke: var(--primary) !important;
}

.accordion > .answer {
    border-top: 1px solid var(--border-soft);
    display: grid;
    gap: var(--space-base);
    padding: var(--space-base);
}

.fees-group .accordion > .answer {
    padding: var(--space-sm);
}

.fees-group-footer {
    background-color: var(--surface-quiet);
    border-radius: var(--radius-sm);
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    padding: var(--space-sm);
}
.fees-row .fee {
    font-weight: var(--font-weight-regular);
    color: var(--primary-dark);
}

/*--------------------------------------------------------------------------- */
/* MARK: Map Block
*/

.map-block {
    background-color: var(--neutral-bg);
    border: 1px solid var(--border);
    height: 100%;
}
.map-block iframe {
    height: 100%;
    min-height: 16rem;
    min-width: 100%;
    width: 100%;
}

/*--------------------------------------------------------------------------- */
/* MARK: Locations Block
*/

.locations-block {
    align-items: start;
    display: grid;
    gap: var(--space-md) var(--space-xl);
}

.locations-block > .copy {
    display: grid;
    gap: var(--space-base);
}

.locations-block .heading {
    font-stretch: var(--font-extracondensed);
    letter-spacing: var(--tracking-md);
    font-size: var(--text-xxl);
    line-height: 1;
    text-transform: uppercase;
}  

.locations-block .desc {
    display: grid;
    gap: var(--space-sm);
}

.locations-block .locations {
    align-items: start;
    display: grid;
    gap: var(--space-base);
    list-style: none;
    padding: 0;
}

.locations-block .location {
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-bottom: var(--space-tiny) solid var(--primary);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-sm);    
    overflow: hidden;
}

.locations-block .location .copy {
    font-size: var(--text-sm);
    padding: var(--space-base);
}

.locations-block .location-meta {
    display: grid;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
    padding: 0;
    list-style: none;
}

.locations-block .location-meta li {
    align-items: center;
    display: flex;
    gap: var(--space-xs);
}

.locations-block .location-meta .icon svg {
    display: block;
    height: var(--space-lg);
    width: var(--space-lg);
}

/*--------------------------------------------------------------------------- */
/* MARK: Callback Form AND Block
*/

.callback-form-block {
    display: grid;
    gap: var(--space-lg);
}

.callback-form-block .copy {
    display: grid;
    gap: var(--space-base);
}


/*--------------------------------------------------------------------------- */
/* MARK: Contact Form AND Block
*/

.contact-block {
    display: grid;
    gap: var(--space-xl);
}

.contact-col {
    align-self: center;
}

.contact-block header {
    display: grid;
    gap: var(--space-base);
}

.contact-block header .heading {
    font-stretch: var(--font-extracondensed);
    letter-spacing: var(--tracking-md);
    font-size: var(--text-xxl);
    line-height: 1;
    text-transform: uppercase;
}

.contact-block form {
    margin-top: var(--space-md);
}

.contact-block aside {
    display: flex;
    flex-direction: column;
}

.contact-block aside .kicker {
    margin-bottom: var(--space-xs);
}

.contact-block .contact-bits {
    display: grid;
    flex-direction: column;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
    height: 100%;
}
.contact-block .contact-bit {
    align-content: start;
    background-color: var(--surface);
    border-radius: var(--radius-btn);
    border: 1px solid var(--border-soft);
    display: grid;
    padding: var(--space-base);
    gap: var(--space-base);
    width: 100%;
}

.contact-block .contact-bit h3 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-md);
}

.contact-block .contact-bit a {
    color: var(--ink);
}
.contact-block .contact-bit .icon svg {
    height: var(--space-xl);
    stroke: var(--primary);
    width: var(--space-xl);
}
.contact-block .contact-bit .desc {
    font-size: var(--text-sm);
    line-height: var(--line-height-sm);
    margin-top: var(--space-sm);
    opacity: 0.7;
}



/*--------------------------------------------------------------------------- */
/* MARK: Steps Block Process Block
*/

.steps-block {
    align-items: start;
    display: grid;
    gap: var(--space-md);
}
.steps-block .heading {
    font-stretch: var(--font-extracondensed);
    letter-spacing: var(--tracking-md);
    font-size: var(--text-xxl);
    line-height: 1;
    text-transform: uppercase;
}  

.steps-block .copy {
    align-self: center;
    display: grid;
    gap: var(--space-base);
}

.steps-block .desc {
    font-size: var(--text-md);
    text-wrap: balance;
}

.steps-block .image {
    align-self: center;
    border-radius: var(--radius-btn);
    width: 100%;
}

.steps-block > footer {
    grid-column: 1 / -1;
}

.the-steps {
    display: grid;
    gap: var(--space-xs);
    grid-template-columns: repeat(1, 1fr);
    padding: 0;
    list-style: none;
    text-align: center;
}


.the-steps .step {
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-btn);
    padding: var(--space-xl) var(--space-base);
}

.step-copy {
    display: grid;
    gap: var(--space-sm);
}

.step-heading {
    font-size: var(--text-md);
}
.step-number {
    background-color: var(--primary);
    border-radius: 50%;
    color: var(--ink-reversed);
    display: block;
    font-size: var(--text-lg);
    height: var(--space-xl);
    line-height: var(--line-height-sm);
    margin-inline: auto;
    padding-top: var(--space-xs);
    width: var(--space-xl);
}



/*--------------------------------------------------------------------------- */
/* MARK: Post-related Blocks
*/

#related-articles-heading {
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: var(--space-base);
}

.post-related-topics {
    background-color: white;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-base);
}

.post-blocks .post-related-topics {
    margin-top: var(--space-lg);
}

.post-related-topics h2 {
    font-size: var(--text-md);
}

.post-tag-group {
    display: grid;
    gap: var(--space-xs);
}

.post-tag-label {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

.post-tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
}

.post-tag-links a {
    align-items: center;
    background-color: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-btn);
    color: var(--primary-dark);
    display: inline-flex;
    font-size: var(--text-sm);
    line-height: var(--line-height-sm);
    overflow-wrap: anywhere;
    padding: var(--space-xs);
    text-decoration: none;
}

.post-tag-links a:hover {
    background-color: var(--primary-light);
}

.prev-next-post {
    display: grid;
    gap: var(--space-base);
    padding: var(--space-base);
}


/*--------------------------------------------------------------------------- */
/* MARK: Forms
*/

.uniform__potty {
    position: absolute;
    left: -9999px;
}

.rtbform #site-search {
    background-color: white;
}

.rtbform {
    background-color: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-btn);
    container-type: inline-size;
    display: grid;
    gap: var(--space-md);
    line-height: var(--line-height-md);
    padding: var(--space-md);
}

.rtbform hr {
    background-color: var(--primary-light);
}

.rtbform fieldset {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    padding: var(--space-base);
}

.rtbform :is( textarea, [type="text"], [type="search"], [type="number"], [type="email"], [type="tel"] ) {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    color: var(--ink);
    font-family: inherit;
    font-size: inherit;
    padding: var(--space-xs);
}

.rtbform *::placeholder {
    color: var(--ink-soft);
    font-weight: var(--font-weight-thin);
}

.rtbform label {
    display: block;
    font-size: var(--text-sm);
}

.rtbform textarea {
    min-height: 12rem;
}

.rtbform .required {
    color: #BE3001;
}

.rtbform .callback-toggle {
    align-items: center;
    display: flex;
    gap: var(--space-xs);
    cursor: pointer;
}

.callback-toggle input {
    accent-color: var(--primary-dark);
    flex-shrink: 0;
    height: 1.25rem;
    width: 1.25rem;
}

/* Match the checkbox before JavaScript initializes the callback fields. */
.contact-form:not(:has([name="request_callback"]:checked)) .contact-callback-fields {
    display: none;
}

.contact-callback-fields:not([hidden]) {
    border: 1px solid var(--border);
    border-radius: var(--radius-btn);
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-base);
}

.contact-callback-fields input {
    min-width: 0;
    width: 100%;
}

.rtbform .form-hint {
    font-size: var(--text-sm);
}

.form-pairs {
    display: grid;
    gap: var(--space-md);
}
.form-pair {
    display: grid;
    gap: var(--space-tiny);
}

@container (min-width: 48rem) {
    .form-pairs {
        grid-template-columns: repeat(2, 1fr);
    }
    .rtbform .btn {
        justify-self: end;
    }
}


/*--------------------------------------------------------------------------- */
/* MARK: Search
*/

.search-results .search-form {
    background-color: transparent;
    border: 0;
    display: grid;
    grid-template-columns: auto max-content;
    padding: 0;
    width: 100%;
}

.search-results__summary {
    margin-bottom: var(--space-base);
}

.search-results__list {
    display: grid;
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: var(--space-md) 0 0 0;
}

.search-results__item {
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: var(--space-md);
}

.search-results__item:first-of-type {
    border-top: 1px solid var(--border-soft);
    padding-top: var(--space-md);
}

.search-results__item h2 {
    font-size: var(--text-md);
    margin-bottom: var(--space-tiny);
}

.search-results__item p {
    margin: 0;
}

/*--------------------------------------------------------------------------- */
/* MARK: Utility Classes
*/

.skiplink {
	position: absolute;
	transform: translateX(-100%);
	background-color: var(--surface);
	z-index: 999;
	left: 0;
	top: 0;
	padding: var(--space-base);
}
.skiplink:focus {
    transform: translateX(0);
}

.trim > :first-child    { margin-top: 0; }
.trim > :last-child     { margin-bottom: 0; }

.screen-reader-text     { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

.text-left                      { text-align: left; }
.text-right                     { text-align: right; }
.text-center                    { text-align: center; }

.text-xxl                       { font-size: var(--text-xxl); }
.text-xl                        { font-size: var(--text-xl); }
.text-lg                        { font-size: var(--text-lg); }
.text-md                        { font-size: var(--text-md); }
.text-base                      { font-size: var(--text-base); }
.text-sm                        { font-size: var(--text-sm); }

.list-none                      { list-style: none; padding-left: 0; }

.justify-content-start          { justify-content: start; }
.justify-content-center         { justify-content: center; }
.justify-content-end            { justify-content: end; }

.justify-items-start            { justify-items: start; }
.justify-items-center           { justify-items: center; }
.justify-items-end              { justify-items: end; }

.align-items-center             { align-items: center; }
.align-items-end                { align-items: end; }
.align-items-start              { align-items: start; }

.max-narrow                     { max-width: var(--max-narrow); }
.max-post                       { max-width: var(--max-post); }
.max-content                    { max-width: var(--max-content); }
.max-wide                       { max-width: var(--max-wide); }
.max-safe                       { max-width: var(--max-safe); }

.none                           { display: none; }
