@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
 
 
/* Brand tokens and scheme vars are injected via PHP (ColourCssExtension)
   from colours.yml — use var(--brand-navy), var(--scheme-teal) etc. */

/* ── Structural aliases — map brand tokens to legacy var names ── */
:root { 
    --yc-primary-teal: var(--brand-teal);
    --yc-light-grey:   var(--brand-cream);
    --yc-white:        var(--brand-white);
    --yc-navy:         var(--brand-navy);
    --yc-gradient:     var(--brand-gradient);
    --yc-pink:         var(--brand-pink);

    --bg-color:        var(--brand-white);
    --text-color:      #1a1a1a;
    --text-muted:      #555555;
    --accent-teal:     var(--brand-teal);
    --font-family:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Default logo tint — overridden per body[data-hero-scheme] below. */
    --logo-tint:       var(--brand-teal);

    /* Global border radius variable */
    --global-border-radius: 0.3rem;

    /* ── Override Tailwind v4 radius tokens ──────────────────────────────────
       Tailwind v4 generates e.g. `border-radius: var(--radius-xl)` for both
       `rounded-xl` AND responsive variants like `md:rounded-xl`. Overriding
       the tokens here ensures ALL rounded-* utilities (including md:, lg:,
       hover: etc.) follow --global-border-radius automatically.
       Only tokens that exist in tailwind-built.css are listed. */
    --radius-sm:   var(--global-border-radius); /* use default border radius */
    --radius-lg:   var(--global-border-radius); /* use default border radius */
    --radius-xl:   var(--global-border-radius); /* use default border radius */
    --radius-2xl:  var(--global-border-radius); /* use default border radius */
    --radius-3xl:  var(--global-border-radius); /* use default border radius */
    /* --radius-full is intentionally kept at 9999px for pill shapes */
}

/* ─── Site header logo — colour-shifts to match the active hero/page-header scheme ───
   The SVG wordmark is used as a CSS mask; the element's background fills
   the mask shape. By swapping the background gradient/solid per
   body[data-hero-scheme], the logo picks up the exact colour of the
   section directly below the navbar. */
.site-header__logo--tinted {
    position: relative;
    /* Logo SVG viewBox is 760×250 → ratio 3.04. Height comes from .h-8 (2rem). */
    aspect-ratio: 760 / 250;
    width: auto;
    background: var(--logo-tint);
    -webkit-mask-image: url('../images/logos/ipyp-wordmark.svg');
            mask-image: url('../images/logos/ipyp-wordmark.svg');
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
    transition: background 0.3s ease, filter 0.3s ease;
}

/* ── Logo outline on light-background schemes ──────────────────────────────
   When the active scheme is light (dawn / blush / polar / solid-cream) the
   logo overlay colour is pale/cream and risks disappearing against the white
   navbar. PHP sets class="scheme-light" on <body> via getActiveSchemeMode()
   so we only need one selector here — LIGHT_SCHEMES in PageHeaderExtension.php
   is the single source of truth for which schemes are considered light. */
/* ── Logo outline on light-background schemes ──────────────────────────────
   drop-shadow CANNOT be applied to the masked element itself — mask-image
   clips the filter output. Instead we target the non-masked wrapper span so
   the shadow correctly follows the logo shape. */
body.scheme-light .site-header__logo-wrap {
    filter: drop-shadow(1px 0 0 rgba(26, 45, 64, 0.4))
            drop-shadow(-1px 0 0 rgba(26, 45, 64, 0.4))
            drop-shadow(0 1px 0 rgba(26, 45, 64, 0.4))
            drop-shadow(0 -1px 0 rgba(26, 45, 64, 0.4));
    transition: filter 0.3s ease;
}

/* Fallback <img> only shows if the browser doesn't support mask-image. */
@supports ((-webkit-mask-image: url('')) or (mask-image: url(''))) {
    .site-header__logo--tinted .site-header__logo-fallback { display: none; }
}

