.breaking-bar {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.breaking-bar__inner {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 12px;
}

.breaking-bar strong {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 4px;
    background: var(--brand-2);
    color: var(--bg);
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
}

.breaking-bar__track {
    font-family: var(--font-editorial);
    font-weight: 600;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    gap: 22px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.breaking-bar__track::-webkit-scrollbar {
    display: none;
}

.breaking-bar__track a {
    color: var(--text);
    font-weight: 750;
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.breaking-bar__track a:hover {
    color: var(--brand);
}

.breaking-bar__nav {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    padding: 0;
    transition: border-color 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}

.breaking-bar__nav:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #111111;
}

.design-switcher {
    background: var(--bg);
}

.design-switcher__inner {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.design-switcher span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.design-switcher nav {
    display: flex;
    gap: 8px;
}

.design-switcher a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
}

.design-switcher a.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #111111;
}

.hero {
    padding: 18px 0 44px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4px;
}

.lead-story {
    position: relative;
    min-height: 526px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

.lead-story__image {
    position: absolute;
    inset: 0;
}

.lead-story__image::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.76));
}

.lead-story__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-story__content {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    color: #ffffff;
    padding: 32px;
}

.lead-story h1 {
    font-family: var(--font-editorial);
    font-weight: 700;
    max-width: 760px;
    margin: 14px 0 12px;
    font-size: 42px;
    line-height: 1.06;
}

.lead-story p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.lead-story .news-card__meta {
    color: rgba(255, 255, 255, 0.76);
}

.hero-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.hero-stack .news-card:first-child {
    grid-column: 1 / -1;
}

.dashboard-hero {
    padding: 18px 0 44px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 18px;
}

.live-panel,
.market-panel,
.dashboard-lead,
.sidebar-widget {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.live-panel,
.market-panel {
    padding: 16px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.panel-heading span {
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.live-item {
    display: grid;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.live-item span {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-lead {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

.dashboard-lead__media {
    position: relative;
    aspect-ratio: 16 / 8;
    overflow: hidden;
}

.dashboard-lead__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-lead > div {
    padding: 24px;
}

.dashboard-lead h1 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 12px 0;
    font-size: 36px;
    line-height: 1.08;
}

.dashboard-lead p {
    margin: 0 0 12px;
    color: var(--muted);
}

.ranked-item {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.ranked-item span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ranked-item strong {
    font-size: 14px;
    line-height: 1.3;
}

.magazine-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: end;
    overflow: hidden;
    color: #ffffff;
}

.magazine-hero__image {
    position: absolute;
    inset: 0;
}

.magazine-hero__image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magazine-hero__image::after {
    z-index: 1;
    position: absolute;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 76% 16%, rgba(252, 189, 1, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.26) 58%, rgba(0, 0, 0, 0.52));
}

.magazine-hero__image > .cover-placeholder {
    z-index: 0;
}

.magazine-hero__content {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 0 0 18px;
}

.magazine-hero__eyebrow,
.magazine-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.magazine-hero__eyebrow > span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.magazine-hero h1 {
    font-family: var(--font-editorial);
    font-weight: 700;
    max-width: 820px;
    margin: 0 0 18px;
    font-size: 56px;
    line-height: 1.02;
    text-wrap: balance;
}

.magazine-hero p {
    max-width: 680px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.magazine-hero__actions .news-card__meta {
    margin-top: 0;
    color: rgba(255, 255, 255, 0.72);
}

.magazine-hero__deck {
    display: grid;
    width: min(100%, 980px);
    max-width: 980px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
}

.magazine-hero__deck a {
    display: grid;
    gap: 8px;
    min-width: 0;
    min-height: 118px;
    background: rgba(8, 8, 8, 0.48);
    padding: 18px;
}

.magazine-hero__deck a:hover {
    background: rgba(252, 189, 1, 0.18);
    color: #ffffff;
}

.magazine-hero__deck span {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}

.magazine-hero__deck strong {
    font-size: 15px;
    line-height: 1.25;
}

.exclusive-showcase {
    padding: 18px 0 38px;
}

.exclusive-showcase__heading {
    margin-bottom: 18px;
}

.exclusive-showcase__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exclusive-showcase__stage {
    position: relative;
}

.exclusive-showcase__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    transform: translateY(-50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.exclusive-showcase__nav--prev {
    left: 8px;
}

.exclusive-showcase__nav--next {
    right: 8px;
}

.exclusive-showcase__nav:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #111111;
}

.exclusive-showcase__viewport {
    overflow: hidden;
    border-radius: var(--radius);
}

.exclusive-showcase__track {
    display: flex;
    transition: transform 320ms ease;
}

.exclusive-slide {
    display: grid;
    min-width: 100%;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    gap: 4px;
}

.exclusive-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: var(--surface-2);
    color: #ffffff;
}

.exclusive-card--lead {
    min-height: 430px;
}

.exclusive-card__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.exclusive-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 240ms ease;
}

.exclusive-card:hover .exclusive-card__image img {
    transform: scale(1.035);
}

.exclusive-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.78));
}

.exclusive-card__body {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 22px;
}

.exclusive-card h3 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 10px 0 0;
    font-size: 22px;
    line-height: 1.12;
}

.exclusive-card--lead h3 {
    max-width: 720px;
    font-size: 34px;
}

.exclusive-card p {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.exclusive-card:not(.exclusive-card--lead) p {
    display: none;
}

.exclusive-card .news-card__meta {
    color: rgba(255, 255, 255, 0.74);
}

.exclusive-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.exclusive-dots button {
    width: 30px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--line);
}

