/* Blog index — dark editorial layout (Gazette structure, KnotNow palette) */

body.page-blog-hub {
    background: #050508;
}

.blog-hub-shell {
    background: #050508;
    color: rgba(255, 255, 255, 0.92);
}

body.blog-web-subnav-on .blog-hub-shell {
    border-top: none;
}

.blog-hub {
    width: 100%;
    max-width: min(var(--home-v2-max, 1200px), 100%);
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.75rem) 20px clamp(3rem, 7vw, 4.5rem);
    box-sizing: border-box;
}

.blog-hub-header {
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-hub-title {
    margin: 0 0 0.45rem;
    font-family: inherit;
    font-size: clamp(2rem, 5.2vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: #fff;
}

.blog-hub-lead {
    margin: 0;
    max-width: 40rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
}

.blog-hub-header--home {
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
    padding-bottom: 0;
    border-bottom: none;
}

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

.blog-hub-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.blog-hub-tag,
.blog-tag {
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.blog-hub-tag:hover,
.blog-tag:hover {
    background: rgba(239, 165, 64, 0.12);
    border-color: rgba(239, 165, 64, 0.35);
    color: #fff;
}

.blog-hub-tag.active,
.blog-tag.active {
    background: rgba(212, 59, 149, 0.22);
    border-color: rgba(212, 59, 149, 0.55);
    color: #fff;
}

/* Featured band — lead story + sidebar */
.blog-hub-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.blog-hub-lead-story {
    min-width: 0;
}

.blog-hub-lead-link {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: start;
    text-decoration: none;
    color: inherit;
}

.blog-hub-lead-media {
    margin: 0;
    min-width: 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.blog-hub-lead-img,
.blog-hub-side-thumb,
.blog-post-card-hero {
    display: block;
    width: 100%;
    object-fit: cover;
    background: #111114;
}

.blog-hub-lead-img {
    aspect-ratio: 4 / 3;
}

.blog-hub-lead-copy {
    min-width: 0;
    padding-top: 0.15rem;
}

.blog-hub-kicker,
.blog-post-card-body .blog-cat,
.blog-hub-lead-copy .blog-cat,
.blog-hub-side-copy .blog-cat {
    margin-bottom: 0.55rem;
}

.blog-post-card-body .blog-cat {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
}

.blog-hub-lead-title {
    margin: 0 0 0.85rem;
    font-family: inherit;
    font-size: clamp(1.6rem, 3.8vw, 2.45rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #fff;
    transition: color 0.15s ease;
}

.blog-hub-lead-copy--racing .blog-hub-lead-title,
.blog-hub-lead-copy--water-quality .blog-hub-lead-title,
.blog-hub-lead-copy--forecasts-weather .blog-hub-lead-title,
.blog-hub-lead-copy--safety .blog-hub-lead-title,
.blog-hub-lead-copy--foiling .blog-hub-lead-title,
.blog-hub-lead-copy--sessions .blog-hub-lead-title,
.blog-hub-lead-copy--analysis .blog-hub-lead-title,
.blog-hub-lead-copy--data .blog-hub-lead-title {
    color: #fff;
}

.blog-hub-lead-dek {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}

.blog-hub-side-stories {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: clamp(1rem, 2.5vw, 1.5rem);
}

.blog-hub-side-item + .blog-hub-side-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
    padding-top: 1rem;
}

.blog-hub-side-link {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    text-decoration: none;
    color: inherit;
}

.blog-hub-side-thumb {
    aspect-ratio: 4 / 3;
    width: 88px;
    border-radius: 3px;
}

.blog-hub-side-title {
    margin: 0.2rem 0 0;
    font-family: inherit;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    transition: color 0.15s ease;
}

.blog-hub-side-link:hover .blog-hub-side-title,
.blog-hub-lead-link:hover .blog-hub-lead-title,
.blog-post-card:hover h2 a,
.blog-post-card h2 a:hover {
    color: #efa540;
}

.blog-post-card h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.blog-hub-rule {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 0 clamp(1.5rem, 3vw, 2rem);
}

.blog-hub-index-title {
    margin: 0 0 1.25rem;
    font-family: inherit;
    font-size: clamp(1.6rem, 3.8vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: #fff;
}

.blog-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.blog-post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #111114;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-post-card:hover {
    border-color: rgba(212, 59, 149, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 59, 149, 0.12);
    transform: translateY(-2px);
}

.blog-post-card-media {
    display: block;
    line-height: 0;
    position: relative;
}

.blog-post-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(5, 5, 8, 0.55) 100%);
    pointer-events: none;
}

.blog-post-card-hero {
    aspect-ratio: 16 / 10;
}

.blog-post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.05rem 1.15rem;
    min-width: 0;
}

.blog-post-card h2 {
    margin: 0.35rem 0 0.55rem;
    font-family: inherit;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-post-meta {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.42);
    margin-top: auto;
    letter-spacing: 0.02em;
}

.blog-post-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.55;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-tags {
    display: none;
}

body.page-blog-hub .general-footer {
    background: #050508;
}

@media (max-width: 980px) {
    .blog-hub-featured {
        grid-template-columns: 1fr;
    }

    .blog-hub-side-stories {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.25rem;
    }

    .blog-hub-lead-link {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .blog-hub-grid {
        grid-template-columns: 1fr;
    }

    .blog-hub-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 0.35rem;
    }

    .blog-hub-tag,
    .blog-tag {
        flex-shrink: 0;
    }
}
