/* ═════════════════════════════════════════════════════════════════════════
   Jamie's footer refinements (2026-10-14) — modern layout polish on top of
   the light-edition site.css. The mockup's footer structure is kept; this
   file adds the finishing touches only.
   ═════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   Mobile header actions (2026-10-24) — keep the "Log in" ghost button visible
   on phones. The light-edition site.css hides .nav-actions .btn-ghost below
   1180px; mobile visitors still need the login action in the top bar.
   On very narrow screens (<400px) the whole action row moves into the burger
   menu so the header stays clean (logo + burger only).
   ──────────────────────────────────────────────────────────────────────────── */

/* CTA links inside the burger menu — hidden unless the top-bar actions are. */
.menu-cta { display: none; }

@media (max-width: 1180px) {
    .nav-actions .btn-ghost {
        display: inline-flex;
    }
}

@media (max-width: 560px) {
    .nav { gap: .8rem; height: 72px; }
    .menu { top: 72px; }
    .brand img { height: 40px; width: 40px; }
    .burger { padding: .35rem; }
    .nav-actions .btn { padding: .5rem .7rem; font-size: .72rem; }
}

/* Very narrow phones: the top bar keeps ONLY the compact "Log in" button so
   the header never overflows; "Become a member" moves into the burger menu. */
@media (max-width: 380px) {
    .nav-actions .btn-register { display: none; }
    .menu-cta { display: block; }
    .menu-cta a { font-weight: 600; color: var(--royal); }
}

/* Gradient hairline separating the page from the footer */
footer {
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--royal, #2749B5) 0%, var(--cyan, #3FE0FF) 50%, var(--mint, #3DFFA0) 100%);
    opacity: .85;
}

/* Brand column polish */
.foot-brand img {
    filter: drop-shadow(0 6px 18px rgba(39, 73, 181, .35));
}

.foot-brand p {
    color: #B9C2DA;
}

/* Column links — refined hover with a subtle nudge */
.foot li a {
    display: inline-block;
    transition: color .18s ease, transform .18s ease;
}

.foot li a:hover {
    color: #fff;
    transform: translateX(3px);
}

.foot .addr {
    color: #8E9AB8;
    max-width: 30ch;
}

/* Bottom bar — roomier, cleaner separation */
.foot-bottom {
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    color: #8E9AB8;
}

.foot-bottom .legal {
    display: flex;
    gap: 1.6rem;
}

.foot-bottom .legal a:hover {
    color: #fff;
}

/* Mobile stacking */
@media (max-width: 900px) {
    .foot {
        grid-template-columns: 1fr 1fr;
        gap: 2.4rem;
    }

    .foot-brand {
        grid-column: 1 / -1;
    }

    .foot-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .foot {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Affiliations & Sponsors — professional card layout (Jamie, 2026-10-15)
   Overrides on top of the light-edition site.css. Logos resolve
   automatically (Clearbit/favicon) or from the admin's own upload.
   ──────────────────────────────────────────────────────────────────────────── */

/* Affiliations — refined cards with a framed logo, description and website link */
.aff-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.6rem;
}

.aff-card {
    background: #fff;
    border: 1px solid #e6eaf4;
    border-radius: 1.1rem;
    padding: 2rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

/* Gradient hairline along the top edge of each card */
.aff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2749B5 0%, #3FE0FF 60%, #3DFFA0 100%);
    opacity: 0;
    transition: opacity .22s ease;
}

.aff-card:hover {
    box-shadow: 0 14px 34px rgba(20, 32, 92, .10);
    transform: translateY(-3px);
    border-color: #d8e0f2;
}

.aff-card:hover::before { opacity: 1; }

.aff-card .logo-frame {
    width: 100%;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    background:
        radial-gradient(circle at 50% 50%, rgba(39, 73, 181, .035) 0%, rgba(39, 73, 181, 0) 70%);
    border-radius: .8rem;
}

.aff-card .logo-frame img {
    max-width: 100%;
    max-height: 96px;
    object-fit: contain;
}

.aff-card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    color: #14205C;
    line-height: 1.35;
    margin: 0;
}

.aff-card p {
    font-size: .84rem;
    line-height: 1.6;
    color: #5a6478;
    margin: .6rem 0 0;
    flex: 1;
}

.aff-card .aff-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 600;
    color: #2749B5;
    text-decoration: none;
    padding: .45rem 1rem;
    border: 1px solid rgba(39, 73, 181, .25);
    border-radius: 999px;
    transition: background .18s ease, color .18s ease;
}

