/*
 * Iran Basketball House — public design foundation
 * Scope: public header and primary navigation only.
 */

:root {
    --ibh-public-navy-950: #061a36;
    --ibh-public-navy-900: #0a2347;
    --ibh-public-orange: #f97316;
    --ibh-public-orange-soft: #fff3e9;
    --ibh-public-ink: #071a36;
    --ibh-public-muted: #66758d;
    --ibh-public-line: #e3e9f1;
    --ibh-public-surface: #fffdfa;
    --ibh-public-shadow: 0 14px 36px rgba(7, 26, 54, 0.08);
}

body.ibh-public-body {
    padding-top: 0 !important;
    color: var(--ibh-public-ink);
    background: #f4f7fb;
}

body.ibh-public-body > .ib-site-header {
    position: sticky !important;
    top: 0 !important;
    inset-block-start: 0;
    z-index: 100;
    min-height: 0 !important;
    border-block-end: 1px solid rgba(7, 26, 54, 0.08);
    background: rgba(255, 253, 250, 0.96) !important;
    box-shadow: 0 8px 26px rgba(7, 26, 54, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    will-change: transform;
}

body.ibh-public-body .ib-site-header .ib-header-inner {
    width: min(100% - 32px, 1240px) !important;
    min-height: 76px !important;
    margin-inline: auto !important;
    padding: 8px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
}

body.ibh-public-body .ib-site-header .ib-brand {
    flex: 0 0 auto;
    min-width: 0;
}

body.ibh-public-body .ib-site-header .ib-logo-horizontal {
    width: 218px !important;
    max-width: 218px !important;
    max-height: 52px !important;
    object-fit: contain;
}

body.ibh-public-body .ib-site-header .ib-logo-tagline {
    display: none !important;
}

body.ibh-public-body .ib-menu-checkbox {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

body.ibh-public-body .ib-site-header .ib-menu-button {
    display: none !important;
}

body.ibh-public-body .ibh-public-nav {
    min-width: 0;
    flex: 1 1 auto;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
}

body.ibh-public-body .ibh-public-nav > a,
body.ibh-public-body .ibh-public-nav-group > summary {
    min-height: 42px;
    padding: 0 11px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0 !important;
    border-radius: 12px;
    color: var(--ibh-public-ink) !important;
    background: transparent !important;
    font: inherit;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

body.ibh-public-body .ibh-public-nav > a:hover,
body.ibh-public-body .ibh-public-nav-group > summary:hover,
body.ibh-public-body .ibh-public-nav-group[open] > summary {
    color: var(--ibh-public-orange) !important;
    background: var(--ibh-public-orange-soft) !important;
}

body.ibh-public-body .ibh-public-nav-direct.is-active,
body.ibh-public-body .ibh-public-nav-group.is-active > summary {
    color: var(--ibh-public-orange) !important;
}

body.ibh-public-body .ibh-public-nav-group {
    position: relative;
}

body.ibh-public-body .ibh-public-nav-group > summary {
    list-style: none;
}

body.ibh-public-body .ibh-public-nav-group > summary::-webkit-details-marker {
    display: none;
}

body.ibh-public-body .ibh-public-nav-group > summary::after {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
}

body.ibh-public-body .ib-dictionary-kicker,
body.ibh-public-body .ib-dictionary-show-kicker {
    color: var(--ibh-public-orange) !important;
}

body.ibh-public-body .ibh-public-nav-group[open] > summary::after {
    transform: rotate(225deg) translate(-1px, -1px);
}

body.ibh-public-body .ibh-public-nav-dropdown {
    position: absolute;
    inset-block-start: calc(100% + 10px);
    inset-inline-start: 0;
    z-index: 120;
    width: 220px;
    padding: 8px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--ibh-public-line);
    border-radius: 16px;
    background: var(--ibh-public-surface);
    box-shadow: var(--ibh-public-shadow);
}

body.ibh-public-body .ibh-public-nav-dropdown a {
    padding: 11px 12px !important;
    border-radius: 10px;
    color: var(--ibh-public-ink) !important;
    background: transparent !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.6;
    text-decoration: none;
}

body.ibh-public-body .ibh-public-nav-dropdown a:hover,
body.ibh-public-body .ibh-public-nav-dropdown a:focus-visible {
    color: var(--ibh-public-orange) !important;
    background: var(--ibh-public-orange-soft) !important;
}

body.ibh-public-body .ibh-public-nav-heritage-dropdown {
    width: min(460px, calc(100vw - 32px));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
}

body.ibh-public-body .ibh-public-nav-section {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 3px;
}

body.ibh-public-body .ibh-public-nav-section-title {
    padding: 7px 12px 5px;
    color: var(--ibh-public-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.5;
}

body.ibh-public-body .ibh-public-nav-dropdown a.is-current {
    color: var(--ibh-public-orange) !important;
    background: var(--ibh-public-orange-soft) !important;
}

body.ibh-public-body .ibh-public-nav-dropdown a.is-current::before {
    width: 6px;
    height: 6px;
    margin-inline-end: 7px;
    display: inline-block;
    border-radius: 999px;
    background: currentColor;
    content: "";
    vertical-align: middle;
}

body.ibh-public-body .ibh-public-nav .ib-nav-user-actions {
    margin-inline-start: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

body.ibh-public-body .ibh-public-nav .ib-header-login-link,
body.ibh-public-body .ibh-public-nav .ib-header-register-link,
body.ibh-public-body .ibh-public-nav .ib-nav-dashboard-link,
body.ibh-public-body .ibh-public-nav .ib-header-editorial-link,
body.ibh-public-body .ibh-public-nav .ib-nav-logout {
    min-height: 40px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 11px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-decoration: none;
}

body.ibh-public-body .ibh-public-nav .ib-header-register-link,
body.ibh-public-body .ibh-public-nav .ib-nav-logout {
    border-color: var(--ibh-public-orange) !important;
    color: #fff !important;
    background: var(--ibh-public-orange) !important;
}

body.ibh-public-body :is(a, button, summary):focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.28) !important;
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    body.ibh-public-body .ib-site-header .ib-header-inner {
        min-height: 70px !important;
        gap: 14px !important;
    }

    body.ibh-public-body .ib-site-header .ib-logo-horizontal {
        width: 196px !important;
        max-width: 196px !important;
    }

    body.ibh-public-body .ib-site-header .ib-menu-button {
        position: relative !important;
        inset: auto !important;
        width: 46px !important;
        height: 42px !important;
        min-width: 46px !important;
        margin-inline-start: auto !important;
        padding: 0 !important;
        display: grid !important;
        place-content: center !important;
        gap: 4px !important;
        border: 1px solid var(--ibh-public-line) !important;
        border-radius: 12px !important;
        background: #fff !important;
        box-shadow: none !important;
        cursor: pointer;
    }

    body.ibh-public-body .ib-site-header .ib-menu-button span {
        width: 19px !important;
        height: 2px !important;
        display: block !important;
        border-radius: 3px;
        background: var(--ibh-public-navy-900) !important;
    }

    body.ibh-public-body .ibh-public-nav {
        position: absolute !important;
        inset-block-start: calc(100% + 1px) !important;
        inset-inline: 16px !important;
        max-height: calc(100vh - 96px);
        padding: 12px !important;
        display: none !important;
        overflow-y: auto;
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 4px !important;
        border: 1px solid var(--ibh-public-line);
        border-radius: 0 0 18px 18px;
        background: var(--ibh-public-surface) !important;
        box-shadow: var(--ibh-public-shadow);
    }

    body.ibh-public-body #ib-menu-toggle:checked ~ .ibh-public-nav {
        display: flex !important;
    }

    body.ibh-public-body .ibh-public-nav > a,
    body.ibh-public-body .ibh-public-nav-group > summary {
        width: 100%;
        justify-content: space-between;
        padding-inline: 13px !important;
    }

    body.ibh-public-body .ibh-public-nav-dropdown {
        position: static;
        width: auto;
        margin: 2px 8px 8px;
        border: 0;
        border-inline-start: 2px solid var(--ibh-public-orange);
        border-radius: 0;
        background: #f7f9fc;
        box-shadow: none;
    }

    body.ibh-public-body .ibh-public-nav-heritage-dropdown {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }

    body.ibh-public-body .ibh-public-nav-section + .ibh-public-nav-section {
        padding-block-start: 4px;
        border-block-start: 1px solid var(--ibh-public-line);
    }

    body.ibh-public-body .ibh-public-nav .ib-nav-user-actions {
        width: 100%;
        margin: 8px 0 0 !important;
        padding-block-start: 10px;
        flex-wrap: wrap;
        border-block-start: 1px solid var(--ibh-public-line);
    }
}

@media (max-width: 680px) {
    body.ibh-public-body .ib-site-header .ib-header-inner {
        width: min(100% - 24px, 1240px) !important;
        min-height: 64px !important;
        padding-block: 6px !important;
    }

    body.ibh-public-body .ib-site-header .ib-logo-horizontal {
        width: 170px !important;
        max-width: 170px !important;
        max-height: 46px !important;
    }

    body.ibh-public-body .ib-site-header .ib-menu-button {
        width: 44px !important;
        height: 40px !important;
        min-width: 44px !important;
    }

    body.ibh-public-body .ibh-public-nav {
        inset-inline: 10px !important;
    }
}

/* =========================================================
   Focused seven-section homepage
   ========================================================= */

body.ibh-public-body .ibh-home-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 20px 80px !important;
    background:
        radial-gradient(circle at 88% 8%, rgba(249, 115, 22, 0.07), transparent 23%),
        #f4f7fb;
}

