/* ==========================================================================
   FBDS Theme — Institutional design for Franco-British Data Society
   Colors: Blue #0055a4 | Red #ef4135 | White #ffffff
   Typography: Inter (similar to Marianne gov.fr)
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #0055a4;
    --blue-dark: #003d7a;
    --blue-light: #e8f0fa;
    --red: #ef4135;
    --red-dark: #c4342a;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #1a1a2e;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1200px;
    --container-narrow: 780px;
    --radius: 0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--blue-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

/* ---------- Layout ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: var(--gray-50);
}

/* ---------- Flag Bar ---------- */
.header-flag-bar {
    display: flex;
    height: 4px;
}

.flag-stripe {
    flex: 1;
}

.flag-blue { background: var(--blue); }
.flag-white { background: var(--gray-200); }
.flag-red { background: var(--red); }

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 32px;
}

.header-brand {
    flex-shrink: 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 64px;
    width: auto;
}

.site-title-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.01em;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
}

/* Navigation helper output */
.site-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.site-nav li {}

.site-nav li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.site-nav li a:hover,
.site-nav li.nav-current a {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

/* Footer navigation */
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    padding: 4px 0;
    font-size: 0.9375rem;
}

.footer-nav li a {
    color: var(--gray-400);
}

.footer-nav li a:hover {
    color: var(--white);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-800);
    border-radius: 1px;
    transition: all var(--transition);
}

.nav-toggle-active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle-active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle-active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Page Banner (city image hero) ---------- */
.page-banner {
    position: relative;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.page-banner.page-banner-large {
    min-height: 520px;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.page-banner-inner {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
    width: 100%;
}

.page-banner-title {
    color: var(--white);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    max-width: 900px;
}

.page-banner-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 32px;
    max-width: 720px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.page-banner-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-banner-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-banner-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--white);
}

/* ---------- Hero Newsletter Form ---------- */
.page-banner-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 16px;
    max-width: 480px;
}
.page-banner-divider::before,
.page-banner-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}
.page-banner-divider-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-banner-newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    max-width: 480px;
    margin: 0;
}
.page-banner-newsletter-form input[type="email"] {
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 0.9375rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-900);
    outline: none;
    transition: border-color var(--transition);
}
.page-banner-newsletter-form input[type="email"]:focus {
    border-color: var(--white);
    background: var(--white);
}
.page-banner-newsletter-hint {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.page-banner-newsletter-success,
.page-banner-newsletter-error {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    line-height: 1.5;
    display: none;
}
.page-banner-newsletter-success strong,
.page-banner-newsletter-error strong {
    font-weight: 700;
}
.page-banner-newsletter-success.is-visible,
.page-banner-newsletter-error.is-visible {
    display: block;
}
.page-banner-newsletter-success {
    background: rgba(255, 255, 255, 0.95);
    color: var(--blue-dark);
}
.page-banner-newsletter-error {
    background: rgba(239, 65, 53, 0.95);
    color: var(--white);
}

@media (max-width: 600px) {
    .page-banner-newsletter-form {
        grid-template-columns: 1fr;
    }
    .page-banner-newsletter-form .btn {
        width: 100%;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-primary:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: var(--white);
}

.btn-secondary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.btn-secondary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
}

.page-banner .btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.page-banner .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    color: var(--white);
}

/* ---------- Section Headers ---------- */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--blue);
}

.section-header-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: none;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    margin-top: 8px;
    max-width: 560px;
}

.section-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--red);
    white-space: nowrap;
}