.exclusive-dots button.is-active {
    background: var(--brand);
}

.home-content {
    padding: 20px 0 0;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.content-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.content-main {
    display: grid;
    gap: 42px;
}

.latest-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
}

.latest-feed--dense {
    grid-template-columns: 1fr;
}

.content-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
    align-content: start;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--text) 8%, transparent);
    padding: 10px;
    scrollbar-width: thin;
}

.sidebar-widget {
    border-radius: 13px;
    background: var(--surface);
    padding: 18px;
}

.sidebar-widget + .sidebar-widget {
    border-top: 1px solid var(--line);
}

.sidebar-widget h2 {
    font-family: var(--font-editorial);
    font-weight: 700;
    margin: 0 0 12px;
    font-size: 18px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
}

.tag-cloud span {
    color: var(--muted);
}

@media (max-width: 1120px) {
    .dashboard-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .lead-story {
        min-height: 440px;
    }

    .dashboard-grid {
        gap: 12px;
    }

    .magazine-hero {
        min-height: 540px;
    }

    .magazine-hero h1 {
        font-size: 42px;
    }

    .magazine-hero__deck {
        grid-template-columns: 1fr;
    }

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

    .exclusive-card--lead {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .breaking-bar .container,
    .magazine-hero .container {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }

    .breaking-bar__inner {
        align-items: center;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .breaking-bar__track {
        order: 4;
        width: 100%;
        max-width: 100%;
        gap: 0;
        overflow-x: auto;
    }

    .breaking-bar__track a {
        display: -webkit-box;
        min-width: 100%;
        max-width: 100%;
        min-height: 44px;
        flex: 0 0 100%;
        align-content: center;
        padding: 6px 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .breaking-bar__nav {
        order: 3;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .breaking-bar__nav--prev {
        margin-left: auto;
    }

    .design-switcher__inner,
    .design-switcher nav {
        align-items: stretch;
        flex-direction: column;
    }

    .hero {
        padding-top: 8px;
    }

    .hero-stack,
    .latest-feed,
    .content-sidebar {
        grid-template-columns: 1fr;
    }

    .lead-story {
        min-height: 420px;
    }

    .lead-story__content {
        padding: 22px;
    }

    .lead-story h1,
    .dashboard-lead h1 {
        font-size: 30px;
    }

    .magazine-hero {
        min-height: auto;
        padding: 42px 0 0;
    }

    .magazine-hero__content {
        padding-bottom: 24px;
    }

    .magazine-hero h1 {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        font-size: 28px;
        line-height: 1.08;
        overflow-wrap: break-word;
        text-wrap: auto;
    }

    .magazine-hero p {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        font-size: 16px;
        overflow-wrap: break-word;
    }

    .magazine-hero__deck {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
        margin-top: 28px;
    }

    .magazine-hero__deck a {
        min-height: 104px;
        padding: 16px 18px;
    }

    .magazine-hero__deck strong {
        display: block;
        max-width: 100%;
        font-size: 14px;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .magazine-hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .exclusive-showcase {
        padding-top: 8px;
    }

    .exclusive-showcase__nav {
        width: 40px;
        height: 48px;
        border-color: rgba(255, 255, 255, 0.32);
        background: rgba(17, 17, 17, 0.82);
        color: #ffffff;
        backdrop-filter: blur(8px);
    }

    .exclusive-showcase__nav--prev {
        left: 8px;
    }

    .exclusive-showcase__nav--next {
        right: 8px;
    }

    .exclusive-slide {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .exclusive-card,
    .exclusive-card--lead {
        height: 360px;
        min-height: 360px;
        max-height: 360px;
    }

    .exclusive-card__body {
        padding: 20px;
    }

    .exclusive-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .exclusive-card h3,
    .exclusive-card--lead h3 {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .breaking-bar .container,
    .magazine-hero .container {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
    }

    .breaking-bar__nav {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
    }

    .lead-story {
        min-height: 370px;
    }

    .lead-story__content,
    .dashboard-lead > div,
    .exclusive-card__body {
        padding: 18px;
    }

    .lead-story h1,
    .dashboard-lead h1,
    .exclusive-card h3,
    .exclusive-card--lead h3 {
        font-size: 25px;
    }

    .exclusive-card,
    .exclusive-card--lead {
        height: 320px;
        min-height: 320px;
        max-height: 320px;
    }

    .exclusive-showcase__heading,
    .section-heading {
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .breaking-bar__track a {
        text-align: center;
    }

    .magazine-hero__content {
        justify-items: center;
        text-align: center;
    }

    .magazine-hero h1,
    .magazine-hero p {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .magazine-hero__eyebrow,
    .magazine-hero__actions,
    .magazine-hero__actions .news-card__meta {
        align-items: center;
        justify-content: center;
    }

    .magazine-hero__actions {
        width: 100%;
    }

    .magazine-hero__deck {
        margin-right: auto;
        margin-left: auto;
    }

    .magazine-hero__deck a {
        justify-items: center;
        text-align: center;
    }

    .exclusive-card__body {
        text-align: center;
    }

    .exclusive-card h3,
    .exclusive-card p {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .exclusive-card .news-card__meta {
        justify-content: center;
    }

    .latest-feed .news-card__body,
    .latest-feed .news-card h3,
    .latest-feed .news-card p {
        text-align: center;
    }

    .latest-feed .news-card__meta,
    .latest-feed .news-card__tags {
        justify-content: center;
    }
}