body.ibh-public-body .ibh-home-page {
    width: min(100%, 1240px) !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 32px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ibh-home-page :is(h1, h2, h3, p) {
    margin-block-start: 0;
}

.ibh-home-page a {
    text-decoration: none;
}

.ibh-home-eyebrow {
    width: fit-content;
    min-height: 34px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: 999px;
    color: var(--ibh-public-orange);
    background: var(--ibh-public-orange-soft);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.5;
}

.ibh-home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ibh-home-button {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.5;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ibh-home-button:hover {
    transform: translateY(-2px);
}

.ibh-home-button.is-primary {
    color: #fff;
    background: var(--ibh-public-orange);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.2);
}

.ibh-home-button.is-secondary {
    border-color: var(--ibh-public-line);
    color: var(--ibh-public-navy-950);
    background: #fff;
}

.ibh-home-button.is-on-dark {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ibh-home-hero {
    min-height: 570px;
    padding: clamp(32px, 5vw, 68px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    align-items: center;
    gap: clamp(32px, 5vw, 70px);
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 12%, rgba(249, 115, 22, 0.2), transparent 25%),
        linear-gradient(135deg, #071a36 0%, #0a2c59 100%);
    box-shadow: 0 24px 50px rgba(7, 26, 54, 0.15);
}

.ibh-home-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ibh-home-hero h1 {
    max-width: 720px;
    margin-block: 20px 18px;
    color: #fff;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -0.035em;
}

.ibh-home-hero-copy > p {
    max-width: 690px;
    margin-block-end: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 2;
}

.ibh-home-hero .ibh-home-button.is-secondary {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.ibh-home-trust-row {
    margin-block-start: 30px;
    padding-block-start: 22px;
    display: flex;
    gap: 28px;
    border-block-start: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.ibh-home-trust-row strong {
    margin-inline-end: 5px;
    color: #fff;
    font-size: 20px;
}

.ibh-home-hero-visual {
    position: relative;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-1.5deg);
}

.ibh-home-hero-visual-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 17px;
    background: #03142f;
}

.ibh-home-hero-visual-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ibh-home-hero-visual-caption {
    padding: 17px 5px 3px;
    display: grid;
    gap: 5px;
}

.ibh-home-hero-visual-caption span {
    color: #ffb076;
    font-size: 12px;
    font-weight: 900;
}

.ibh-home-hero-visual-caption strong {
    color: #fff;
    font-size: 16px;
    line-height: 1.75;
}

.ibh-home-section {
    margin-block-start: 72px;
}

.ibh-home-section-heading {
    margin-block-end: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.ibh-home-section-heading h2 {
    margin: 12px 0 0;
    color: var(--ibh-public-navy-950);
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.45;
}

.ibh-home-section-heading > a {
    color: var(--ibh-public-orange);
    font-size: 14px;
    font-weight: 900;
}

.ibh-home-today-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    gap: 22px;
}

.ibh-home-feature-story,
.ibh-home-radar-list,
.ibh-home-course-list,
.ibh-home-article-list,
.ibh-home-community-intro {
    border: 1px solid var(--ibh-public-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(7, 26, 54, 0.06);
}

.ibh-home-feature-story {
    min-width: 0;
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 24px;
}

.ibh-home-feature-story-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #e9eef5;
}

.ibh-home-feature-story-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ibh-home-feature-story > div > span,
.ibh-home-article-list article span,
.ibh-home-heritage-list > a > span {
    color: var(--ibh-public-orange);
    font-size: 12px;
    font-weight: 900;
}

.ibh-home-feature-story h3 {
    margin: 10px 0 12px;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.55;
}

.ibh-home-feature-story h3 a,
.ibh-home-radar-list h3 a,
.ibh-home-article-list h3 a {
    color: var(--ibh-public-navy-950);
}

.ibh-home-feature-story p {
    margin-block-end: 14px;
    color: var(--ibh-public-muted);
    font-size: 14px;
    line-height: 1.9;
}

.ibh-home-feature-story small,
.ibh-home-radar-list small,
.ibh-home-article-list small {
    color: var(--ibh-public-muted);
    font-size: 11px;
}

.ibh-home-radar-list {
    padding: 20px;
}

.ibh-home-radar-list-title {
    margin-block-end: 8px;
    padding-block-end: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-block-end: 1px solid var(--ibh-public-line);
}

.ibh-home-radar-list-title span {
    color: var(--ibh-public-muted);
    font-size: 11px;
}

.ibh-home-radar-list article {
    padding-block: 14px;
    border-block-end: 1px solid var(--ibh-public-line);
}

.ibh-home-radar-list article:last-child {
    padding-block-end: 0;
    border-block-end: 0;
}

.ibh-home-radar-list article > span {
    color: var(--ibh-public-orange);
    font-size: 10px;
    font-weight: 800;
}

.ibh-home-radar-list h3 {
    margin: 6px 0 8px;
    font-size: 14px;
    line-height: 1.8;
}

.ibh-home-path-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ibh-home-path-grid > a {
    min-height: 230px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--ibh-public-line);
    border-radius: 20px;
    color: var(--ibh-public-navy-950);
    background: #fff;
    box-shadow: 0 12px 28px rgba(7, 26, 54, 0.05);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ibh-home-path-grid > a:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 18px 34px rgba(7, 26, 54, 0.1);
    transform: translateY(-5px);
}

.ibh-home-path-grid > a > span {
    color: var(--ibh-public-orange);
    font-size: 13px;
    font-weight: 900;
}

.ibh-home-path-grid > a > strong {
    margin-block: auto 10px;
    font-size: 24px;
}

.ibh-home-path-grid > a > p {
    margin: 0;
    color: var(--ibh-public-muted);
    font-size: 13px;
    line-height: 1.9;
}

.ibh-home-radio {
    min-height: 440px;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
    border-radius: 26px;
    color: #fff;
    background: linear-gradient(135deg, #071a36, #0b2d5a);
}

.ibh-home-radio-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 19px;
    background: #04152d;
}

.ibh-home-radio-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ibh-home-radio-copy h2 {
    margin: 14px 0 20px;
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.45;
}

.ibh-home-radio-copy h3 {
    margin-block-end: 10px;
    color: #fff;
    font-size: 20px;
    line-height: 1.7;
}

.ibh-home-radio-copy > p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 2;
}

.ibh-home-radio-meta {
    margin-block: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ibh-home-radio-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
}

.ibh-home-radio .ibh-home-button.is-secondary {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    background: transparent;
}

.ibh-home-learning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ibh-home-course-list,
.ibh-home-article-list {
    padding: 22px;
}

.ibh-home-course-list > h3,
.ibh-home-article-list > h3 {
    margin-block-end: 16px;
    color: var(--ibh-public-navy-950);
    font-size: 20px;
}

.ibh-home-course-list > a {
    padding: 16px 0;
    display: grid;
    gap: 5px;
    border-block-end: 1px solid var(--ibh-public-line);
}

.ibh-home-course-list > a:last-child {
    padding-block-end: 0;
    border-block-end: 0;
}

.ibh-home-course-list > a > span {
    color: var(--ibh-public-orange);
    font-size: 11px;
    font-weight: 900;
}

.ibh-home-course-list > a > strong {
    color: var(--ibh-public-navy-950);
    font-size: 16px;
    line-height: 1.7;
}

.ibh-home-course-list > a > small {
    color: var(--ibh-public-muted);
    font-size: 11px;
}

.ibh-home-article-list article {
    padding-block: 12px;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border-block-end: 1px solid var(--ibh-public-line);
}

.ibh-home-article-list article:last-child {
    padding-block-end: 0;
    border-block-end: 0;
}

.ibh-home-article-list article > a {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: #e8edf4;
}

.ibh-home-article-list img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ibh-home-article-list h3 {
    margin: 5px 0 7px;
    font-size: 14px;
    line-height: 1.75;
}

.ibh-home-community-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    gap: 20px;
}

