/*
Theme Name: Canvas
Text Domain: canvas
Version: 1.0.20
Description: Custom WordPress theme for the Canvas site.
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.5
Author: TheDigiAlex
Author URI: https://thedigialex.com
License: All Rights Reserved
License URI:
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

::selection {
    background: var(--color-secondary);
    color: var(--color-site-bg);
}

body {
    margin: 0 auto;
    font-family: var(--font-body, system-ui, -apple-system, sans-serif);
    font-size: var(--size-p, 1rem);
    color: var(--color-text);
    background: var(--color-site-bg, #fff);
    line-height: 1.56;
    max-width: 2000px;

    p {
        margin-block-end: 1.75em;
    }
}

/*remove max width and shadow later*/
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading, var(--font-body, system-ui, -apple-system, sans-serif));
    line-height: 1.29;
    overflow-wrap: anywhere;
}

h1 {
    font-size: clamp(calc(var(--size-h1, 2.5rem) * 0.8), calc(var(--size-h1, 2.5rem) * 0.72 + 0.8vw), var(--size-h1, 2.5rem));
}

h2 {
    font-size: clamp(calc(var(--size-h2, 2rem) * 0.8), calc(var(--size-h2, 2rem) * 0.72 + 0.64vw), var(--size-h2, 2rem));
}

h3 {
    font-size: clamp(calc(var(--size-h3, 1.5rem) * 0.8), calc(var(--size-h3, 1.5rem) * 0.72 + 0.48vw), var(--size-h3, 1.5rem));
}

h4 {
    font-size: clamp(calc(var(--size-h4, 1.25rem) * 0.8), calc(var(--size-h4, 1.25rem) * 0.72 + 0.4vw), var(--size-h4, 1.25rem));
}

h5 {
    font-size: clamp(calc(var(--size-h5, 1rem) * 0.8), calc(var(--size-h5, 1rem) * 0.72 + 0.32vw), var(--size-h5, 1rem));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

a {
    color: var(--color-text);
    font-size: var(--size-a, 1rem);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-underline-offset: 6px;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.growing-underline {
    position: relative;
    padding: 8px 0;
    text-decoration: none;
    font-size: 1rem;
}

.growing-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.growing-underline:hover::after,
.growing-underline.is-active::after {
    transform: scaleX(1);
}

.growing-underline--thin::after {
    height: 2px;
}

.growing-underline--fast::after {
    transition: transform 0.15s ease;
}

.growing-underline--slow::after {
    transition: transform 0.4s ease;
}

.growing-underline--primary::after {
    background: var(--color-primary);
}

.growing-underline--secondary::after {
    background: var(--color-secondary);
}

.header-desktop-one {
    display: flex;
    flex-direction: column;
    background: var(--color-site-bg, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: auto;
    padding: 0;
}

body:not(.logged-in) .header-desktop-one {
    border-top: 6px solid var(--color-primary);
}

body:not(.logged-in) .header-layout-4 {
    border-top: none;
}

/* Layout 1 "Primary Color Header": logo row matches the top bar, buttons share one style. */
.header-desktop-one--primary {
    background: var(--color-primary);
}

.header-row-one.header-row-one--light {
    background-color: color-mix(in srgb, var(--color-primary) 80%, var(--color-site-bg));
}

.header-desktop-one--primary .site-title {
    color: var(--color-site-bg);
}

/* Mobile header follows the Primary Color Header option too. */
.cs-primary-header .mobile-header {
    background: var(--color-primary);
}

.cs-primary-header .mobile-header .site-title {
    color: var(--color-site-bg);
}

.header-desktop-one--primary .site-header-buttons .primary-button,
.header-desktop-one--primary .site-header-buttons .secondary-button,
.cs-primary-header .hb-mobile-menu-panel .site-header-buttons .primary-button,
.cs-primary-header .hb-mobile-menu-panel .site-header-buttons .secondary-button {
    --btn-color: var(--color-container-bg);
    background: var(--btn-color);
    border-color: var(--btn-color);
    color: var(--color-primary);
}

.btn-hover-ghost .header-desktop-one--primary .site-header-buttons .primary-button:hover,
.btn-hover-ghost .header-desktop-one--primary .site-header-buttons .secondary-button:hover {
    background: transparent;
    color: var(--btn-color);
}

.btn-hover-ghost.cs-primary-header .hb-mobile-menu-panel .site-header-buttons .primary-button:hover,
.btn-hover-ghost.cs-primary-header .hb-mobile-menu-panel .site-header-buttons .secondary-button:hover {
    background: transparent;
    color: var(--btn-color) !important;
}

/* The mobile panel's own hover rule (site-bg text) would vanish on the light button. */
body.cs-primary-header:not(.btn-hover-ghost) .hb-mobile-menu-panel .site-header-buttons .primary-button:hover {
    color: color-mix(in srgb, var(--color-text) 10%, black) !important;
}

.header-one-row-two {
    display: flex;
    align-items: center;
    background: var(--color-site-bg, #ffffff);
    justify-content: space-between;
}

.site-header-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.header-row-two,
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-row-two {
    background: var(--color-container-bg);
    height: 48px;
}

.header-row-centered {
    position: relative;
    justify-content: center;
}

.header-row-centered .header-search-toggle {
    position: absolute;
    right: 1.5rem;
    margin-left: 0;
}

.header-row-one {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 40px;
    gap: 1.5rem;
    background-color: var(--color-primary);
}

.header-row-one a {
    text-decoration: none;
    color: var(--color-site-bg);
    font-size: var(--size-breadcrumb);
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
}

.site-nav-menu,
.site-nav-menu-secondary {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.site-nav-menu-secondary a {
    font-size: .95rem;
}

.site-nav-menu-mega {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2.2rem;
}

.mobile-secondary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 4rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-around;
}

.site-nav-menu-secondary a {
    color: var(--color-site-bg);
}

.site-nav-menu li {
    position: relative;
}

.site-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    background: var(--color-site-bg, #fff);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-top: 3px solid var(--color-accent);
    border-radius: 0 0 6px 6px;
    z-index: 1000;
}

.site-nav-menu li:hover>.sub-menu {
    display: block;
}

.site-nav-menu .sub-menu li {
    list-style: none;
}

.site-nav-menu .sub-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-menu .sub-menu a.growing-underline::after {
    display: none;
}

.site-nav-menu .sub-menu a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-primary);
}

.admin-bar .header-desktop-one,
.admin-bar .bar-sticky,
.admin-bar .l3-header {
    top: 32px;
}

.mobile-header {
    display: none;
}

.hb-hamburger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 3rem;
    height: 3rem;
    border-radius: 6px;
    background: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.hb-hamburger:hover {
    opacity: 0.88;
}

.hb-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-site-bg);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

body.mobile-menu-open .hb-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.mobile-menu-open .hb-hamburger span:nth-child(2) {
    opacity: 0;
}

body.mobile-menu-open .hb-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hb-mobile-menu-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: var(--color-primary);
    color: var(--color-text, #333);
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.hb-mobile-menu-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.hb-mobile-search {
    display: flex;
    background-color: var(--color-border);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hb-mobile-nav {
    background: var(--color-site-bg);
    flex: 1;

    span {
        color: color-mix(in srgb, var(--color-text) 90%, transparent);
    }
}

.hb-mobile-direct-link {
    display: block;
    border-bottom: 1px solid var(--color-border);
}

.accordion-label {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 400;
}

.mobile-footer {
    background: var(--color-primary);
    text-align: center;
}

.mobile-footer a {
    color: var(--color-site-bg);
    text-decoration: none;
}

body.mobile-menu-open {
    overflow: hidden;
}

.site-main {
    min-height: 100vh;
    background: var(--color-site-bg);
}

.components-wrap {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 6rem 0;
}

.header-padding-sides {
    padding: 0 1.5rem;
}

.header-padding {
    padding: 1rem 2.5rem;
}

.hb-mobile-search,
.hb-mobile-menu-panel .accordion-trigger,
.hb-mobile-direct-link,
.mobile-footer {
    padding: 1.5rem;
}

.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: inherit;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: background 0.15s;
    margin-left: auto;
}

.header-search-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.site-alert-bar {
    background: var(--color-accent, #e74c3c);
    color: var(--color-site-bg, #fff);
    text-align: center;
    font-size: var(--size-p);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem;
}

#site-alert-bar.cs-wider-width {
    width: 100%;
    max-width: none;
    margin: 0;
}

#site-alert-bar .cs-alert {
    padding: 14px 24px;
}

#site-alert-bar .cs-alert__row {
    align-items: center;
}

.header-search-row {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--color-secondary);
    padding: 2.5rem 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.header-search-row.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-search-row .cs-search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-body-overlay {
    position: fixed;
    inset: 0;
    background: rgba(80, 80, 80, 0.45);
    z-index: 898;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.search-body-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.mega-body-overlay {
    position: fixed;
    inset: 0;
    background: rgba(80, 80, 80, 0.45);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.mega-body-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.bar-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    height: 36px;
    clip-path: inset(0 0 -60px 0);
}

.l2-top-secondary-nav {
    flex-grow: 1;
    height: 35px;
    display: flex;
    background: var(--color-primary);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: flex-end;
    transform: translateY(0);
    transition: transform 0.35s ease;
}

.bar-sticky.l2-scrolled .l2-top-secondary-nav {
    transform: translateY(-100%);
}

.sticky-btns {
    flex-shrink: 0;
    display: flex;
    height: 60px;
}

.l2-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.4rem;
    font-size: .78rem;
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    box-sizing: border-box;
    width: 200px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.l2-top-btn:hover {
    text-decoration: none;
}

.l2-top-btn--primary {
    background: var(--color-secondary);
    color: var(--color-site-bg);
    border-radius: 0 0 0 8px;
}

.l2-top-btn--primary:hover,
.l2-top-btn--secondary:hover {
    background: var(--color-site-bg);
    color: var(--color-text);
}

.l2-top-btn--primary:hover {
    border-left-color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

.l2-top-btn--secondary {
    background: var(--color-accent);
    color: color-mix(in srgb, var(--color-text) 10%, black);
}

.l2-top-btn--secondary:hover {
    border-right-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.l2-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 950;
}

.l2-nav {
    display: flex;
    margin-left: auto;
}

.l2-nav-trigger,
.l2-nav-link {
    display: flex;
    align-items: center;
    color: var(--color-text);
}

.l2-nav-trigger {
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 400;
    white-space: nowrap;
}

.l2-nav-link {
    text-decoration: none;
}

.site-nav-menu-mega>li.mega-is-open>.growing-underline::after {
    transform: scaleX(1);
}

.l2-chevron {
    font-size: 0.65rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.site-nav-menu-mega>li.mega-is-open .l2-chevron {
    transform: rotate(180deg);
}

.l2-mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    background: var(--color-site-bg, #fff);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 8px 12px -8px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    display: flex;
    flex-direction: row;
    height: 420px;
}

.l2-mega-panel.is-open {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    z-index: 200;
}

.l2-mega-left {
    width: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    z-index: 10;
    margin-left: 10%;

    h2 {
        color: var(--color-primary);
    }

    &:has(.l2-mega-desc) h2 {
        margin-bottom: 0;
    }
}

.l2-mega-right {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: start;
    max-width: 100%;
}

.l2-mega-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    align-self: center;
    justify-items: start;
    row-gap: 2.5rem;
    column-gap: 5rem;
    width: 80%;
    margin: 0 8%;
}

.has-cards .l2-mega-links {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
}

.l2-mega-link {
    text-decoration: none;
    color: var(--color-text);
}

.l2-mega-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.l2-mega-card {
    background: var(--color-primary, #1a2e4a);
    color: var(--color-site-bg, #fff);
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 32%;
}

.l2-mega-card--secondary {
    background: var(--color-secondary);
}

.l2-mega-card-img {
    width: 100%;
    overflow: hidden;
    flex: 1;
}

.l2-mega-card-img img {
    width: 100%;
    height: 100%;
    display: block;
}

.l2-mega-card-body {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    flex: 1;
    justify-content: space-between;
}

.l2-mega-card .page-hero-badge {
    font-size: 0.875rem;
    margin: 0;
}

.page-content {
    margin-bottom: 3rem;
}

.site-footer-top {
    background: var(--color-primary);
    color: var(--color-site-bg);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.site-footer {
    background: var(--color-border);
}

.site-footer-privacy {
    font-size: inherit;
    padding: 0 .25rem;
}

.site-footer-bg-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 110%;
    width: auto;
    object-fit: contain;
    object-position: right center;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.site-footer-inner,
.site-footer-inner-bottom {
    position: relative;
    z-index: 1;
}

.site-footer-brand,
.site-footer-last {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo--mobile {
    display: none;
}

.site-footer-brand .custom-logo-link img,
.site-footer-brand .custom-logo {
    filter: brightness(0) invert(1);
    height: 60px;
    width: auto;
}

.site-footer-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quote {
    width: 38%;
    line-height: 1.7;
    margin: -2rem auto;
    text-align: center;
    align-items: center;
}

.quote .page-hero-badge {
    margin-bottom: 1.5rem;
    justify-content: center;
}

.site-footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-site-bg);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    padding: .25rem 0;
    transition: opacity 0.15s;
}

.site-footer-address {
    color: var(--color-site-bg);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    margin: 0.75rem 0 0;
}

.site-footer-contact-link:hover {
    opacity: 1;
    color: var(--color-accent);
}

.site-footer-bottom {
    background: var(--color-border);
    color: var(--color-text);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer-inner,
.site-footer-inner-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto;
    width: 75%;
    padding: 1rem 0;
    font-size: 0.95rem;
}

.site-footer-text {
    margin: 0;
}

.site-footer-inner--grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    justify-content: start;
    justify-items: start;
    align-items: start;
    gap: 2rem 8rem;
}

.site-footer-col-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
    color: var(--color-site-bg);
}

.site-footer-quicklinks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.site-footer-quicklinks-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 2px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    text-transform: none;
    text-decoration: none;
    color: var(--color-site-bg);
    white-space: nowrap;
}

.site-footer-quicklinks-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-accent);
    transform: scaleY(0.33);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

.site-footer-quicklinks-list a:hover::after {
    transform: scaleY(1);
}

.site-footer {
    margin: 0;
    font-size: var(--size-breadcrumb);
    color: var(--color-text);
    text-decoration: none;
}

.site-footer-social {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.cs-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    color: color-mix(in srgb, var(--color-border) 65%, transparent);
    transition: opacity 0.15s, border-color 0.15s, background 0.15s, color 0.15s;
}

.cs-social-icon:hover {
    color: var(--color-site-bg);
}

.cs-social-icon--circle {
    border-radius: 50%;
    border: 1.5px solid currentColor;
    opacity: 0.75;
}

.cs-social-icon--circle:hover {
    opacity: 1;
}

.site-footer-social .cs-social-icon--circle {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-border);
}