.section-link:hover {
    color: var(--red-dark);
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.subsection-title:not(:first-child) {
    margin-top: 56px;
}

/* ---------- Events Grid / List ---------- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 0;
}

.events-list .event-card {
    max-width: none;
}

.event-card {
    border-bottom: 1px solid var(--gray-200);
}

.event-card-link {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    color: inherit;
    text-decoration: none;
    transition: background var(--transition);
}

.event-card-link:hover {
    color: inherit;
}

.event-card-link:hover .event-card-title {
    color: var(--blue);
}

.event-card:first-child {
    padding-top: 0;
}

.event-card-date-badge {
    flex-shrink: 0;
    width: 72px;
    text-align: center;
    padding: 12px 8px;
    background: var(--blue-light);
    border-left: 3px solid var(--blue);
}

.event-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.event-year {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.event-card-content {
    flex: 1;
    min-width: 0;
}

.event-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
}

.event-card-title {
    color: var(--gray-900);
}

.event-card-excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ---------- Posts Grid ---------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
}

.post-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.post-card-image-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.post-card:hover .post-card-image {
    transform: scale(1.02);
}

.post-card-content {
    padding: 20px 24px 24px;
}

.post-card-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.post-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.post-card:hover .post-card-title {
    color: var(--blue);
}

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-card-date {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ---------- About Section ---------- */
.section-about {
    background: var(--white) !important;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 64px;
    align-items: start;
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 24px;
}

.about-text p:not(:last-child) {
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stat-item {
    padding: 24px;
    border-left: 3px solid var(--blue);
    background: var(--blue-light);
}

.stat-item:nth-child(2) {
    border-left-color: var(--red);
}

.stat-item:nth-child(3) {
    border-left-color: var(--gray-400);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}

.stat-item:nth-child(2) .stat-number {
    color: var(--red);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 4px;
}

/* ---------- Membership Tiers ---------- */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 40px;
}

.tier-card {
    padding: 32px 24px;
    border: 1px solid var(--gray-200);
    border-right: none;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.tier-card:last-child {
    border-right: 1px solid var(--gray-200);
}

.tier-featured {
    border-top: 3px solid var(--red);
    background: var(--gray-50);
    position: relative;
}

.tier-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.tier-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 8px;
}

.tier-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.tier-price span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-500);
}

.tier-note {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 4px;
}

.tier-benefits {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}

.tier-benefits li {
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    padding-left: 20px;
    position: relative;
}

.tier-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--blue);
}

.tier-featured .tier-benefits li::before {
    background: var(--red);
}

.btn-tier {
    width: 100%;
    margin-top: auto;
}

/* ---------- Team Grid ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 32px;
}

.team-grid-patrons {
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
}

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

.team-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform var(--transition);
}

.team-card-link:hover {
    color: inherit;
    transform: translateY(-2px);
}

.team-card-link:hover .team-card-name {
    color: var(--blue);
}

.team-card-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 3px solid var(--gray-200);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-400);
}

.team-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.team-card-role {
    font-size: 0.8125rem;
    color: var(--blue);
    font-weight: 500;
}

/* ---------- Single Post ---------- */
.post-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--gray-200);
}

.post-meta-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 8px;
    font-size: 0.9375rem;
    color: var(--gray-600);
    flex-wrap: wrap;
}

.post-meta-bar time {
    font-size: 0.875rem;
}

/* ---------- Team member profile header ---------- */
.team-profile-header {
    background: var(--gray-50);
    padding: 56px 0 40px;
    border-bottom: 1px solid var(--gray-200);
}

.team-profile-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
}

.team-profile-image {
    width: 200px;
    height: 200px;
    overflow: hidden;
    background: var(--gray-100);
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
}

.team-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.team-profile-back {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.team-profile-back:hover {
    color: var(--red);
}

.team-profile-name {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.team-profile-role {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin: 0;
}

@media (max-width: 640px) {
    .team-profile-header {
        padding: 40px 0 32px;
    }

    .team-profile-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        justify-items: center;
    }

    .team-profile-name {
        font-size: 1.75rem;
    }
}

.post-header-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background: var(--blue);
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.post-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 0.9375rem;
    color: var(--gray-500);
}

.post-feature-image {
    margin: 40px auto;
}

.post-feature-image img {
    width: 100%;
}

.post-feature-image figcaption {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 8px;
}

/* Post Content */
.post-content {
    padding-top: 40px;
    padding-bottom: 80px;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--gray-800);
}

.post-content h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--blue-light);
}

.post-content h3 {
    font-size: 1.25rem;
    margin-top: 36px;
    margin-bottom: 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 3px solid var(--blue);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--blue-light);
    font-style: italic;
    color: var(--gray-700);
}

.post-content a {
    color: var(--blue);
    border-bottom: 1px solid var(--blue);
}

.post-content a:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

.post-content img {
    margin: 24px 0;
}

.post-content figure {
    margin: 32px 0;
}

.post-content figcaption {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 8px;
}

/* Related Posts */
.post-related {
    padding-top: 48px;
    padding-bottom: 80px;
    border-top: 1px solid var(--gray-200);
}

.post-related .section-title {
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--blue);
}