/* ─── Logo tints — auto-generated from colours.yml schemes ─── */
/* Do not edit manually; update colours.yml instead. */
body[data-hero-scheme="teal"] { --logo-tint: var(--scheme-teal); }
body[data-hero-scheme="pink"] { --logo-tint: var(--scheme-pink); }
body[data-hero-scheme="slate"] { --logo-tint: var(--scheme-slate); }
body[data-hero-scheme="mauve"] { --logo-tint: var(--scheme-mauve); }
body[data-hero-scheme="sage"] { --logo-tint: var(--scheme-sage); }
body[data-hero-scheme="ocean"] { --logo-tint: var(--scheme-ocean); }
body[data-hero-scheme="green"] { --logo-tint: var(--scheme-green); }
body[data-hero-scheme="orange"] { --logo-tint: var(--scheme-orange); }
body[data-hero-scheme="yellow"] { --logo-tint: var(--scheme-yellow); }
body[data-hero-scheme="yc-gradient"] { --logo-tint: var(--scheme-yc-gradient); }
body[data-hero-scheme="dawn"] { --logo-tint: var(--scheme-dawn); }
body[data-hero-scheme="blush"] { --logo-tint: var(--scheme-blush); }
body[data-hero-scheme="polar"] { --logo-tint: var(--scheme-polar); }
body[data-hero-scheme="solid-navy"] { --logo-tint: var(--scheme-solid-navy); }
body[data-hero-scheme="solid-teal"] { --logo-tint: var(--scheme-solid-teal); }
body[data-hero-scheme="solid-pink"] { --logo-tint: var(--scheme-solid-pink); }
body[data-hero-scheme="solid-slate"] { --logo-tint: var(--scheme-solid-slate); }
body[data-hero-scheme="solid-green"] { --logo-tint: var(--scheme-solid-green); }
body[data-hero-scheme="solid-mint"] { --logo-tint: var(--scheme-solid-mint); }
body[data-hero-scheme="solid-orange"] { --logo-tint: var(--scheme-solid-orange); }
body[data-hero-scheme="solid-apricot"] { --logo-tint: var(--scheme-solid-apricot); }
body[data-hero-scheme="solid-yellow"] { --logo-tint: var(--scheme-solid-yellow); }
body[data-hero-scheme="solid-gold"] { --logo-tint: var(--scheme-solid-gold); }
body[data-hero-scheme="solid-cream"] { --logo-tint: var(--scheme-solid-cream); }
body[data-hero-scheme="solid-white"] { --logo-tint: var(--scheme-solid-white); }
body[data-hero-scheme="solid-black"] { --logo-tint: var(--scheme-solid-black); }
body[data-hero-scheme="solid-yc-blue"] { --logo-tint: var(--scheme-solid-yc-blue); }
body[data-hero-scheme="solid-yc-green"] { --logo-tint: var(--scheme-solid-yc-green); }
body[data-hero-scheme="default"] { --logo-tint: var(--scheme-default); }
body[data-hero-scheme="none"] { --logo-tint: var(--scheme-none); }
body[data-hero-scheme="white"] { --logo-tint: var(--scheme-white); }
body[data-hero-scheme="cream"] { --logo-tint: var(--scheme-cream); }
body[data-hero-scheme="cloud"] { --logo-tint: var(--scheme-cloud); }
body[data-hero-scheme="mist"] { --logo-tint: var(--scheme-mist); }
body[data-hero-scheme="sage-tint"] { --logo-tint: var(--scheme-sage-tint); }
body[data-hero-scheme="mint-tint"] { --logo-tint: var(--scheme-mint-tint); }
body[data-hero-scheme="apricot-tint"] { --logo-tint: var(--scheme-apricot-tint); }
body[data-hero-scheme="yellow-tint"] { --logo-tint: var(--scheme-yellow-tint); }
body[data-hero-scheme="dark"] { --logo-tint: var(--scheme-dark); }
body[data-hero-scheme="black"] { --logo-tint: var(--scheme-black); }
body[data-hero-scheme="dark-teal"] { --logo-tint: var(--scheme-dark-teal); }
body[data-hero-scheme="dark-slate"] { --logo-tint: var(--scheme-dark-slate); }
body[data-hero-scheme="dark-pink"] { --logo-tint: var(--scheme-dark-pink); }
body[data-hero-scheme="dark-green"] { --logo-tint: var(--scheme-dark-green); }
body[data-hero-scheme="dark-orange"] { --logo-tint: var(--scheme-dark-orange); }
body[data-hero-scheme="dark-yellow"] { --logo-tint: var(--scheme-dark-yellow); }
/* ─── END auto-generated logo tints ─── */

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ── Top Navigation ── */
.topnav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--yc-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.topnav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 80px;
}

.topnav__logo {
    display: block;
}

.topnav__logo img {
    height: 32px;
    width: auto;
}

/* Menu list */
.topnav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.topnav__item {
    position: relative;
}

.topnav__link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--global-border-radius); /* use default border radius */
    transition: color 0.2s, background 0.2s;
}

.topnav__link:hover,
.topnav__item--active>.topnav__link {
    color: var(--yc-primary-teal);
    background: rgba(70, 125, 155, 0.05);
}

/* Dropdown arrow indicator */
.topnav__item--has-children>.topnav__link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s;
}

/* Dropdown panel */
.topnav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 0.75rem 0;
    background: var(--yc-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--global-border-radius); /* use default border radius */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.topnav__item--has-children:hover>.topnav__dropdown {
    display: block;
    animation: dropIn 0.2s ease-out;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.topnav__dropdown-link {
    display: block;
    padding: 0.6rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s, padding-left 0.15s;
}

.topnav__dropdown-link:hover,
.topnav__dropdown-item--active>.topnav__dropdown-link {
    color: var(--yc-primary-teal);
    background: var(--yc-light-grey);
    padding-left: 1.75rem;
}

/* ── Hamburger toggle (mobile) ── */
.topnav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: var(--global-border-radius);
    transition: background 0.2s ease;
}