.site-footer-social .cs-social-icon--circle:hover {
    border-color: rgba(255, 255, 255, 0.9);
}

/* Footer Layout 2: text-color background, site-bg text, curved secondary-color top edge. */
.site-footer.site-footer--layout-2 {
    --footer-curve-height: 28px;
    position: relative;
    padding-top: var(--footer-curve-height);
    background: linear-gradient(to bottom, transparent var(--footer-curve-height), var(--color-text) var(--footer-curve-height));
    color: var(--color-site-bg);
}

.site-footer--layout-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--footer-curve-height);
    background: var(--color-secondary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q500 160 1000 0V100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q500 160 1000 0V100H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.site-footer--layout-2 .site-footer-top {
    background: var(--color-text);
}

.site-footer--layout-2 .site-footer-inner-bottom {
    border-top: 1px solid color-mix(in srgb, var(--color-site-bg) 15%, transparent);
}

.site-footer--layout-2 .site-footer-privacy {
    color: var(--color-site-bg);
    text-decoration-color: var(--color-secondary);
}

.site-footer--layout-2 .site-footer-contact-link:hover {
    color: var(--color-border);
}

.site-footer--layout-2 .site-footer-quicklinks-list a::after {
    background: var(--color-secondary);
}

.forum-layout {
    display: flex;
    flex-direction: row;
    gap: 6rem;
    width: 72%;
    justify-content: space-evenly;
    margin: 8rem auto;
    min-height: 50vh;
}

.forum-layout--full {
    gap: 0;
    justify-content: flex-start;
}

.forum-layout--full .forum-feed {
    width: 100%;
}

.forum-layout.cs-full-width {
    gap: 0;
    justify-content: flex-start;
    margin: 8rem auto;
}

.forum-layout.cs-full-width .forum-feed {
    width: 100%;
}

.search-bar-half {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.cs-archive-searchbar {
    background: var(--color-secondary);
    padding: 2.5rem 0;
}

.component-fifty-fifty+.cs-archive-searchbar {
    margin-top: 8rem;
}

.cs-archive-searchbar-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cs-archive-searchbar-keyword,
.cs-archive-searchbar-author {
    width: 100%;
}

.search-bar-half {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.cs-archive-searchbar-cat {
    flex: 1 1 auto;
    min-width: 0;
}

.cs-archive-searchbar-year {
    flex: 2 1 auto;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cs-archive-searchbar-cat .cs-search-btn--icon {
    pointer-events: all;
    cursor: pointer;
}

.cs-archive-searchbar .cs-search-wrap {
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.cs-archive-searchbar .cs-range-labels {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

.cs-archive-searchbar .cs-range-track {
    background: rgba(255, 255, 255, 0.25);
}

.cs-archive-searchbar .cs-range-input::-webkit-slider-thumb {
    background: #fff;
}

.cs-archive-searchbar .cs-range-input::-moz-range-thumb {
    background: #fff;
}

.cs-search-btn--icon {
    cursor: default;
    pointer-events: none;
}

.cs-search-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.cs-archive-searchbar-clear {
    max-width: 25%;
    margin: auto;
    padding-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 30%;
}

.forum-feed {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    width: 70%;
}

.forum-post-card {
    display: flex;
    gap: 0;
    background: var(--color-container-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 32px;
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.forum-post-card:hover {
    border-color: var(--color-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.forum-post-card.forum-post-full {
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.forum-post-body {
    padding: 14px 16px;
    flex: 1;
    min-width: 0;
}

.forum-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--color-text);
    margin-bottom: 6px;
}

.forum-post-time {
    color: var(--color-text);
}

.forum-post-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.forum-post-title a {
    text-decoration: none;
    color: var(--color-text);
}

.forum-post-title a:hover {
    color: var(--color-primary, #0073aa);
}

.forum-post-excerpt {
    font-size: 0.875rem;
    color: var(--color-text);
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.forum-post-footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-comment-link,
.forum-read-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.12s, color 0.12s;
}

.forum-comment-link:hover,
.forum-read-link:hover {
    background: color-mix(in srgb, var(--color-border) 30%, var(--color-container-bg));
    color: var(--color-text);
}

.forum-comment-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.search-card-type {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-primary, #2563eb);
    background: color-mix(in srgb, var(--color-primary, #2563eb) 10%, transparent);
    padding: 2px 7px;
    border-radius: 4px;
}

.empty-state {
    background: var(--color-container-bg);
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-text);
}

.empty-state .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    display: block;
    margin: 0 auto 0.75rem;
    color: var(--color-text);
}

.search-pagination {
    margin-top: 2.5rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: var(--size-a);
    appearance: none;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}

.search-pagination .page-numbers:hover,
.search-pagination .page-numbers.current {
    background: var(--color-border, #2563eb);
}

.flex-column {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
}

.center {
    text-align: center;
    align-items: center;
}

.flex-row,
.flex-row-testimonial {
    display: flex;
    flex-direction: row;
    gap: var(--section-gap);
}

.top-padding {
    padding: 4rem 0;
}

.all-padding {
    padding: 4rem;
}

.cs-cta__inner {
    display: flex;
    align-items: center;
}

.cs-cta--light {
    background: var(--color-border);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
}

.cs-cta--light .cs-cta__inner {
    flex-direction: column;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cs-cta--light .cs-cta__body {
    align-items: center;

    h2 {
        color: var(--color-primary);
    }
}

.cs-cta--dark {
    background: var(--color-primary);
    color: var(--color-site-bg);
    position: relative;
    overflow: hidden;
}

.cs-cta--dark .cs-cta__body {
    width: 65%;
}

.cs-cta--dark::before {
    background-image: linear-gradient(to right,
            rgba(255, 255, 255, 0.12), transparent) !important;
}

/* Grid/diagonal need a light-tinted texture here too — the rule above forces
   a plain wash regardless of pattern, which hides the repeating line texture. */
body.pattern-grid .cs-cta--dark::before {
    background-image:
        repeating-linear-gradient(to right, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 22px) !important;
}

body.pattern-diagonal .cs-cta--dark::before {
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 12px) !important;
}

.cs-cta--dark .cs-cta__inner {
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

/* Primary Card: rounded primary card, light text/button, tilted shape at the bottom. */
.cs-cta--card {
    background: var(--color-primary);
    color: var(--color-site-bg);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cs-cta--card .cs-cta__inner {
    position: relative;
    z-index: 1;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 3rem 3.5rem;
}

.cs-cta--card .cs-cta__body {
    flex: 1;
    min-width: 0;
}

.cs-cta--card .cs-cta__body h3,
.cs-cta--card .cs-cta__body p {
    color: var(--color-site-bg);
}

.cs-cta--card .cs-cta__body > h3 + * {
    margin-top: 1.25rem;
}

.cs-cta--card .cs-cta__tilt {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    line-height: 0;
    pointer-events: none;
}

.cs-cta--card .cs-cta__tilt svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleY(-1);
    fill: color-mix(in srgb, var(--color-primary) 70%, white);
}

.cs-cta__card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-right: 10%;
    padding: 1rem 2rem;
    border-radius: 5px;
    background: var(--color-site-bg);
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: background 0.2s, color 0.2s;
}

.cs-cta__card-btn:hover,
.cs-cta__card-btn:focus-visible {
    background: color-mix(in srgb, var(--color-primary) 80%, white);
    color: #fff;
}

.cs-full-width,
.cs-fluid-width,
.cs-half-width,
.cs-wider-width,
.cs-component-header-narrow {
    margin: auto;
    transition: width 0.4s ease;
}

.cs-wider-width {
    width: 55%;
}

.cs-full-width {
    width: 80%;
    max-width: 1240px;
}

/* Like .cs-full-width without the max-width cap (Bayesian Score Predictor). */
.cs-fluid-width {
    width: 80%;
}

.cs-half-width {
    width: 40%;
}

.cs-component-header-narrow {
    width: 60%;
}

.component-table .cs-component-header-narrow {
    width: 100%;
}

.cs-embed-layout-side-by-side {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.cs-embed-layout-side-by-side .cs-embed-header {
    flex: 1 1 0;
}

.cs-embed-layout-side-by-side .cs-embed-body {
    flex: 1 1 0;
}

.cs-video-wrap {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.cs-video-wrap iframe,
.cs-video-wrap embed,
.cs-video-wrap object {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.cs-text-block-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    clear: both;
}

.cs-text-cols-2 .cs-component-content,
.cs-text-cols-3 .cs-component-content {
    column-gap: 2.5em;
    column-rule: 2px solid var(--color-border);
    orphans: 3;
    widows: 3;

    p {
        margin-top: 0;
    }
}

.cs-text-cols-2 .cs-component-content {
    column-count: 2;
}

.cs-text-cols-3 .cs-component-content {
    column-count: 3;
}

.cs-component-content {
    overflow-wrap: break-word;
    text-align: left;
}

.cs-component-content h2,
.cs-component-content h3,
.cs-component-content h4,
.cs-component-content h5,
.cs-component-content h6 {
    color: var(--color-primary);
    margin: 4rem 0 1rem 0;
}

.cs-component-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.cs-component-content {
    overflow-x: auto;
}

.cs-component-content table {
    width: 100%;
    max-width: 1240px;
    border-collapse: collapse;
    margin: 2.5rem auto;
    text-align: left;
    font-size: 1rem;
}

.cs-component-content thead {
    background: var(--color-primary);
    color: var(--color-site-bg);
}

.cs-component-content th {
    padding: 1.5rem 2rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

.cs-component-content td {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
    vertical-align: middle;
}

.cs-component-content tbody tr:nth-child(even) {
    background: var(--color-border, #f9fafb);
}

/* Higher Standard Carousel (quote-slider)
   Two synced tracks (see assets/js/quote-slider.js): .qs-main shows the current slide (image +
   quote panel), .qs-pager previews the upcoming images. Each clips its own track, which slides
   horizontally one item at a time. Mobile: pager hidden, main slide stacks image over text. */
.quote-slider {
    --qs-gap: 1rem;
    padding: 4rem 0;
}

.quote-slider .qs-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}

.quote-slider .slider-prev {
    order: 2;
}

.quote-slider .slider-next {
    order: 3;
}

.quote-slider .qs-stage {
    display: flex;
    gap: var(--qs-gap);
    order: 1;
    width: 100%;
    min-width: 0;
}

.quote-slider .qs-main,
.quote-slider .qs-pager {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.quote-slider .qs-pager {
    display: none;
}

.quote-slider .qs-track {
    display: flex;
    gap: var(--qs-gap);
    height: 100%;
}

.quote-slider .qs-main-track .slide {
    flex: 0 0 100%;
    min-width: 0;
}

.quote-slider .qs-active-slide {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quote-slider .qs-active-img,
.quote-slider .qs-pager-item {
    position: relative;
    overflow: hidden;
}

.quote-slider .qs-active-img {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
}

.quote-slider .qs-active-img img,
.quote-slider .qs-pager-item img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.quote-slider .qs-pager-item {
    flex: 0 0 calc((100% - var(--qs-gap)) / 2);
    height: 100%;
}

.quote-slider .qs-overlay {
    position: absolute;
    inset: 0;
    background-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
}

.quote-slider .qs-active-content {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background-color: var(--color-primary);
    color: #ffffff;
}

.quote-slider .qs-quote {
    display: none;
    margin: 0;
}

/* Name, position and link sit together at the bottom of the panel with tight spacing.
   align-items keeps the link (and its underline) to the text width. */
.quote-slider .qs-attribution {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    margin-top: auto;
}

.quote-slider .qs-attribution p {
    margin: 0;
}

.quote-slider .qs-attribution .pl-view-all {
    margin-top: .5rem;
}

.qs-physician-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.qs-physician-attribute {
    font-size: 0.9rem;
    font-weight: 400;
}

@media (min-width: 768px) {
    .quote-slider .qs-row {
        flex-wrap: nowrap;
        gap: 1rem;
    }

    .quote-slider .slider-prev,
    .quote-slider .slider-next,
    .quote-slider .qs-stage {
        order: 0;
    }

    .quote-slider .qs-stage {
        flex: 1 1 auto;
        width: auto;
        height: 420px;
    }

    .quote-slider .qs-pager {
        display: block;
    }

    /* Two slides: one pager image, so the pager takes a third of the stage instead of half. */
    .quote-slider--pager-1 .qs-pager {
        flex-grow: .5;
    }

    .quote-slider--pager-1 .qs-pager-item {
        flex-basis: 100%;
    }

    .quote-slider .qs-active-slide {
        flex-direction: row;
    }

    .quote-slider .qs-active-img {
        width: 50%;
        height: 100%;
    }

    .quote-slider .qs-active-content {
        width: 50%;
        height: 100%;
        gap: 1rem;
        padding: 1.5rem;
    }

    .quote-slider .qs-quote {
        min-height: 0;
        overflow: hidden;
        overflow-wrap: break-word;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 11;
        line-clamp: 11;
        flex-shrink: 1;
    }
}

figure.image {
    display: table;
    margin: 0.75rem 0;
}

figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    font-size: 0.875rem;
    color: var(--color-muted);
    text-align: left;
    padding-top: 0.4rem;
    line-height: 1.4;
}

figure.image.img-float-left,
figure.image.img-float-right {
    max-width: 50%;
}

figure.image.img-float-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

figure.image.img-float-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

figure.image.img-center {
    margin-left: auto;
    margin-right: auto;
}

.cs-component-content .alignleft {
    float: left;
    margin: 0.25rem 1.5rem 1rem 0;
    max-width: 45%;
}

.cs-component-content .alignright {
    float: right;
    margin: 0.25rem 0 1rem 1.5rem;
    max-width: 45%;
}

.cs-component-content .aligncenter {
    display: block;
    margin: 0.75rem auto;
}

.cs-component-content .alignnone {
    display: block;
    margin: 0.5rem 0;
}

li,
.ff-content li {
    padding-left: 10px;
}

.page-hero-excerpt .cs-in-view {
    margin: 1.75rem 0;
}

.cs-component-content ul li::marker,
.ff-content ul li::marker {
    content: '●  ';
    color: var(--color-accent);
    font-size: 0.8em;
}

.component-fifty-fifty {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.component-fifty-fifty.ff--light {
    background: var(--color-site-bg);
    color: var(--color-text);

    h2 {
        color: var(--color-primary);
    }
}

.component-fifty-fifty.ff--dark {
    background: var(--color-primary);
    color: var(--color-site-bg);
}

.component-fifty-fifty.ff--dark.dots-ltr::before,
.component-fifty-fifty.ff--dark.dots-rtl::before {
    background-image: linear-gradient(to right,
            color-mix(in srgb, var(--color-site-bg) 12%, transparent), transparent);
    z-index: 0;
}

body.pattern-grid .component-fifty-fifty.ff--dark.dots-ltr::before,
body.pattern-grid .component-fifty-fifty.ff--dark.dots-rtl::before {
    background-image:
        repeating-linear-gradient(to right, color-mix(in srgb, var(--color-site-bg) 14%, transparent) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(to bottom, color-mix(in srgb, var(--color-site-bg) 14%, transparent) 0 1px, transparent 1px 22px);
}

body.pattern-diagonal .component-fifty-fifty.ff--dark.dots-ltr::before,
body.pattern-diagonal .component-fifty-fifty.ff--dark.dots-rtl::before {
    background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--color-site-bg) 16%, transparent) 0 1px, transparent 1px 12px);
}

.component-fifty-fifty .ff-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 500px;
    position: relative;
    z-index: 1;
}

.component-fifty-fifty.ff--flip .ff-inner,
.component-fifty-fifty.ff--flip .flex-row {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.component-fifty-fifty .ff-image-col {
    flex: 0 0 55%;
    position: relative;
}

.component-fifty-fifty .ff-image-col:has(.ff-profile-frame) {
    flex: 0 0 50%;
}

.component-fifty-fifty.ff--landscape .ff-image-col {
    display: flex;
    align-items: center;
}

.component-fifty-fifty.ff--landscape .ff-image-col img {
    width: 100%;
    border-radius: 0;
    display: block;
    height: 580px;
    object-fit: contain;
}

.component-fifty-fifty.ff--extended .ff-image-col {
    padding: 0;
}

.component-fifty-fifty.ff--extended .ff-image-col img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.component-fifty-fifty.ff--landscape .flex-row,
.component-fifty-fifty.ff--edge .ff-edge-inner {
    gap: 4rem;
    justify-content: space-between;
}

.component-fifty-fifty.ff--edge {
    overflow: visible;
}

.component-fifty-fifty.ff--edge .ff-edge-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 480px;
    width: 100%;
}

.component-fifty-fifty.ff--edge.ff--flip .ff-edge-inner {
    flex-direction: row-reverse;
}

.component-fifty-fifty.ff--edge .ff-edge-image-col {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
    align-self: center;
}

.component-fifty-fifty.ff--edge .ff-edge-image-col img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.component-fifty-fifty.ff--edge.ff--flip .ff-edge-text-col {
    padding-left: clamp(2rem, 8%, 6rem);
}

.component-fifty-fifty.ff--edge .ff-edge-text-col .primary-button,
.component-fifty-fifty.ff--edge .ff-edge-text-col .secondary-button {
    align-self: flex-start;
    width: auto;
}

.ff-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-fifty-fifty.ff--light.ff--portrait:not(.ff--flip) {
    background: linear-gradient(to right, var(--color-border) 36%, var(--color-site-bg) 36%);
}

.component-fifty-fifty.ff--light.ff--portrait.ff--flip {
    background: linear-gradient(to left, var(--color-border) 36%, var(--color-site-bg) 36%);
}

.component-fifty-fifty.ff--portrait .ff-profile-frame {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 1rem;
}

.component-fifty-fifty.ff--portrait .ff-profile-frame img {
    width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.component-fifty-fifty.ff--portrait .ff-profile-frame::before,
.component-fifty-fifty.ff--portrait .ff-profile-frame::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: 2;
}

.component-fifty-fifty.ff--portrait .ff-profile-frame::before {
    top: -10px;
    right: -10px;
    border-top: 10px solid var(--color-primary);
    border-right: 10px solid var(--color-primary);
}

.component-fifty-fifty.ff--portrait .ff-profile-frame::after {
    bottom: -10px;
    left: -10px;
    border-bottom: 10px solid var(--color-primary);
    border-left: 10px solid var(--color-primary);
}

.component-fifty-fifty.ff--dark.ff--portrait .ff-profile-frame::before,
.component-fifty-fifty.ff--dark.ff--portrait .ff-profile-frame::after {
    border-color: var(--color-secondary);
}

.component-fifty-fifty.ff--dark.ff--portrait.ff--flip .ff-profile-frame::before,
.component-fifty-fifty.ff--dark.ff--portrait.ff--flip .ff-profile-frame::after {
    border-color: var(--color-secondary);
}

.component-fifty-fifty .ff-text-col,
.component-fifty-fifty.ff--edge .ff-edge-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0rem;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 35%;
}

.component-fifty-fifty .ff-text-col h2,
.component-fifty-fifty.ff--edge .ff-edge-text-col h2 {
    line-height: 1.29;
    font-size: 2rem;
}

.component-fifty-fifty .ff-text-col .primary-button,
.component-fifty-fifty .ff-text-col .secondary-button {
    align-self: flex-start;
    width: auto;
}

.component-page-intro::after {
    content: '';
    position: absolute;
    inset: -20px;
    background-image: var(--pi-bg);
    background-size: contain;
    filter: blur(6px);
}

.component-page-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--color-primary) 90%, transparent);
    z-index: 1;
}

.pi-inner {
    position: relative;
    z-index: 3;

    h2 {
        margin-bottom: 0;
        font-size: 2.25rem;
    }
}

.pi-link {
    margin-top: 1.5rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    align-items: center;
}

.pi-link i {
    font-size: 2rem;
    color: var(--color-accent);
    transition: transform 0.2s ease;
}

.pi-link:hover i {
    transform: translateY(4px);
}

.component-post-list {
    padding: var(--section-gap) 0;
}

.pl-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pl-view-all {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    white-space: nowrap;
    padding-bottom: 4px;
}

.pl-view-all::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--color-accent);
    transform: scaleY(0.33);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

.pl-view-all:hover::after {
    transform: scaleY(1);
}

.pl-view-all--primary {
    a {
        color: var(--color-primary);
    }
}

.pl-view-all--primary::after {
    background: var(--color-accent);
}

.pl-view-all--site-bg {
    color: var(--color-site-bg);
}

.pl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.pl-card {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--color-secondary);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    line-height: 1;

    h4 {
        font-size: 1.2rem;
        margin: 0;
        flex: 1;
        line-height: 1.5;
        color: var(--color-primary);
    }
}

.pl-card-date {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-site-bg);
    font-size: 0.875rem;
    padding: .5rem .75rem;
    margin-bottom: 1.5rem;
}

.pl-card-btn {
    text-decoration: none;
    margin-top: 1.5rem;
}

.btn-hover-ghost .pl-card:hover .pl-card-btn {
    opacity: 1;
    background: transparent;
    color: var(--color-accent);
}

.pl-empty {
    opacity: 0.6;
    font-style: italic;
}

.post-card,
.card-grid-item {
    border: 1px solid var(--color-border);
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.post-card:hover,
.card-grid-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.component-post-card-text {
    padding: 3rem 0;
}

.component-post-card-text .pct-card {
    padding: 2.5rem;
}

.component-post-card-text .pct-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.component-post-card-text .pct-header-image {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.component-post-card-text .pct-header-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.component-post-card-text .pct-header h3 {
    color: var(--color-accent);
    margin: 0;
}

.component-post-card-text .pct-col :is(h1, h2, h3, h4, h5, h6) {
    color: var(--color-accent);
}

.component-post-card-text .pct-body {
    display: flex;
    gap: 2.5rem;
}

.component-post-card-text .pct-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.component-post-card-text .pct-divider {
    flex: 0 0 1px;
    background: var(--color-border);
    align-self: stretch;
}

.component-post-card-text .pct-col .primary-button,
.component-post-card-text .pct-col .secondary-button {
    margin-top: 1rem;
    align-self: flex-start;
}

a.card-grid-item--linked {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.card-grid-title {
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.custom-logo {
    height: 89px;
    width: auto;
}

.header-desktop-one .custom-logo {
    height: 70px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-container-bg);
    color: var(--color-text);
    border-top: 4px solid var(--color-secondary);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    z-index: 9999999;
    padding: 1.25rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cookie-banner--visible {
    transform: translateY(0);
}

.cookie-banner--hidden {
    transform: translateY(100%);
}

.cookie-banner-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cookie-banner-logo a {
    display: block;
    line-height: 0;
}

.cookie-banner-logo img,
.cookie-banner-logo .custom-logo {
    height: 80px;
    width: auto;
    display: block;
}

.cookie-banner-text {
    flex: 1;
    min-width: 200px;
}

.cookie-banner-body {
    margin: 0;
    color: color-mix(in srgb, var(--color-text) 90%, transparent);
    line-height: 1.5;
}

.cookie-banner-privacy-link {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

:root {
    --cs-header-gap: 1.5rem;
}

.cs-component-title {
    color: var(--color-primary);
    font-weight: bold;
    margin: 1rem 0 calc(var(--cs-header-gap) - (1lh - 1em) / 2);
}

.cs-component-title + .cs-component-content > :first-child {
    margin-top: 0;
}

.cs-component-content:has(+ .acc-view-all-wrap) > :last-child,
.cs-component-header-narrow:has(+ .acc-view-all-wrap) .cs-component-content > :last-child {
    margin-bottom: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(var(--card-cols, 3), calc(90% / (var(--card-cols, 3))));
    justify-content: space-between;
    gap: 3rem;
    margin: 2.5rem 0;
}

.card-grid-item {
    display: flex;
    flex-direction: column;
}

.card-grid-image {
    background: var(--color-tertiary);
    overflow: hidden;
    margin: 0;
    height: auto;
    max-height: 264px;
}

.card-grid-image img {
    width: 100%;
    height: 100%;
    object-position: center;
    display: block;
}

.bio-card-image {
    aspect-ratio: 266 / 325;
    background: var(--color-primary);
    overflow: hidden;
    margin: 0;
}

.bio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.card-grid-item--bio {
    border: none;
    border-radius: 0;
    background: transparent;
}

.card-grid-item.card-grid-item--bio:hover {
    box-shadow: none;
    background: transparent;
    cursor: default;
}

.bio-subline {
    margin: 0;
}

.card-grid-item--bio .card-grid-image {
    height: auto;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
}

.card-grid-item--bio .card-grid-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.card-grid-image--contain img {
    object-fit: contain;
}

.card-grid-item--bio .card-grid-body {
    padding: 1rem 0 0;
}

.card-grid-item--text {
    position: relative;
}

.card-grid-item--text::before {
    content: '';
    display: block;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(to right,
            var(--color-primary) 0 33.4%,
            var(--color-secondary) 0 66.7%,
            var(--color-tertiary) 0 100%);
}

.card-grid-item--timeline {
    background: var(--color-primary);
    color: var(--color-site-bg);
    position: relative;
}

.timeline-card-bg-image {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.timeline-card-bg-image img {
    display: block;
    width: auto;
    height: auto;
    padding: 16px;
    max-width: 128px;
    max-height: 128px;
}

.card-grid-item--timeline .card-grid-body {
    position: relative;
    z-index: 1;
}

.card-grid-item.card-grid-item--timeline:hover {
    background: var(--color-primary);
    box-shadow: none;
    cursor: default;
}

.card-grid-item--timeline .card-grid-body {
    padding: 2rem;
}

.card-grid-item--timeline .card-grid-body h4 {
    color: var(--color-site-bg);
    margin: 0.5rem 0 1rem 0;
}

.card-grid-item--timeline .card-grid-text {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

.timeline-step-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
}

.card-grid-body {
    padding: 3rem 2.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;

    h4 {
        color: var(--color-primary);
    }
}

.card-grid-text {
    flex: 1;
    margin-bottom: 1.25rem;
}

.card-grid-body>.pl-card-btn {
    margin-top: auto;
}

.card-grid-body h4.has-icon {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-grid-title-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
    gap: var(--section-gap);
}

.gallery-item {
    margin: 0;
}

.gallery-item-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.gallery-item figcaption {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.4;
    margin: 0.5rem 0 0;
}


.component-full {
    width: 100%;
    position: relative;
    background-color: var(--color-primary);
    overflow: hidden;
    color: var(--color-site-bg);
}

.component-page-intro {
    padding: 4rem 0 3rem 0;
    min-height: 400px;
}

.component-full.dots-ltr::before,
.component-full.dots-ttb::before {
    background-image: linear-gradient(to right,
            color-mix(in srgb, var(--color-site-bg) 8%, transparent), transparent);
}

/* Grid/diagonal need a light-tinted texture here too — the default primary
   tint is nearly invisible against this component's dark bg. */
body.pattern-grid .component-full.dots-ltr::before,
body.pattern-grid .component-full.dots-ttb::before {
    background-image:
        repeating-linear-gradient(to right, color-mix(in srgb, var(--color-site-bg) 14%, transparent) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(to bottom, color-mix(in srgb, var(--color-site-bg) 14%, transparent) 0 1px, transparent 1px 22px);
}

body.pattern-diagonal .component-full.dots-ltr::before,
body.pattern-diagonal .component-full.dots-ttb::before {
    background-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--color-site-bg) 16%, transparent) 0 1px, transparent 1px 12px);
}

.testimonial-text {
    font-weight: 700;
    margin: 1.5rem 0 0 0;
    text-transform: uppercase;
}

.testimonial-image {
    flex-shrink: 0;
    width: 268px;
    height: 328px;
    overflow: hidden;
    border-radius: 0;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-body {
    flex: 1;
    gap: 2.5rem;
    padding: 2rem;
    width: 100%;
}

.testimonial-quote-mark {
    font-size: 3rem;
    color: var(--color-accent);
    line-height: 1;
    flex-shrink: 0;
}

.testimonial-content-wrap {
    flex: 1;
}

.testimonial-content {
    color: var(--color-site-bg);
    font-size: 1.35rem;
    margin: 0 0 1.5rem 0;
}

.testimonial-body .page-hero-badge {
    color: var(--color-site-bg);
}

.center .page-hero-badge {
    justify-content: center;
}

.center .card-grid-body .page-hero-badge,
.tabs-panel-content .page-hero-badge {
    justify-content: start;
}

.component-tabs {
    padding: 3rem 0;
}

.tabs-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background: var(--color-primary);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tabs-tab {
    padding: 1.25rem 2.75rem;
    cursor: pointer;
    font-size: var(--size-p);
    font-weight: 700;
    border: none;
    background: color-mix(in srgb, var(--color-primary) 95%, var(--color-site-bg));
    color: var(--color-site-bg, #333);
    transition: color .15s, border-color .15s, background .15s;
    white-space: nowrap;
}

.tabs-tab:hover:not(.is-active) {
    color: var(--color-site-bg);
    background: color-mix(in srgb, var(--color-primary) 80%, var(--color-site-bg));
}

.tabs-tab.is-active {
    color: var(--color-primary, #1a4c6e);
    background: color-mix(in srgb, var(--color-primary) 25%, var(--color-site-bg));
}

.component-tabs--left .tabs-layout {
    flex-direction: row;
    align-items: stretch;
    gap: 2.5rem;
}

.component-tabs--left .tabs-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    border: none;
    flex-shrink: 0;
    width: 200px;
}

.component-tabs--left .tabs-tab {
    text-align: left;
    border: none;
    padding: 0.65rem 1.1rem;
    white-space: normal;
}

.tabs-panels {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

.tabs-panel {
    display: none;
}

.tabs-panel.is-active {
    display: block;
}

.tabs-panel-inner {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.tabs-panel-inner--no-image {
    display: block;
}

.tabs-panel-image {
    flex-shrink: 0;
    width: 180px;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
}

.tabs-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.tabs-panel-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.tabs-panel-title {
    font-size: var(--size-h3, 1.4rem);
    color: var(--color-primary, #1a4c6e);
    margin-top: 16px;
}

.tabs-panel-content>*:first-child {
    margin-top: 0;
}

.tabs-panel-content>*:last-child {
    margin-bottom: 0;
}

.tabs-stack-btn {
    display: none;
}

.component-accordion .page-hero-badge {
    justify-content: center;
    margin-bottom: 0.75rem;
}

.acc-view-all-wrap {
    display: flex;
    justify-content: center;
    margin-top: var(--cs-header-gap);
}

/* Remove the link's top half-leading so the visible text → link gap equals --cs-header-gap
   (see the shared component header note above .cs-component-title). */
.acc-view-all-wrap > .pl-view-all {
    margin-top: calc((1em - 1lh) / 2);
}

.acc-controls {
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.acc-expand-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--color-primary);
}

.accordion {
    border-top: 2px solid var(--color-border);
}

.accordion-item {
    border-bottom: 2px solid var(--color-border);
    transition: background-color 0.2s ease;
}

.component-accordion .accordion-item:hover {
    background: var(--color-border);
}

.hb-mobile-menu-panel .accordion-trigger {
    font-weight: 400;
}

.hb-mobile-menu-panel .accordion-content {
    padding: 0 1.75rem 1.75rem 1.75rem;
}

.hb-mobile-menu-panel .accordion-content a {
    display: block;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    text-decoration: none;
}

.pi-inner a {
    color: var(--color-site-bg);
}

.accordion-trigger {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.15s;
    font-size: var(--size-p);
    font-weight: bold;
}

.accordion-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Primary Color Header on: square icon buttons (accordion, card arrows, sliders) and
   form submits use the site background color like the other buttons. */
.cs-primary-header .btn-square,
.cs-primary-header .cs-form-submit {
    color: var(--color-site-bg);
}

/* ...and keep it on hover: the global dark hover text (!important, below) would
   vanish against the dark button. Header buttons and ghost hover keep their own rules. */
body.cs-primary-header:not(.btn-hover-ghost) :is(.primary-button, .secondary-button, .btn-square, .cs-form-submit):not(.site-header-buttons *, .btn-ghost, .cs-cta--light *):hover,
body.cs-primary-header:not(.btn-hover-ghost) .card-grid-item:hover .btn-square,
body.cs-primary-header:not(.btn-hover-ghost) .pl-card:hover .pl-card-btn {
    color: var(--color-site-bg) !important;
}

.accordion-icon:hover,
.accordion-trigger:hover .accordion-icon {
    opacity: 1;
}

.acc-expand-all i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-expand-all.is-expanded i {
    transform: rotate(45deg);
}

.accordion-icon {
    position: relative;
    pointer-events: none;
}

.accordion-icon .icon-plus,
.accordion-icon .icon-minus {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.accordion-icon .icon-minus {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon .icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.accordion-trigger[aria-expanded="true"] .accordion-icon .icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}

.accordion-panel {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
    color: var(--color-text);
}

.accordion-content {
    font-size: var(--size-a);
    padding: 0rem 4rem 2.5rem 4rem;
    text-align: left;
}

ol,
ul {
    line-height: 1.8;
}

.accordion-item:has(.is-open):not(#hb-mobile-accordion .accordion-item) {
    background: var(--color-border);
}

.accordion-panel.is-open {
    height: 100%;
}

.accordion-content ul li::marker {
    content: '●  ';
    color: var(--color-accent);
    font-size: 0.8em;
}

/* Application — numbered question cards. */
.component-application .cs-app-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.component-application .cs-component-content + .cs-app-list,
.component-application .cs-component-title + .cs-app-list {
    margin-top: 2rem;
}

.cs-app-q {
    display: flex;
    min-height: 5rem;
    padding: 0;
    background: color-mix(in srgb, var(--color-site-bg) 30%, #fff);
    border: 2px solid color-mix(in srgb, var(--color-border) 60%, #ddd);
}

.cs-app-q__num {
    flex: 0 0 5rem;
    padding: 1.5rem 0.5rem;
    background: var(--color-primary);
    color: var(--color-site-bg);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.cs-app-q__body {
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.5rem;
    align-self: center;
}

.cs-app-q__question {
    margin: 0;
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.cs-app-q__desc {
    margin-top: 0.75rem;
    font-size: var(--size-a);
}

.cs-app-q__desc > :first-child {
    margin-top: 0;
}

.cs-app-q__desc > :last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cs-app-q__num {
        flex-basis: 3.5rem;
        padding: 1.25rem 0.25rem;
    }

    .cs-app-q__body {
        padding: 1rem;
    }

    .cs-app-q__question {
        font-size: 1rem;
    }
}

.component-table {
    padding: var(--section-gap) 0;
}

.component-table .table-title {
    margin-bottom: 1rem;
}

.component-table .cs-component-content {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.component-table .cs-component-content:last-child {
    margin-bottom: 0;
    margin-top: 1.5rem;
}

.cs-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.cs-table {
    width: 100%;
    max-width: 1240px;
    border-collapse: collapse;
    margin: 2.5rem auto;
    text-align: left;
    font-size: 1rem;
}

.cs-table thead {
    background: var(--color-primary);
    color: var(--color-site-bg);
}

.cs-table th {
    padding: 1.5rem 2rem;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

.cs-table td {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--color-border, #e5e7eb);
    vertical-align: middle;
}

.cs-table tbody tr:nth-child(even) {
    background: var(--color-border, #f9fafb);
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    border: none;
    padding: 1rem 1.75rem;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.primary-button i,
.secondary-button i {
    font-size: 16px;
}

.primary-button:hover,
.secondary-button:hover {
    opacity: 0.88;
}

.primary-button {
    --btn-color: var(--color-primary);
    background: var(--btn-color);
    color: var(--color-site-bg);
}

.site-header-buttons .primary-button {
    --btn-color: var(--color-secondary);
    color: var(--color-site-bg);
}

.secondary-button {
    --btn-color: var(--color-accent);
    background: var(--btn-color);
    color: color-mix(in srgb, var(--color-text) 70%, black);
}

/* Primary Color Header on: button text uses the site background color. Header
   buttons keep their own colors (more specific rule near the top of the file). */
.cs-primary-header .primary-button,
.cs-primary-header .secondary-button {
    color: var(--color-site-bg);
}

.btn-hover-ghost .primary-button,
.btn-hover-ghost .secondary-button,
.primary-button.btn-ghost,
.secondary-button.btn-ghost {
    border: 2px solid var(--btn-color);
    transition: background 0.2s, color 0.2s;
}

.btn-hover-ghost .primary-button:hover,
.btn-hover-ghost .secondary-button:hover,
.primary-button.btn-ghost:hover,
.secondary-button.btn-ghost:hover {
    background: transparent;
    color: var(--btn-color);
    opacity: 1;
}

.cs-full-width.cs-cta--light.dots-ttb .primary-button {
    --btn-color: var(--color-primary);
    background: var(--btn-color);
    color: var(--color-site-bg);
}

.cs-full-width.cs-cta--light.dots-ttb .primary-button:hover {
    background: transparent;
    color: var(--btn-color);
    opacity: 1;
}

/* Hover text colors. !important overrides the per-component hover rules
   (ghost, card-grid, l2) defined further down and in forms.css. Keep the
   white rule after the dark one: some selectors tie on specificity. */
.btn-square:hover,
.cs-search-btn:hover,
.l2-top-btn:hover,
.btn-hover-ghost .pl-card:hover .pl-card-btn,
.primary-button:hover,
.card-grid-item:hover .btn-square,
.page-hero-content .secondary-button:not(.cs-print-page):hover,
.cs-form-submit:hover,
.page-hero-buttons a.secondary-button:hover {
    color: color-mix(in srgb, var(--color-text) 10%, black) !important;
}

.btn-hover-ghost .secondary-button:hover,
.l2-mega-card-body:hover .btn-square,
.l2-mega-card-body:hover .btn-square:hover {
    color: white !important;
}

.component-text-block .cs-component-content .primary-button::after,
.component-text-block .cs-component-content .secondary-button::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f061';
    font-size: 0.875em;
    margin-left: 0.3em;
}

.arrow-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.95rem;
    letter-spacing: .75px;
    padding-bottom: 2px;
    text-decoration: none;
    color: var(--color-text);
    text-transform: uppercase;
}

.arrow-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-accent);
    transform: scaleY(0.33);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

.arrow-link:hover::before {
    transform: scaleY(1);
}

.arrow-link::after {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f061';
    font-size: 0.875em;
    color: var(--color-accent);
}

.large-paragraph {
    font-size: 1.2em;
    line-height: 1.7;
}

img.img-float-left {
    float: left;
    margin: 0 1.5rem 1rem 0;
    max-width: 50%;
}

img.img-float-right {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 50%;
}

img.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    background: var(--color-accent);
    border: 2px solid var(--color-accent);
    color: color-mix(in srgb, var(--color-text) 10%, black);
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    transition: opacity 0.15s;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.btn-square:hover,
.l2-mega-card-body:hover .btn-square,
.card-grid-item:hover .btn-square {
    opacity: 0.88;
}

.card-grid-item:hover {
    background: var(--color-border);
}

.btn-hover-ghost .btn-square {
    transition: background 0.2s, color 0.2s;
}

.l2-mega-card-body:hover .btn-square,
.btn-hover-ghost .btn-square:hover,
.btn-hover-ghost .card-grid-item:hover .btn-square {
    opacity: 1;
    background: transparent;
    color: var(--color-accent);
}

.field-input {
    width: 100%;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-site-bg);
    line-height: 1.5;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    height: auto;
    box-shadow: none;
    box-sizing: border-box;
}

.field-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.field-input.is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-error) 8%, transparent);
}

.field-textarea {
    resize: vertical;
}

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

.auth-error,
.cs-form-error {
    background: color-mix(in srgb, var(--color-error) 8%, var(--color-container-bg));
    border: 1px solid color-mix(in srgb, var(--color-error) 30%, transparent);
    border-left: 3px solid var(--color-error);
    border-radius: 8px;
    color: var(--color-error);
    line-height: 1.5;
}

.auth-success,
.cs-form-success {
    background: color-mix(in srgb, var(--color-success) 8%, var(--color-container-bg));
    border: 1px solid color-mix(in srgb, var(--color-success) 30%, transparent);
    border-left: 3px solid var(--color-success);
    border-radius: 8px;
    color: var(--color-success);
    line-height: 1.5;
}

.auth-notice {
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-container-bg));
    border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
    border-left: 3px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    line-height: 1.5;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.cs-recaptcha-notice {
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--color-text) 55%, transparent);
    margin-top: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

.cs-recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.15s;
}

.cs-recaptcha-notice a:hover {
    color: var(--color-primary);
}

.cs-search-wrap {
    display: flex;
    flex: 1;
    max-width: 50%;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-site-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cs-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1.55rem;
    font-size: 1rem;
    color: var(--color-text);
    background: transparent;
    font-family: inherit;
    min-width: 0;
}

.cs-search-input::placeholder {
    color: color-mix(in srgb, var(--color-text) 50%, transparent);
}

.cs-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--color-accent);
    color: color-mix(in srgb, var(--color-text) 10%, black);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
    border-radius: 10px;
    width: 4rem;
    font-size: 1rem;
}

.cs-search-btn:hover {
    opacity: 0.88;
}

.btn-hover-ghost .cs-search-btn {
    border: 2px solid var(--color-accent);
    transition: background 0.2s, color 0.2s;
}

.btn-hover-ghost .cs-search-btn:hover {
    background: transparent;
    color: var(--color-accent);
    opacity: 1;
}

.card {
    background: var(--color-container-bg);
    border: 1px solid var(--color-container-bg);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 2rem;
}

.post-hero,
.page-hero {
    background-color: var(--color-border);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.post-hero::before,
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle,
            color-mix(in srgb, var(--color-primary) 20%, transparent) 1px,
            transparent 1px);
    background-size: 22px 22px;
    background-position: center top;
    filter: blur(.8px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.page-breadcrumb-bar {
    background: var(--color-tertiary);
    width: 100%;
    padding: .5rem 1rem;
}

.page-breadcrumb-bar-inner {
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--size-breadcrumb, 0.875rem);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.5;
}

.page-breadcrumb-bar-inner a {
    color: var(--color-text);
    font-size: var(--size-breadcrumb, 0.875rem);
    text-decoration: none;
    transition: color 0.15s;
}

.page-breadcrumb-bar-inner a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.page-breadcrumb-bar-inner .bc-home:hover {
    text-decoration: underline;
}

.page-breadcrumb-bar-inner .bc-sep {
    opacity: 0.45;
    margin: 0 0.15rem;
    flex-shrink: 0;
}

.page-breadcrumb-bar-inner .bc-home i {
    font-size: 1rem;
    margin-right: 0.35em;
}

.page-hero-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-dark-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.875rem;
    color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

.profile-dark-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.dm-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background: var(--color-border);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.dm-switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.profile-dark-toggle input:checked~.dm-switch {
    background: var(--color-text);
}

.profile-dark-toggle input:checked~.dm-switch::after {
    transform: translateX(20px);
}

/* Only rules whose light-mode value (primary text, site-bg inputs) doesn't work on the dark palette */
html.dark-mode .auth-title,
html.dark-mode .auth-site-name,
html.dark-mode .auth-switch a {
    color: var(--color-text);
}

html.dark-mode .auth-subtitle,
html.dark-mode .profile-hint,
html.dark-mode .profile-optional,
html.dark-mode .auth-switch,
html.dark-mode .auth-toggle-pw {
    color: var(--color-muted);
}

html.dark-mode .auth-toggle-pw:hover {
    color: var(--color-text);
}

html.dark-mode .field-input {
    background: var(--color-container-bg);
}

html.dark-mode .field-input:focus {
    border-color: var(--color-muted);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-text) 15%, transparent);
}

html.dark-mode .auth-error {
    background: color-mix(in srgb, var(--color-error) 15%, var(--color-container-bg));
    border-color: var(--color-error);
    color: color-mix(in srgb, var(--color-error) 40%, var(--color-text));
}

html.dark-mode .auth-success {
    background: color-mix(in srgb, var(--color-success) 15%, var(--color-container-bg));
    border-color: var(--color-success);
    color: color-mix(in srgb, var(--color-success) 40%, var(--color-text));
}

html.dark-mode .auth-notice {
    background: color-mix(in srgb, var(--color-secondary) 15%, var(--color-container-bg));
    border-color: var(--color-secondary);
    color: color-mix(in srgb, var(--color-secondary) 40%, var(--color-text));
}

html.dark-mode .profile-dark-toggle input:checked~.dm-switch {
    background: var(--color-muted);
}

html.dark-mode .card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.dots-ltr::before,
.dots-rtl::before,
.dots-ttb::before {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    filter: none;
    background-image: var(--pattern-bg-image, linear-gradient(to right, color-mix(in srgb, var(--color-primary) 5%, transparent), transparent));
    background-size: var(--pattern-bg-size, unset);
    background-position: unset;
    background-repeat: var(--pattern-bg-repeat, repeat);
    mask-image: var(--pattern-mask-image, url('assets/image/dots-1.png'));
    mask-size: var(--pattern-mask-size, auto 14px);
    mask-repeat: var(--pattern-mask-repeat, repeat-y);
}

.dots-ltr::before {
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
}

.dots-rtl::before {
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    transform: scaleX(-1);
}

.dots-ttb::before {
    top: 50%;
    left: 50%;
    width: 800px;
    height: 100vw;
    transform-origin: center center;
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Decorative pattern variants (Theme Settings → Layout → Decorative Pattern) */
body.pattern-grid {
    --pattern-mask-image: none;
    --pattern-bg-image:
        repeating-linear-gradient(to right, color-mix(in srgb, var(--color-primary) 8%, transparent) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(to bottom, color-mix(in srgb, var(--color-primary) 8%, transparent) 0 1px, transparent 1px 22px);
    --pattern-bg-size: 22px 22px;
}

body.pattern-diagonal {
    --pattern-mask-image: none;
    --pattern-bg-image: repeating-linear-gradient(45deg, color-mix(in srgb, var(--color-primary) 9%, transparent) 0 1px, transparent 1px 12px);
    --pattern-bg-size: auto;
}

body.pattern-glow {
    --pattern-mask-image: none;
}

body.pattern-grid .component-fifty-fifty.ff--light.ff--portrait:not(.ff--flip).dots-ltr::before,
body.pattern-diagonal .component-fifty-fifty.ff--light.ff--portrait:not(.ff--flip).dots-ltr::before {
    width: 36%;
}

body.pattern-grid .component-fifty-fifty.ff--light.ff--portrait.ff--flip.dots-rtl::before,
body.pattern-diagonal .component-fifty-fifty.ff--light.ff--portrait.ff--flip.dots-rtl::before {
    width: 36%;
}

@media (max-width: 768px) {

    body.pattern-grid .component-fifty-fifty.ff--light.ff--portrait:not(.ff--flip).dots-ltr::before,
    body.pattern-diagonal .component-fifty-fifty.ff--light.ff--portrait:not(.ff--flip).dots-ltr::before,
    body.pattern-grid .component-fifty-fifty.ff--light.ff--portrait.ff--flip.dots-rtl::before,
    body.pattern-diagonal .component-fifty-fifty.ff--light.ff--portrait.ff--flip.dots-rtl::before {
        top: 0;
        left: 0;
        right: auto;
        bottom: auto;
        width: 100%;
        height: 35%;
        transform: none;
    }
}

hr {
    background-color: initial;
    border: 0;
    border-bottom: 2px solid var(--color-accent);
    margin: 4rem auto;
    width: 100%;
}

.card-grid-item--icon {
    text-align: center;
}

.card-grid-item--icon .card-grid-body {
    align-items: center;
}

.card-grid-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 2rem auto 0;
    flex-shrink: 0;
}

.cs-alert {
    border-width: 2px 2px 2px 15px;
    border-style: solid;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.cs-alert__row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
}

.cs-alert__icon {
    flex-shrink: 0;
    font-size: var(--size-h4);
    margin-top: 2px;
}

.cs-alert__body {
    flex: 1;
    min-width: 0;
}

.cs-alert__title {
    font-weight: 700;
    margin: 0;
    font-size: var(--size-h4);
}

.cs-alert__text {
    margin: 0;

    p {
        margin: .5rem 0 1rem 0;
    }

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

.cs-alert__dismiss {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: inherit;
}

.cs-alert__btn-wrap--bottom {
    margin-top: 14px;
    text-align: center;
}

.cs-alert__btn-wrap--inline {
    flex-shrink: 0;
    align-self: center;
}

.cs-alert__btn-wrap--inline.has-dismiss {
    margin-right: 28px;
}

.cs-alert__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    color: var(--color-site-bg);
}

.cs-archive-searchbar-keyword,
.cs-archive-searchbar-author,
.cs-archive-searchbar-cat {
    min-width: 200px;
    max-width: 100%;
}

.toolbox-section {
    padding-block: 3rem;
}

.toolbox-list {
    display: grid;
    grid-template-columns: repeat(var(--tb-cols, 2), 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.toolbox-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-left: 4px solid var(--color-primary);
    background: var(--color-site-bg, #fff);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.toolbox-item:hover {
    background: color-mix(in srgb, var(--color-primary) 5%, var(--color-site-bg, #fff));
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.toolbox-item__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    margin-top: 0.1rem;
}

.toolbox-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: left;
}

.toolbox-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 0.2rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--color-primary) 40%, transparent);
    line-height: 1.35;
}

.toolbox-item:hover .toolbox-item__title {
    text-decoration-color: var(--color-primary);
}

.toolbox-item__desc {
    font-size: 0.875rem;
    color: var(--color-text, #333);
    margin: 0;
    opacity: 0.75;
    line-height: 1.45;
}

.l3-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.l3-logo-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.l3-header .custom-logo-link,
.l3-header a.site-title {
    color: var(--color-site-bg);
    text-decoration: none;
}

.l3-header .custom-logo {
    height: 60px;
    width: auto;
}

.l3-search-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.l3-search-form.cs-search-form {
    width: 100%;
    max-width: 600px;
}

.l3-header .cs-search-wrap {
    background: color-mix(in srgb, var(--color-site-bg) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-site-bg) 28%, transparent);
    border-radius: 4px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.l3-header .cs-search-wrap:focus-within {
    background: color-mix(in srgb, var(--color-site-bg) 20%, transparent);
    border-color: color-mix(in srgb, var(--color-site-bg) 50%, transparent);
}

.l3-header .cs-search-input {
    background: transparent;
    border: none;
    color: var(--color-site-bg);
    flex: 1;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.9rem;
    outline: none;
}

.l3-header .cs-search-input::placeholder {
    color: color-mix(in srgb, var(--color-site-bg) 60%, transparent);
}

.l3-header .cs-search-btn {
    background: transparent;
    border: none;
    color: var(--color-site-bg);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    transition: color 0.15s ease;
}

.l3-header .cs-search-btn:hover {
    color: color-mix(in srgb, var(--color-site-bg) 75%, transparent);
}

.l3-nav-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-width: 0;
}

.l3-nav-toggle.is-open {
    border-radius: 6px 6px 0 0;
    border-bottom: 0;
    background: var(--color-primary);
}

.l3-nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: color-mix(in srgb, var(--color-site-bg) 10%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--color-site-bg) 35%, transparent);
    border-radius: 6px;
    color: var(--color-site-bg);
    cursor: pointer;
    padding: 1rem 1.5rem;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
    width: 260px;
    justify-content: space-between;
}

.l3-nav-toggle-name-bar {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.l3-nav-display-name {
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
}

.l3-nav-user-icon {
    font-size: 1.9rem;
}

.l3-nav-bars-icon {
    font-size: 1.4rem;
    opacity: 0.9;
}

.l3-nav-panel {
    position: absolute;
    right: 0;
    top: calc(100%);
    width: 260px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 6px 6px;
    z-index: 900;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    background: var(--color-primary);
    border: 1.5px solid color-mix(in srgb, var(--color-site-bg) 35%, transparent);
    color: var(--color-site-bg);
}

.l3-nav-panel.is-open {
    max-height: 640px;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto;
}

.l3-nav-panel-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1.25rem;
    color: var(--color-site-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--color-site-bg) 18%, transparent);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.l3-nav-panel-header .fa-user-circle {
    font-size: 1.1rem;
    opacity: 0.8;
}

.l3-nav-panel-username {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.l3-nav-primary,
.l3-nav-secondary {
    padding: 0.4rem 0;
}

.l3-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    color: var(--color-site-bg);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: background 0.15s ease;
}

.l3-nav-link:hover {
    background: color-mix(in srgb, var(--color-site-bg) 12%, transparent);
    color: var(--color-site-bg);
    text-decoration: none;
}

.l3-nav-link i {
    font-size: 0.85rem;
    opacity: 0.75;
    width: 1em;
    text-align: center;
}

.l3-nav-divider {
    border: none;
    border-top: 1px solid color-mix(in srgb, var(--color-site-bg) 18%, transparent);
    margin: 0.2rem 0;
}

.l3-nav-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--color-site-bg) 18%, transparent);
}

.l3-nav-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: var(--color-site-bg);
    color: var(--color-text);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
}

.l3-nav-login-btn:hover {
    background: color-mix(in srgb, var(--color-site-bg) 88%, var(--color-border));
    color: var(--color-text);
    text-decoration: none;
}

@media (max-width: 1500px) {
    .cs-half-width {
        width: 48%;
    }

    .cs-wider-width {
        width: 68%;
    }

    .l2-mega-left,
    .l2-mega-right {
        margin-left: 5%;
    }

    .page-hero {
        min-height: unset;
    }
}

@media (max-width: 1350px) {
    .l3-search-form.cs-search-form {
        max-width: 360px;
    }

    .site-nav-menu-mega,
    .header-row,
    .site-nav-menu-secondary {
        gap: .95rem;
    }

    .l2-nav-trigger,
    .l2-nav-link {
        font-size: 1.05rem;
        gap: 0.2rem;
    }

    .cs-half-width {
        width: 53%;
    }

    .cs-wider-width {
        width: 76%;
    }
}

@media (max-width: 1200px) {

    .cs-half-width {
        width: 58%;
    }

    .site-header-buttons .primary-button:hover {
        color: var(--color-site-bg) !important;
    }

    .cs-full-width,
    .cs-fluid-width {
        width: 90%;
    }

    .cs-wider-width {
        width: 85%;
    }

    .cs-search-wrap {
        max-width: 80%;
    }

    .hb-mobile-search .cs-search-wrap {
        max-width: 100%;
    }

    .header-desktop-one,
    .bar-sticky,
    .l2-main-header,
    .l3-header,
    .header-search-row,
    .search-body-overlay,
    .mega-body-overlay {
        display: none !important;
    }

    .mobile-header {
        display: flex;
    }

    .page-breadcrumb-bar-inner {
        width: 100%;
    }

    .site-header-buttons .primary-button,
    .site-header-buttons .secondary-button {
        width: 100%;
        justify-content: center;
    }

    .l3-nav-panel {
        right: auto;
        left: 0;
        min-width: 240px;
    }

    .l3-header {
        display: flex !important;
    }

    .l3-header .l3-search-center {
        display: none;
    }

    .l3-header~.mobile-header {
        display: none !important;
    }

    .header-padding {
        padding: 1rem;
    }
}

@media (max-width: 1140px) {
    .cs-wider-width {
        width: 90%;
    }

    .post-hero {
        min-height: 460px;
    }

    .testimonial-body {
        padding: 0;
    }

    .card-grid,
    .pl-grid,
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .admin-bar .header-desktop-one,
    .admin-bar .bar-sticky {
        top: 46px;
    }

    .footer-logo--desktop {
        display: none;
    }

    .footer-logo--mobile {
        display: block;
    }

    .cookie-banner-actions,
    .forum-sidebar,
    .forum-feed,
    .site-footer-last,
    .site-footer-brand {
        width: 100%;
    }

    .cookie-banner-actions .primary-button,
    .cookie-banner-actions .secondary-button {
        flex: 1;
        justify-content: center;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .quote,
    .cs-component-header-narrow {
        width: 75%;
    }

    .forum-layout,
    .site-footer-inner,
    .site-footer-inner-bottom {
        width: 90%;
        gap: 1rem;
    }

    .forum-layout {
        flex-direction: column;
    }

    .forum-layout--full {
        width: 90%;
    }

    .cs-archive-searchbar-fields {
        gap: 1rem;
    }

    .cs-archive-searchbar-cat,
    .cs-archive-searchbar-year {
        flex: 1 1 0%;
        min-width: 0;
    }
}

@media (min-width: 1140px) {
    .cs-archive-searchbar-fields {
        flex-direction: row;
        align-items: center;
    }

    .cs-archive-searchbar-keyword,
    .cs-archive-searchbar-author {
        flex: 1 1 0%;
        width: auto;
        min-width: 0;
    }

    .search-bar-half {
        flex: 1 1 0%;
        width: auto;
        min-width: 0;
    }

    .cs-archive-searchbar-cat,
    .cs-archive-searchbar-year {
        flex: 1 1 0%;
        min-width: 0;
    }
}

@media (max-width: 1000px) {

    .pl-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cs-half-width {
        width: 70%;
    }
}

@media (max-width: 900px) {

    .cs-half-width {
        width: 80%;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}


@media (max-width: 768px) {

    .cs-embed-layout-side-by-side {
        flex-direction: column;
        gap: 2rem;
    }

    .site-footer-bg-image {
        top: 36%;
    }

    .hb-mobile-menu-panel {
        transform: translateX(-100%);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    }

    .hb-mobile-menu-panel.is-open {
        transform: translateX(0);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
    }

    .search-bar-half {
        flex-direction: column;
    }

    .cs-search-wrap {
        max-width: 100%;
        width: 100%;
    }

    .cs-archive-searchbar-year {
        width: 100%;
        min-width: 0;
    }

    .component-fifty-fifty .ff-text-col,
    .component-fifty-fifty.ff--edge .ff-edge-text-col {
        max-width: 100%;
        padding: 1rem 0 0 0;
        order: 1;
    }

    .header-padding,
    .hb-mobile-search {
        padding: 0.9rem;
    }

    .cs-half-width {
        width: 90%;
    }

    .all-padding {
        padding: 2.5rem;
    }

    .component-fifty-fifty .ff-image-col {
        flex: none;
        width: 100%;
        order: -1;
        min-height: 280px;
    }

    .component-fifty-fifty.ff--light.ff--portrait:not(.ff--flip),
    .component-fifty-fifty.ff--light.ff--portrait.ff--flip {
        background: linear-gradient(to bottom, var(--color-border) 35%, var(--color-site-bg) 35%);
    }

    .component-fifty-fifty.ff--landscape .ff-image-col img {
        min-height: 260px;
        border-radius: 0;
        height: unset;
    }

    .component-fifty-fifty.ff--edge .ff-edge-image-col img {
        width: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .component-fifty-fifty.ff--dark.dots-ltr::before,
    .component-fifty-fifty.ff--dark.dots-rtl::before,
    .component-fifty-fifty.ff--light.ff--portrait.dots-ltr::before,
    .component-fifty-fifty.ff--light.ff--portrait.dots-rtl::before {
        top: 25%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: 800px;
        height: 100vw;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
    }

    .site-footer-inner {
        flex-direction: column;
        gap: 2.5rem;
    }

    .site-footer-inner-bottom,
    .site-header-buttons,
    .component-fifty-fifty .flex-row,
    .component-fifty-fifty.ff--landscape .flex-row,
    .component-fifty-fifty.ff--flip .flex-row,
    .component-fifty-fifty.ff--edge .ff-edge-inner,
    .cs-full-width.flex-row {
        flex-direction: column;
        gap: 1rem;
    }

    .component-post-card-text .pct-body {
        flex-direction: column;
        gap: 1.5rem;
    }

    .component-post-card-text .pct-divider {
        display: none;
    }

    .border-bottom {
        border-bottom: 1px solid var(--color-secondary);
        padding-bottom: 1rem;
    }

    .site-footer-inner--grid,
    .toolbox-list {
        grid-template-columns: 1fr;
    }

    .site-footer-brand {
        border-bottom: 1px solid var(--color-secondary);
        padding-bottom: 2.5rem;
    }

    .component-tabs .tabs-nav {
        display: none;
    }

    .component-tabs .tabs-panels {
        padding: 0;
        border-radius: 10px 10px 0 0;
        overflow: hidden;
        width: 100%;
    }

    .tabs-stack-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 1.1rem 1.25rem;
        background: var(--color-primary);
        color: var(--color-site-bg);
        font-size: var(--size-p);
        font-weight: 700;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
        text-align: left;
    }

    .tabs-stack-btn::after {
        content: '+';
        font-size: 1.25rem;
        line-height: 1;
        flex-shrink: 0;
        margin-left: 0.75rem;
    }

    .tabs-stack-btn.is-active::after {
        content: '−';
    }

    .tabs-panel.is-active {
        padding: 1.25rem;
    }

    .component-fifty-fifty.ff--edge .ff-edge-image-col {
        width: 100%;
        flex: none;
        min-height: 260px;
        order: -1;
    }

    .component-fifty-fifty.ff--edge .ff-edge-image-col,
    .component-fifty-fifty.ff--edge .ff-edge-text-col {
        width: 90%;
        margin: auto;
    }

    .quote,
    .cs-component-header-narrow {
        width: 95%;
    }

    .pl-card {
        h4 {
            margin: 1.15rem 0;
        }
    }

    .flex-row-testimonial {
        flex-direction: column;
        gap: 2rem;
    }

    .testimonial-image {
        width: 268px;
        height: auto;
        margin: 0 auto;
    }

    .testimonial-image img {
        height: auto;
    }

    .component-full.dots-ltr::before {
        top: 40%;
        left: 50%;
        width: 800px;
        height: 100vw;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .cs-cta__inner {
        flex-direction: column;
    }

    .cs-cta--dark .cs-cta__body,
    .cs-cta--dark .cs-cta__inner {
        width: 100%;
        align-items: start;
    }

    .cs-cta--card .cs-cta__inner {
        align-items: flex-start;
        padding: 2rem 1.5rem 3rem;
    }

    .cs-cta--card .cs-cta__body {
        width: 100%;
    }

    .cs-cta__card-btn {
        margin-right: 0;
    }

    .card-grid-body {
        padding: 1.5rem;
    }

    .cs-table-wrapper {
        overflow-x: hidden;
    }

    .cs-table {
        table-layout: fixed;
    }

    .cs-table th {
        white-space: normal;
        word-break: break-word;
    }

    .cs-component-content table {
        table-layout: fixed;
    }

    .cs-component-content th {
        white-space: normal;
        word-break: break-word;
    }

    .component-page-intro {
        padding: 2rem 0 1.5rem;
        min-height: 200px;
    }

    .card-grid-image img {
        object-fit: cover;
    }

    .cs-archive-card-grid .card-grid-image img {
        object-fit: contain;
    }

    .pl-grid,
    .gallery-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 660px) {
    .search-bar-half {
        flex-direction: column;
        align-items: stretch;
    }

    .cs-archive-searchbar-cat,
    .cs-archive-searchbar-year {
        width: 100%;
        min-width: 0;
    }

    .pl-header {
        flex-direction: column;
        gap: .75rem;
        align-items: start;
    }

    .component-fifty-fifty .ff-text-col,
    .component-fifty-fifty.ff--edge .ff-edge-text-col {
        padding: 0.75rem;
    }

    .cs-cta--dark.dots-rtl::before {
        top: 50%;
        left: 50%;
        right: auto;
        width: 800px;
        height: 100vw;
        transform-origin: center center;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .site-footer-top {
        padding: 1.5rem 0;
    }

    .l2-mega-inner {
        height: auto;
    }

    .components-wrap,
    .forum-layout {
        gap: 4rem;
        margin: 4rem auto;
    }

    .forum-layout--full,
    .forum-layout.cs-full-width {
        margin: 4rem auto;
    }

    .cs-text-cols-2 .cs-component-content,
    .cs-text-cols-3 .cs-component-content {
        column-count: 1;
    }

    .cs-component-content .alignleft,
    .cs-component-content .alignright {
        float: none;
        max-width: 100%;
        margin: 0 0 1rem;
    }

    .cslb-img-wrap {
        padding: 3.5rem 1rem 0.5rem;
    }

    .cslb-footer {
        padding: 0.75rem 1rem;
    }

    .cslb-next,
    .cslb-prev {
        right: 0.375rem;
    }

    .post-hero {
        min-height: 360px;
    }

    .component-tabs--left .tabs-nav {
        flex-direction: row;
        flex-wrap: wrap;
        border: none;
        width: 100%;
    }

    .tabs-panel-inner,
    .component-tabs--left .tabs-layout {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .component-fifty-fifty.ff--edge .ff-edge-image-col,
    .component-fifty-fifty.ff--edge .ff-edge-text-col {
        width: 85%;
    }
}

/* Shortcut (jump-link nav bar) */
.cs-shortcut-nav {
    background: var(--color-primary);
}

.cs-shortcut-nav--sticky {
    position: sticky;
    top: var(--cs-header-height, 0px);
    z-index: 90;
}

:target {
    scroll-margin-top: var(--cs-scroll-offset, 0px);
}

.cs-shortcut-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    width: 84%;
    margin: 0 auto;
    padding: 0.85rem 0;
}

.cs-shortcut-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    background: color-mix(in srgb, var(--color-site-bg) 12%, transparent);
    color: var(--color-site-bg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.18s ease, color 0.18s ease;
}

.cs-shortcut-btn:hover {
    background: color-mix(in srgb, var(--color-site-bg) 22%, transparent);
}

.cs-shortcut-btn--highlight {
    background: var(--color-accent);
    color: var(--color-primary);
}

.cs-shortcut-btn--highlight:hover {
    background: color-mix(in srgb, var(--color-accent) 85%, black);
}

.cs-shortcut-nav~.component-page-intro,
.cs-shortcut-nav~.components-wrap {
    margin-top: 0;
}

@media (max-width: 768px) {
    .cs-shortcut-nav-inner {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .page-hero-excerpt.cs-in-view {
        padding: 0 1rem;
    }
}

/* ---------- Print ----------
   Page title + content only: no site chrome, buttons, backgrounds or animations. */
@media print {
    @page {
        margin: 1.5cm;
    }

    html,
    body,
    .site-main {
        background: #fff !important;
        min-height: 0 !important;
    }

    #wpadminbar,
    header[role="banner"],
    .header-row-one,
    .mobile-header,
    .cs-text-block-btns,
    .site-footer,
    .mobile-footer,
    .hb-mobile-nav,
    .hb-mobile-menu-panel,
    .header-search-row,
    .cookie-banner,
    .site-alert-bar,
    .page-breadcrumb-bar,
    .page-hero-buttons,
    .page-hero-tilt,
    .page-hero-image,
    .page-hero-bg-img,
    .primary-button,
    .secondary-button,
    .btn-square,
    .cs-sf-widget,
    video,
    iframe {
        display: none !important;
    }

    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* Calls to action and accordion controls mean nothing on paper. */
    [class*="cs-cta--"],
    .acc-expand-all,
    .accordion-icon {
        display: none !important;
    }

    /* Print every accordion panel open (JS sets inline heights). */
    .accordion-panel {
        height: auto !important;
        overflow: visible !important;
    }

    .accordion-content {
        padding: 0 0 1rem !important;
    }

    .accordion-trigger {
        padding: 1rem 0 0.5rem !important;
        break-after: avoid;
        page-break-after: avoid;
    }

    /* Application questions: keep each card whole; printers drop backgrounds, so the number gets a rule instead.
       Block flow (not flex) so Chrome honours the heading's break-after: avoid. */
    .component-application,
    .cs-app-list {
        display: block !important;
    }

    .cs-app-q + .cs-app-q {
        margin-top: 0.75rem;
    }

    .cs-app-q {
        min-height: 0;
        border-width: 1px;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .cs-app-q__num {
        flex-basis: 3.5rem;
        padding: 0.75rem 0.25rem;
        background: none;
        color: #000;
        border-right: 1px solid var(--color-border);
    }

    .cs-app-q__body {
        padding: 0.75rem 1rem;
    }

    .cs-app-q__question {
        color: #000;
        font-size: 1rem;
    }

    /* overflow-x: auto boxes draw a scrollbar when split across a page break. */
    .cs-component-content,
    .cs-table-wrapper {
        overflow: visible !important;
    }

    [data-anim] {
        opacity: 1 !important;
        transform: none !important;
    }

    .page-hero,
    .page-hero-group {
        background: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .page-hero::before,
    .page-hero::after,
    [class*="dots-"]::before,
    [class*="dots-"]::after {
        display: none !important;
    }

    .page-hero-inner {
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        padding: 0 0 1rem !important;
        border-bottom: 1px solid #999;
    }

    .page-hero-content {
        margin: 0 !important;
        text-align: left !important;
        max-width: none !important;
    }

    .components-wrap {
        gap: 1.5rem !important;
        margin: 1.5rem 0 0 !important;
    }

    .site-main section,
    .cs-full-width,
    .cs-fluid-width,
    .cs-half-width,
    .cs-wider-width,
    .cs-component-header-narrow {
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        background: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body,
    .site-main p,
    .site-main li {
        color: #000 !important;
    }

    h1, h2, h3, h4, h5, h6 {
        break-after: avoid;
        page-break-after: avoid;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    p,
    li,
    blockquote {
        orphans: 3;
        widows: 3;
    }

    img,
    figure,
    table,
    blockquote {
        max-width: 100% !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
