/* BB-100 / Chunk 15.2 — dynamic Omeka Site project cards */

:root {
    --bb-blue: #00107b;
    --bb-blue-deep: #000a4f;
    --bb-blue-mid: #1835a4;
    --bb-blue-soft: #e9edff;
    --bb-blue-mist: #f4f6ff;
    --bb-ink: #111827;
    --bb-muted: #5f6878;
    --bb-line: #dfe4ef;
    --bb-paper: #ffffff;
    --bb-cloud: #f7f8fb;
    --bb-warm: #c9963c;
    --bb-max: 1180px;
    --bb-radius: 22px;
    --bb-shadow: 0 24px 70px rgba(0, 16, 123, 0.10);
}

html { scroll-behavior: smooth; }

/* Strong isolation from Omeka installation-level public CSS. */
html body.minimal.beluga-public-home {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    background: var(--bb-paper) !important;
    color: var(--bb-ink) !important;
    font-family: "DM Sans", Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

html body.beluga-public-home #content {
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    inset: auto !important;
    transform: none !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body.beluga-public-home > footer { display: none !important; }

.bb-page,
.bb-page * { box-sizing: border-box; }

.bb-page {
    display: block !important;
    position: relative !important;
    float: none !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: var(--bb-paper);
}

.bb-main,
.bb-hero,
.bb-section,
.bb-footer {
    display: block !important;
    position: relative;
    float: none !important;
    clear: both;
    width: 100%;
}

.bb-main {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

.bb-page img {
    max-width: 100%;
    height: auto;
}

.bb-page a,
.bb-page a:link,
.bb-page a:visited {
    text-decoration: none;
}

.bb-wrap {
    width: min(calc(100% - 48px), var(--bb-max)) !important;
    max-width: var(--bb-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.bb-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.bb-header {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: block !important;
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid var(--bb-line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bb-header-inner {
    min-height: 88px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 36px;
    padding: 0 !important;
}

.bb-logo-link {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bb-logo {
    display: block !important;
    width: 226px !important;
    max-width: 226px !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 72px !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bb-nav {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 34px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #273044;
    font-size: 14px;
    font-weight: 700;
}

.bb-nav > a,
.bb-nav > a:link,
.bb-nav > a:visited {
    color: #273044 !important;
    background: transparent;
}

.bb-nav > a:not(.bb-nav-support) {
    position: relative;
    display: inline-block;
    width: auto !important;
    padding: 8px 0;
}

.bb-nav > a:not(.bb-nav-support)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: var(--bb-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .18s ease;
}

.bb-nav > a:not(.bb-nav-support):hover::after,
.bb-nav > a:not(.bb-nav-support):focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.bb-nav > a:hover,
.bb-nav > a:focus-visible {
    color: var(--bb-blue) !important;
}

.bb-nav .bb-nav-support,
.bb-nav .bb-nav-support:link,
.bb-nav .bb-nav-support:visited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    padding: 11px 18px !important;
    border-radius: 999px;
    background: var(--bb-blue) !important;
    color: #fff !important;
}

.bb-nav .bb-nav-support:hover { background: var(--bb-blue-mid) !important; }

.bb-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    border-radius: 10px;
    background: var(--bb-blue-mist);
    cursor: pointer;
}

.bb-menu-line {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--bb-blue);
}

/* Hero */
.bb-hero {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background:
        radial-gradient(circle at 82% 20%, rgba(201,150,60,.17), transparent 25%),
        radial-gradient(circle at 72% 64%, rgba(24,53,164,.08), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, var(--bb-blue-mist) 100%) !important;
    overflow: hidden;
}

.bb-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,16,123,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,16,123,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.bb-hero-grid {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr) !important;
    gap: 76px;
    align-items: center;
    min-height: 0 !important;
    height: auto !important;
    padding-top: 72px !important;
    padding-bottom: 72px !important;
}

.bb-hero-copy {
    display: block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bb-hero-grid > * {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.bb-kicker {
    margin: 0 0 18px !important;
    color: var(--bb-blue) !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.bb-hero h1,
.bb-section h2 {
    margin: 0 !important;
    font-family: "Source Serif 4", Georgia, serif !important;
    font-weight: 600 !important;
    letter-spacing: -.035em;
}

.bb-hero h1 {
    max-width: 740px;
    color: var(--bb-blue-deep) !important;
    font-size: clamp(54px,7vw,92px) !important;
    line-height: .98 !important;
}

.bb-lead {
    max-width: 650px;
    margin: 28px 0 0 !important;
    color: var(--bb-muted) !important;
    font-size: clamp(18px,2vw,22px) !important;
    line-height: 1.55 !important;
}

.bb-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.bb-btn,
.bb-btn:link,
.bb-btn:visited {
    min-height: 52px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    padding: 0 24px !important;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px !important;
    font-weight: 800 !important;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.bb-btn:hover { transform: translateY(-2px); }

.bb-btn-primary,
.bb-btn-primary:link,
.bb-btn-primary:visited {
    background: var(--bb-blue) !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(0,16,123,.16);
}

.bb-btn-primary:hover { background: var(--bb-blue-mid) !important; }

.bb-btn-outline,
.bb-btn-outline:link,
.bb-btn-outline:visited {
    border-color: rgba(0,16,123,.34) !important;
    background: rgba(255,255,255,.72) !important;
    color: var(--bb-blue) !important;
}

.bb-btn-outline:hover { background: var(--bb-blue-soft) !important; }

.bb-hero-art {
    position: relative;
    display: flex !important;
    justify-content: center;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.bb-hero-art-inner {
    position: relative;
    width: min(100%,470px);
    min-height: 470px;
    padding: 42px;
    border-radius: 44% 44% 22px 22px;
    background: linear-gradient(155deg,var(--bb-blue) 0%,var(--bb-blue-deep) 100%);
    box-shadow: var(--bb-shadow);
    overflow: hidden;
}

.bb-hero-art-inner::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    bottom: -110px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(255,255,255,.035),
                0 0 0 84px rgba(255,255,255,.025);
}

.bb-hero-art img {
    position: relative;
    z-index: 2;
    display: block !important;
    width: 66% !important;
    max-width: 66% !important;
    max-height: 230px !important;
    margin: 22px auto 0 !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1);
    opacity: .96;
}

.bb-depth-lines {
    position: relative;
    z-index: 2;
    margin-top: 28px;
}

.bb-depth-lines span {
    display: block;
    height: 1px;
    margin: 15px 0;
    background: rgba(255,255,255,.24);
}

.bb-depth-lines span:nth-child(2),
.bb-depth-lines span:nth-child(5) { width: 82%; }
.bb-depth-lines span:nth-child(3) { width: 63%; }

.bb-depth-labels {
    position: absolute;
    z-index: 2;
    left: 42px;
    right: 42px;
    bottom: 32px;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.76);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .17em;
}

/* Sections */
.bb-section { padding: 108px 0 !important; }

.bb-section-intro {
    max-width: 760px;
    margin-bottom: 54px;
}

.bb-section h2 {
    color: var(--bb-blue-deep) !important;
    font-size: clamp(40px,5vw,62px) !important;
    line-height: 1.06 !important;
}

.bb-section-intro > p:last-child {
    max-width: 640px;
    margin: 20px 0 0 !important;
    color: var(--bb-muted) !important;
    font-size: 18px !important;
}

.bb-projects { background: var(--bb-paper) !important; }

.bb-card-grid {
    display: grid !important;
    grid-template-columns: repeat(3,1fr) !important;
    gap: 18px;
}

.bb-card {
    position: relative;
    min-height: 292px;
    padding: 34px;
    border: 1px solid var(--bb-line);
    border-radius: var(--bb-radius);
    background: var(--bb-cloud);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
    overflow: hidden;
}

.bb-card:hover {
    transform: translateY(-4px);
    border-color: #c7d0ea;
    box-shadow: 0 18px 44px rgba(0,16,123,.08);
}

.bb-card-index {
    color: var(--bb-warm);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.bb-card h3 {
    margin: 72px 0 12px !important;
    color: var(--bb-blue-deep) !important;
    font-family: "Source Serif 4", Georgia, serif !important;
    font-size: 29px !important;
    font-weight: 600 !important;
}

.bb-card p { margin: 0 !important; color: var(--bb-muted) !important; }

.bb-card-rule {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 28px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg,var(--bb-blue) 0 34%,var(--bb-warm) 34% 43%,var(--bb-line) 43%);
}

.bb-about {
    background: var(--bb-blue-deep) !important;
    color: #fff !important;
    overflow: hidden;
}

.bb-about::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    top: -260px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255,255,255,.025),
                0 0 0 140px rgba(255,255,255,.018);
}

.bb-about-grid {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 90px;
    align-items: end;
}

.bb-about h2 { color: #fff !important; }
.bb-kicker-light { color: #b9c7ff !important; }

.bb-about-copy {
    margin: 0 !important;
    color: #dbe0f4 !important;
    font-size: clamp(20px,2.4vw,28px) !important;
    line-height: 1.5 !important;
}

.bb-support {
    background: linear-gradient(180deg,#fff 0%,var(--bb-blue-mist) 100%) !important;
}

.bb-support-panel {
    display: grid !important;
    grid-template-columns: 120px minmax(0,1fr) auto !important;
    gap: 38px;
    align-items: center;
    padding: 48px;
    border: 1px solid #d9e0f4;
    border-radius: var(--bb-radius);
    background: #fff;
    box-shadow: 0 16px 48px rgba(0,16,123,.06);
}

.bb-support-mark {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bb-blue-soft);
}

.bb-support-mark img {
    width: 78% !important;
    height: 78% !important;
    object-fit: contain;
}

.bb-support-copy h2 {
    max-width: 700px;
    font-size: clamp(34px,4vw,50px) !important;
}

/* Footer: brighter links and explicit visited-state override. */
.bb-footer {
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
    padding: 60px 0 42px !important;
    background: #060b28 !important;
    color: #fff !important;
}

.bb-footer-grid {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 38px 70px;
    align-items: center;
}

.bb-footer-logo {
    display: inline-block !important;
    width: 240px !important;
    padding: 8px 12px !important;
    border-radius: 10px;
    background: #fff !important;
}

.bb-footer-logo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

.bb-footer-nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px 28px;
    font-size: 14px;
    font-weight: 700;
}

.bb-footer-nav a,
.bb-footer-nav a:link,
.bb-footer-nav a:visited {
    color: #dce7ff !important;
}

.bb-footer-nav a:hover,
.bb-footer-nav a:focus-visible {
    color: #8fc5ff !important;
}

.bb-copyright {
    grid-column: 1 / -1;
    margin: 6px 0 0 !important;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: #aeb8d8 !important;
    font-size: 13px !important;
}

/* Responsive */
@media (max-width: 920px) {
    .bb-menu-button { display: block !important; }

    .bb-nav {
        display: none !important;
        position: absolute !important;
        top: 88px;
        left: 0;
        right: 0;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0;
        width: 100% !important;
        padding: 12px 24px 22px !important;
        background: #fff !important;
        border-bottom: 1px solid var(--bb-line);
        box-shadow: 0 15px 30px rgba(0,16,123,.07);
    }

    .bb-nav.bb-nav-open { display: flex !important; }

    .bb-nav a,
    .bb-nav a:link,
    .bb-nav a:visited {
        width: 100% !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid var(--bb-line);
        border-radius: 0 !important;
        background: transparent !important;
        color: var(--bb-blue) !important;
    }

    .bb-nav a::after { display: none !important; }

    .bb-hero { min-height: 0 !important; }

    .bb-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 52px;
    }

    .bb-hero-art-inner {
        max-width: 560px;
        min-height: 390px;
    }

    .bb-card-grid { grid-template-columns: 1fr !important; }

    .bb-card { min-height: 230px; }
    .bb-card h3 { margin-top: 50px !important; }

    .bb-about-grid {
        grid-template-columns: 1fr !important;
        gap: 34px;
    }

    .bb-support-panel {
        grid-template-columns: 96px 1fr !important;
    }

    .bb-support-panel > .bb-btn {
        grid-column: 2;
        justify-self: start;
    }

    .bb-support-mark {
        width: 92px;
        height: 92px;
    }
}

@media (max-width: 640px) {
    .bb-wrap { width: min(calc(100% - 32px),var(--bb-max)) !important; }

    .bb-header-inner { min-height: 76px; }

    .bb-logo {
        width: 190px !important;
        max-width: 190px !important;
        max-height: 66px !important;
    }

    .bb-nav { top: 76px; }

    .bb-hero-grid {
        padding-top: 64px !important;
        padding-bottom: 64px !important;
    }

    .bb-hero h1 { font-size: clamp(48px,15vw,66px) !important; }

    .bb-actions {
        flex-direction: column !important;
        align-items: stretch;
    }

    .bb-btn,
    .bb-btn:link,
    .bb-btn:visited { width: 100% !important; }

    .bb-hero-art-inner {
        min-height: 315px;
        padding: 30px;
        border-radius: 40% 40% 18px 18px;
    }

    .bb-hero-art img {
        width: 60% !important;
        max-width: 60% !important;
        max-height: 160px !important;
        margin-top: 10px !important;
    }

    .bb-depth-lines { margin-top: 18px; }

    .bb-depth-labels {
        left: 30px;
        right: 30px;
        bottom: 22px;
    }

    .bb-section { padding: 76px 0 !important; }

    .bb-support-panel {
        grid-template-columns: 1fr !important;
        gap: 26px;
        padding: 30px 24px;
    }

    .bb-support-mark { display: none; }

    .bb-support-panel > .bb-btn {
        grid-column: auto;
        justify-self: stretch;
    }

    .bb-footer-grid { grid-template-columns: 1fr !important; }
    .bb-footer-logo { width: 220px !important; }
    .bb-copyright { grid-column: auto; }
}

/* BB-100 / Chunk 15.3 — independent dynamic navigation and project cards */
.bb-project-card,
.bb-project-card:link,
.bb-project-card:visited {
    display: block !important;
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
}

.bb-project-card:focus-visible {
    outline: 3px solid var(--bb-blue-mid);
    outline-offset: 4px;
}

.bb-project-card .bb-project-thumb {
    height: 138px;
    margin: -34px -34px 28px;
    overflow: hidden;
    background: var(--bb-blue-soft);
    border-bottom: 1px solid var(--bb-line);
}

.bb-project-card .bb-project-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

.bb-project-card-has-image h3 {
    margin-top: 0 !important;
}

.bb-project-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 22px;
    padding-bottom: 18px;
    color: var(--bb-blue);
    font-size: 13px;
    font-weight: 800;
}

.bb-project-card:hover .bb-project-cta {
    color: var(--bb-blue-mid);
}

.bb-projects-empty {
    margin: 0;
    padding: 28px 30px;
    border: 1px dashed #c7d0ea;
    border-radius: var(--bb-radius);
    background: var(--bb-blue-mist);
    color: var(--bb-muted);
}

@media (max-width: 920px) {
    .bb-project-card .bb-project-thumb {
        height: 180px;
    }
}

@media (max-width: 640px) {
    .bb-project-card .bb-project-thumb {
        height: 150px;
    }
}