.topnav__toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.topnav__toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--yc-navy);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.2s ease,
                width     0.3s ease;
}

/* Animated X when open */
.topnav__toggle[aria-expanded="true"] .topnav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.topnav__toggle[aria-expanded="true"] .topnav__toggle-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
.topnav__toggle[aria-expanded="true"] .topnav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* CMS Edit Link */
.cms-edit-link {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    background: var(--accent-purple);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: var(--global-border-radius); /* use default border radius */
    opacity: 0.7;
    transition: opacity 0.2s;
}

.cms-edit-link:hover {
    opacity: 1;
}

/* ── Mobile nav (hamburger shown from 0–999px) ── */
@media (max-width: 999px) {
    .topnav__toggle {
        display: flex;
    }

    /* ── Mobile menu panel ── */
    #topnav-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
        padding: 0.75rem 1rem 1.25rem;
        z-index: 999;
        /* Override Tailwind's items-center so items stretch full width */
        align-items: stretch;

        /* Hidden state */
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #topnav-menu.mobile-menu--open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Hidden by default on mobile — JS adds .mobile-menu--open */
    #topnav-menu:not(.mobile-menu--open):not(.mobile-menu--force-hidden) {
        visibility: hidden;
    }
    #topnav-menu.mobile-menu--open {
        visibility: visible;
    }

    /* Nav list — full width so items align left */
    #topnav-menu .site-nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    /* Top-level links */
    #topnav-menu .site-nav__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--yc-navy);
        border-radius: var(--global-border-radius);
        transition: background 0.15s ease, color 0.15s ease;
    }

    #topnav-menu .site-nav__link:hover {
        background: rgba(0, 0, 0, 0.04);
        color: var(--yc-primary-teal);
    }

    /* Chevron — rotate when parent is open */
    #topnav-menu .site-nav__item--has-children.mobile-open > .site-nav__link .topnav__chevron {
        transform: rotate(180deg);
    }
    .topnav__chevron {
        transition: transform 0.25s ease;
        flex-shrink: 0;
    }

    /* Divider between items */
    #topnav-menu .site-nav__item + .site-nav__item {
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    /* ── Sub-menu (dropdown) on mobile ── */
    #topnav-menu .site-nav__dropdown {
        display: none; /* collapsed by default */
        position: static;
        background: rgba(0, 0, 0, 0.02);
        border: none;
        box-shadow: none;
        padding: 0.25rem 0 0.5rem;
        border-radius: var(--global-border-radius);
        margin: 0 0 0.25rem;
        animation: none;
        opacity: 1;
        visibility: visible;
    }

    /* Parent with .mobile-open shows its dropdown */
    #topnav-menu .site-nav__item--has-children.mobile-open > .site-nav__dropdown {
        display: block;
    }

    #topnav-menu .site-nav__dropdown-link {
        display: block;
        padding: 0.6rem 1rem 0.6rem 2rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-muted);
        border-radius: var(--global-border-radius);
        transition: background 0.15s ease, color 0.15s ease;
        text-decoration: none;
    }

    #topnav-menu .site-nav__dropdown-link:hover,
    #topnav-menu .site-nav__dropdown-link.text-yc-teal {
        background: rgba(0, 0, 0, 0.04);
        color: var(--yc-primary-teal);
    }
}

/* ── Video Embed ── */
.video__embed {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: var(--global-border-radius); /* use default border radius */
    background: #000;
}

.video__iframe,
.video__element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Main Picture ── */
.page-mainpic {
    margin: 0 0 2rem;
}

.page-mainpic img {

    max-height: 300px;
    width: auto;
    display: block;
    border-radius: var(--global-border-radius); /* use default border radius */
}

