/* ═══════════════════════════════════════════════════════════════════
   BCNB Portal – global stylesheet
   Covers: colour tokens, nav, home page sections, footer
   Note: .bcnb-topnav transparent-overlay override for the home page
         hero is kept in templates/home.html {% block styles %}
═══════════════════════════════════════════════════════════════════ */

/* ── Colour tokens ───────────────────────────────────────────────── */
:root {
    --bcnb-deep-teal:   #005C5D;
    --bcnb-core-pink:   #FC2F96;
    --bcnb-bright-teal: #00CCCC;
    --bcnb-warm-accent: #E8EB62;
    --bcnb-grey:        #b4b4b4;
    --bcnb-card-bg:     #ECECEC;
    --bcnb-card-bg-hover:#d9d9d9;
    --bcnb-black:       #3c3c3b;
    --rc-border: #e2e2e2;
    --rc-card: #f0f0f0;
    --bcnb-layout-max: 1440px;
    --bcnb-layout-gutter: 36px;
}

.bcn-main.bcnb-analytics-page {
    font-family: 'Red Hat Text', sans-serif;
}

a {
    transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, text-decoration-color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

a:hover,
a:focus-visible {
    color: #FC2F96;
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

#snpnexus-ref:hover,
#snpnexus-ref:focus-visible {
    color: inherit;
    text-decoration: underline;
    transition: color 0.35s ease, text-decoration-color 0.35s ease, opacity 0.35s ease;
}

.bcn-main:not(.bcnb-home-page) .m-breadcrumbs a:hover,
.bcn-main:not(.bcnb-home-page) .m-breadcrumbs a:focus-visible,
.bcn-main:not(.bcnb-home-page) .m-breadcrumbs a.focus-visible {
    color: rgba(255, 255, 255, var(--tw-text-opacity));
    text-decoration: underline;
}

/* ── Portal top nav ──────────────────────────────────────────────── */
.bcnb-topnav {
    background: rgba(255, 255, 255, 0.9);
    /* border-bottom: 1px solid #e0e0e0; */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    overflow: visible;
    width: auto;
    display: flex;
    align-items: center;
    /* backdrop-filter: blur(4px); */
    transition: background-color 0.7s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    /* max-width: 1440px; */
}

.bcnb-topnav__inner {
    max-width: none;
    width: min(100%, var(--bcnb-layout-max));
    margin: 0 auto;
    padding: 0 var(--bcnb-layout-gutter);
    box-sizing: border-box;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    position: relative;
    transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1), padding 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.bcnb-topnav__logo {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: none;
    z-index: 10;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 1.5rem;
    line-height: 0;
    transition: margin 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.bcnb-topnav__logo img {
    height: 149px;
    display: block;
    transform: none;
    left: auto;
    transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1), width 0.7s cubic-bezier(0.22, 1, 0.36, 1), padding 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bcnb-topnav__logo--small {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    max-width: none;
    z-index: 10;
    text-decoration: none;
}
.bcnb-topnav__logo--small img {
    height: 40px;
    padding-left: 0;
    display: block;
    transform: none;
}

.bcnb-topnav__logo--full {
    margin-right: 1.85rem;
    top: 6px;
    align-self: center;
}

.bcnb-topnav__logo--full img {
    height: auto;
    width: 170px;
    display: block;
    padding-top:27px;
}

.bcnb-topnav__actions {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-end;
}

body.bcnb-home-page .bcnb-topnav__actions {
    margin-top: 27px;
    background: rgba(255, 255, 255, 0.66);
    border-radius: 10px;
    padding: 12px 12px 12px 24px;
    /* transition: background-color 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease; */
}

body.bcnb-home-page .bcnb-topnav.bcnb-topnav--scrolled .bcnb-topnav__actions {
    margin-top: 0;
    background: transparent;
    padding: 0;
    backdrop-filter: none;
}

/* Slower, more noticeable transition for the initial full-logo reveal on page load. */
.bcnb-topnav--intro,
.bcnb-topnav--intro .bcnb-topnav__inner,
.bcnb-topnav--intro .bcnb-topnav__logo,
.bcnb-topnav--intro .bcnb-topnav__logo img,
.bcnb-topnav--intro .bcnb-topnav__actions {
    transition-duration: 1.6s !important;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.bcnb-home-page .bcnb-topnav__actions .bcnb-topnav__apply {
    height: 46px;
}

body:not(.bcnb-home-page) .bcnb-topnav__logo--full {
    top: 0;
}

body:not(.bcnb-home-page) .bcnb-topnav__logo--full img {
    padding-top: 0;
}

.bcnb-topnav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 0 1 auto;
    justify-content: flex-end;
}
.bcnb-topnav__link {
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, text-decoration-color 0.35s ease, opacity 0.35s ease;
    color: #005C5D;
    font-family:  "Red Hat Text", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 35px; /* 159.091% */
}
.bcnb-topnav__link:hover {
    color: #FC2F96;
    border-bottom-color: transparent;
    text-decoration: none !important;
    transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, opacity 0.35s ease;
}
.bcnb-topnav__link--active {
    color: #FC2F96;
    border-bottom-color: transparent;
}
.bcnb-topnav__apply {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin-left: 2rem;
    padding: 0 22px;
    height: 120px;
    background-image: url("/bcntb_static/branding/icons/button.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: transparent;
    color: #fff;
    font-family: 'Red Hat Text', sans-serif;
    font-weight: 500;
    font-size: 22px;
    text-decoration: none;
    white-space: nowrap;
    transition: filter 0.2s;
}
.bcnb-topnav__apply:hover {
    filter: brightness(0.88);
    color: #fff;
    text-decoration: none;
}
.bcnb-topnav__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
    margin-left: auto;
}
.bcnb-topnav__mobile {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 0.75rem 2rem 1rem;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    z-index: 1100;
}
.bcnb-topnav__mobile.is-open { display: flex; }
.bcnb-topnav__mobile-link {
   font-family: 'Red Hat Text', sans-serif;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.bcnb-topnav__mobile-link:last-child { border-bottom: none; }
.bcnb-topnav__mobile-apply { color: #FC2F96; font-weight: 700; }

/* ── Dropdown nav ────────────────────────────────────────────────── */
.bcnb-topnav__dropdown {
    position: relative;
}
.bcnb-topnav__dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: inherit;
}
.bcnb-topnav__toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, text-decoration-color 0.35s ease, opacity 0.35s ease;
}
.bcnb-topnav__dropdown-toggle:hover .bcnb-topnav__toggle-label {
    border-bottom-color: transparent;
    transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, opacity 0.35s ease;
}
.bcnb-topnav__link--active .bcnb-topnav__toggle-label {
    border-bottom-color: transparent;
}
.bcnb-topnav__chevron {
    transition: transform 0.2s;
    flex-shrink: 0;
}
.bcnb-topnav__dropdown-toggle[aria-expanded="true"] .bcnb-topnav__chevron {
    transform: rotate(180deg);
}
.bcnb-topnav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #005C5D;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
    padding: 0.4rem 0;
    display: block;
    z-index: 200;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.bcnb-topnav__dropdown-toggle[aria-expanded="true"] ~ .bcnb-topnav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}
.bcnb-topnav__dropdown-item {
    display: block;
    padding: 0.6rem 1.35rem;
   font-family: 'Red Hat Text', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}
.bcnb-topnav__dropdown-item:hover,
.bcnb-topnav__dropdown-item:focus {
    background: #f0fafa;
    color: #005C5D;
    border-left-color: #FC2F96;
    text-decoration: none;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
    /* outline: none; */
}
.bcnb-topnav__dropdown-item--active {
    color: #005C5D;
    border-left-color: #FC2F96;
    font-weight: 700;
}
/* Two-level flyout group */
.bcnb-topnav__dropdown-group {
    position: relative;
}
.bcnb-topnav__dropdown-group-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1.35rem;
    background: none;
    border: none;
    border-left: 3px solid transparent;
   font-family: 'Red Hat Text', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #005C5D;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s, border-color 0.1s;
}
.bcnb-topnav__dropdown-group:hover > .bcnb-topnav__dropdown-group-label {
    background: #f0fafa;
    border-left-color: #00CCCC;
}
.bcnb-topnav__dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 290px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #00CCCC;
    border-radius: 0 0 6px 6px;
    box-shadow: 6px 4px 24px rgba(0, 0, 0, 0.10);
    padding: 0.4rem 0;
    z-index: 300;
}
.bcnb-topnav__dropdown-group:hover > .bcnb-topnav__dropdown-submenu {
    display: block;
}
.bcnb-topnav__dropdown-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0.3rem 0;
}
/* Analytics Hub – button stretches to match its dropdown width */
.bcnb-topnav__dropdown--analytics {
    min-width: 0;
}
.bcnb-topnav__dropdown--analytics > .bcnb-topnav__dropdown-toggle {
    width: auto;
    justify-content: flex-start;
}
.bcnb-topnav__dropdown--analytics > .bcnb-topnav__dropdown-menu {
    left: 0;
    transform: none;
    min-width: 180px;
}
/* Mobile dropdown */
.bcnb-topnav__mobile-group {
    display: flex;
    flex-direction: column;
}
.bcnb-topnav__mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
   font-family: 'Red Hat Text', sans-serif;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.bcnb-topnav__mobile-subitems {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.bcnb-topnav__mobile-subitems.is-open {
    display: flex;
}
.bcnb-topnav__mobile-sublink {
   font-family: 'Red Hat Text', sans-serif;
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f5f5f5;
}
.bcnb-topnav__mobile-sublink:last-child { border-bottom: none; }
.bcnb-topnav__mobile-sublink:hover { color: #005C5D; text-decoration: none; }
.bcnb-topnav__mobile-section-label {
   font-family: 'Red Hat Text', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #005C5D;
    padding: 0.5rem 0 0.1rem;
    display: block;
    text-decoration: none;
}

@media (max-width: 990px) {
    body:not(.bcnb-home-page) .bcnb-topnav__links,
    body:not(.bcnb-home-page) .bcnb-topnav__apply { display: none; }
    body:not(.bcnb-home-page) .bcnb-topnav__hamburger { display: block; }
}

@media (max-width: 720px) {
    .bcnb-topnav__links,
    .bcnb-topnav__apply { display: none; }
    .bcnb-topnav__hamburger { display: block; }
}

/* ── Home page wrapper ───────────────────────────────────────────── */
.bcnb-home,
.bcnb-home * {font-family: 'Red Hat Text', sans-serif; box-sizing: border-box; }

/* ── Hero ────────────────────────────────────────────────────────── */
.bcnb-hero {
    position: relative;
    overflow: hidden;
    background: #111;
    line-height: 0;
    height: 85vh;
}
.bcnb-hero__slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.bcnb-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
.bcnb-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.bcnb-hero__slide--active {
    opacity: 1;
}
.bcnb-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.18) 0%, transparent 55%);
    pointer-events: none;
}
.bcnb-hero__content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(100%, var(--bcnb-layout-max));
    padding-left: var(--bcnb-layout-gutter);
    padding-right: var(--bcnb-layout-gutter);
    box-sizing: border-box;
    line-height: 1;
}
.bcnb-hero__title {
    font-weight: 600;
    font-size: clamp(1.9rem, 6vw, 3.8rem);
    line-height: 0.92;
    color: var(--bcnb-core-pink);
    text-transform: uppercase;
    margin: 0 0 0.55rem;
    letter-spacing: -1.5px;
}
.bcnb-hero__powered {
    font-weight: 100;
    font-size: clamp(0.84rem, 1.6vw, 1.05rem);
    color: var(--bcnb-core-pink);
    margin: 0 0 1.1rem;
    line-height: 1.4;
}
.bcnb-hero__powered a { color: var(--bcnb-core-pink); text-decoration: none; font-weight: 600; }
.bcnb-hero__powered a:hover { 
    text-decoration: underline !important; 
    color: #FC2F96;
    transition: color 0.35s ease, text-decoration-color 0.35s ease, opacity 0.35s ease;
}
.bcnb-hero__scroll-wrap {
    position: absolute;
    z-index: 3;
    bottom: 1.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(100%, var(--bcnb-layout-max));
    padding-left: var(--bcnb-layout-gutter);
    padding-right: var(--bcnb-layout-gutter);
    box-sizing: border-box;
}
.bcnb-hero__dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 1.8rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    line-height: 0;
}
.bcnb-hero__dot {
    width: 16px;
    height: 16px;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    opacity: 0.95;
}
.bcnb-hero__dot img {
    display: block;
    width: 100%;
    height: 100%;
}
.bcnb-hero__dot:focus-visible {
    outline: 2px solid var(--bcnb-core-pink);
    outline-offset: 4px;
}

