/* ==========================================================================
   BIP Assessment Hub — Two-Panel Entry Page
   ========================================================================== */

/* Wrapper: centres the form — uses the same max-width variable
   as .bip-assessment-wrapper (defined in bip-assessment.css :root) */
.bip-hub-wrapper {
    display: flex;
    flex-direction: row;
    gap: 32px;
    max-width: var(--bip-max-width, 1024px);
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

/* ── Individual panel ─────────────────────────────────────────────────────── */
.bip-hub-panel {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    border: 2px solid #000;
    padding: 36px 32px;
    background: #f7f9fb;
    box-sizing: border-box;
}

/* ── Heading ──────────────────────────────────────────────────────────────── */
.bip-hub-panel__heading {
    font-family: var(--bip-font-heading);
    font-size: var(--bip-text-2xl);
    font-weight: 400;
    font-style: normal;
    text-shadow: none;
    text-align: center;
    margin: 0;
    line-height: 1.2;
    color: #111;
    letter-spacing: var(--bip-tracking);
}

/* ── Instructions paragraph ───────────────────────────────────────────────── */
.bip-hub-panel__instructions {
    font-size: 0.97rem;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* ── Form area ────────────────────────────────────────────────────────────── */
/* .bip-hub-panel__form moved below with button styles */

/* ── Code input ───────────────────────────────────────────────────────────── */
.bip-hub-code-input {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    border: none !important;
    border-radius: 3px !important;
    box-sizing: border-box !important;
    letter-spacing: 0.01em !important;
    outline: none !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #111 !important;
    text-align: left !important;
}

.bip-hub-code-input::placeholder {
    color: #111 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

.bip-hub-code-input::-webkit-input-placeholder {
    color: #111 !important;
    opacity: 1 !important;
}

.bip-hub-code-input::-moz-placeholder {
    color: #111 !important;
    opacity: 1 !important;
}

.bip-hub-code-input:focus {
    border: none !important;
    background: #fff !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06) !important;
}

/* ── Button ───────────────────────────────────────────────────────────────── */
.bip-hub-panel__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

.bip-hub-btn {
    display: inline-block;
    font-family: var(--bip-font-heading);
    font-size: var(--bip-text-md);
    font-weight: 400;
    background-color: #8edc00;
    color: #000;
    border: none;
    border-radius: 0;
    padding: 0.5em 2em;
    cursor: pointer;
    letter-spacing: var(--bip-tracking);
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    text-align: center;
    width: auto;
}

.bip-hub-btn:hover {
    background-color: #7acb00;
    color: #000;
}

.bip-hub-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Error message ────────────────────────────────────────────────────────── */
.bip-hub-error {
    font-size: 0.88rem;
    line-height: 1.2;
    color: #b32d2e;
    padding: 6px 0 0;
    min-height: 1.2em;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.bip-hub-panel__footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.87rem;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.bip-hub-panel__footer a {
    color: #111;
    text-decoration: underline;
}

.bip-hub-panel__footer a:hover {
    color: #555;
}

/* ── Personal results view ────────────────────────────────────────────────── */
.bip-personal-results {
    max-width: 600px;
    margin: 40px auto;
}

.bip-personal-results__context {
    font-size: 1rem;
    color: #444;
    margin-bottom: 24px;
}

.bip-personal-scores {
    margin-top: 20px;
    border: 2px solid #000;
    padding: 24px 28px;
}

.bip-personal-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 1rem;
}

.bip-personal-score-row:last-child {
    border-bottom: none;
}

.bip-personal-score-label {
    color: #222;
    font-weight: 500;
}

.bip-personal-score-value {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111;
}

.bip-hub-error-block {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px 24px;
    border: 2px solid #000;
    color: #b32d2e;
}

.bip-hub-no-code {
    max-width: 500px;
    margin: 40px auto;
    padding: 20px 24px;
    border: 2px solid #000;
    color: #333;
}

/* ── Loading spinner state ────────────────────────────────────────────────── */
.bip-hub-btn--loading {
    opacity: 0.7;
    cursor: wait;
}

/* ── Facilitator choice UI (appears in right panel after code check) ─────── */
.bip-hub-fac-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bipFadeIn 0.25s ease;
}

@keyframes bipFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bip-hub-fac-choice__greeting {
    font-size: 1.05rem;
    color: #111;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

.bip-hub-fac-choice__prompt {
    font-size: 0.92rem;
    color: #555;
    margin: 0 0 6px;
    text-align: center;
}

.bip-hub-fac-choice__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
}

.bip-hub-btn--choice {
    display: block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55em 1.5em;
    font-size: 1.1rem;
}

.bip-hub-btn--choice-alt {
    background-color: #fff;
    color: #111;
    border: 2px solid #000;
}

.bip-hub-btn--choice-alt:hover {
    background-color: #f0f0f0;
    color: #111;
}

.bip-hub-fac-choice__back {
    background: none;
    border: none;
    color: #666;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 6px 0 0;
    text-decoration: underline;
    font-family: inherit;
}

.bip-hub-fac-choice__back:hover {
    color: #111;
}

/* ── Mobile: stack vertically, assessment on top ──────────────────────────── */
@media (max-width: 680px) {
    .bip-hub-wrapper {
        flex-direction: column;
        gap: 24px;
        margin: 24px auto;
        padding: 0 16px;
    }

    .bip-hub-panel {
        padding: 28px 20px 22px;
    }

    .bip-hub-panel--right {
        order: 2;
    }

    .bip-hub-panel--left {
        order: 1;
    }
}

/* ── Animated loading dots ────────────────────────────────────────────── */
.bip-dots-loading::after {
  content: '';
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: bipDots 1.4s steps(4, end) infinite;
}
@keyframes bipDots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}
/* ==========================================================================
   BIP Combined Hub — Warm Brutalist [bip_hub_combined]
   ========================================================================== */

/* ── Outer shell ─────────────────────────────────────────────────────────── */
.bip-combined-hub {
    max-width: var(--bip-max-width, 1024px);
    margin: 0 auto;
    border: 3px solid #0d0b09;
    font-family: var(--bip-font-body, 'Abel', sans-serif);
    box-shadow: none !important;
    outline: none !important;
    overflow: hidden;
}
/* Kill any theme-level box-shadow on the hub or its wrapper */
.bip-combined-hub,
.bip-combined-hub > *,
* > .bip-combined-hub {
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

/* ── Masthead — hidden (removed from template) ───────────────────────────── */
.bip-combined-hub .bip-combined-masthead {
    display: none;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-hero {
    position: relative;
    height: 280px;
    overflow: hidden;
    border-bottom: 3px solid #0d0b09;
}

.bip-combined-hub .bip-combined-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    filter: sepia(0.10);
}

.bip-combined-hub .bip-combined-hero__placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: #e8e3da;
}

.bip-combined-hub .bip-combined-hero__grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(13,11,9,0.72) 0%, rgba(13,11,9,0.15) 55%, transparent 100%);
}