.ibh-home-members {
    margin-block-end: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ibh-home-member-card {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--ibh-public-line);
    border-radius: 18px;
    color: var(--ibh-public-navy-950);
    background: #fff;
    box-shadow: 0 12px 28px rgba(7, 26, 54, 0.05);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.ibh-home-member-card:hover {
    border-color: rgba(249, 115, 22, 0.46);
    box-shadow: 0 18px 34px rgba(7, 26, 54, 0.1);
    transform: translateY(-4px);
}

.ibh-home-member-avatar {
    width: 58px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, var(--ibh-public-orange), #b84a09);
    box-shadow: 0 8px 18px rgba(7, 26, 54, 0.14);
}

.ibh-home-member-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ibh-home-member-avatar strong {
    font-size: 24px;
}

.ibh-home-member-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.ibh-home-member-copy > strong,
.ibh-home-member-copy > small,
.ibh-home-member-copy > em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ibh-home-member-copy > strong {
    font-size: 15px;
}

.ibh-home-member-copy > small {
    color: var(--ibh-public-orange);
    font-size: 11px;
    font-weight: 800;
}

.ibh-home-member-copy > em {
    color: var(--ibh-public-muted);
    font-size: 10px;
    font-style: normal;
}

.ibh-home-member-arrow {
    color: var(--ibh-public-orange);
    font-size: 18px;
    transition: transform 200ms ease;
}

.ibh-home-member-card:hover .ibh-home-member-arrow {
    transform: translateX(-3px);
}

.ibh-home-members-more {
    margin-block-end: 20px;
    text-align: end;
}

.ibh-home-members-more a {
    color: var(--ibh-public-orange);
    font-size: 13px;
    font-weight: 900;
}

.ibh-home-community-intro {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ibh-home-community-intro > strong {
    color: var(--ibh-public-navy-950);
    font-size: 25px;
    line-height: 1.55;
}

.ibh-home-community-intro > p {
    margin-block: 14px 24px;
    color: var(--ibh-public-muted);
    font-size: 14px;
    line-height: 1.95;
}

.ibh-home-heritage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ibh-home-heritage-list > a {
    min-height: 330px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    border-radius: 21px;
    color: #fff;
    background: linear-gradient(160deg, #071a36, #153964);
}

.ibh-home-heritage-list > a:nth-child(2) {
    background: linear-gradient(160deg, #6f321d, #f97316);
}

.ibh-home-heritage-list img {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-block-end: 16px;
    display: block;
    object-fit: cover;
    border-radius: 14px;
}

.ibh-home-heritage-list > a > span {
    color: #ffb47d;
}

.ibh-home-heritage-list > a > strong {
    margin-block: auto 5px;
    color: #fff;
    font-size: 20px;
    line-height: 1.6;
}

.ibh-home-heritage-list > a > small {
    color: rgba(255, 255, 255, 0.7);
}

.ibh-home-join {
    margin-block-start: 72px;
    padding: clamp(32px, 5vw, 58px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 50%, rgba(249, 115, 22, 0.28), transparent 27%),
        var(--ibh-public-navy-950);
}

.ibh-home-join > div:first-child {
    max-width: 760px;
}

.ibh-home-join h2 {
    margin: 14px 0 12px;
    color: #fff;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.5;
}

.ibh-home-join p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.95;
}

.ibh-home-empty {
    color: var(--ibh-public-muted);
    font-size: 13px;
    line-height: 1.9;
}

@media (max-width: 980px) {
    .ibh-home-hero {
        grid-template-columns: 1fr;
    }

    .ibh-home-hero-visual {
        max-width: 620px;
    }

    .ibh-home-today-grid,
    .ibh-home-community-grid {
        grid-template-columns: 1fr;
    }

    .ibh-home-path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ibh-home-radio {
        grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
        gap: 28px;
    }

    .ibh-home-join {
        align-items: flex-start;
        flex-direction: column;
    }

    .ibh-home-members {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.ibh-public-body .ibh-home-main {
        padding: 0 12px 108px !important;
    }

    body.ibh-public-body .ibh-home-page {
        padding-block-start: 14px !important;
    }

    .ibh-home-hero {
        min-height: 0;
        padding: 28px 20px;
        gap: 28px;
        border-radius: 22px;
    }

    .ibh-home-hero h1 {
        margin-block: 16px 14px;
        font-size: clamp(34px, 10.5vw, 46px);
        line-height: 1.45;
    }

    .ibh-home-hero-copy > p {
        margin-block-end: 22px;
        font-size: 15px;
        line-height: 1.95;
    }

    .ibh-home-actions,
    .ibh-home-actions .ibh-home-button {
        width: 100%;
    }

    .ibh-home-trust-row {
        width: 100%;
        margin-block-start: 24px;
        justify-content: space-between;
        gap: 12px;
    }

    .ibh-home-hero-visual {
        padding: 10px;
        transform: none;
    }

    .ibh-home-section,
    .ibh-home-join {
        margin-block-start: 48px;
    }

    .ibh-home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .ibh-home-section-heading h2 {
        font-size: 30px;
    }

    .ibh-home-feature-story {
        grid-template-columns: 1fr;
    }

    .ibh-home-path-grid,
    .ibh-home-learning-grid,
    .ibh-home-heritage-list {
        grid-template-columns: 1fr;
    }

    .ibh-home-path-grid > a {
        min-height: 190px;
    }

    .ibh-home-radio {
        padding: 20px;
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .ibh-home-radio-copy h2 {
        font-size: 31px;
    }

    .ibh-home-article-list article {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .ibh-home-community-intro,
    .ibh-home-course-list,
    .ibh-home-article-list {
        padding: 18px;
    }

    .ibh-home-join {
        padding: 30px 20px;
    }

    .ibh-home-members {
        margin-inline: -12px;
        padding: 0 12px 8px;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .ibh-home-members::-webkit-scrollbar {
        display: none;
    }

    .ibh-home-member-card {
        flex: 0 0 min(82vw, 310px);
        scroll-snap-align: start;
    }
}

/* Basketball network motion language — v3.0 */
.ibh-home-hero {
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 12%, rgba(249, 115, 22, 0.18), transparent 25%),
        radial-gradient(circle at 88% 82%, rgba(61, 118, 181, 0.18), transparent 29%),
        linear-gradient(135deg, #07172f 0%, #0a2b57 100%);
}

.ibh-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.2;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.66) 1px, transparent 1.5px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.ibh-home-hero-copy {
    animation: ibh-home-rise-in 700ms cubic-bezier(.22, 1, .36, 1) both;
}

.ibh-home-hero h1 {
    max-width: 780px;
    font-size: clamp(45px, 5.1vw, 72px);
    line-height: 1.3;
}

.ibh-home-hero-copy > p {
    max-width: 700px;
    font-size: clamp(16px, 1.35vw, 20px);
}

.ibh-home-hero-visual {
    position: relative;
    overflow: visible;
    animation: ibh-home-visual-in 900ms 120ms cubic-bezier(.22, 1, .36, 1) both;
}

.ibh-home-hero-visual-media {
    position: relative;
    z-index: 2;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.33);
}

.ibh-home-hero-visual-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 56%, rgba(7, 23, 47, 0.64));
}

.ibh-home-hero-visual-media img {
    animation: ibh-home-image-breathe 8s ease-in-out infinite alternate;
}

.ibh-home-hero-visual-caption {
    position: relative;
    z-index: 3;
}

.ibh-home-tactical-motion {
    position: absolute;
    inset: -34px;
    z-index: 1;
    pointer-events: none;
}

.ibh-home-tactical-motion span {
    position: absolute;
    display: block;
    border: 1px solid rgba(249, 115, 22, 0.42);
    border-radius: 50%;
}

.ibh-home-tactical-motion span:nth-child(1) {
    width: 170px;
    height: 170px;
    inset: 3% auto auto -3%;
    border-style: dashed;
    animation: ibh-home-orbit 18s linear infinite;
}

.ibh-home-tactical-motion span:nth-child(2) {
    width: 22px;
    height: 22px;
    inset: 16% 4% auto auto;
    border-width: 5px;
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.1);
    animation: ibh-home-pulse 2.4s ease-in-out infinite;
}

.ibh-home-tactical-motion span:nth-child(3) {
    width: 230px;
    height: 92px;
    inset: auto 8% -1% auto;
    border-color: rgba(255, 255, 255, 0.22);
    border-inline-start-color: transparent;
    transform: rotate(-9deg);
    animation: ibh-home-route-shift 6s ease-in-out infinite alternate;
}

.ibh-home-section-heading,
.ibh-home-feature-story,
.ibh-home-radar-list,
.ibh-home-path-grid > a,
.ibh-home-radio,
.ibh-home-learning-grid,
.ibh-home-community-grid,
.ibh-home-join {
    animation: ibh-home-rise-in 650ms cubic-bezier(.22, 1, .36, 1) both;
}

.ibh-home-path-grid > a {
    position: relative;
    overflow: hidden;
}

.ibh-home-path-grid > a::after {
    content: "";
    position: absolute;
    inset: auto -25% -70% auto;
    width: 180px;
    aspect-ratio: 1;
    border: 1px dashed rgba(249, 115, 22, 0.22);
    border-radius: 50%;
    transition: transform 420ms cubic-bezier(.22, 1, .36, 1), border-color 220ms ease;
}

.ibh-home-path-grid > a:hover::after {
    border-color: rgba(249, 115, 22, 0.52);
    transform: translate(-16px, -18px) rotate(35deg) scale(1.08);
}

.ibh-home-button,
.ibh-public-nav a,
.ibh-public-nav summary {
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.ibh-home-button:hover {
    transform: translateY(-2px);
}

.ibh-home-button.is-primary:hover {
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.3);
}

@keyframes ibh-home-rise-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ibh-home-visual-in {
    from { opacity: 0; transform: translateX(-34px) rotate(-2deg); }
    to { opacity: 1; transform: translateX(0) rotate(0); }
}

@keyframes ibh-home-image-breathe {
    from { transform: scale(1.01); }
    to { transform: scale(1.055); }
}

@keyframes ibh-home-orbit {
    to { transform: rotate(360deg); }
}

@keyframes ibh-home-pulse {
    0%, 100% { opacity: 0.45; transform: scale(0.82); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes ibh-home-route-shift {
    from { opacity: 0.34; transform: translateX(0) rotate(-9deg); }
    to { opacity: 0.7; transform: translateX(-22px) rotate(-4deg); }
}

@media (max-width: 980px) {
    .ibh-home-hero h1 {
        max-width: 840px;
    }

    .ibh-home-hero-visual {
        justify-self: center;
    }
}

@media (max-width: 720px) {
    .ibh-home-hero h1 {
        font-size: clamp(34px, 10vw, 46px);
        line-height: 1.4;
    }

    .ibh-home-hero-visual-media::after {
        background: linear-gradient(0deg, rgba(7, 23, 47, 0.35), transparent 48%);
    }

    .ibh-home-tactical-motion {
        inset: -18px;
    }

    .ibh-home-tactical-motion span:nth-child(1) {
        width: 112px;
        height: 112px;
    }

    .ibh-home-tactical-motion span:nth-child(3) {
        display: none;
    }
}

/* =========================================================
   Stitch professional platform integration — v4.0
   ========================================================= */
:root {
    --ibh-public-navy-950: #071b35;
    --ibh-public-navy-900: #0a2548;
    --ibh-public-orange: #f68a1f;
    --ibh-public-orange-soft: #fff5eb;
    --ibh-public-surface: #fffefa;
    --ibh-public-line: #e4e9f0;
}

body.ibh-public-body {
    background: #f5f7fa;
}

body.ibh-public-body > .ib-site-header {
    box-shadow: 0 10px 32px rgba(7, 27, 53, 0.07);
}

body.ibh-public-body .ib-site-header .ib-header-inner {
    min-height: 72px !important;
}

body.ibh-public-body .ibh-home-main {
    background:
        radial-gradient(circle at 94% 4%, rgba(246, 138, 31, 0.08), transparent 24%),
        radial-gradient(circle at 5% 48%, rgba(7, 27, 53, 0.045), transparent 27%),
        #f5f7fa;
}

.ibh-home-hero {
    position: relative;
    min-height: 548px;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(7, 27, 53, 0.18);
}

.ibh-home-hero::after {
    content: "";
    position: absolute;
    inset: auto -72px -116px auto;
    width: 310px;
    aspect-ratio: 1;
    z-index: -1;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.ibh-home-hero h1 {
    font-size: clamp(44px, 4.7vw, 68px);
    letter-spacing: -0.04em;
}

.ibh-home-hero-visual {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.09);
}

.ibh-home-network {
    margin-block-start: 42px;
    padding: 30px;
    border: 1px solid var(--ibh-public-line);
    border-radius: 24px;
    background: rgba(255, 254, 250, 0.96);
    box-shadow: 0 18px 48px rgba(7, 27, 53, 0.07);
}

.ibh-home-network .ibh-home-section-heading {
    align-items: center;
}

.ibh-home-network .ibh-home-section-heading h2 {
    margin-block-start: 10px;
    font-size: clamp(28px, 3vw, 40px);
}

.ibh-home-network .ibh-home-section-heading p {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--ibh-public-muted);
    font-size: 14px;
    line-height: 1.9;
}

.ibh-home-network .ibh-home-members {
    margin: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.ibh-home-network .ibh-home-member-card {
    min-height: 218px;
    padding: 18px 12px 14px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
    box-shadow: none;
}

.ibh-home-network .ibh-home-member-avatar {
    width: 82px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px #f3f6fa, 0 10px 24px rgba(7, 27, 53, 0.14);
}

.ibh-home-network .ibh-home-member-copy {
    width: 100%;
    gap: 4px;
}

.ibh-home-network .ibh-home-member-copy > strong {
    font-size: 16px;
}

.ibh-home-network .ibh-home-member-copy > small {
    min-height: 34px;
    display: grid;
    place-items: center;
    line-height: 1.6;
    white-space: normal;
}

.ibh-home-network .ibh-home-member-arrow {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ibh-public-orange-soft);
}

.ibh-home-community > .ibh-home-members,
.ibh-home-community > .ibh-home-members-more {
    display: none;
}

.ibh-home-path-grid > a {
    min-height: 210px;
    border-radius: 22px;
}

.ibh-home-radio {
    overflow: hidden;
    box-shadow: 0 26px 58px rgba(7, 27, 53, 0.16);
}

.ibh-home-radio-media img,
.ibh-home-feature-story-media img,
.ibh-home-heritage-list img {
    transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.ibh-home-radio:hover .ibh-home-radio-media img,
.ibh-home-feature-story:hover .ibh-home-feature-story-media img,
.ibh-home-heritage-list > a:hover img {
    transform: scale(1.035);
}

@media (max-width: 1120px) {
    .ibh-home-network .ibh-home-members {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .ibh-home-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body.ibh-public-body .ib-site-header .ib-header-inner {
        min-height: 62px !important;
    }

    .ibh-home-hero {
        padding: 28px 20px 22px;
        border-radius: 20px;
        box-shadow: 0 18px 42px rgba(7, 27, 53, 0.16);
    }

    .ibh-home-hero h1 {
        font-size: clamp(32px, 9.6vw, 43px);
        letter-spacing: -0.025em;
    }

    .ibh-home-network {
        margin-block-start: 28px;
        padding: 22px 16px 16px;
        border-radius: 20px;
    }

    .ibh-home-network .ibh-home-section-heading {
        margin-block-end: 18px;
    }

    .ibh-home-network .ibh-home-section-heading h2 {
        font-size: 28px;
    }

    .ibh-home-network .ibh-home-members {
        margin-inline: -16px;
        padding-inline: 16px;
        display: flex;
    }

    .ibh-home-network .ibh-home-member-card {
        min-height: 205px;
        flex: 0 0 168px;
    }

    .ibh-home-network .ibh-home-member-avatar {
        width: 74px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ibh-home-page *,
    .ibh-home-page *::before,
    .ibh-home-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Stitch mobile rhythm polish v4.1 */
@media (max-width: 720px) {
    body.ibh-public-body .ibh-home-main {
        padding-inline: 8px !important;
    }

    body.ibh-public-body .ibh-home-page {
        padding-block-start: 10px !important;
    }

    .ibh-home-hero {
        padding: 22px 16px 18px;
        gap: 20px;
        border-radius: 20px;
    }

    .ibh-home-hero h1 {
        margin-block: 12px 9px;
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.42;
    }

    .ibh-home-hero-copy > p {
        margin-block-end: 16px;
        font-size: 14px;
        line-height: 1.82;
    }

    .ibh-home-actions {
        gap: 8px;
    }

    .ibh-home-actions .ibh-home-button {
        min-height: 42px;
    }

    .ibh-home-trust-row {
        margin-block-start: 16px;
    }

    .ibh-home-hero-visual {
        padding: 8px;
    }

    .ibh-home-hero-visual-caption {
        padding: 12px 3px 2px;
    }

    .ibh-home-hero-visual-caption strong {
        font-size: 14px;
        line-height: 1.7;
    }

    .ibh-home-section,
    .ibh-home-join {
        margin-block-start: 38px;
    }

    .ibh-home-section-heading {
        margin-block-end: 17px;
    }

    .ibh-home-section-heading h2 {
        font-size: 27px;
        line-height: 1.5;
    }

    .ibh-home-network {
        margin-block-start: 24px;
        padding: 18px 12px 12px;
    }

    .ibh-home-network .ibh-home-section-heading {
        margin-block-end: 14px;
    }

    .ibh-home-network .ibh-home-section-heading h2 {
        font-size: 26px;
    }

    .ibh-home-network .ibh-home-members {
        margin-inline: -12px;
        padding-inline: 12px;
        gap: 10px;
    }

    .ibh-home-network .ibh-home-member-card {
        min-height: 194px;
        flex-basis: 176px;
        padding: 15px 10px 12px;
    }

    .ibh-home-network .ibh-home-member-avatar {
        width: 72px;
    }

    .ibh-home-network .ibh-home-member-copy > strong {
        font-size: 15px;
    }

    .ibh-home-path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ibh-home-path-grid > a {
        min-height: 156px;
        padding: 16px 14px;
        border-radius: 16px;
    }

    .ibh-home-path-grid > a > strong {
        font-size: 18px;
        line-height: 1.55;
    }

    .ibh-home-path-grid > a > p {
        font-size: 11.5px;
        line-height: 1.75;
    }

    .ibh-home-radio {
        padding: 16px;
        gap: 17px;
    }

    .ibh-home-radio-copy h2 {
        margin-block: 9px 12px;
        font-size: 28px;
    }

    .ibh-home-learning-grid,
    .ibh-home-community-grid {
        gap: 12px;
    }

    .ibh-home-join {
        padding: 25px 18px;
        gap: 20px;
    }

    .ibh-home-join h2 {
        font-size: 28px;
    }

    body.ibh-public-body .ib-site-footer {
        padding: 34px 16px 94px !important;
    }

    body.ibh-public-body .ib-site-footer-inner {
        gap: 24px !important;
    }

    body.ibh-public-body .ib-site-footer-architecture {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 20px 16px !important;
        margin-block-start: 12px !important;
        text-align: right !important;
    }

    body.ibh-public-body .ib-footer-col {
        align-items: flex-start !important;
    }

    body.ibh-public-body .ib-footer-col a {
        font-size: 10.5px !important;
        line-height: 1.75 !important;
    }

    body.ibh-public-body .ib-footer-copyright-wrap {
        padding-block-start: 10px !important;
    }

    body.ibh-public-body .ib-footer-copyright {
        font-size: 10.5px !important;
        line-height: 1.8 !important;
    }
}

@media (max-width: 360px) {
    .ibh-home-path-grid > a {
        min-height: 148px;
        padding-inline: 12px;
    }

    .ibh-home-path-grid > a > strong {
        font-size: 17px;
    }
}

/* =========================================================
   Navigation interaction polish — v2.2.1
   Desktop: hover-driven dropdowns.
   Mobile: one smooth, visually scrollbar-free scroll surface.
   ========================================================= */

@media (hover: hover) and (pointer: fine) and (min-width: 1181px) {
    body.ibh-public-body .ibh-public-nav-group > .ibh-public-nav-dropdown {
        margin-block-start: -2px;
        padding-block-start: 10px;
    }
}

@media (max-width: 1180px) {
    body.ibh-public-body .ibh-public-nav {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-y;
    }

    body.ibh-public-body .ibh-public-nav::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    body.ibh-public-body .ibh-public-nav-heritage-dropdown {
        max-height: none !important;
        overflow: visible !important;
        overscroll-behavior: auto;
        scrollbar-width: none;
    }

    body.ibh-public-body .ibh-public-nav-heritage-dropdown::-webkit-scrollbar {
        display: none;
    }

    body.ibh-public-body .ibh-public-nav-section-title {
        position: static !important;
    }
}
/* Header and footer integration v2.3.0 */
body.ibh-public-body .ib-legal-page {
    width: min(100% - 32px, 940px);
    margin: 34px auto 54px;
}

body.ibh-public-body .ib-legal-card {
    padding: clamp(22px, 4vw, 46px);
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
}

body.ibh-public-body .ib-legal-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #ea580c;
    font-size: 12px;
    font-weight: 900;
}

body.ibh-public-body .ib-legal-card h1 {
    margin: 0 0 6px;
    color: #102844;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.45;
}

body.ibh-public-body .ib-legal-updated {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 12.5px;
}

body.ibh-public-body .ib-legal-card h2 {
    margin: 28px 0 8px;
    color: #102844;
    font-size: 19px;
    line-height: 1.6;
}

body.ibh-public-body .ib-legal-card p,
body.ibh-public-body .ib-legal-card li {
    color: #475569;
    font-size: 14.5px;
    line-height: 2.05;
}

body.ibh-public-body .ib-legal-card ul {
    margin: 8px 0;
    padding-right: 22px;
}

body.ibh-public-body .ib-site-footer-social {
    gap: 8px !important;
}

body.ibh-public-body .ib-site-footer-social a {
    gap: 7px !important;
    min-height: 38px !important;
    padding: 4px 10px 4px 12px !important;
}

body.ibh-public-body .ib-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: #102844;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

body.ibh-public-body .ib-social-label {
    color: inherit;
    font-size: 11.5px;
    font-weight: 850;
}

body.ibh-public-body .ib-site-footer-social a:hover .ib-social-icon {
    background: #f97316;
}

body.ibh-public-body .ib-site-footer-architecture {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.ibh-public-body .ib-footer-trust-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    max-width: 1050px;
    margin: 22px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, .16);
}

body.ibh-public-body .ib-footer-podcast-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

body.ibh-public-body .ib-footer-podcast-links > strong,
body.ibh-public-body .ib-footer-enamad > span {
    color: #0f172a;
    font-size: 12.5px;
    font-weight: 900;
}

body.ibh-public-body .ib-footer-podcast-links > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.ibh-public-body .ib-footer-podcast-links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 5px 11px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
}

body.ibh-public-body .ib-footer-podcast-links a:hover {
    border-color: rgba(249, 115, 22, .34);
    color: #c2410c;
    transform: translateY(-1px);
}

body.ibh-public-body .ib-podcast-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: #f97316;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 900;
}

body.ibh-public-body .ib-footer-enamad {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.ibh-public-body .ib-footer-enamad a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    min-height: 84px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 16px;
    background: #fff;
}

body.ibh-public-body .ib-footer-enamad img {
    display: block;
    width: 70px;
    max-width: 100%;
    height: 70px;
    object-fit: contain;
    cursor: pointer;
}

@media (max-width: 1020px) {
    body.ibh-public-body .ib-site-footer-architecture {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.ibh-public-body .ib-site-footer-social {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    body.ibh-public-body .ib-site-footer-social a {
        justify-content: flex-start !important;
        width: 100%;
    }

    body.ibh-public-body .ib-site-footer-architecture {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        text-align: right;
    }

    body.ibh-public-body .ib-footer-col {
        align-items: flex-start;
    }

    body.ibh-public-body .ib-footer-trust-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    body.ibh-public-body .ib-footer-podcast-links,
    body.ibh-public-body .ib-footer-enamad {
        justify-content: center;
    }
}

@media (max-width: 430px) {
    body.ibh-public-body .ib-social-label {
        font-size: 10.5px;
    }

    body.ibh-public-body .ib-site-footer-architecture {
        grid-template-columns: 1fr;
        text-align: center;
    }

    body.ibh-public-body .ib-footer-col {
        align-items: center;
    }
}