.bcnb-hero__scroll,
.bcnb-intro__scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    width: clamp(30px, 4.5vw, 80px);
    height: clamp(30px, 4.5vw, 80px);
    line-height: 0;
    flex-shrink: 0;
    overflow: visible;
}
.bcnb-intro__scroll {
    margin-left: auto;
}

.bcnb-hero__scroll:hover,
.bcnb-intro__scroll:hover { opacity: 1; }

.bcnb-hero__scroll img,
.bcnb-intro__scroll img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* ── Two-column intro ────────────────────────────────────────────── */
.bcnb-intro {
    background: #fff;
    padding: 3.5rem 0;
}
.bcnb-intro__inner {
    max-width: var(--bcnb-layout-max);
    width: 100%;
    margin: 0 auto;
    padding-left: var(--bcnb-layout-gutter);
    padding-right: var(--bcnb-layout-gutter);
    box-sizing: border-box;
    display: flex;
    gap: 0;
    align-items: flex-start;
}
.bcnb-intro__lead { flex: 0 0 30%; padding-right: 4rem; }
.bcnb-intro__lead-text {
    color: var(--bcnb-core-pink);
    margin: 0 0 2rem;
    font-family: "Red Hat Text";
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 35px; /* 109.375% */
}
.bcnb-intro__body { flex: 1; border-left: 1px solid var(--bcnb-deep-teal); padding-left: 4rem; position: relative; }
.bcnb-intro__body p {
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    color: #444;
    line-height: 1.8;
    margin: 0 0 1rem;
}
.bcnb-intro__body a, .cb-public-intro-columns a { color: var(--bcnb-deep-teal); font-weight: 600; text-decoration: none; }
.bcnb-intro__body a:hover, .cb-public-intro-columns a:hover { 
    text-decoration: none; 
    color: #FC2F96;
}

/* ── Feature cards ───────────────────────────────────────────────── */
.bcnb-features {
    background: #fff;
    padding: 2rem 0;
}
.bcnb-features__inner {
    max-width: var(--bcnb-layout-max);
    width: 100%;
    margin: 0 auto;
    padding-left: var(--bcnb-layout-gutter);
    padding-right: var(--bcnb-layout-gutter);
    box-sizing: border-box;
}
.bcnb-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.bcnb-card {
    background: var(--bcnb-card-bg);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 1.75rem 1.5rem 1.25rem;
    min-height: 260px;
    transition: filter 0.2s;
}
.bcnb-card:hover {
    filter: brightness(0.90);
    text-decoration: none;
    color: inherit;
}
.bcnb-card__title {
    color: #FC2F96;
    font-size: clamp(36px, 2.35vw, 40px);
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin: 0 0 0.9rem;
    font-style: normal;
    font-weight: 700;
    line-height: 45px; /* 112.5% */
}
.bcnb-card__desc {
    font-size: clamp(0.86rem, 1vw, 0.95rem);
    color: var(--bcnb-deep-teal);
    line-height: 1.65;
    flex: 1;
    margin: 0;
}
.bcnb-card__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1.5rem;
}
.bcnb-card__icon img {
    width: clamp(52px, 6.2vw, 73px);
    height: clamp(52px, 6.2vw, 73px);
    object-fit: contain;
    opacity: 0.65;
}
.bcnb-card__arrow {
    width: 109px;
    flex: 0 0 auto;
    overflow: visible;
}

.bcnb-card__arrow img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    /* Keep 109px at 768px and scale down smoothly on smaller screens. */
    .bcnb-card__arrow {
        width: clamp(42px, 12vw, 66px);
        display: block;
        opacity: 1;
        flex: 0 0 auto;
    }

    .bcnb-card__arrow img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* ── Analytics Hub pages ────────────────────────────────────────── */
.analytics-main,
.analytics-subpage {
    padding: 0 0 3.25rem;
}

.analytics-main .research-catalogue-hero,
.analytics-subpage .research-catalogue-hero {
    padding-left: 0;
    padding-right: 0;
}

.analytics-main .research-catalogue-hero__inner,
.analytics-subpage .research-catalogue-hero__inner {
    width: min(100%, var(--bcnb-layout-max));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bcnb-layout-gutter);
    padding-right: var(--bcnb-layout-gutter);
    box-sizing: border-box;
}

.analytics-main .research-catalogue-hero__title,
.analytics-subpage .research-catalogue-hero__title {
    margin: 0;
}

.analytics-main__hero-subtitle,
.analytics-subpage__hero-subtitle {
    color: #FC2F96;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 35px;
}

.analytics-main__hero-subtitle,
.analytics-subpage__hero-subtitle {
    margin: 10px 0 20px;
    /* margin-bottom: 20px; */
}

.analytics-main__hero-subtitle a,
.analytics-subpage__hero-subtitle a {
    color: #FC2F96;
    font-weight: 500;
    text-decoration: none;
}

.analytics-main__hero-subtitle a:hover,
.analytics-main__hero-subtitle a:focus-visible,
.analytics-subpage__hero-subtitle a:hover,
.analytics-subpage__hero-subtitle a:focus-visible {
    text-decoration: underline;
}

.analytics-main__intro,
.analytics-subpage__intro,
.analytics-main__cards,
.analytics-subpage__cards {
    max-width: var(--bcnb-layout-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--bcnb-layout-gutter);
    padding-right: var(--bcnb-layout-gutter);
    box-sizing: border-box;
}

.analytics-main__intro,
.analytics-subpage__intro {
    margin-top: 0;
    margin-bottom: 0;
}

.analytics-main__cards,
.analytics-subpage__cards {
    margin-top: 100px;
    margin-bottom: 0;
}

.analytics-main__intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.35rem;
    row-gap: 0.9rem;
}

.analytics-main__intro p,
.analytics-subpage__intro p {
    margin: 0;
    color: var(--bcnb-black);
    text-align: left;
    font-style: normal;
    font-weight: 400;
}

.analytics-main__intro p {
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 34px;
}

.analytics-subpage__intro p {
    font-size: 24px;
    line-height: 34px;
}

.analytics-main__cards-grid,
.analytics-subpage__cards-grid {
    display: grid;
    gap: 1rem;
}

.analytics-main__cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-main__cards-grid .bcnb-card {
    min-height: 380px;
}

.analytics-main__cards-grid .bcnb-card__title {
    min-height: 90px;
}

.analytics-main__cards-grid .bcnb-card__desc,
.analytics-subpage__cards-grid .bcnb-card__desc {
    color: var(--bcnb-deep-teal);
    font-size: clamp(20px, 1.2vw, 24px);
    font-style: normal;
    font-weight: 500;
    line-height: 30px;
}