.bip-combined-hub .bip-combined-hero__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px 32px;
    gap: 8px;
}

.bip-combined-hub .bip-combined-hero__kicker {
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bip-accent, #c8401a);
    display: block;
    margin: 0;
}

.bip-combined-hub .bip-combined-hero__title {
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif);
    font-size: clamp(46px, 6vw, 70px);
    line-height: 0.88;
    color: #fdf9f3;
    letter-spacing: 0.01em;
    font-weight: 400;
    margin: 0;
    text-shadow: none;
    text-align: left;
}

/* ── Intro strip ─────────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-intro {
    background: #ece5d8;
    border-bottom: 2px solid #0d0b09;
    padding: 16px 32px;
}

.bip-combined-hub .bip-combined-intro__text {
    font-family: var(--bip-font-body, 'Abel', sans-serif);
    font-size: 14px;
    line-height: 1.60;
    color: #555;
    margin: 0;
    text-align: left;
}

/* ── 3-row grid: header | form (1fr) | button ────────────────────────────── */
.bip-combined-hub .bip-combined-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    background: #0d0b09;
    column-gap: 2px;
    row-gap: 0;
}

.bip-combined-hub .bip-combined-cell {
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

.bip-combined-hub .bip-combined-cell--l { background: #fdf9f3; }
.bip-combined-hub .bip-combined-cell--r { background: #f2ede3; }

/* Row 1: Header (kicker + heading + optional desc) */
.bip-combined-hub .bip-combined-cell-header-l {
    grid-column: 1; grid-row: 1;
    padding-top: 28px; padding-bottom: 16px;
    display: flex; flex-direction: column; gap: 8px;
    /* min-height ensures both header cells are at least this tall,
       so the form row below always starts at the same Y position */
    min-height: 90px;
}
.bip-combined-hub .bip-combined-cell-header-r {
    grid-column: 2; grid-row: 1;
    padding-top: 28px; padding-bottom: 16px;
    display: flex; flex-direction: column; gap: 8px;
    min-height: 90px;
}

/* Row 2: Form inputs */
.bip-combined-hub .bip-combined-cell-form-l {
    grid-column: 1; grid-row: 2;
    padding-top: 20px; padding-bottom: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.bip-combined-hub .bip-combined-cell-form-r {
    grid-column: 2; grid-row: 2;
    padding-top: 20px; padding-bottom: 0;
    display: flex; flex-direction: column; gap: 10px;
}

/* Row 3: Buttons */
.bip-combined-hub .bip-combined-cell-btn-l {
    grid-column: 1; grid-row: 3;
    padding-top: 16px; padding-bottom: 32px;
    display: flex; flex-direction: column; gap: 10px;
}
.bip-combined-hub .bip-combined-cell-btn-r {
    grid-column: 2; grid-row: 3;
    padding-top: 16px; padding-bottom: 32px;
}

/* ── Dev badge ───────────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-dev-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--bip-font-body, 'Abel', sans-serif);
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 3px 10px;
    background: #8edc00;
    color: #0d0b09;
    line-height: 1.4;
    margin: 0;
}

/* ── Entry kicker ────────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-entry-kicker {
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif);
    font-size: 13px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--bip-accent, #c8401a);
    line-height: 1.4;
    margin: 0;
    display: block;
    text-align: left;
    text-shadow: none;
    font-weight: 400;
}

/* ── Kill ALL theme h2 interference inside the hub ───────────────────────── */
.bip-combined-hub h2,
.bip-combined-hub h2::before,
.bip-combined-hub h2::after {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: none !important;
}

/* ── Panel headings ──────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-panel__heading {
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif) !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    letter-spacing: 0.04em !important;
    color: #0d0b09 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.0 !important;
    text-align: left !important;
    text-shadow: none !important;
    border: none !important;
    border-bottom: none !important;
    background: none !important;
}

/* ── Panel descriptions ──────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-panel__desc {
    font-family: var(--bip-font-body, 'Abel', sans-serif);
    font-size: 14px;
    line-height: 1.65;
    color: #555;
    margin: 0;
    text-align: left;
}

/* ── Divider (top of form, left panel) ───────────────────────────────────── */
.bip-combined-hub .bip-combined-panel__divider {
    border: none;
    height: 1px;
    background: #d8d0c4;
    margin: 0;
}

/* ── Select label ────────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-select-label {
    font-family: var(--bip-font-body, 'Abel', sans-serif);
    font-size: 10px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #9a9080;
    display: block;
    margin-bottom: -4px;
    text-align: left;
}

/* ── Select ──────────────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-family: var(--bip-font-body, 'Abel', sans-serif);
    border: 2px solid #0d0b09;
    border-radius: 0;
    color: #0d0b09;
    appearance: none;
    -webkit-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%230d0b09'/%3E%3C/svg%3E") no-repeat right 12px center;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 44px;
}
.bip-combined-hub .bip-combined-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 220, 0, 0.30);
}
/* Placeholder option (disabled first option) shown in muted colour */
.bip-combined-hub .bip-combined-select option[disabled] {
    color: #9a9080;
}

/* ── Generate token button (dark/invert) ─────────────────────────────────── */
.bip-combined-hub .bip-hub-btn--dark {
    background-color: #0d0b09 !important;
    color: #fdf9f3 !important;
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif) !important;
    font-size: 20px !important;
    letter-spacing: 0.04em !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.55em 0 !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background-color 0.2s;
}
.bip-combined-hub .bip-hub-btn--dark:hover {
    background-color: #2a2520 !important;
    color: #fdf9f3 !important;
}
.bip-combined-hub .bip-hub-btn--dark:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ── Token result box ────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-token-result {
    border: 2px solid #d8d0c4;
    background: #f2ede3;
    padding: 12px 14px;
}
.bip-combined-hub .bip-combined-token-label {
    font-family: var(--bip-font-body, 'Abel', sans-serif);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9a9080;
    margin: 0 0 7px;
    text-align: left;
}
.bip-combined-hub .bip-combined-token-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bip-combined-hub .bip-combined-token-code {
    font-family: monospace;
    font-size: 13px;
    color: #0d0b09;
    flex: 1;
    word-break: break-all;
}
.bip-combined-hub .bip-combined-copy-btn {
    font-family: var(--bip-font-body, 'Abel', sans-serif);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 13px;
    border: 2px solid #0d0b09;
    background: #fdf9f3;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.bip-combined-hub .bip-combined-copy-btn:hover { background: #ece5d8; }

/* ── Code input ──────────────────────────────────────────────────────────── */
.bip-combined-hub .bip-hub-code-input {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    font-family: var(--bip-font-body, 'Abel', sans-serif) !important;
    border: 2px solid #0d0b09 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #0d0b09 !important;
    outline: none !important;
    box-sizing: border-box !important;
    letter-spacing: 0.02em !important;
    text-align: left !important;
    line-height: 44px !important;
}
.bip-combined-hub .bip-hub-code-input::placeholder {
    color: #9a9080 !important;
    opacity: 1 !important;
}
.bip-combined-hub .bip-hub-code-input:focus {
    box-shadow: 0 0 0 3px rgba(142, 220, 0, 0.32) !important;
}

/* ── Continue button ─────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-cell-btn-r .bip-hub-btn {
    display: block !important;
    width: 100% !important;
    padding: 0.55em 0 !important;
    text-align: center !important;
    font-size: 20px !important;
    border-radius: 0 !important;
}

/* ── Hub error ───────────────────────────────────────────────────────────── */
.bip-combined-hub .bip-hub-error {
    font-size: 13px;
    color: var(--bip-accent, #c8401a);
    min-height: 1.2em;
    padding: 4px 0 0;
    line-height: 1.2;
    text-align: left;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.bip-combined-hub .bip-combined-footer {
    background: #0d0b09;
    border-top: 3px solid #0d0b09;
    padding: 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(253, 249, 243, 0.70);
}
.bip-combined-hub .bip-combined-footer a {
    color: rgba(253, 249, 243, 0.80);
    text-decoration: underline;
}
.bip-combined-hub .bip-combined-footer a:hover { color: #8edc00; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .bip-combined-hub .bip-combined-hero          { height: 200px; }
    .bip-combined-hub .bip-combined-hero__title   { font-size: 38px !important; }
    .bip-combined-hub .bip-combined-intro         { padding: 14px 20px; }
    .bip-combined-hub .bip-combined-footer        { padding: 12px 20px; flex-direction: column; gap: 4px; text-align: center; }

    .bip-combined-hub .bip-combined-panels {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    /* Entry (right) on top, token generator (left) below on mobile */
    .bip-combined-hub .bip-combined-cell-header-r { grid-column: 1; grid-row: 1; }
    .bip-combined-hub .bip-combined-cell-form-r    { grid-column: 1; grid-row: 2; }
    .bip-combined-hub .bip-combined-cell-btn-r     { grid-column: 1; grid-row: 3; }
    .bip-combined-hub .bip-combined-cell-header-l  { grid-column: 1; grid-row: 4; }
    .bip-combined-hub .bip-combined-cell-form-l    { grid-column: 1; grid-row: 5; }
    .bip-combined-hub .bip-combined-cell-btn-l     { grid-column: 1; grid-row: 6; }

    .bip-combined-hub .bip-combined-cell { padding-left: 20px; padding-right: 20px; }
}


/* ==========================================================================
   BIP Pop Hub — Full-Bleed Pop Design [bip_hub_pop]
   ========================================================================== */

.bip-pop-hub {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

/* ── Full-bleed background image ─────────────────────────────────────────── */
.bip-pop-hub__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

/* ── Dark overlay ────────────────────────────────────────────────────────── */
.bip-pop-hub__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

/* ── Pop-art halftone dots ───────────────────────────────────────────────── */
.bip-pop-hub__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1.5px, transparent 1.5px);
    background-size: 6px 6px;
}

/* ── Decorative pop blocks ───────────────────────────────────────────────── */
.bip-pop-hub__block {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.bip-pop-hub__block--green {
    width: 120px;
    height: 120px;
    background: var(--bip-primary, #8edc00);
    opacity: 0.12;
    top: 8%;
    left: 5%;
    transform: rotate(-8deg);
}

.bip-pop-hub__block--rust {
    width: 80px;
    height: 200px;
    background: var(--bip-accent, #c8401a);
    opacity: 0.1;
    bottom: 10%;
    right: 4%;
    transform: rotate(5deg);
}

.bip-pop-hub__block--warm {
    width: 200px;
    height: 80px;
    background: var(--bip-surface-warm, #f7f4ef);
    opacity: 0.08;
    top: 15%;
    right: 8%;
    transform: rotate(-3deg);
}

/* ── Card container ──────────────────────────────────────────────────────── */
.bip-pop-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    border: 2px solid #000;
    overflow: hidden;
}

/* ── Card hero ───────────────────────────────────────────────────────────── */
.bip-pop-card__hero {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.bip-pop-card__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.bip-pop-card__hero-wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(142, 220, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.bip-pop-card__hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 0, 0, 0.18) 1px, transparent 1px);
    background-size: 5px 5px;
    mix-blend-mode: multiply;
}

.bip-pop-card__hero-text {
    position: absolute;
    bottom: 20px;
    left: 28px;
    z-index: 2;
}

.bip-pop-card__kicker {
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bip-accent, #c8401a);
    display: block;
    margin-bottom: 4px;
}

.bip-pop-card__title {
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif);
    font-size: 42px;
    line-height: 0.92;
    color: var(--bip-surface-warm, #f7f4ef);
    letter-spacing: -0.01em;
    margin: 0;
    font-weight: 400;
}

.bip-pop-card__title em {
    font-style: normal;
    color: var(--bip-primary, #8edc00);
}

/* ── Card body ───────────────────────────────────────────────────────────── */
.bip-pop-card__body {
    padding: 28px 28px 24px;
    background: var(--bip-surface-warm, #f7f4ef);
}

.bip-pop-card__desc {
    font-family: var(--bip-font-body, 'Abel', sans-serif);
    font-size: 15px;
    line-height: 1.55;
    color: #000;
    margin: 0 0 22px;
}

.bip-pop-card__input {
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-family: var(--bip-font-body, 'Abel', sans-serif) !important;
    border: 2px solid #000 !important;
    background: #fff !important;
    outline: none !important;
    border-radius: 0 !important;
    letter-spacing: 0.02em !important;
    box-sizing: border-box !important;
    color: #111 !important;
}

.bip-pop-card__input:focus {
    box-shadow: 0 0 0 3px rgba(142, 220, 0, 0.25) !important;
}

.bip-pop-card__input::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

/* ── Pop hub error — slightly modified for card context ──────────────────── */
.bip-pop-card__body .bip-hub-error {
    font-size: 13px;
    color: var(--bip-accent, #c8401a);
    min-height: 1.3em;
    margin-top: 6px;
    letter-spacing: 0.04em;
}

/* ── Card button ─────────────────────────────────────────────────────────── */
.bip-pop-card__btn.bip-hub-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 13px 0;
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif);
    font-size: 20px;
    letter-spacing: 0.04em;
    background: var(--bip-primary, #8edc00);
    color: #000;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    text-align: center;
}

.bip-pop-card__btn.bip-hub-btn:hover {
    color: #fff;
    background: var(--bip-primary, #8edc00);
}

/* ── Card footer ─────────────────────────────────────────────────────────── */
.bip-pop-card__footer {
    background: #000;
    color: var(--bip-surface-warm, #f7f4ef);
    padding: 12px 28px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--bip-font-heading, 'Bebas Neue', sans-serif);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bip-pop-card__footer a {
    color: var(--bip-surface-warm, #f7f4ef);
    text-decoration: underline;
    opacity: 0.5;
}

.bip-pop-card__footer a:hover {
    opacity: 1;
}

/* ── Facilitator choice inside pop card ──────────────────────────────────── */
.bip-pop-card__body .bip-hub-fac-choice {
    max-width: 100%;
}

/* ── Pop hub mobile ──────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .bip-pop-card__hero {
        height: 160px;
    }

    .bip-pop-card__body {
        padding: 22px 20px 18px;
    }

    .bip-pop-card__footer {
        padding: 10px 20px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}