/* ---------- Tag Header (legacy — replaced by .page-banner; kept for fallback) ---------- */
.tag-header {
    padding: 48px 0;
    background: var(--gray-50);
}

.tag-title {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.tag-description {
    font-size: 1.0625rem;
    color: var(--gray-700);
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 40px;
    padding-bottom: 80px;
}

/* ---------- Error Page ---------- */
.error-page {
    text-align: center;
    padding: 120px 0;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 16px;
}

.error-message {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 0;
}

.footer-inner {
    padding: 56px 24px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-legal-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal-nav li {
    padding: 4px 0;
    font-size: 0.9375rem;
}

.footer-legal-nav li a {
    color: var(--gray-400);
}

.footer-legal-nav li a:hover {
    color: var(--white);
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--gray-500);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--gray-500);
    border: 1px solid var(--gray-700);
    transition: all var(--transition);
}

.social-link:hover {
    color: var(--white);
    border-color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    padding: 4px 0;
    font-size: 0.9375rem;
}

.footer-links a {
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

.footer-powered a {
    color: var(--gray-500);
}

.footer-powered a:hover {
    color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .membership-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tier-card:nth-child(2) {
        border-right: 1px solid var(--gray-200);
    }

    .tier-card:nth-child(3),
    .tier-card:nth-child(4) {
        border-top: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
    }

    .stat-item {
        flex: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 56px 0;
    }

    .page-banner {
        min-height: 280px;
    }

    .page-banner.page-banner-large {
        min-height: 360px;
    }

    .page-banner-inner {
        padding: 48px 24px;
    }

    .page-banner-title {
        font-size: 1.875rem;
    }

    .page-banner-subtitle {
        font-size: 1rem;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-md);
    }

    .site-nav.nav-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        padding: 8px 0;
    }

    .site-nav li a {
        padding: 12px 24px;
        border-bottom: none;
    }

    .site-nav li a:hover,
    .site-nav li.nav-current a {
        background: var(--gray-50);
        border-bottom: none;
    }

    .section-header {
        flex-direction: column;
        gap: 8px;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .membership-grid {
        grid-template-columns: 1fr;
    }

    .tier-card {
        border-right: 1px solid var(--gray-200);
    }

    .tier-card:not(:first-child) {
        border-top: none;
    }

    .about-stats {
        flex-direction: column;
    }

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

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

    .post-title {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-banner-title {
        font-size: 1.625rem;
    }

    .page-banner-cta {
        flex-direction: column;
        align-items: stretch;
    }

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

    .event-card {
        flex-direction: column;
        gap: 12px;
    }

    .event-card-date-badge {
        width: auto;
        display: flex;
        gap: 8px;
        align-items: baseline;
        padding: 8px 12px;
    }
}

/* ---------- Hide dates on event & team posts ---------- */
body.tag-events .post-meta,
body.tag-team .post-meta {
    display: none;
}

/* ---------- Partners Section ---------- */
.section-partners {
    text-align: center;
}

.partners-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.partner-logo {
    max-height: 80px;
    width: auto;
    filter: grayscale(30%);
    opacity: 0.8;
    transition: all var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---------- Ghost-specific ---------- */
.kg-width-wide {
    max-width: calc(var(--container-narrow) + 200px);
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
}

.kg-image-card img,
.kg-gallery-card img {
    border-radius: var(--radius);
}

.kg-bookmark-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    padding: 20px;
    flex: 1;
}

.kg-bookmark-title {
    font-weight: 600;
    font-size: 1rem;
}

.kg-bookmark-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 8px;
}

.kg-bookmark-thumbnail {
    width: 200px;
    min-height: 100%;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Members paywall card (Ghost gh-post-upgrade-cta) ---------- */
.gh-post-upgrade-cta a:not(.gh-btn) {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gh-post-upgrade-cta a:not(.gh-btn):hover {
    color: var(--white);
    text-decoration-thickness: 2px;
    opacity: 0.85;
}

.gh-post-upgrade-cta small {
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   GSAP animation support (v2.3.0-test)
   - Header scrolled state on scroll
   - will-change hints on common animation targets
   - Reduced motion fallback
   ========================================================================== */
.site-header {
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.page-banner-title,
.page-banner-subtitle,
.page-banner-cta,
.event-card,
.team-card,
.tier-card,
.post-card,
.partner-logo,
.section-title,
.stat-item {
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