.analytics-main__cards-grid .bcnb-card__bottom,
.analytics-subpage__cards-grid .bcnb-card__bottom {
    justify-content: flex-end;
    margin-top: 1.2rem;
}

.analytics-subpage--public .analytics-subpage__cards-grid,
.analytics-subpage--icgc .analytics-subpage__cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-subpage--public .analytics-subpage__cards-grid .bcnb-card {
    min-height: 575px;
}

.analytics-subpage--icgc .analytics-subpage__cards-grid .bcnb-card {
    min-height: 285px;
}

.analytics-subpage--bcnb .analytics-subpage__cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-subpage--bcnb .analytics-subpage__cards-grid .bcnb-card {
    min-height: 410px;
}

@media (max-width: 1275px) {
    .analytics-subpage--bcnb .analytics-subpage__cards-grid .bcnb-card {
        min-height: 490px;
    }
}

@media (max-width: 1200px) {
    .analytics-subpage--public .analytics-subpage__intro p,
    .analytics-subpage--bcnb .analytics-subpage__intro p {
        font-size: 22px;
    }

    .analytics-subpage--public .analytics-subpage__cards-grid,
    .analytics-subpage--icgc .analytics-subpage__cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 990px) {
    .analytics-subpage .research-catalogue-hero {
        padding-top: 100px;
    }

    .analytics-subpage__hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 0.5rem;
    }

    .analytics-subpage--public .analytics-subpage__intro p,
    .analytics-subpage--bcnb .analytics-subpage__intro p {
        font-size: 18px;
        line-height: 1.5;
    }
}

@media (max-width: 900px) {
    .analytics-main__intro-grid,
    .analytics-main__cards-grid,
    .analytics-subpage__cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .analytics-main__intro,
    .analytics-main__cards,
    .analytics-subpage__intro,
    .analytics-subpage__cards {
        padding-left: 24px;
        padding-right: 24px;
    }

    .analytics-main__cards,
    .analytics-subpage__cards {
        margin-top: 1.6rem;
    }

    .analytics-subpage--public .analytics-subpage__cards-grid,
    .analytics-subpage--bcnb .analytics-subpage__cards-grid {
        grid-template-columns: 1fr;
    }

    .analytics-subpage--public .analytics-subpage__intro p,
    .analytics-subpage--bcnb .analytics-subpage__intro p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .analytics-main__intro,
    .analytics-main__cards,
    .analytics-subpage__intro,
    .analytics-subpage__cards {
        padding-left: 12px;
        padding-right: 12px;
    }

    .analytics-subpage .research-catalogue-hero {
        padding-top: 82px;
    }

    .analytics-subpage__hero-subtitle {
        font-size: 14px;
    }
}

.bcnb-arrow-swap {
    transform-origin: center;
    transition: transform 0.2s ease;
}

.bcnb-arrow-swap:hover,
.bcnb-arrow-swap:focus,
.bcnb-card:hover .bcnb-arrow-swap,
.bcnb-card:focus-within .bcnb-arrow-swap,
.bcnb-hero__scroll:hover .bcnb-arrow-swap,
.bcnb-hero__scroll:focus .bcnb-arrow-swap,
.bcnb-intro__scroll:hover .bcnb-arrow-swap,
.bcnb-intro__scroll:focus .bcnb-arrow-swap {
    transform: translateX(6px) scaleX(1.1) scaleY(1.2);
}

.bcnb-arrow-swap.bcnb-arrow-rotate-90:hover,
.bcnb-arrow-swap.bcnb-arrow-rotate-90:focus,
.bcnb-hero__scroll:hover .bcnb-arrow-swap.bcnb-arrow-rotate-90,
.bcnb-hero__scroll:focus .bcnb-arrow-swap.bcnb-arrow-rotate-90,
.bcnb-intro__scroll:hover .bcnb-arrow-swap.bcnb-arrow-rotate-90,
.bcnb-intro__scroll:focus .bcnb-arrow-swap.bcnb-arrow-rotate-90 {
    transform: rotate(90deg) translateX(6px) scaleX(1.1) scaleY(1.2);
}

/* ── Stats + Citations ───────────────────────────────────────────── */
.bcnb-lower {
    background: #fff;
    padding: 3.5rem 0;
}
.bcnb-lower__inner {
    max-width: var(--bcnb-layout-max);
    width: 100%;
    margin: 0 auto;
    padding-left: var(--bcnb-layout-gutter);
    padding-right: var(--bcnb-layout-gutter);
    box-sizing: border-box;
    display: flex;
    gap: 0;
    align-items: flex-start;
}

@media (max-width: 1439px) {
    :root {
        --bcnb-layout-gutter: 32px;
    }
}

@media (max-width: 959px) {
    :root {
        --bcnb-layout-gutter: 24px;
    }
}

