/* ============================================================
   Community Hub page (page-southside-supports.php) styles.
   Loaded only on this template. Responsive styles included below.
   ============================================================ */

.page-template-page-southside-supports {
    --hub-navy: #1D265D;
    --hub-navy-2: #232C6B;
    --hub-black: #101014;
    --hub-paper: #FFFFFF;
    --hub-paper-2: #F2F4F8;
    --hub-cyan: #00BCFF;
    --hub-cyan-2: #008EB9;
    --hub-lime: #E7FF1D;
    --hub-line: #DCE1E8;
    --hub-ink: #101014;
    --hub-ink-soft: #525C6B;
}

/* On this page the global header sits in the normal flow, below the
   top bar and the ribbon, instead of overlaying the page content. */
.page-template-page-southside-supports #site-header {
    position: relative;
}

.admin-bar.page-template-page-southside-supports #site-header {
    top: 0;
}

/* .page-template-page-southside-supports #site-header .inner-wide {
    border-bottom: 1px solid var(--hub-line);
} */

/* ---------- Scope resets against the theme's global styles ---------- */
.hub-page {
    letter-spacing: normal;
    color: var(--hub-ink);
}

.hub-page p {
    padding: 0;
    margin: 0;
}

.hub-page h1,
.hub-page h2,
.hub-page h3,
.hub-page h4 {
    padding: 0;
}

.hub-page a {
    color: inherit;
}

.hub-page h1,
.hub-page h2,
.hub-page h3 {
    font-family: 'Norwester', sans-serif;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: var(--hub-navy);
    margin: 0;
}

.hub-page .hub-img,
.hub-ph .hub-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Placeholder photo blocks (no real images yet) ---------- */
.hub-ph {
    position: relative;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 10px, rgba(255, 255, 255, 0.015) 10px 20px),
        linear-gradient(160deg, #2b3570, var(--hub-navy) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hub-ph span {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 4px 10px;
    border-radius: 2px;
}

/* ---------- Top utility bar ---------- */
.hub-topbar {
    background: var(--hub-navy);
    color: var(--hub-paper);
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.hub-topbar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 7px 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.hub-topbar a {
    text-decoration: none;
    opacity: 0.9;
    color: var(--hub-cyan);
}

.hub-topbar a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ---------- Cause ticker ribbon ---------- */
.hub-ribbon {
    background: repeating-linear-gradient(-45deg, var(--hub-lime) 0 18px, #cfe600 18px 36px);
    color: var(--hub-navy);
    overflow: hidden;
    border-top: 2px solid var(--hub-black);
    border-bottom: 2px solid var(--hub-black);
}

.hub-ribbon-track {
    display: flex;
    width: max-content;
    animation: hub-scroll-left 34s linear infinite;
}

.hub-ribbon-track:hover {
    animation-play-state: paused;
}

.hub-ribbon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 34px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    background: var(--hub-navy);
    color: var(--hub-cyan);
    margin: 6px 14px;
    border-radius: 3px;
}

@keyframes hub-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- Hero ---------- */
.hub-hero {
    max-width: 1140px;
    margin: 0 auto;
    padding: 64px 24px 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hub-eyebrow {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hub-cyan-2);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hub-eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--hub-cyan-2);
    display: inline-block;
}

.hub-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    line-height: 0.98;
}

.hub-hero h1 em {
    font-style: normal;
    color: var(--hub-cyan-2);
}

.hub-page p.hub-lede {
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--hub-ink-soft);
    max-width: 46ch;
    margin: 22px 0 28px;
}

.hub-hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hub-btn {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 26px;
    border-radius: 999px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--hub-navy);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hub-btn-solid {
    background: var(--hub-cyan-2);
    color: #fff;
    border-color: var(--hub-cyan-2);
}

.hub-btn-solid:hover {
    background: var(--hub-navy);
    border-color: var(--hub-navy);
    color: #fff;
}

.hub-btn-outline {
    background: transparent;
    color: var(--hub-navy);
}

.hub-btn-outline:hover {
    background: var(--hub-navy);
    color: #fff;
}

.hub-hero-badge-cluster {
    position: relative;
}

.hub-hero-photo {
    aspect-ratio: 4/5;
    border-radius: 6px;
    box-shadow: 0 22px 40px -18px rgba(16, 16, 20, 0.45);
    overflow: hidden;
}

.hub-decal {
    position: absolute;
    bottom: -22px;
    left: -22px;
    background: var(--hub-paper);
    border: 3px solid var(--hub-navy);
    border-radius: 50%;
    width: 128px;
    height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-9deg);
    box-shadow: 0 10px 24px -8px rgba(16, 16, 20, 0.35);
}

.hub-decal-big {
    font-family: 'Norwester', sans-serif;
    font-size: 2.4rem;
    line-height: 0.9;
    color: var(--hub-cyan-2);
}

.hub-decal-small {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hub-navy);
    margin-top: 2px;
    line-height: 1.4;
}