.site-container {
    padding: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.alternated__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.alternated__image-column {
    flex: 1 1 400px;
}

.alternated__text-column {
    flex: 1 1 500px;
    position: relative;
    padding-left: 2rem;
}

.alternated__image .image-background img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Decorative Bubble behind the text */
.alternated__bubble {
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 250px;
    height: 250px;
    background-color: var(--accent-purple);
    border-radius: 50% 50% 50% 0;
    z-index: 0;
    transform: rotate(-15deg);
}

.alternated__row__column__cont {
    position: relative;
    z-index: 1;
}

.alternated__title {
    font-size: 2.5rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.alternated__text p {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.alternated__text ol {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.alternated__text ol li {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.alternated__text a {
    color: var(--accent-red);
    text-decoration: none;
    font-style: italic;
    font-size: 0.95rem;
}

.alternated__text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .alternated__row {
        flex-direction: column;
        gap: 2rem;
    }

    .alternated__text-column {
        padding-left: 0;
    }

    .alternated__bubble {
        left: 0;
        top: -1rem;
    }
}

/* ── Elemental Admin Edit Overlay ── */
/*
 * Appears on hover over any element section when logged in as admin.
 * The parent <section> must have class "ipyp-block" for the hover trigger.
 */
.ipyp-block {
    position: relative;
}

.ipyp-edit-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--global-border-radius); /* use default border radius */
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    pointer-events: none;
}

.ipyp-block:hover .ipyp-edit-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ipyp-edit-overlay:hover {
    background: var(--yc-primary-teal);
    color: #fff;
}

/* ── Audience Splash Modal ── */
.splash-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.splash-modal[hidden] {
    display: none;
}

.splash-modal.is-open {
    opacity: 1;
}

.splash-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 45, 64, 0.72);
    backdrop-filter: blur(6px);
}

.splash-modal__panel {
    position: relative;
    width: 100%;
    max-width: 880px;
    background: var(--yc-white);
    padding: 3rem 2rem;
    border-radius: var(--global-border-radius); /* use default border radius */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.splash-modal.is-open .splash-modal__panel {
    transform: translateY(0);
}

.splash-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 45, 64, 0.06);
    border: 0;
    border-radius: var(--global-border-radius); /* use default border radius */
    color: var(--yc-navy);
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.splash-modal__close:hover,
.splash-modal__close:focus-visible {
    background: var(--yc-navy);
    color: var(--yc-white);
    transform: rotate(90deg);
    outline: none;
}

.splash-modal__close svg {
    display: block;
}

.splash-modal__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--yc-navy);
    text-align: center;
    letter-spacing: -0.01em;
}

.splash-modal__intro {
    margin: 0 0 2rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
}

.splash-modal__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 720px) {
    .splash-modal__buttons {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }
    .splash-modal__panel {
        padding: 3.5rem 3rem;
    }
}

.splash-modal__btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 1.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    min-height: 160px;
    border-radius: var(--global-border-radius); /* use default border radius */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.splash-modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.splash-modal__btn--primary {
    background: var(--yc-pink);
    color: var(--yc-white);
}

.splash-modal__btn--secondary {
    background: var(--yc-gradient);
    color: var(--yc-white);
}