@media (max-width: 720px) {
    :root {
        --bcnb-layout-gutter: 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --bcnb-layout-gutter: 12px;
    }
}
.bcnb-stats {
    flex: 0 0 28%;
    padding-right: 3rem;
}
.bcnb-stats__heading {
    font-weight: 700;
    font-size: clamp(0.9rem, 1.35vw, 1.02rem);
    color: var(--bcnb-deep-teal);
    margin: 0 0 1.5rem;
    letter-spacing: 0.03em;
}
.bcnb-stat { margin: 0 0 1.1rem; }
.bcnb-stat__number {
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    line-height: 1;
    color: var(--bcnb-core-pink);
    margin: 0;
}
.bcnb-stat__label {
    font-weight: 700;
    font-size: clamp(0.82rem, 1.1vw, 0.96rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bcnb-core-pink);
    margin: 0.2rem 0 0;
}
.bcnb-stats__more {
    display: inline-flex;
    text-decoration: none;
    margin-top: 0;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.bcnb-stats__more:hover { opacity: 1; }
.bcnb-stats__more img {
    height: clamp(30px, 3.2vw, 40px);
    width: auto;
    display: block;
}
.bcnb-citations {
    flex: 1;
    border-left: 1px solid var(--bcnb-deep-teal);
    padding-left: 3rem;
}
.bcnb-citations__heading {
    font-weight: 700;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: #222;
    margin: 0 0 0.9rem;
}
.bcnb-citations__text {
    font-size: clamp(0.82rem, 1.05vw, 0.92rem);
    color: #555;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}
.bcnb-citations__text a { color: var(--bcnb-deep-teal); text-decoration: none; font-weight: 600; }
.bcnb-citations__text a:hover { 
    text-decoration: none; 
    color: #FC2F96; 
}

/* ── Footer CTA ──────────────────────────────────────────────────── */
.bcnb-footer-cta {
    background: var(--bcnb-bright-teal);
    margin-top: 80px;
    padding: 58px 0 162px;
}
.bcnb-footer-cta__inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}
.bcnb-footer-cta__text {
    font-weight: 700;
    font-size: 50px;
    line-height: 35px;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
    color: var(--bcnb-deep-teal);
   font-family: 'Red Hat Text', sans-serif;
}
.bcnb-footer-cta__text span {
    display: block;
    color: #fff;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: auto;
    text-decoration-thickness: 14%; /* 7px */
    text-underline-offset: auto;
    text-underline-position: from-font;
}
.bcnb-footer-cta__text span a { color: #fff; text-decoration: none;font-family: 'Red Hat Text', sans-serif; font-weight: 600; }
.bcnb-footer-cta__text span a:hover { opacity: 0.85; }
.bcnb-footer-cta__icon {
    opacity: 0.85;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bcnb-footer-cta__icon img {
    display: block;
    height: 98px;
    width: auto;
    max-width: 100%;
}

/* ── Footer links ────────────────────────────────────────────────── */
.bcnb-footer-links {
    background: var(--bcnb-bright-teal);
    padding: 0 0 30px;
}
.bcnb-footer-links__inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
}
.bcnb-footer-links__cols { 
    display: inline-flex;
    align-items: center;
    gap: 118px;
}
.bcnb-footer-links__col { flex: 0 0 auto; }
.bcnb-footer-links__heading {
    font-weight: 700;
    font-size: 24px;
    line-height: 35px;
    text-transform: none;
    color: var(--bcnb-deep-teal);
    margin: 0 0 0.75rem;
    letter-spacing: 0;
   font-family: 'Red Hat Text', sans-serif;
}
.bcnb-footer-links__list { list-style: none; margin: 0; padding: 0; }
.bcnb-footer-links__list li { margin: 0 0 0.4rem; }
.bcnb-footer-links__list a {
    font-size: 24px;
    line-height: 35px;
    color: var(--bcnb-deep-teal);
    text-decoration: none;
   font-family: 'Red Hat Text', sans-serif;
}
.bcnb-footer-links__list a:hover { color: #fff; text-decoration: underline; }
.bcnb-footer-links__funded {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: end;
    align-self: center;
    transform: translateX(16px);
}
.bcnb-footer-links__funded-label {
    color: #3C3C3B;
    margin-bottom: 0.4rem;
    font-family: 'Red Hat Text', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 166.667% */
    margin-bottom: 10px;
}
.bcnb-footer-links__funded-img { 
    height: 98px; 
    width: auto;
    display: block; 
}

/* ── Footer copyright ────────────────────────────────────────────── */
.bcnb-footer-copyright {
    background: var(--bcnb-bright-teal);
    padding: 1rem 0 1.5rem;
}
.bcnb-footer-copyright__inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
    font-size: 24px;
    line-height: 35px;
    color: var(--bcnb-deep-teal);
    font-family: 'Red Hat Text', sans-serif;
}

/* ── Home page desktop typography overrides ─────────────────────── */

/* Keep global topnav font-size breakpoints aligned with home page. */
@media (max-width: 1439px) {
    .bcnb-topnav__link,
    .bcnb-topnav__toggle-label {
        font-size: 18px;
        line-height: 28px;
    }

    .bcnb-topnav__apply {
        font-size: 18px;
    }
}

@media (max-width: 1220px) {
    .bcnb-topnav__link,
    .bcnb-topnav__toggle-label {
        font-size: 14px;
        line-height: 28px;
    }

    .bcnb-topnav__apply {
        font-size: 14px;
    }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .bcnb-topnav__logo--full img {
        height: 140px;
        width: auto;
        display: block;
        padding-top:10px;
    }
    .bcnb-topnav__links {
        gap: 1.35rem;
    }
    .bcnb-topnav__apply {
        padding: 0 2.7rem 0 1.45rem;
        height: 48px;
    }
    .bcnb-intro__lead { padding-right: 2.4rem; }
    .bcnb-intro__body { padding-left: 2.4rem; }
    .bcnb-footer-cta { margin-top: 40px; padding: 58px 0 110px; }
    .bcnb-footer-cta__text { font-size: 36px; line-height: 27px; }
    .bcnb-footer-links__heading,
    .bcnb-footer-links__list a,
    .bcnb-footer-copyright__inner { font-size: 18px; line-height: 27px; }
}

@media (max-width: 959px) {
    .bcnb-topnav__logo--full img {
        height: 140px;
        width: auto;
        padding-top: 10px;
    }
    .bcnb-topnav__links {
        gap: 0.95rem;
    }
    .bcnb-topnav__apply {
        padding: 0 2.15rem 0 1.15rem;
        height: 44px;
    }
    .bcnb-hero { height: 72vh; }
    .bcnb-hero__content { transform: translate(-50%, -50%); }
    .bcnb-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bcnb-intro__inner { flex-direction: column; gap: 1.75rem; }
    .bcnb-intro__lead { flex: 1 1 auto; width: 100%; padding-right: 0; }
    .bcnb-intro__body { border-left: none; border-top: 1px solid var(--bcnb-deep-teal); padding-left: 0; padding-top: 1.5rem; }
    .bcnb-lower__inner { flex-direction: column; gap: 1.75rem; }
    .bcnb-stats { flex: 1 1 auto; width: 100%; padding-right: 0; }
    .bcnb-citations { border-left: none; padding-left: 0; border-top: 1px solid #ddd; padding-top: 1.5rem; }
    .bcnb-footer-cta { margin-top: 28px; padding: 46px 0 96px; }
    .bcnb-footer-cta__inner,
    .bcnb-footer-links__inner,
    .bcnb-footer-copyright__inner { padding-left: 24px; padding-right: 24px; }
    .bcnb-footer-links__heading,
    .bcnb-footer-links__list a,
    .bcnb-footer-copyright__inner { font-size: 16px; line-height: 24px; }
}
@media (max-width: 990px) {
    body:not(.bcnb-home-page),
    body.bcnb-analytics-page {
        .bcnb-topnav {
            min-height: 74px;
        }
        .bcnb-topnav__links {
            display: none;
        }
        .bcnb-topnav__apply {
            display: inline-flex;
            margin-left: auto;
            margin-right: 0.75rem;
            padding: 0 2.2rem 0 1.15rem;
            height: 42px;
            font-size: 0.83rem;
        }
        .bcnb-topnav__inner {
            height: 74px;
        }
        .bcnb-topnav__logo,
        .bcnb-topnav__logo--small {
            position: relative;
            top: auto;
            left: auto;
            transform: none;
            max-width: none;
            z-index: 20;
            margin-right: 1rem;
        }
        .bcnb-topnav__logo img,
        .bcnb-topnav__logo--small img {
            height: 40px;
            width: auto;
            display: block;
            transform: none;
            left: auto;
        }
        .bcnb-topnav__logo--full img {
            height: 54px;
            width: auto;
            padding-top: 5px;
        }
        .bcnb-topnav__hamburger {
            display: block;
            margin-left: 0;
            margin-right: 0.2rem;
        }
        .bcnb-topnav__mobile {
            padding: 0.65rem 1rem 0.9rem;
        }
        .bcnb-topnav__mobile-apply {
            display: none;
        }
        .bcnb-topnav__mobile-link,
        .bcnb-topnav__mobile-toggle {
            font-size: 0.9rem;
        }
    }
    body:not(.bcnb-home-page) .research-catalogue-hero {
        padding-top: 100px;
    }
    body:not(.bcnb-home-page) .research-catalogue-hero__title {
        font-size: clamp(28px, 5.5vw, 52px);
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    body:not(.bcnb-home-page) .research-catalogue-hero__copy {
        font-size: 18px;
        line-height: 1.5;
        width: 100%;
    }
    body:not(.bcnb-home-page) .about-page {
        padding-top: 74px;
    }
}

@media (max-width: 720px) {
    .bcnb-topnav {
        min-height: 74px;
    }
    .bcnb-topnav__links {
        display: none;
    }
    .bcnb-topnav__apply {
        display: inline-flex;
        margin-left: auto;
        margin-right: 0.75rem;
        padding: 0 2.2rem 0 1.15rem;
        height: 42px;
        font-size: 0.83rem;
    }
    .bcnb-topnav__inner {
        height: 74px;
    }
    .bcnb-topnav__logo,
    .bcnb-topnav__logo--small {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        max-width: none;
        z-index: 20;
        margin-right: 1rem;
    }
    .bcnb-topnav__logo img,
    .bcnb-topnav__logo--small img {
        height: 40px;
        width: auto;
        display: block;
        transform: none;
        left: auto;
    }
    .bcnb-topnav__logo--full img {
        height: 54px;
        width: auto;
        padding-top: 5px;
    }
    .bcnb-topnav__hamburger {
        display: block;
        margin-left: 0;
        margin-right: 0.2rem;
    }
    .bcnb-topnav__mobile {
        padding: 0.65rem 1rem 0.9rem;
    }
    .bcnb-topnav__mobile-apply {
        display: none;
    }
    .bcnb-topnav__mobile-link,
    .bcnb-topnav__mobile-toggle {
        font-size: 0.9rem;
    }
    .bcnb-topnav__mobile-sublink {
        font-size: 0.84rem;
    }
    .bcnb-hero { height: 62vh; min-height: 430px; }
    .bcnb-hero__title { letter-spacing: -0.5px; }
    .bcnb-intro__scroll { width: 34px; height: 34px; margin-left: 0; margin-top: 0.4rem; }
    .bcnb-hero__scroll { width: 34px; }
    .bcnb-hero__scroll { height: 34px; }
    .bcnb-hero__scroll img { width: 100%; }
    .bcnb-features__grid { grid-template-columns: 1fr; gap: 1rem; }
    .bcnb-card { min-height: 220px !important; padding: 1.15rem 1rem 1rem; }
    .bcnb-card__bottom { margin-top: 1.1rem; }
    .bcnb-stats__heading { margin-bottom: 1rem; }
    .bcnb-stat { margin-bottom: 0.9rem; }
    .bcnb-footer-cta { margin-top: 22px; padding: 30px 0 48px; }
    .bcnb-footer-cta__text { font-size: 26px; line-height: 24px; }
    .bcnb-footer-cta__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
    .bcnb-footer-cta__text { text-align: left; }
    .bcnb-footer-cta__icon { justify-self: end; align-self: end; }
    .bcnb-footer-links  { padding: 0 0 24px; }
    .bcnb-footer-links__inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; }
    .bcnb-footer-links__cols { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    .bcnb-footer-links__funded { justify-self: end; align-items: flex-end; align-self: center; transform: translateX(0); }
    .bcnb-footer-cta__inner,
    .bcnb-footer-links__inner,
    .bcnb-footer-copyright__inner { padding-left: 16px; padding-right: 16px; }
    .bcnb-footer-links__heading,
    .bcnb-footer-links__list a,
    .bcnb-footer-copyright__inner { font-size: 14px; line-height: 20px; }

    body.bcnb-home-page .bcnb-topnav__inner{
        padding: 0 var(--bcnb-layout-gutter);
    }
}

@media (max-width: 480px) {
    .bcnb-topnav {
        min-height: 66px;
    }
    .bcnb-topnav__apply {
        margin-right: 0.45rem;
        padding: 0 1.75rem 0 0.9rem;
        height: 38px;
        font-size: 0.78rem;
    }
    .bcnb-topnav__inner {
        height: 74px;
        padding: 0 var(--bcnb-layout-gutter);
    }
    .bcnb-topnav__logo,
    .bcnb-topnav__logo--small {
        margin-right: 0.75rem;
    }
    .bcnb-topnav__logo img,
    .bcnb-topnav__logo--small img {
        height: 30px;
        display: block;
    }
    .bcnb-topnav__logo--full img {
        height: 54px;
        padding-top: 5px;
    }
    .bcnb-topnav__mobile-link,
    .bcnb-topnav__mobile-toggle { font-size: 0.86rem; }
    .bcnb-topnav__mobile-sublink { font-size: 0.8rem; }
    .bcnb-hero { height: 58vh; min-height: 380px; }
    .bcnb-hero__title { font-size: clamp(1.75rem, 10vw, 2.35rem); }
    .bcnb-hero__powered { line-height: 1.35; }
    .bcnb-intro__scroll { width: 30px; height: 30px; }
    .bcnb-card__icon img { width: 50px; height: 50px; }
    .bcnb-hero__scroll { width: 30px; }
    .bcnb-hero__scroll { height: 30px; }
    .bcnb-hero__scroll img { width: 100%; }
    .analytics-subpage--public .analytics-subpage__cards-grid .bcnb-card {
        min-height: 200px;
    }
    .analytics-subpage--bcnb .analytics-subpage__cards-grid .bcnb-card {
        min-height: 200px;
    }
    .bcnb-card { min-height: 200px; }
    .bcnb-footer-cta { padding-left: 1rem; padding-right: 1rem; }
    .bcnb-footer-cta__inner { column-gap: 0.75rem; }
    .bcnb-footer-cta__text { font-size: clamp(1.9rem, 9vw, 2.2rem); }
    .bcnb-footer-links { padding-left: 1rem; padding-right: 1rem; }
    .bcnb-footer-links__inner { column-gap: 0.75rem; }
}

/* Home page topnav overrides moved from templates/home.html */
body.bcnb-home-page .bcnb-topnav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important;
    border-bottom: none !important;
    transition: background-color 0.8s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.bcnb-home-page .bcnb-topnav.bcnb-topnav--scrolled {
    background: rgba(255, 255, 255, 0.88) !important;
    /* border-bottom: 1px solid #e0e0e0 !important; */
    /* box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08); */
}


@media (min-width: 721px) {
    /* body.bcnb-home-page .bcnb-topnav:not(.bcnb-topnav--scrolled) {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 68%, rgba(255, 255, 255, 0) 100%) !important;
        backdrop-filter: blur(4px);
    } */

    body.bcnb-home-page .bcnb-topnav .bcnb-topnav__logo--full {
        margin-top: 80px;
    }
}

@media (max-width: 1439px) {
    body.bcnb-home-page .bcnb-topnav__logo--full img {
        padding-top: 27px;
    }

    body.bcnb-home-page .bcnb-topnav__inner {
        /* max-width: 1200px;
        width: 100%; */
        margin: 0 auto;
        padding: 0 var(--bcnb-layout-gutter);
    }

    body.bcnb-home-page .bcnb-topnav__links {
        gap: 2.2rem;
    }

    body.bcnb-home-page .bcnb-topnav__link,
    body.bcnb-home-page .bcnb-topnav__toggle-label {
        font-size: 18px;
        line-height: 28px;
    }

    body.bcnb-home-page .bcnb-topnav__apply {
        margin-left: 1.2rem;
        font-size: 18px;
        height: 92px;
        padding: 0 18px;
    }
}

@media (max-width: 1220px) {
    body.bcnb-home-page .bcnb-topnav__links {
        gap: 2rem;
    }

    body.bcnb-home-page .bcnb-topnav__link,
    body.bcnb-home-page .bcnb-topnav__toggle-label {
        font-size: 14px;
        line-height: 28px;
    }

    body.bcnb-home-page .bcnb-topnav__apply {
        margin-left: 1rem;
        font-size: 14px;
        height: 92px;
        padding: 0 18px;
    }

    body.bcnb-home-page .bcnb-topnav__dropdown--analytics {
        min-width: 0;
    }

    body.bcnb-home-page .bcnb-topnav__logo--full img {
        height: 140px;
        width: auto;
        padding-top: 10px;
    }
}

@media (max-width: 1069px) {
    body.bcnb-home-page .bcnb-topnav__actions {
        flex: 0 0 auto;
        margin-left: auto;
        padding: 5px 6px;
        background: none;
        margin-top: 0;
    }

    body.bcnb-home-page .bcnb-topnav {
        background: linear-gradient(to bottom, rgba(0, 92, 93, 0.72), rgba(0, 92, 93, 0.08)) !important;
        /* backdrop-filter: blur(2px); */
    }

    body.bcnb-home-page .bcnb-topnav__links {
        display: none !important;
    }

    body.bcnb-home-page .bcnb-topnav__apply {
        display: inline-flex !important;
        margin-left: auto !important;
        margin-right: 1.5rem !important;
        padding: 0 1.85rem 0 1rem;
        height: 42px;
        font-size: 0.83rem;
    }

    body.bcnb-home-page .bcnb-topnav__hamburger {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.bcnb-home-page .bcnb-topnav__inner {
        height: 74px;
        padding: 0 var(--bcnb-layout-gutter);
    }

    body.bcnb-home-page .bcnb-topnav__logo--small img {
        height: 40px;
    }
}

@media (max-width: 720px) {
    body.bcnb-home-page .bcnb-topnav__inner {
        padding: 0 var(--bcnb-layout-gutter);
    }

    body.bcnb-home-page .bcnb-topnav__logo--full img {
        height: 50px;
        width: auto;
        padding-top: 0;
    }
}

    .bcnb-arrow-swap:hover,
    .bcnb-arrow-swap:focus,
    .bcnb-arrow-swap:focus-visible,
    .bcnb-hero__scroll:hover .bcnb-arrow-swap,
    .bcnb-hero__scroll:focus .bcnb-arrow-swap,
    .bcnb-hero__scroll:focus-visible .bcnb-arrow-swap,
    .bcnb-intro__scroll:hover .bcnb-arrow-swap,
    .bcnb-intro__scroll:focus .bcnb-arrow-swap,
    .bcnb-intro__scroll:focus-visible .bcnb-arrow-swap,
    .bcnb-card:hover .bcnb-arrow-swap,
    .bcnb-card:focus-within .bcnb-arrow-swap {
        content: url('../branding/icons/arrow_pink.svg');
    }

/* Styles for the research catalogue page */

.research-catalogue {
  --bcnb-core-pink: #fc2f96;
  --bcnb-deep-teal: #005c5d;
  --bcnb-bright-teal: #00c7cc;
  --bcnb-black: #3c3c3b;
  --bcnb-card-bg: #ececec;
  --rc-border: #e2e2e2;
  --rc-card: #f0f0f0;
  background: #ffffff;
  color: var(--bcnb-black);
  font-family: "Red Hat Text", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  margin: 0 auto;
}

.research-catalogue img {
  display: block;
  max-width: 100%;
}

.research-catalogue-header {
  display: flex;
  justify-content: center;
  padding: 22px 24px 10px;
}

.research-catalogue-header__brand {
    width: min(100%, var(--bcnb-layout-max));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.research-catalogue-header__logo {
  width: 118px;
  height: auto;
}

.research-catalogue-header__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 72px;
  font-size: 18px;
  line-height: 1;
}

.research-catalogue-header__nav a {
  color: var(--bcnb-deep-teal);
  text-decoration: none;
  white-space: nowrap;
}

.research-catalogue-header__cta {
  justify-self: end;
  background: var(--bcnb-core-pink);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 0 0 0 18px;
  font-size: 18px;
  white-space: nowrap;
}

.research-catalogue-hero {
  display: flex;
  justify-content: center;
    padding: 187px 0 10px;
}

.research-catalogue-hero__inner {
    width: min(100%, var(--bcnb-layout-max));
    padding-left: var(--bcnb-layout-gutter);
    padding-right: var(--bcnb-layout-gutter);
    box-sizing: border-box;
}

.research-catalogue-hero__title {
  margin: 0 0 56px;
  color: var(--bcnb-core-pink);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 80px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.research-catalogue-hero__copy {
  width: min(900px, 100%);
  margin: 0;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 34px; /* 141.667% */
  color: var(--bcnb-black);
}

.research-catalogue-overview {
  display: flex;
  justify-content: center;
    padding: 48px 0 20px;
}

.research-catalogue-overview details {
    width: min(100%, var(--bcnb-layout-max));
    padding-left: var(--bcnb-layout-gutter);
    padding-right: var(--bcnb-layout-gutter);
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.3s ease;
}

.research-catalogue-overview summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  background: var(--bcnb-deep-teal);
  color: #ffffff;
  text-align: center;
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
  padding: 18px 18px;
  border-radius: 10px;
  position: relative;
  text-transform: uppercase;
    max-width: none;
  margin: 0;
  transition: background-color 0.35s ease, transform 0.35s ease;
}

.research-catalogue-overview summary::-webkit-details-marker {
  display: none;
}

.research-catalogue-overview__toggle {
  position: absolute;
  right: 18px;
  top: 50%;
    width: 22px;
    height: 14px;
    background-color: #ffffff;
    -webkit-mask: url('../branding/icons/polygon.svg') no-repeat center / contain;
    mask: url('../branding/icons/polygon.svg') no-repeat center / contain;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s ease;
}

.research-catalogue-overview summary:hover .research-catalogue-overview__toggle {
    background-color: var(--bcnb-core-pink);
}

.research-catalogue-overview details[open] .research-catalogue-overview__toggle {
    transform: translateY(-50%) rotate(180deg);
}

.research-catalogue-overview details .research-catalogue-overview__visuals {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.research-catalogue-overview details[open] .research-catalogue-overview__visuals {
  opacity: 1;
  transform: translateY(0);
}

.research-catalogue-overview__visuals {
  display: flex;
  gap: 14px;
  align-items: stretch;
  justify-content: center;
  background: #ffffff;
  padding: 16px 0 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.research-catalogue-overview__figure {
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--rc-border);
  overflow: hidden;
  position: relative;
}

.research-catalogue-overview__figure figcaption {
  padding: 14px 16px 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bcnb-black);
  text-align: center;
}

.research-catalogue-overview__figure--small {
  width: 35%;
}

.research-catalogue-overview__figure--large {
  width: 65%;
}

.research-catalogue-listings {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
    max-width: var(--bcnb-layout-max);
  margin: 18px auto 96px;
    padding: 0 var(--bcnb-layout-gutter);
}

.research-catalogue-filters {
  background: var(--bcnb-card-bg);
  padding: 28px 18px 24px;
  min-height: 1000px;
}

.research-catalogue-filters h2, .research-catalogue-upload__title {
  margin: 0 0 26px;
  color: var(--bcnb-core-pink);
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  text-transform: uppercase;
}

.research-catalogue-filters h3 {
  margin: 32px 0 14px;
  color: var(--bcnb-deep-teal);
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
}

.research-catalogue-filters__form {
  display: grid;
  gap: 18px;
}

.research-catalogue-year-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: -8px;
}

.research-catalogue-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--bcnb-deep-teal);
  font-size: 18px;
  line-height: 1.6;
}

.research-catalogue-check input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--bcnb-deep-teal);
  background: #D9D9D9;
}

