/* Aviation news — matches site panel / token styling */

.news-page-wrap {
    max-width: var(--layout-max, 1140px);
    margin: 0 auto;
    padding: 20px 15px 50px;
}

.news-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.news-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading);
    margin: 0;
}

.news-header-count {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
}

.news-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.news-layout--no-sidebar {
    grid-template-columns: 1fr;
}

.news-filters-panel .panel-body {
    padding: 12px 14px;
}

.news-filters-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-filters {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-filter-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 3px;
    border: 1px solid var(--border-dark);
    background: var(--btn-default);
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-filter-chip:hover {
    border-color: var(--link);
    color: var(--link);
    background: var(--stripe);
}

.news-filter-chip.is-active {
    background: var(--link);
    border-color: var(--link);
    color: #fff;
}

.news-filter-chip .cnt {
    font-size: 10px;
    font-family: monospace;
    opacity: 0.9;
}

.news-main-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.news-grid-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 20px 0 10px;
}

.news-feed {
    transition: opacity 0.25s ease;
}

.news-feed.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

/* Hero inside panel */
.news-hero-panel--news {
    margin-bottom: 0;
}

.news-hero-panel--home {
    margin-bottom: 28px;
}

.news-hero {
    position: relative;
    background: var(--white);
    min-height: 160px;
}

.news-hero--news {
    min-height: 200px;
}

.news-hero--home {
    min-height: 150px;
    cursor: pointer;
}

.news-hero-track {
    position: relative;
    min-height: inherit;
}

.news-hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr min(36%, 220px);
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    pointer-events: none;
}

.news-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.news-hero-slide--no-media {
    grid-template-columns: 1fr;
}

.news-hero-inner {
    padding: 16px 18px 44px;
    min-width: 0;
}

.news-hero--home .news-hero-inner {
    padding: 14px 16px 40px;
}

.news-hero-media {
    border-left: 1px solid var(--border);
    background: var(--stripe);
    overflow: hidden;
    min-height: 120px;
}

.news-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 11px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.news-hero-badge {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 3px;
    background: var(--stripe);
    border: 1px solid var(--border-dark);
    color: var(--link);
}

.news-hero-source {
    font-weight: 600;
    color: var(--heading);
}

.news-hero-headline {
    margin: 0 0 8px;
    font-size: clamp(15px, 2.2vw, 20px);
    line-height: 1.3;
    font-weight: 700;
}

.news-hero-headline-link {
    color: var(--heading);
    text-decoration: none;
}

.news-hero-headline-link:hover {
    color: var(--link);
    text-decoration: underline;
}

.news-hero-summary {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-hero--home .news-hero-summary {
    -webkit-line-clamp: 2;
}

.news-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 3;
}

.news-hero-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    background: var(--panel-head);
}

.news-hero-nav {
    min-width: 32px;
    padding: 4px 8px;
}

.news-hero-dots {
    display: flex;
    gap: 6px;
}

.news-hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--border-dark);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.news-hero-dot.is-active {
    background: var(--link);
    transform: scale(1.2);
}

.news-hero-home-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.news-hero--home .news-hero-inner,
.news-hero--home .news-hero-controls {
    pointer-events: none;
}

.news-hero--home .news-hero-actions,
.news-hero--home .news-hero-nav,
.news-hero--home .news-hero-dot,
.news-hero--home .news-hero-headline-link,
.news-hero--home [data-news-hub-link] {
    pointer-events: auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.news-card-v2 {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.news-card-v2:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: var(--border-dark);
}

.news-card-v2-thumb {
    aspect-ratio: 16 / 9;
    background: var(--stripe);
    overflow: hidden;
    display: block;
}

.news-card-v2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-v2-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-v2-meta {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.news-card-v2-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.news-card-v2-title a {
    color: var(--heading);
    text-decoration: none;
}

.news-card-v2-title a:hover {
    color: var(--link);
}

.news-card-v2-summary {
    font-size: 12px;
    line-height: 1.55;
    color: var(--text);
    margin: 0 0 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-v2-foot {
    font-size: 11px;
    font-weight: 600;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.news-count-line {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 860px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-filters {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .news-filter-chip {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .news-hero-slide {
        grid-template-columns: 1fr;
    }

    .news-hero-media {
        display: none;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}