/* ---------- Section shell ---------- */
.hub-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 74px 24px;
}

.hub-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 38px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--hub-navy);
    padding-bottom: 18px;
}

.hub-section-head h2 {
    font-size: clamp(2rem, 4vw, 2.9rem);
}

.hub-section-head .hub-section-tag {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hub-ink-soft);
    max-width: 34ch;
    text-align: right;
}

.hub-section-head .hub-head-on-dark {
    color: var(--hub-navy);
}

.hub-divider-strip {
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--hub-navy) 0 22px, var(--hub-lime) 22px 44px);
}

/* ---------- Southside Supports grid ---------- */
.hub-supports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.hub-support-card {
    background: var(--hub-paper-2);
    border: 1px solid var(--hub-line);
    border-radius: 6px;
    padding: 22px 18px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hub-support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px -14px rgba(16, 16, 20, 0.25);
}

.hub-support-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: var(--hub-navy);
    color: var(--hub-cyan);
    font-family: 'Norwester', sans-serif;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-support-card h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.hub-support-card p {
    font-size: 0.86rem;
    color: var(--hub-ink-soft);
    line-height: 1.5;
    margin: 0;
}

.hub-support-since {
    display: inline-block;
    margin-top: 12px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub-cyan-2);
}

/* ---------- Clickable cards (cards with a link set) ---------- */
.hub-card-link {
    position: relative;
}

/* The link covers the whole card, so anywhere on the card is clickable. */
.hub-card-cover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    border-radius: inherit;
}

.hub-card-cover:focus-visible {
    outline: 2px solid var(--hub-cyan);
    outline-offset: 2px;
}

.hub-card-link:hover h3 {
    color: var(--hub-cyan-2);
}

.hub-event-card.hub-card-link {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hub-event-card.hub-card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px -14px rgba(16, 16, 20, 0.25);
}

/* ---------- Events ---------- */
.hub-event-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
}

.hub-page button.hub-event-tab {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    height: auto !important;
    padding: 9px 18px;
    border-radius: 20px;
    border: 2px solid var(--hub-navy);
    cursor: pointer;
    background: transparent;
    color: var(--hub-navy);
    transition: background 0.25s ease, color 0.25s ease;
}

.hub-page button.hub-event-tab.active {
    background: var(--hub-navy);
    color: #fff;
}

.hub-event-view {
    display: none;
}

.hub-event-view.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.hub-event-empty {
    color: var(--hub-ink-soft);
}

.hub-event-card {
    background: var(--hub-paper-2);
    border: 1px solid var(--hub-line);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hub-event-date {
    display: flex;
    flex: 1;
}

.hub-date-block {
    background: var(--hub-navy);
    color: #fff;
    width: 76px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Norwester', sans-serif;
}

.hub-date-block .hub-date-month {
    font-size: 1.6rem;
    line-height: 1;
    text-transform: uppercase;
}

.hub-date-block .hub-date-year,
.hub-date-block .hub-date-tba {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hub-cyan);
    margin-top: 5px;
}

.hub-date-block .hub-date-tba {
    margin-top: 0;
    text-align: center;
    line-height: 1.3;
    padding: 0 8px;
}

.hub-event-body {
    padding: 16px 18px;
    flex: 1;
}

.hub-event-status {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
}

.hub-status-upcoming {
    background: rgba(0, 188, 255, 0.16);
    color: var(--hub-cyan-2);
}

.hub-status-past {
    background: rgba(16, 16, 20, 0.08);
    color: var(--hub-ink-soft);
}

.hub-event-body h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    line-height: 1.15;
}

.hub-event-body p {
    font-size: 0.85rem;
    color: var(--hub-ink-soft);
    line-height: 1.5;
    margin: 0 0 10px;
}

.hub-event-loc {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--hub-cyan-2);
}

/* ---------- Archive / corkboard ---------- */
.hub-archive-board {
    background: var(--hub-black);
    border-radius: 10px;
    padding: 36px;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 14px 14px;
}

.hub-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.hub-archive-card {
    background: var(--hub-paper-2);
    border-radius: 4px;
    padding: 12px 12px 16px;
    box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.5);
    transform: rotate(var(--hub-r, 0deg));
    position: relative;
}

.hub-archive-card:nth-child(4n+1) {
    --hub-r: -2deg;
}

.hub-archive-card:nth-child(4n+2) {
    --hub-r: 1.5deg;
}

.hub-archive-card:nth-child(4n+3) {
    --hub-r: -1deg;
}

.hub-archive-card:nth-child(4n+4) {
    --hub-r: 2deg;
}

.hub-archive-card.hub-hidden {
    display: none;
}

.hub-pin {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #eafcff, var(--hub-cyan-2) 70%);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4);
}

.hub-archive-photo {
    aspect-ratio: 1/1;
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
}

.hub-cap-date {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub-cyan-2);
}

.hub-archive-card h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    margin: 4px 0 4px;
    color: var(--hub-navy);
}