.research-catalogue-filters input[type="text"],
.research-catalogue-filters input[type="number"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--rc-border);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 16px;
  background: #ffffff;
  margin-top: -18px;
}

.research-catalogue-year-range input[type="number"] {
    margin-top: 0;
}

.research-catalogue-filters input[type="text"]::placeholder,
.research-catalogue-filters input[type="number"]::placeholder {
    font-size: 13px;
}

.research-catalogue-filters input[type="number"]::-webkit-outer-spin-button,
.research-catalogue-filters input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.research-catalogue-filters input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}


.research-catalogue-filters {
    background: transparent;
    padding: 0;
    min-height: 0;
}

.research-catalogue-filter-panel {
    background: var(--bcnb-card-bg);
    padding: 30px;
}

.research-catalogue-upload {
    margin-top: 42px;
    padding: 30px;
    background: var(--bcnb-card-bg);
}

.research-catalogue-upload__title {
    margin: 0 0 8px;
    color: #e4007d;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.research-catalogue-upload__text {
    color: var(--bcnb-deep-teal);
    font-family: "Red Hat Text";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px; 
}

.research-catalogue-upload__text a {
    color: inherit;
    text-decoration: underline;
}

.research-catalogue-upload__button {
    display: inline-block;
    margin-top: 14px;
    padding: 7px 14px;
    border: 0;
    background: var(--bcnb-deep-teal);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
}