.aff-card .aff-link:hover {
    background: #2749B5;
    color: #fff;
}

.aff-card .aff-link span { transition: transform .18s ease; }
.aff-card .aff-link:hover span { transform: translateX(2px); }

@media (max-width: 560px) {
    .aff-cards { grid-template-columns: 1fr; }
}

/* Sponsors — tiered sections with logo tiles + descriptions below the logo */
.sponsor-tier {
    margin-bottom: 3.4rem;
}

.tier-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .6rem;
}

.sponsor-tier .tier-kicker {
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    color: #2749B5;
    margin: 0;
}

/* Metal-toned tier badges */
.tier-badge {
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: .18rem .6rem;
    border-radius: 999px;
    border: 1px solid;
}

.tier-badge--titanium { color: #3d4a63; border-color: #b9c2d4; background: linear-gradient(135deg, #eef1f7, #dfe5ef); }
.tier-badge--platinum { color: #0f5a52; border-color: #9fd6cf; background: linear-gradient(135deg, #eefaf8, #dff2ef); }
.tier-badge--gold     { color: #8a6a1a; border-color: #e5cf8a; background: linear-gradient(135deg, #fdf8e9, #f6ecd2); }
.tier-badge--silver   { color: #5b6578; border-color: #c9d0dd; background: linear-gradient(135deg, #f7f9fc, #eef1f7); }

.sponsor-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem;
}

.sponsor-tile {
    background: #fff;
    border: 1px solid #e6eaf4;
    border-radius: 1.1rem;
    padding: 1.8rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

.sponsor-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2749B5 0%, #3FE0FF 60%, #3DFFA0 100%);
    opacity: 0;
    transition: opacity .22s ease;
}

.sponsor-tile:hover {
    box-shadow: 0 14px 34px rgba(20, 32, 92, .10);
    transform: translateY(-3px);
    border-color: #d8e0f2;
}

.sponsor-tile:hover::before { opacity: 1; }

.sponsor-tile .logo-frame {
    width: 100%;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: radial-gradient(circle at 50% 50%, rgba(39, 73, 181, .035) 0%, rgba(39, 73, 181, 0) 70%);
    border-radius: .8rem;
}

.sponsor-tile .logo-frame img {
    max-width: 100%;
    max-height: 84px;
    object-fit: contain;
}

.sponsor-tile .sponsor-name {
    font-size: .95rem;
    font-weight: 600;
    color: #14205C;
}

.sponsor-tile .sponsor-desc {
    margin-top: .4rem;
    font-size: .8rem;
    line-height: 1.55;
    color: #5a6478;
    flex: 1;
}

.sponsor-tile .sponsor-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    color: #2749B5;
    padding: .42rem 1rem;
    border: 1px solid rgba(39, 73, 181, .25);
    border-radius: 999px;
    transition: background .18s ease, color .18s ease;
}

.sponsor-tile:hover .sponsor-link {
    background: #2749B5;
    color: #fff;
}

.sponsor-tile .sponsor-link span { transition: transform .18s ease; }
.sponsor-tile:hover .sponsor-link span { transform: translateX(2px); }

@media (max-width: 560px) {
    .sponsor-tiles { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Cookie consent banner (website) — porcelain card, gradient accent.
   ──────────────────────────────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__card {
    pointer-events: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    max-width: 720px;
    background: #fff;
    border: 1px solid #e6eaf4;
    border-radius: 1rem;
    box-shadow: 0 18px 44px rgba(20, 32, 92, .16);
    padding: 1rem 1.2rem;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #2749B5, #3FE0FF, #3DFFA0) 1;
}

.cookie-banner__body {
    flex: 1 1 260px;
    font-size: .82rem;
    line-height: 1.55;
    color: #5a6478;
}

.cookie-banner__body strong { color: #14205C; }

.cookie-banner__body a {
    color: #2749B5;
    font-weight: 600;
    text-decoration: underline;
    margin-left: .3rem;
}

.cookie-banner__actions {
    display: flex;
    gap: .6rem;
    flex-shrink: 0;
}

.btn-sm {
    font-size: .78rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    display: inline-block;
}

@media (max-width: 560px) {
    .cookie-banner { left: .75rem; right: .75rem; bottom: .75rem; }
    .cookie-banner__card { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-banner__actions { justify-content: center; }
}