.hub-archive-card p {
    font-size: 0.78rem;
    color: var(--hub-ink-soft);
    line-height: 1.4;
    margin: 0;
}

.hub-archive-more {
    text-align: center;
    margin-top: 30px;
}

.hub-archive-more .hub-btn {
    border-color: var(--hub-lime);
    color: var(--hub-lime);
}

.hub-archive-more .hub-btn:hover {
    background: var(--hub-lime);
    color: var(--hub-black);
}

/* ---------- Team ---------- */
.hub-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.hub-team-card {
    text-align: center;
}

.hub-team-photo {
    aspect-ratio: 1/1;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}

.hub-team-card h3 {
    font-size: 1.15rem;
}

.hub-team-role {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub-cyan-2);
    margin: 4px 0 8px;
}

.hub-team-card p {
    font-size: 0.85rem;
    color: var(--hub-ink-soft);
    line-height: 1.5;
}

.hub-tenure {
    display: inline-block;
    margin-top: 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.64rem;
    background: var(--hub-paper);
    border: 1px solid var(--hub-line);
    padding: 3px 9px;
    border-radius: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hub-navy);
}

/* ---------- Partner CTA ---------- */
.hub-partner-cta {
    background: var(--hub-navy);
    color: #fff;
    border-radius: 10px;
    padding: 52px 46px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hub-partner-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, rgba(0, 188, 255, 0.08) 0 16px, transparent 16px 32px);
}

.hub-partner-cta>* {
    position: relative;
}

.hub-partner-cta h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin-bottom: 14px;
}

.hub-partner-cta p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    max-width: 52ch;
}

.hub-partner-form {
    background: var(--hub-paper);
    border-radius: 8px;
    padding: 24px;
    color: var(--hub-ink);
}

/* Ninja Forms elements inside the partner form box */
.hub-partner-form .nf-form-fields-required {
    display: none;
}

.hub-partner-form .nf-field-container {
    margin-bottom: 14px;
}

.hub-partner-form .nf-field-label {
    margin-bottom: 0 !important;
}

.hub-partner-form .nf-field-label label {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hub-ink-soft);
    display: block;
    margin-bottom: 0;
}

/* .hub-partner-form .nf-field-element input:not([type="submit"]):not([type="button"]),
.hub-partner-form .nf-field-element select,
.hub-partner-form .nf-field-element textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--hub-line);
    border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    background: var(--hub-paper-2);
    color: var(--hub-ink);
} */

.hub-partner-form .nf-field-element textarea {
    min-height: 90px;
    resize: vertical;
    height: 90px;
}

.hub-partner-form input[type="submit"] {
    width: 100% !important;
    /* height: auto !important;
    padding: 13px 20px;
    border: none;
    border-radius: 999px;
    background: var(--hub-cyan-2);
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease; */
}

/* .hub-partner-form input[type="submit"]:hover {
    background: var(--hub-navy);
    color: #fff;
} */







body.page-template-page-southside-supports #site-header .toggle-menu-wrap {
    /* top: 38px; */
    top: 125px;
}

body.page-template-page-southside-supports.admin-bar #site-header .toggle-menu-wrap {
    /* top: 70px; */
    top: 157px;
}

body.page-template-page-southside-supports.nav-is-open #site-header .toggle-menu-wrap {
    transform: translateX(0) !important;
}

body.page-template-page-southside-supports.header-notice-active #site-header .toggle-menu-wrap {
    /* top: 152px; */
    top: 239px;
}

body.page-template-page-southside-supports.admin-bar.header-notice-active #site-header .toggle-menu-wrap {
    /* top: 184px; */
    top: 241px;
}


body.page-template-page-southside-supports #site-nav .inner-wide .menu-social-wrap .menu-wrap {
    margin-top: 200px;
}

@media (max-width: 1240px) {
    body.page-template-page-southside-supports.admin-bar #site-header .toggle-menu-wrap {
        top: 51px;
    }

    body.page-template-page-southside-supports.header-notice-active #site-header .toggle-menu-wrap {
        top: 73px;
    }

    body.page-template-page-southside-supports.admin-bar.header-notice-active #site-header .toggle-menu-wrap {
        top: 73px;
    }
}

@media (max-width: 640px) {
    body.page-template-page-southside-supports #site-header .toggle-menu-wrap {
        top: 20px;
        transform: none !important;
    }

    body.page-template-page-southside-supports.admin-bar #site-header .toggle-menu-wrap {
        top: 20px;
    }

    body.page-template-page-southside-supports.header-notice-active #site-header .toggle-menu-wrap {
        top: 20px;
    }

    body.page-template-page-southside-supports.admin-bar.header-notice-active #site-header .toggle-menu-wrap {
        top: 20px;
    }
}





/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hub-hero {
        grid-template-columns: 1fr;
    }

    .hub-supports-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-event-view.active {
        grid-template-columns: 1fr;
    }

    .hub-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-partner-cta {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-ribbon-track {
        animation: none;
    }
}