.research-catalogue-results {
  position: relative;
  padding-left: 16px;
}

.research-catalogue-results::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: #3C3C3B;
}

.research-catalogue-results__count {
    grid-column: 1 / -1;
    text-align: right;
    color: var(--bcnb-deep-teal);
    margin-bottom: 12px;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px; /* 138.889% */
}

.research-catalogue-results__cards {
  display: grid;
  gap: 22px;
}

.research-catalogue-card {
  background: var(--bcnb-card-bg);
  border-radius: 15px;
  padding: 22px 26px 20px;
  min-height: 190px;
}

.research-catalogue-card__category {
  display: block;
  color: var(--bcnb-core-pink);
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 25px;
  font-weight: 700;
}

.research-catalogue-card__title {
  display: block;
  color: var(--bcnb-deep-teal);
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 25px;
}

.research-catalogue-card__meta {
  color: var(--bcnb-deep-teal);
  font-size: 18px;
  line-height: 25px;
  margin-bottom: 4px;
  font-weight: 400;
}

.research-catalogue-card--empty {
  display: grid;
  align-content: center;
}

.research-catalogue-card--empty h3 {
  margin: 0 0 8px;
  color: var(--bcnb-deep-teal);
}

.research-catalogue-card--empty p {
  margin: 0;
  color: var(--bcnb-black);
}

.research-catalogue-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--bcnb-deep-teal);
  font-size: 16px;
  flex-wrap: wrap;
}

.research-catalogue-pagination a,
.research-catalogue-pagination span {
  color: var(--bcnb-deep-teal);
  text-decoration: none;
}

.research-catalogue-pagination a:hover,
.research-catalogue-pagination a:focus-visible {
    color: var(--bcnb-core-pink);
}