.splash-modal__btn-bg {
    position: absolute;
    top: 50%;
    right: -0.75rem;
    height: 130%;
    width: auto;
    max-width: 55%;
    object-fit: contain;
    object-position: right center;
    transform: translateY(-50%);
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* PageHeader decorative image — rendered as inline SVG by the template.
   The SVG uses an feColorMatrix filter to convert image luminance to
   alpha (white → transparent, dark → opaque), then masks a
   <rect fill="currentColor"> with it. currentColor is inherited from
   the section's text-color-{X} class so the line strokes match the
   chosen Page Header Text Colour exactly. */
.page-header__deco-img {
    display: block;
    width: 18rem;
    height: 14rem;
    max-width: 100%;
    opacity: 0.85;
    user-select: none;
    pointer-events: none;
    overflow: visible;
}

@media (max-width: 767px) {
    .page-header__deco-img {
        width: 6.5rem;
        height: 5rem;
        opacity: 0.55;
    }
}

.splash-modal__btn:hover .splash-modal__btn-bg {
    opacity: 0.5;
    transform: translateY(-50%) translateX(-4px);
}

.splash-modal__btn-text {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 65%;
}

.splash-modal__btn-arrow {
    position: relative;
    z-index: 1;
}

.splash-modal__btn-heading {
    display: block;
}

.splash-modal__btn-tagline {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.92;
}

.splash-modal__btn-arrow {
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.splash-modal__btn:hover .splash-modal__btn-arrow {
    transform: translateX(4px);
}

body.splash-modal-open {
    overflow: hidden;
}

/* ─── Global border-radius override — all rounded elements use --global-border-radius ───
   Update --global-border-radius in :root to change the entire site's corner style at once.
   Tailwind rounded-* utilities, named component classes, and .card are all covered here. */
.rounded,           /* bare `rounded` compiles to hardcoded 0.25rem — no token to override */
.rounded-sm,
.rounded-md,
.rounded-lg,
.rounded-xl,
.rounded-2xl,
.rounded-3xl,
/* .rounded-full and .rounded-r-2xl intentionally excluded:
   full = pill shapes, r-2xl = asymmetric (right corners only) */
.rounded-\[2rem\],
.rounded-\[2\.5rem\],
.rounded-\[3rem\],
.card,             /* general card utility class — use default border radius */
.quote-card,       /* use default border radius */
.advantage-card,
.article-card,
.vision-mission-card,
.challenge__quote-card,
.video-feature__frame,
.feature-card,
.project-page__video,
.membership-callout,
.split-content__quote-card,
.split-content__image-wrap,
.text-list-card,
.card-grid__panel,
.feature-grid__panel,
.element-video__frame,
.splash-modal__panel,
.splash-modal__btn,
.hero__btn,
.btn-pink-1,
.btn-pink-2 {
    border-radius: var(--global-border-radius) !important; /* use default border radius */
}

/* ── TinyMCE Layout Blocks (Live Styling) ── */
div.callout-box {
    background-color: #f7f7f7;
    border-left: 6px solid var(--brand-teal); /* yc-teal */
    padding: 1.5rem;
    margin: 1.5rem 0;
}

div.callout-box-pink {
    background-color: #FFF5F9; /* soft pink tint */
    border-left: 6px solid var(--brand-pink); /* yc-pink */
    padding: 1.5rem;
    margin: 1.5rem 0;
}

div.section-band-grey {
    background-color: #f7f7f7;
    padding: 2.5rem 1.5rem;
    margin: 2rem 0;
}

/* Two-column layout grid */
div.split-section {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}
div.split-section__text {
    flex: 1;
}
div.split-section__media {
    flex: 1;
}

/* Responsive columns for split-section */
@media (max-width: 768px) {
    div.split-section {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Sharp Bordered Image styles */
img.img-sharp {
    border-radius: 0 !important; /* Sharp corners */
    border: 1px solid rgba(0,0,0,0.1);
}

/* ─── General .card utility ─── */
/* Apply to any card-like container to get consistent padding, shadow and border-radius.
   Border-radius is controlled globally via --global-border-radius in :root. */
.card {
    border-radius: var(--global-border-radius); /* use default border radius */
    overflow: hidden;
}

/* ─── Premium Quote Card Component ─── */
.quote-card {
    position: relative;
    z-index: 10;
    padding: 3.5rem 3rem 3rem 3rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-top: 2rem;
    transition: all 0.3s ease;
    overflow: hidden; /* Keep everything contained */
}

/* NoCard modifier — removes border and shadow only; padding and layout are kept */
.quote-card--no-card {
    border: none !important;
    box-shadow: none !important;
}

/* Beautiful curly quote mark */
.quote-card__quote-mark {
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    font-family: var(--quote-font, 'Playfair Display', Georgia, serif);
    font-size: 9rem;
    line-height: 1;
    font-weight: 700;
    pointer-events: none;
}

.quote-card__text {
    position: relative;
    z-index: 2; /* Sit above the quote mark */
    font-family: var(--quote-font, 'Playfair Display', Georgia, serif);
    font-style: italic;
    font-size: 1.875em; /* text-3xl — em for proportional scaling */
    line-height: 1.375;
    font-weight: 700;
    margin-bottom: 2rem;
}

.quote-card__rule {
    position: relative;
    z-index: 2;
    height: 4px;
    width: 5rem; /* w-20 */
}

/* ─── Compact Quote Card — used inside MainContentSectionWithQuote ───
   Subordinate to the .quote-card component above; roughly half its size
   so it sits as a secondary callout under an image rather than dominating
   the section. Background/border/accent colours come from inline vars
   set by the template (HighlightCardColor, HighlightCardBorderColor,
   HighlightAccentColor). */
.main-content-quote {
    position: relative;
    z-index: 5;
    max-width: 50%;
    padding: 1.75rem 1.5rem 1.5rem 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-style: solid;
    box-shadow: 0 10px 14px -6px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
    overflow: hidden;
}

/* NoCard modifier — removes border and shadow only; padding and layout are kept */
.main-content-quote--no-card {
    border: none !important;
    box-shadow: none !important;
}

.main-content-quote__mark {
    position: absolute;
    top: -0.25rem;
    left: 0.4rem;
    font-family: var(--quote-font, 'Playfair Display', Georgia, serif);
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 700;
    pointer-events: none;
}

.main-content-quote__body {
    position: relative;
    z-index: 2;
}

.main-content-quote__text {
    font-family: var(--quote-font, 'Playfair Display', Georgia, serif);
    font-style: italic;
    font-size: 1.125em; /* text-lg — em for proportional scaling */
    line-height: 1.4;
    font-weight: 700;
    margin: 0 0 1rem;
}

.main-content-quote__rule {
    height: 2px;
    width: 2.5rem;
}

/* --- Color Schemes — values from colours.yml via :root vars --- */

/* solid-navy (default) */
.quote-card--solid-navy {
    background-color: var(--scheme-solid-navy);
    color: #ffffff;
}
.quote-card--solid-navy .quote-card__quote-mark {
    color: var(--scheme-solid-pink);
    opacity: 0.35;
}
.quote-card--solid-navy .quote-card__rule {
    background-color: var(--scheme-solid-pink);
}

/* solid-teal */
.quote-card--solid-teal {
    background-color: var(--scheme-solid-teal);
    color: #ffffff;
}
.quote-card--solid-teal .quote-card__quote-mark {
    color: #ffffff;
    opacity: 0.3;
}
.quote-card--solid-teal .quote-card__rule {
    background-color: #ffffff;
}

/* solid-pink */
.quote-card--solid-pink {
    background-color: var(--scheme-solid-pink);
    color: #ffffff;
}
.quote-card--solid-pink .quote-card__quote-mark {
    color: #ffffff;
    opacity: 0.3;
}
.quote-card--solid-pink .quote-card__rule {
    background-color: #ffffff;
}

/* solid-slate */
.quote-card--solid-slate {
    background-color: var(--scheme-solid-slate);
    color: #ffffff;
}
.quote-card--solid-slate .quote-card__quote-mark {
    color: #ffffff;
    opacity: 0.3;
}
.quote-card--solid-slate .quote-card__rule {
    background-color: #ffffff;
}

/* solid-cream */
.quote-card--solid-cream {
    background-color: var(--scheme-solid-cream);
    color: var(--scheme-dark);
    border-color: rgba(0, 0, 0, 0.08);
}
.quote-card--solid-cream .quote-card__quote-mark {
    color: var(--scheme-solid-teal);
    opacity: 0.3;
}
.quote-card--solid-cream .quote-card__rule {
    background-color: var(--scheme-solid-teal);
}

/* Gradients */
.quote-card--teal {
    background: var(--scheme-teal);
    color: #ffffff;
}
.quote-card--teal .quote-card__quote-mark {
    color: #ffffff;
    opacity: 0.3;
}
.quote-card--teal .quote-card__rule {
    background-color: #ffffff;
}

.quote-card--pink {
    background: var(--scheme-pink);
    color: #ffffff;
}
.quote-card--pink .quote-card__quote-mark {
    color: #ffffff;
    opacity: 0.3;
}
.quote-card--pink .quote-card__rule {
    background-color: #ffffff;
}

.quote-card--ocean {
    background: var(--scheme-ocean);
    color: #ffffff;
}
.quote-card--ocean .quote-card__quote-mark {
    color: #ffffff;
    opacity: 0.3;
}
.quote-card--ocean .quote-card__rule {
    background-color: #ffffff;
}

/* ─── Responsive Split Layout for Common Pages (Content + Quote Sidebar) ─── */
.page-layout-grid {
    display: flex;
    flex-direction: column; /* Mobile first: Quote card on top, content below */
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .page-layout-grid {
        flex-direction: row-reverse; /* Desktop: Content on left, quote card on right */
        justify-content: space-between;
        align-items: flex-start;
        gap: 4rem;
    }
    .page-layout-grid__main {
        flex: 1;
        max-width: 65%; /* Restricts the text line-length for optimal readability */
    }
    .page-layout-grid__sidebar {
        width: 360px;
        flex-shrink: 0;
        margin-top: 0;
    }
    /* Remove any margins inside the sidebar quote card so it aligns perfectly at the top */
    .page-layout-grid__sidebar .quote-card {
        margin-top: 0;
    }
}

/* Ensure Tailwind Typography prose inherits custom text-color classes */
[class*="text-color-"],
[class*="text-color-"] .prose,
[class*="text-color-"].prose {
    --tw-prose-body: currentColor;
    --tw-prose-headings: currentColor;
    --tw-prose-lead: currentColor;
    --tw-prose-bold: currentColor;
    --tw-prose-counters: currentColor;
    --tw-prose-bullets: currentColor;
    --tw-prose-quotes: currentColor;
    --tw-prose-captions: currentColor;

    /* Also override .typography (typography.css) which uses these vars
       for headings (--text-color) and paragraphs (--text-muted). */
    --text-color: currentColor;
    --text-muted: currentColor;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA Buttons — optional call-to-action buttons after content sections
   Colour is driven by scheme-* + text-color-* classes (same palette system).
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.75rem;
    border-radius: var(--global-border-radius);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    /* colour comes from .scheme-* (background) and .text-color-* (text) */
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    opacity: 0.92;
}

.cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.cta-btn:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── Article Page Meta Bar ───────────────────────────────────────────────── */
.article-page__meta {
    background: var(--brand-navy, #1a2d40);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-page__meta-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.article-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.article-page__breadcrumb a {
    color: var(--brand-teal, #2a9d8f);
    text-decoration: none;
    transition: color 0.15s ease;
}

.article-page__breadcrumb a:hover {
    color: #fff;
}

.article-page__breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    line-height: 1;
}

.article-page__breadcrumb span:last-child {
    color: rgba(255, 255, 255, 0.55);
}

.article-page__date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
}

/* ── Article Back Link ───────────────────────────────────────────────────── */
.article-page__back-link {
    color: var(--brand-teal, #2a9d8f);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease, color 0.15s ease;
}

.article-page__back-link:hover {
    gap: 0.7rem;
    color: var(--brand-navy, #1a2d40);
}

/* ── Video Section Caption ───────────────────────────────────────────────── */
.video-section__caption {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
    /* color: rgba(255, 255, 255, 0.55); */
    letter-spacing: 0.01em;
}

/* ── Footer brand logo — tinted to match page text colour ───────────────── */
/* Uses the same CSS mask technique as .site-header__logo--tinted, but fills
   with currentColor so it inherits from the footer's text-color-{key} class
   rather than the scheme/background tint. */
.site-footer__logo--tinted {
    display: block;
    aspect-ratio: 760 / 250;
    width: auto;
    background: currentColor;
    -webkit-mask-image: url('../images/logos/ipyp-wordmark.svg');
            mask-image: url('../images/logos/ipyp-wordmark.svg');
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: left center;
            mask-position: left center;
    -webkit-mask-size: contain;
            mask-size: contain;
}

@supports not ((-webkit-mask-image: url('')) or (mask-image: url(''))) {
    .site-footer__logo--tinted .site-footer__logo-fallback { display: block; }
}

/* ── Footer Logos ────────────────────────────────────────────────────────── */
/* Convert any logo colour to white via CSS — works for SVG and PNG.         */
.site-footer__logos-img {
    filter: brightness(0) invert(1);
    transition: opacity 0.2s ease;
}

.site-footer__logos-link:hover .site-footer__logos-img {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KnowledgeHubPage — table-style tag/page listing
   ═══════════════════════════════════════════════════════════════════════════ */

.knowledge-hub-page {
    background: #f9f9f7;
}

.knowledge-hub-page__inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ── Intro prose ── */
.knowledge-hub-page__intro {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.75;
}

/* ── Table wrapper ── */
.knowledge-hub-page__table-wrap {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ── Tag group (one "table" per tag) ── */
.knowledge-hub-page__tag-group {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--global-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ── Filter bar ── */
.knowledge-hub-page__filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--global-border-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.knowledge-hub-page__filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

/* Tag toggle pills */
.knowledge-hub-page__filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    /* Inactive default */
    background: rgba(0, 0, 0, 0.07);
    color: var(--text-muted, #666);
    opacity: 0.55;
    transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease, transform 0.15s ease;
}

.knowledge-hub-page__filter-tag:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

/* Active state — use the inline CSS vars injected by the template */
.knowledge-hub-page__filter-tag.is-active {
    background: var(--kh-btn-bg, var(--brand-teal));
    color: var(--kh-btn-color, #fff);
    opacity: 1;
}

.knowledge-hub-page__filter-tag.is-active:hover {
    opacity: 0.9;
}

/* Search field */
.knowledge-hub-page__filter-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 200px;
    flex-shrink: 0;
}

.knowledge-hub-page__search-icon {
    position: absolute;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    color: var(--text-muted, #888);
    pointer-events: none;
    flex-shrink: 0;
}

.knowledge-hub-page__search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--global-border-radius);
    font-size: 0.875rem;
    font-family: var(--font-family);
    color: var(--text-color, #1a1a1a);
    background: #f9f9f7;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    /* Remove browser default search cancel button on webkit */
    -webkit-appearance: none;
}

.knowledge-hub-page__search-input:focus {
    border-color: var(--brand-teal, #467d9b);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(70, 125, 155, 0.12);
}

.knowledge-hub-page__search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* "No results" row */
.knowledge-hub-page__no-results {
    margin: 0;
    padding: 0.8rem 1.5rem;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--text-muted, #888);
}

/* Responsive filter bar */
@media (max-width: 600px) {
    .knowledge-hub-page__filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .knowledge-hub-page__filter-search-wrap {
        min-width: 0;
    }
}

/* ── Tag header row (like a <thead>) ── */
.knowledge-hub-page__tag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
}

.knowledge-hub-page__tag-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Count badge */
.knowledge-hub-page__tag-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
}

/* ── Page list (tbody rows) ── */
.knowledge-hub-page__page-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.knowledge-hub-page__page-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.knowledge-hub-page__page-item:last-child {
    border-bottom: none;
}

/* ── Page link row ── */
.knowledge-hub-page__page-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem 0 0;
}

.knowledge-hub-page__page-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    padding: 0.9rem 0 0.9rem 1.5rem;
    text-decoration: none;
    color: var(--text-color, #1a1a1a);
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.knowledge-hub-page__page-row:hover .knowledge-hub-page__page-link {
    background: #f0f5f8;
    color: var(--brand-teal, #467d9b);
    padding-left: 1.85rem;
}

.knowledge-hub-page__page-title {
    flex: 1;
}

/* Arrow icon */
.knowledge-hub-page__page-arrow {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    color: var(--brand-teal, #467d9b);
}

.knowledge-hub-page__page-row:hover .knowledge-hub-page__page-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ── Inline attachment icons ── */
.knowledge-hub-page__attachments {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.knowledge-hub-page__attachment-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--brand-teal, #467d9b);
    opacity: 0.55;
    text-decoration: none;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.knowledge-hub-page__attachment-icon:hover {
    opacity: 1;
    color: var(--brand-navy, #1a2d40);
}

/* ── Custom tooltip ── */
.knowledge-hub-page__attachment-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 0.4rem 0.65rem;
    background: var(--brand-navy, #1a2d40);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 50;
}

.knowledge-hub-page__attachment-icon[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--brand-navy, #1a2d40);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 50;
}

.knowledge-hub-page__attachment-icon[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.knowledge-hub-page__attachment-icon[data-tooltip]:hover::before {
    opacity: 1;
}

.knowledge-hub-page__attachment-icon svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.knowledge-hub-page__attachment-icon svg text {
    font-family: var(--font-family, 'Inter', sans-serif);
}

/* Filename label — shown only when a single attachment exists */
.knowledge-hub-page__attachment-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted, #666);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 36ch;
    transition: color 0.15s ease;
}

.knowledge-hub-page__attachment-icon:hover .knowledge-hub-page__attachment-name {
    color: var(--brand-navy, #1a2d40);
}

/* ── Empty state ── */
.knowledge-hub-page__empty {
    color: var(--text-muted, #555);
    font-style: italic;
    padding: 2rem 0;
}

/* ── Boxes mode — card grid per tag group ── */
.knowledge-hub-page__page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 1.25rem;
    background: #f4f5f7; /* slightly recessed tray so cards "float" */
}

.knowledge-hub-page__page-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 3px solid var(--brand-teal, #2a9d8f); /* accent stripe */
    border-radius: var(--global-border-radius);
    background: #fff;
    text-decoration: none;
    color: var(--text-color, #1a1a1a);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-top-color 0.22s ease;
    cursor: pointer;
}

.knowledge-hub-page__page-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
    border-top-color: var(--brand-navy, #1a2d40);
    text-decoration: none;
}

/* ── Card body (title + summary) ── */
.knowledge-hub-page__page-card-body {
    flex: 1;
    min-height: 0;
    padding: 1.1rem 1.15rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* Cover image */
.knowledge-hub-page__page-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    flex-shrink: 0;
    padding: 0.5rem;
    background: #fff;
    box-sizing: border-box;
}

.knowledge-hub-page__page-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.knowledge-hub-page__page-card:hover .knowledge-hub-page__page-card-image img {
    transform: scale(1.04);
}

/* Title link reset */
.knowledge-hub-page__page-card-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.knowledge-hub-page__page-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--text-color, #1a1a1a);
    transition: color 0.18s ease;
    /* Truncate to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.knowledge-hub-page__page-card:hover .knowledge-hub-page__page-card-title {
    color: var(--brand-teal, #2a9d8f);
}

.knowledge-hub-page__page-card-summary {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-muted, #666);
    margin: 0;
    flex: 1;
    min-height: 0;
    /* Truncate to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Attachments section — always-visible file pills ── */
.knowledge-hub-page__page-card-files {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.6rem 1.15rem 0.7rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #f9fafb;
}

.knowledge-hub-page__page-card-file {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--brand-teal, #2a9d8f);
    text-decoration: none;
    line-height: 1.3;
    max-width: 100%;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.knowledge-hub-page__page-card-file:hover {
    background: var(--brand-teal, #2a9d8f);
    border-color: var(--brand-teal, #2a9d8f);
    color: #fff;
}

.knowledge-hub-page__page-card-file-icon {
    flex-shrink: 0;
    color: currentColor;
}

.knowledge-hub-page__page-card-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 28ch;
}

/* ── Footer row with arrow ── */
.knowledge-hub-page__page-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 1.15rem 0.75rem;
}

.knowledge-hub-page__page-card-arrow {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-teal, #2a9d8f);
    opacity: 0.2;
    display: inline-block;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.knowledge-hub-page__page-card:hover .knowledge-hub-page__page-card-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .knowledge-hub-page {
        padding: 2.5rem 1rem 4rem;
    }

    .knowledge-hub-page__page-row {
        padding-right: 1rem;
    }

    .knowledge-hub-page__page-link {
        padding: 0.8rem 0 0.8rem 1rem;
        font-size: 0.875rem;
    }

    .knowledge-hub-page__page-row:hover .knowledge-hub-page__page-link {
        padding-left: 1.35rem;
    }

    .knowledge-hub-page__tag-header {
        padding: 0.75rem 1rem;
    }
}

/* ── MultiVideo Desktop Grid Columns ── */
@media (min-width: 1024px) {
    .multi-video-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
    .multi-video-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .multi-video-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .multi-video-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