.research-catalogue-pagination__pages {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.research-catalogue-pagination__pages a,
.research-catalogue-pagination__pages span {
  min-width: 28px;
  text-align: center;
}

.research-catalogue-pagination__pages [aria-current="page"] {
    font-weight: 700;
}

.research-catalogue-cta {
  background: #08c7cc;
  padding: 32px 24px 42px;
}

.research-catalogue-cta__inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.research-catalogue-cta h3 {
  margin: 0;
  color: var(--bcnb-deep-teal);
  font-size: 50px;
  line-height: 0.95;
  font-weight: 700;
  text-transform: uppercase;
}

.research-catalogue-cta a {
  color: #ffffff;
  text-decoration: underline;
  font-size: 50px;
  line-height: 0.95;
  font-weight: 700;
  text-transform: uppercase;
}

.research-catalogue-cta__upload {
  margin-left: auto;
  font-size: 24px !important;
  text-transform: none !important;
  text-decoration: none !important;
  background: var(--bcnb-core-pink);
  padding: 12px 22px;
  border-radius: 4px;
  align-self: flex-end;
}

@media (max-width: 1440px) {
  .research-catalogue-listings{
        padding: 18px var(--bcnb-layout-gutter) 72px;
    margin: 0;
  }

  .research-catalogue-overview{
        padding: 48px var(--bcnb-layout-gutter) 20px;
  }
}

@media (max-width: 1200px) {
  .research-catalogue-header__brand {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .research-catalogue-header__nav,
  .research-catalogue-header__cta {
    justify-self: start;
  }

  .research-catalogue-listings {
    grid-template-columns: 1fr;
        padding: 0 var(--bcnb-layout-gutter);
  }

  .research-catalogue-filters {
    min-height: 0;
    border-right: 0;
  }

  .research-catalogue-results::before {
    display: none;
  }

  .research-catalogue-results {
    padding-left: 0;
  }

  .research-catalogue-overview__visuals {
    flex-direction: column;
  }

  .research-catalogue-overview__figure--small,
  .research-catalogue-overview__figure--large {
    width: 100%;
  }

  .research-catalogue-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .research-catalogue-header,
    .research-catalogue-hero {
        padding-top: 90px;
    }

    .research-catalogue-header,
  .research-catalogue-hero,
  .research-catalogue-overview,
  .research-catalogue-listings,
  .research-catalogue-cta {
        padding-left: var(--bcnb-layout-gutter);
        padding-right: var(--bcnb-layout-gutter);
  }

  .research-catalogue-header__nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .research-catalogue-header__cta {
    font-size: 16px;
  }

  .research-catalogue-hero__copy {
    font-size: 18px;
  }

  .research-catalogue-overview summary {
    font-size: 18px;
  }

  .research-catalogue-card {
    padding: 18px;
  }

  .research-catalogue-cta h3,
  .research-catalogue-cta a {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .research-catalogue-header,
    .research-catalogue-hero {
        padding-top: 82px;
    }

    .research-catalogue-header,
  .research-catalogue-hero,
  .research-catalogue-overview,
  .research-catalogue-listings,
  .research-catalogue-cta {
    padding-left: 12px;
    padding-right: 12px;
  }

  .research-catalogue-hero__title {
        font-size: 28px;
        line-height: 1.1;
        margin-bottom: 0.75rem;
  }

  .research-catalogue-overview summary {
    font-size: 14px;
  }

  .research-catalogue-overview__visuals {
    flex-direction: column;
  }

  .research-catalogue-overview__figure,
  .research-catalogue-overview__figure--small,
  .research-catalogue-overview__figure--large {
    width: 100%;
  }
}
/* Home Page Overrides (migrated from templates/home.html) */
body.bcnb-home-page {
    margin: 0;
    padding: 0;
}

/* strip default padding from the base .main-content wrapper on all portal pages */
.bcn-main .main-content { padding: 0 !important; margin: 0 !important; }
body.bcnb-home-page .main-content { padding: 0 !important; margin: 0 !important;}

.bcnb-arrow-rotate-90 {
    display: inline-block;
    transform: rotate(90deg);
}

/*
 * Figma export alignment and typography mapping for the current home content.
 * Content structure remains unchanged; only layout/typography values are remapped.
 */
.bcn-main.bcnb-home-page {
    --figma-w: var(--bcnb-layout-max);
    --figma-gutter: var(--bcnb-layout-gutter);
    --figma-footer-gutter: 32px;
    --figma-split: 484px;
    --figma-card-gap: 34px;
    --figma-divider-x: calc(
        var(--figma-gutter)
        + ((var(--figma-w) - (2 * var(--figma-gutter))) / 3)
        - (var(--figma-card-gap) / 6)
    );
    --figma-pink: #fc2f96;
    --figma-teal: #005c5d;
    --figma-black: #3c3c3b;
}

.bcn-main.bcnb-home-page .bcnb-home {
    --figma-w: var(--bcnb-layout-max);
    --figma-gutter: var(--bcnb-layout-gutter);
    --figma-footer-gutter: 32px;
    --figma-split: 484px;
    --figma-card-gap: 34px;
    --figma-divider-x: calc(
        var(--figma-gutter)
        + ((var(--figma-w) - (2 * var(--figma-gutter))) / 3)
        - (var(--figma-card-gap) / 6)
    );
    --figma-pink: #fc2f96;
    --figma-teal: #005c5d;
    --figma-black: #3c3c3b;
}

.bcn-main.bcnb-home-page .bcnb-topnav__inner {
    max-width: var(--figma-w);
    width: min(100%, var(--figma-w));
    margin: 0 auto;
    padding-left: var(--figma-gutter);
    padding-right: var(--figma-gutter);
    box-sizing: border-box;
}

.bcn-main.bcnb-home-page .bcnb-topnav {
    /* Keep fixed nav width in sync with document content width when a scrollbar is present. */
    width: calc(100vw - (100vw - 100%));
}

.bcn-main.bcnb-home-page .bcnb-home,
.bcn-main.bcnb-home-page .bcnb-home * {
    font-family: "Red Hat Text", "Red Hat Text-Regular", sans-serif;
    letter-spacing: 0;
}

.bcn-main.bcnb-home-page .bcnb-hero__content,
.bcn-main.bcnb-home-page .bcnb-hero__scroll-wrap,
.bcn-main.bcnb-home-page .bcnb-intro__inner,
.bcn-main.bcnb-home-page .bcnb-features__inner,
.bcn-main.bcnb-home-page .bcnb-lower__inner,
.bcn-main.bcnb-home-page .bcnb-footer-cta__inner,
.bcn-main.bcnb-home-page .bcnb-footer-links__inner,
.bcn-main.bcnb-home-page .bcnb-footer-copyright__inner {
    max-width: var(--figma-w);
    width: 100%;
    margin: 0 auto;
    justify-content: flex-start;
    padding: 0;
    align-items: center;
}

.bcn-main.bcnb-home-page .bcnb-hero {
    height: 800px;
}

.bcn-main.bcnb-home-page .bcnb-hero__content {
    top: 299px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(100%, var(--figma-w));
    max-width: none;
    padding-left: var(--figma-gutter);
    padding-right: var(--figma-gutter);
}

.bcn-main.bcnb-home-page .bcnb-hero__title {
    font-weight: 700;
    font-size: 80px;
    line-height: 80px;
    color: var(--figma-pink);
    text-transform: uppercase;
    font-family: "Red Hat Text";
    font-style: normal;
    margin-left: -4px;

}

.bcn-main.bcnb-home-page .bcnb-hero__powered {
    /* margin-top: 20px; */
    color: var(--figma-pink);
    font-family: "Red Hat Text";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 35px; /* 175% */
}

.bcn-main.bcnb-home-page .bcnb-hero__powered a {
    color: inherit;
    font-weight: 500;
    text-decoration: none;
}

.bcn-main.bcnb-home-page .bcnb-hero__scroll-wrap {
    left: 50%;
    right: auto;
    bottom: 42px;
    transform: translateX(-50%);
    width: min(100%, var(--figma-w));
    max-width: none;
    padding-left: var(--figma-gutter);
    padding-right: var(--figma-gutter);
}

.bcn-main.bcnb-home-page .bcnb-hero__scroll {
    width: 109px;
    height: 103px;
}

.bcn-main.bcnb-home-page .bcnb-intro {
    padding: 50px 0 0;
    background: #fff;
}

.bcn-main.bcnb-home-page .bcnb-intro__inner {
    align-items: stretch;
    padding: 0 var(--figma-gutter);
    text-align: left;
}

.bcn-main.bcnb-home-page .bcnb-intro__lead {
    flex: 0 0 calc(((100% - (2 * var(--figma-card-gap))) / 3) + (var(--figma-card-gap) / 2));
    display: flex;
    flex-direction: column;
    padding-right: 35px;
}

.bcn-main.bcnb-home-page .bcnb-intro__lead-text {
    max-width: 432px;
    margin: 0;
    font-weight: 400;
    font-size: 32px;
    line-height: 35px;
    color: var(--figma-pink);
}

.bcn-main.bcnb-home-page .bcnb-intro__scroll {
    margin-top: auto;
    margin-left: 0;
    width: 109px;
    height: 103px;
}

.bcn-main.bcnb-home-page .bcnb-intro__body {
    border-left: 1px solid #bcbcbc;
    padding-left: 35px;
    margin-left: 0;
}

.bcn-main.bcnb-home-page .bcnb-intro__body p {
    margin: 0 0 20px;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    color: var(--figma-black);
}

.bcn-main.bcnb-home-page .bcnb-features {
    /* padding: 86px 0 0; */
    margin-top: 163px;
    padding: 0;
}

.bcn-main.bcnb-home-page .bcnb-features__inner {
    padding: 0 var(--figma-gutter);
}

.bcn-main.bcnb-home-page .bcnb-features__grid {
    gap: var(--figma-card-gap);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bcn-main.bcnb-home-page .bcnb-card {
    min-height: 430px;
    padding: 29px 26px;
    background: #ececec;
}

.bcn-main .bcnb-card__title {
    margin: 0 0 28px;
    font-weight: 700;
    font-size: 50px;
    line-height: 45px;
    color: var(--bcnb-core-pink);
}

.bcn-main.bcn-main.bcnb-home-page .bcnb-card__title{
    font-size: 50px;
    line-height: 45px;
}

.bcn-main .bcnb-card__desc {
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    color: var(--bcnb-deep-teal);
}

.bcn-main.bcnb-home-page .bcnb-card__bottom {
    margin-top: 18px;
}

.bcn-main.bcnb-home-page .bcnb-card__arrow img {
    width: 109px;
    height: 103px;
}

.bcn-main.bcnb-home-page .bcnb-lower {
    padding: 163px 0 0;
}

.bcn-main.bcnb-home-page .bcnb-lower__inner {
    padding: 0 var(--figma-gutter);
    align-items: flex-start;
}

.bcn-main.bcnb-home-page .bcnb-stats {
    flex: 0 0 calc(((100% - (2 * var(--figma-card-gap))) / 3) + (var(--figma-card-gap) / 2));
    padding-right: 0;
}

.bcn-main.bcnb-home-page .bcnb-stats__heading {
    margin: 0 0 22px;
    color: var(--figma-teal);
    font-weight: 500;
    font-size: 24px;
    line-height: 30px;
    text-transform: none;
    letter-spacing: 0;
}

.bcn-main.bcnb-home-page .bcnb-stat {
    margin-bottom: 28px;
}

.bcn-main.bcnb-home-page .bcnb-stat__number {
    font-weight: 700;
    font-size: 48px;
    line-height: 35px;
    color: var(--figma-pink);
    margin: 0;
}

.bcn-main.bcnb-home-page .bcnb-stat__label {
    margin-top: 10px;
    margin-bottom: 34px;
    font-weight: 700;
    font-size: 24px;
    line-height: 35px;
    color: var(--figma-pink);
    text-transform: uppercase;
    letter-spacing: 0;
}

.bcn-main.bcnb-home-page .bcnb-citations {
    border-left: 1px solid #bcbcbc;
    padding-left: 35px;
    margin-left: 0;
}

.bcn-main.bcnb-home-page .bcnb-citations__heading,
.bcn-main.bcnb-home-page .bcnb-citations__text {
    font-size: 24px;
    line-height: 30px;
}

.bcn-main.bcnb-home-page .bcnb-citations__heading {
    margin: 0 0 14px;
    color: var(--figma-black);
    font-weight: 700;
}

.bcn-main.bcnb-home-page .bcnb-citations__text {
    color: var(--figma-black);
    font-weight: 400;
    margin: 0 0 14px;
}

.bcn-main.bcnb-home-page .bcnb-footer-cta {
    margin-top: 80px;
    padding: 58px 0 162px;
}

.bcn-main.bcnb-home-page .bcnb-footer-cta__inner,
.bcn-main.bcnb-home-page .bcnb-footer-links__inner,
.bcn-main.bcnb-home-page .bcnb-footer-copyright__inner {
    padding-left: 68px;
    padding-right: 68px;
}

.bcn-main.bcnb-home-page .bcnb-footer-cta__text {
    font-weight: 700;
    font-size: 50px;
    line-height: 35px;
    letter-spacing: 0;
    text-align: left;
}

.bcn-main.bcnb-home-page .bcnb-footer-links {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 30px;
}

.bcn-main.bcnb-home-page .bcnb-footer-links__heading,
.bcn-main.bcnb-home-page .bcnb-footer-links__list a,
.bcn-main.bcnb-home-page .bcnb-footer-copyright__inner {
    font-size: 24px;
    line-height: 35px;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
}
.bcnb-footer-links__funded-label{
    color: #3C3C3B;
    font-family: "Red Hat Text";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 166.667% */
}

.bcn-main.bcnb-home-page .bcnb-footer-links__funded-img {
    height: 98px;
}

.bcn-main.bcnb-home-page .bcnb-footer-copyright {
    padding-left: 0;
    padding-right: 0;
}

.bcn-main.bcnb-home-page .bcnb-footer-cta__inner,
.bcn-main.bcnb-home-page .bcnb-footer-links__inner,
.bcn-main.bcnb-home-page .bcnb-footer-copyright__inner {
    max-width: var(--figma-w);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--figma-footer-gutter);
    padding-right: var(--figma-footer-gutter);
    box-sizing: border-box;
}

@media (max-width: 1439px) {
    .bcn-main.bcnb-home-page,
    .bcn-main.bcnb-home-page .bcnb-home {
        --figma-w: var(--bcnb-layout-max);
        --figma-gutter: var(--bcnb-layout-gutter);
        --figma-footer-gutter: 32px;
        --figma-split: 420px;
        --figma-card-gap: 28px;
    }

    .bcn-main.bcnb-home-page .bcnb-features__inner {
        padding: 0 auto;
    }

    .bcn-main.bcnb-home-page .bcnb-hero {
        height: 78vh;
        min-height: 620px;
    }

    .bcn-main.bcnb-home-page .bcnb-hero__content {
        top: 220px;
    }

    .bcn-main.bcnb-home-page .bcnb-hero__title {
        font-size: 62px;
        line-height: 62px;
    }

    .bcn-main.bcnb-home-page .bcnb-intro__lead-text,
    .bcn-main.bcnb-home-page .bcnb-intro__body p,
    .bcn-main .bcnb-card__desc,
    .bcn-main.bcnb-home-page .bcnb-citations__heading,
    .bcn-main.bcnb-home-page .bcnb-citations__text {
        font-size: 18px;
        line-height: 26px;
    }

    .bcn-main .bcnb-card__title, .bcn-main.bcn-main.bcnb-home-page .bcnb-card__title {
        font-size: 36px;
        line-height: 34px;
    }

    .bcn-main.bcnb-home-page .bcnb-stats__heading,
    .bcn-main.bcnb-home-page .bcnb-stat__label,
    .bcn-main.bcnb-home-page .bcnb-footer-cta__text,
    .bcn-main.bcnb-home-page .bcnb-footer-links__heading,
    .bcn-main.bcnb-home-page .bcnb-footer-links__list a,
    .bcn-main.bcnb-home-page .bcnb-footer-copyright__inner {
        font-size: 18px;
        line-height: 27px;
    }

    .bcn-main.bcnb-home-page .bcnb-footer-links__funded-label {
        font-size: 18px;
    }

    .bcn-main.bcnb-home-page .bcnb-stat__number {
        font-size: 36px;
        line-height: 30px;
    }
    .bcn-main.bcnb-home-page .bcnb-footer-cta__text{
        font-size: 36px;
    }
    .bcn-main.bcnb-home-page .bcnb-footer-cta {
        margin-top: 40px;
        padding: 58px 0 110px;
    }
    .bcn-main.bcnb-home-page .bcnb-intro__lead-text{
        font-size: 22px;
        line-height: 35px;
    }
}

@media (max-width: 1220px) {
}
@media (max-width: 1069px) {
    .bcn-main.bcnb-home-page .bcnb-home {
        --figma-w: var(--bcnb-layout-max);
        --figma-gutter: var(--bcnb-layout-gutter);
        --figma-footer-gutter: 24px;
        --figma-card-gap: 22px;
        --figma-divider-x: 50%;
    }

    .bcn-main.bcnb-home-page .bcnb-hero {
        height: 72vh;
        min-height: 540px;
    }

    .bcn-main.bcnb-home-page .bcnb-hero__content {
        top: 192px;
    }

    .bcn-main.bcnb-home-page .bcnb-hero__title {
        font-size: 54px;
        line-height: 54px;
    }

    .bcn-main.bcnb-home-page .bcnb-hero__powered {
        font-size: 18px;
        line-height: 28px;
    }

    .bcn-main.bcnb-home-page .bcnb-intro__inner,
    .bcn-main.bcnb-home-page .bcnb-lower__inner {
        flex-direction: column;
        gap: 20px;
    }

    .bcn-main.bcnb-home-page .bcnb-intro__lead,
    .bcn-main.bcnb-home-page .bcnb-stats {
        flex: 1 1 auto;
        max-width: none;
        min-width: 0;
    }

    .bcn-main.bcnb-home-page .bcnb-intro__body,
    .bcn-main.bcnb-home-page .bcnb-citations {
        flex: 1 1 auto;
        min-width: 0;
    }

    .bcn-main.bcnb-home-page .bcnb-intro__body,
    .bcn-main.bcnb-home-page .bcnb-citations {
        border-left: none;
        border-top: none;
        padding-left: 0;
        padding-top: 0;
        margin-left: 0;
    }

    .bcn-main.bcnb-home-page .bcnb-hero__scroll-wrap,
    .bcn-main.bcnb-home-page .bcnb-intro__scroll {
        display: none;
    }

    .bcn-main.bcnb-home-page .bcnb-card__arrow {
        display: block;
        width: clamp(42px, 12vw, 66px);
        opacity: 1;
    }

    .bcn-main.bcnb-home-page .bcnb-card__arrow img {
        width: 100%;
        height: auto;
        display: block;
    }

    .bcn-main.bcnb-home-page .bcnb-features {
        margin-top: 32px;
    }

    .bcn-main.bcnb-home-page .bcnb-lower {
        padding-top: 48px;
    }

    .bcn-main.bcnb-home-page .bcnb-features__inner {
        padding: 0 var(--figma-gutter);
    }

    .bcn-main.bcnb-home-page .bcnb-features__grid {
        grid-template-columns: 1fr;
        gap: var(--figma-card-gap);
    }

    .bcn-main.bcnb-home-page .bcnb-card {
        min-height: 300px;
        padding: 22px 18px;
    }

    .bcn-main.bcnb-home-page .bcnb-footer-cta__text {
        font-size: 36px;
        line-height: 32px;
    }

    .bcn-main.bcnb-home-page .bcnb-footer-links__inner,
    .bcn-main.bcnb-home-page .bcnb-footer-copyright__inner,
    .bcn-main.bcnb-home-page .bcnb-footer-cta__inner {
        padding-left: var(--figma-gutter);
        padding-right: var(--figma-gutter);
    }

    .bcn-main.bcnb-home-page .bcnb-intro__lead-text,
    .bcn-main.bcnb-home-page .bcnb-intro__body p,
    .bcn-main .bcnb-card__desc,
    .bcn-main.bcnb-home-page .bcnb-citations__heading,
    .bcn-main.bcnb-home-page .bcnb-citations__text {
        font-size: 16px;
        line-height: 24px;
    }
    .bcn-main.bcnb-home-page .bcnb-intro__lead-text{
        font-weight: 500;
    }

    .bcn-main .bcnb-card__title {
        font-size: 30px;
        line-height: 30px;
    }

    .bcn-main.bcnb-home-page .bcnb-stats__heading,
    .bcn-main.bcnb-home-page .bcnb-stat__label,
    .bcn-main.bcnb-home-page .bcnb-footer-cta__text,
    .bcn-main.bcnb-home-page .bcnb-footer-links__heading,
    .bcn-main.bcnb-home-page .bcnb-footer-links__list a,
    .bcn-main.bcnb-home-page .bcnb-footer-copyright__inner {
        font-size: 16px;
        line-height: 24px;
    }

    .bcn-main.bcnb-home-page .bcnb-stat__number {
        font-size: 30px;
        line-height: 26px;
    }

    .bcn-main.bcnb-home-page .bcnb-stat__label {
        margin-bottom: 34px;
    }

    .bcn-main.bcnb-home-page .bcnb-footer-cta {
        margin-top: 28px;
        padding: 46px 0 96px;
    }
}

@media (max-width: 720px) {
    .bcn-main.bcnb-home-page .bcnb-home {
        --figma-w: var(--bcnb-layout-max);
        --figma-gutter: var(--bcnb-layout-gutter);
        --figma-footer-gutter: 16px;
        --figma-card-gap: 14px;
        --figma-divider-x: 50%;
    }

    .bcn-main.bcnb-home-page .bcnb-hero {
        min-height: 440px;
    }

    .bcn-main.bcnb-home-page .bcnb-hero__content {
        top: 156px;
    }

    .bcn-main.bcnb-home-page .bcnb-intro__inner,
    .bcn-main.bcnb-home-page .bcnb-lower__inner {
        gap: 16px;
    }

    .bcn-main.bcnb-home-page .bcnb-features {
        margin-top: 24px;
    }

    .bcn-main.bcnb-home-page .bcnb-features__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bcn-main.bcnb-home-page .bcnb-card {
        min-height: 210px;
        padding: 14px 12px;
    }

    .bcn-main.bcnb-home-page .bcnb-footer-cta {
        margin-top: 22px;
        padding: 30px 0 48px;
    }

    .bcn-main.bcnb-home-page .bcnb-hero__title {
        font-size: 40px;
        line-height: 42px;
    }

    .bcn-main.bcnb-home-page .bcnb-hero__powered {
        font-size: 15px;
        line-height: 24px;
    }

    .bcn-main.bcnb-home-page .bcnb-intro__lead-text,
    .bcn-main.bcnb-home-page .bcnb-intro__body p,
    .bcn-main .bcnb-card__desc,
    .bcn-main.bcnb-home-page .bcnb-citations__heading,
    .bcn-main.bcnb-home-page .bcnb-citations__text {
        font-size: 14px;
        line-height: 20px;
    }
    .bcn-main.bcnb-home-page .bcnb-intro__lead-text{
        font-weight: 500;
    }
    .bcn-main .bcnb-card__title, .bcn-main.bcn-main.bcnb-home-page .bcnb-card__title {
        font-size: 24px;
        line-height: 24px;
    }

    .bcn-main .bcnb-card__desc {
        font-size: 13px;
        line-height: 18px;
    }

    .bcn-main.bcnb-home-page .bcnb-stats__heading,
    .bcn-main.bcnb-home-page .bcnb-stat__label,
    .bcn-main.bcnb-home-page .bcnb-footer-cta__text,
    .bcn-main.bcnb-home-page .bcnb-footer-links__heading,
    .bcn-main.bcnb-home-page .bcnb-footer-links__list a,
    .bcn-main.bcnb-home-page .bcnb-footer-copyright__inner {
        font-size: 14px;
        line-height: 20px;
    }

    .bcn-main.bcnb-home-page .bcnb-stat__number {
        font-size: 24px;
        line-height: 22px;
    }

    .bcn-main.bcnb-home-page .bcnb-stat__label {
        margin-bottom: 20px;
    }

    .bcn-main.bcnb-home-page .bcnb-footer-cta__text {
        font-size: 26px;
        line-height: 24px;
    }
}


.bcnb-button  {
    align-items: center;
    background-color: #005C5D !important;
    border: 0 !important;
    border-radius: 24px;
    box-shadow: none;
    color: #FFFFFF !important;
    display: inline-flex;
    font-family: "Red Hat Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    min-height: 56px;
    padding: 10px 28px;
    text-transform: none;
    margin-top: 37px;
}

.bcnb-button::before {
    content: none;
    display: none;
}

.bcnb-button:hover,.bcnb-button:focus,  
.research-catalogue-upload__button:hover, .research-catalogue-upload__button:focus {
    filter: brightness(0.88);
    color: #FFFFFF !important;
    cursor: pointer;
}

.bcnb-button:focus-visible, .research-catalogue-upload__button:focus-visible {
    outline: 2px solid #005C5D;
    outline-offset: 2px;
}

.bcnb-button .portal-external-icon {
    display: none;
}
/* Research catalogue detail page: links turn pink, without underline, on hover */
.catalogue-container .card-text a:hover,
.catalogue-container .card-text a:focus {
    color: var(--bcnb-core-pink);
    text-decoration: none;
}
