/* input(382,35): run-time error CSS1019: Unexpected token, found ' '
input(382,35): run-time error CSS1019: Unexpected token, found ' '
input(382,35): run-time error CSS1042: Expected function, found ' '
input(382,35): run-time error CSS1062: Expected semicolon or closing curly-brace, found ' ' */
/*
 * Story reels on /news (docs/NEWS_STORIES_SPEC.md section 3): the row of story cards (Views/News/_StoryReels.cshtml) and the
 * reader that opens over the page (js/news-reels.js). The cards and the reader sit on pictures under a dark shade, so their
 * text is light in both themes; the row's own title and buttons follow the theme's tokens (style.css).
 */
.ns-top { margin-top: 26px; }
.ns-top-grid { display: flex; flex-direction: column; gap: 20px; }
.ns-top-grid > * { min-width: 0; }
.ns-top-grid > .ns-reels { flex: 1 1 auto; }
@media (min-width: 992px) {
    .ns-top-grid { flex-direction: row; align-items: stretch; }
}

.ns-reels { --ns-ease: cubic-bezier(0.23, 1, 0.32, 1); position: relative; }

.ns-reels-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ns-reels-lead { display: flex; align-items: center; gap: 16px; min-width: 0; flex-wrap: wrap; }

/* The news topics' switch (Views/News/_NewsTopicSwitch.cshtml): one pill inside the Top stories head, or beside the list's
   heading on pages without it. Real links; the one for the page shown is marked. */
.ns-topic {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: color-mix(in srgb, var(--color-primary-100) 4%, transparent);
}
.ns-topic-link {
    position: relative;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--color-primary-300);
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease;
}
.ns-topic-link:hover { color: var(--color-primary-100); }
.ns-topic-link.is-on {
    color: var(--brand-color);
    background: color-mix(in srgb, var(--brand-color) 14%, transparent);
}
.ns-topic-link:focus-visible { outline: 2px solid var(--brand-color); outline-offset: 2px; }
/* A finger's 44 px without resizing the pill (style.css's tap-area rule). */
.ns-topic-link::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.ns-topic-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .ns-topic-link { transition: none; } }
.ns-reels .ns-reels-title {
    margin: 0;
    font-size: 22px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-primary-100);
    display: flex;
    align-items: center;
    gap: 10px;
}
.ns-reels .ns-reels-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-color) 22%, transparent);
}

.ns-reels-nav { display: flex; gap: 8px; }
.ns-reels-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    background: var(--card-color);
    color: var(--color-primary-200);
    transition: background-color 160ms ease, transform 160ms var(--ns-ease), opacity 160ms ease;
}
.ns-reels-btn:hover:not(:disabled) { background: var(--surface-3); }
.ns-reels-btn:active:not(:disabled) { transform: scale(0.94); }
.ns-reels-btn:disabled { opacity: 0.4; cursor: default; }
.ns-reels-btn:focus-visible { outline: 2px solid var(--brand-color); outline-offset: 2px; }
@media (max-width: 767.98px), (hover: none) {
    .ns-reels-nav { display: none; }
}

.ns-reels-row {
    list-style: none;
    margin: 0;
    padding: 4px 2px 8px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
}
.ns-reels-row::-webkit-scrollbar { display: none; }
.ns-reels[data-ns-end] .ns-reels-row { -webkit-mask-image: none; mask-image: none; }
.ns-card-wrap { flex: 0 0 auto; scroll-snap-align: start; }

.ns-card {
    position: relative;
    display: block;
    width: 172px;
    aspect-ratio: 172 / 268;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    text-decoration: none;
    background:
        radial-gradient(120% 70% at 15% 0%, rgba(45, 212, 167, 0.38), transparent 60%),
        radial-gradient(90% 60% at 100% 100%, rgba(56, 120, 255, 0.28), transparent 65%),
        #0b1018;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 14px 30px -18px rgba(0, 0, 0, 0.7);
    transition: transform 200ms var(--ns-ease);
    -webkit-tap-highlight-color: transparent;
}
.ns-card:hover, .ns-card:focus { color: #fff; }
.ns-card:active { transform: scale(0.97); }
.ns-card:focus-visible { outline: 2px solid var(--brand-color); outline-offset: 2px; }
.ns-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 500ms var(--ns-ease);
}
.ns-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(3, 6, 11, 0.55) 0%, rgba(3, 6, 11, 0) 26%, rgba(3, 6, 11, 0.2) 46%, rgba(3, 6, 11, 0.92) 78%, rgba(3, 6, 11, 0.97) 100%);
}
@media (hover: hover) {
    .ns-card:hover { transform: translateY(-3px); }
    .ns-card:hover .ns-card-img { transform: scale(1.06); }
}

/* One bar a publisher, as a story's progress bars: a story more sites reported carries more. */
.ns-card-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 3px; }
.ns-card-bars > span { flex: 1 1 0; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.9); }
.ns-card-big .ns-card-bars > span { background: #2dd4a7; box-shadow: 0 0 8px rgba(45, 212, 167, 0.55); }

.ns-card-text { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.ns-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
}
.ns-card-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ns-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); }
.ns-tone-positive { background: #2dd4a7; }
.ns-tone-negative { background: #fb5d74; }
.ns-tone-neutral { background: #c3c8d0; }

@media (max-width: 575.98px) {
    .ns-top { margin-top: 18px; }
    .ns-reels .ns-reels-title { font-size: 20px; }
    .ns-reels-row { gap: 10px; margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
    .ns-card { width: 138px; border-radius: 16px; }
    .ns-card-title { font-size: 14px; }
}

/* ── The reader ───────────────────────────────────────────────────────────────────────────── */

html.nr-lock, html.nr-lock body { overflow: hidden !important; }

.nr {
    --ns-ease: cubic-bezier(0.23, 1, 0.32, 1);
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #03060b;
    color: #fff;
    opacity: 0;
    transition: opacity 200ms ease;
    font-family: inter, sans-serif;
}
.nr[hidden] { display: none; }
.nr.is-open { opacity: 1; }

.nr-back { position: absolute; inset: -60px; overflow: hidden; pointer-events: none; }
.nr-back > div {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(40px) saturate(1.35) brightness(0.4);
    opacity: 0;
    transition: opacity 450ms ease;
}
.nr-back > div.is-on { opacity: 1; }

.nr-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #070a0f;
    transform: translateY(10px) scale(0.98);
    transition: transform 260ms var(--ns-ease);
}
.nr.is-open .nr-stage { transform: none; }
.nr-stage:focus { outline: none; }
@media (min-width: 768px) {
    .nr-stage {
        width: auto;
        height: calc(100dvh - 40px);
        aspect-ratio: 9 / 16;
        max-width: calc(100vw - 180px);
        border-radius: 22px;
        box-shadow: 0 40px 120px -24px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
    }
}

.nr-progress {
    position: absolute;
    top: 12px;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}
.nr-progress > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #2dd4a7;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 320ms var(--ns-ease);
}

.nr-close {
    position: absolute;
    top: 24px;
    right: 12px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(3, 6, 11, 0.45);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color 160ms ease, transform 160ms var(--ns-ease);
}
.nr-close:hover { background: rgba(3, 6, 11, 0.7); }
.nr-close:active { transform: scale(0.92); }

/* Beside the stage (its width is its height times 9/16), never past the window's edge. */
.nr-nav { position: absolute; left: min(calc(50% + (100dvh - 40px) * 9 / 32 + 24px), calc(100% - 72px)); top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 12px; z-index: 4; }
@media (min-width: 768px) {
    .nr-nav { display: flex; }
}
.nr-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 160ms ease, transform 160ms var(--ns-ease), opacity 160ms ease;
}
.nr-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.nr-nav button:active:not(:disabled) { transform: scale(0.92); }
.nr-nav button:disabled { opacity: 0.3; cursor: default; }

.nr button:focus-visible, .nr a:focus-visible { outline: 2px solid #2dd4a7; outline-offset: 2px; }

.nr-track {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nr-track::-webkit-scrollbar { display: none; }

.nr-screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(110% 60% at 10% 0%, rgba(45, 212, 167, 0.4), transparent 60%),
        radial-gradient(90% 55% at 100% 30%, rgba(56, 120, 255, 0.3), transparent 65%),
        #070a0f;
}
.nr-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.nr-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(3, 6, 11, 0.72) 0%, rgba(3, 6, 11, 0) 16%, rgba(3, 6, 11, 0) 26%, rgba(3, 6, 11, 0.62) 46%, rgba(3, 6, 11, 0.94) 66%, #03060b 100%);
}

.nr-body {
    position: relative;
    z-index: 2;
    padding: 0 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100% - 76px);
}

.nr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, 0.8); font-weight: 500; }
.nr-tone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    font-size: 12.5px;
    line-height: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: #f3f4f6;
}
.nr-tone::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c3c8d0; }
.nr-tone-positive { background: rgba(45, 212, 167, 0.16); color: #8af2d4; }
.nr-tone-positive::before { background: #2dd4a7; }
.nr-tone-negative { background: rgba(251, 93, 116, 0.16); color: #ffb3bf; }
.nr-tone-negative::before { background: #fb5d74; }

.nr-title {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(22px, 1.4vh + 14px, 30px);
    line-height: 1.16;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #fff;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
}

.nr-summary { margin: 0; font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
.nr-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.nr-points li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.nr-points li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 2px; background: #2dd4a7; transform: rotate(45deg); }

.nr-coins { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -22px; padding: 2px 22px; }
.nr-coins::-webkit-scrollbar { display: none; }
.nr-coin {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 12px 6px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 16px;
    font-variant-numeric: tabular-nums;
    transition: background-color 160ms ease;
}
a.nr-coin:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.nr-coin img { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.nr-coin-sym { font-weight: 700; letter-spacing: 0.01em; }
.nr-coin-price { color: rgba(255, 255, 255, 0.88); }
.nr-coin-chg { font-weight: 600; font-size: 12.5px; }
.nr-coin-chg.is-up { color: #2dd4a7; }
.nr-coin-chg.is-down { color: #ff8597; }
.nr-coin-chg small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.7); margin-left: 3px; }

.nr-src { display: flex; flex-direction: column; gap: 3px; }
.nr-src-count { margin: 0; font-size: 14px; line-height: 19px; font-weight: 650; color: #fff; }
.nr-src-names { margin: 0; font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, 0.74); overflow-wrap: anywhere; }

.nr-read {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 14px;
    background: #2dd4a7;
    color: #03130d;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms var(--ns-ease);
}
.nr-read:hover { background: #4ee0b9; color: #03130d; }
.nr-read:active { transform: scale(0.98); }

.nr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nr-body > * { flex-shrink: 0; }

/* A short screen (a small phone, a laptop window): fewer lines, so the button always shows. */
@media (max-height: 640px) {
    .nr-body { gap: 10px; padding-bottom: 18px; }
    .nr-title { font-size: 21px; -webkit-line-clamp: 3; line-clamp: 3; }
    .nr-points li { -webkit-line-clamp: 2; line-clamp: 2; }
    .nr-points li:nth-child(n+3) { display: none; }
    .nr-summary { -webkit-line-clamp: 3; line-clamp: 3; }
}

@media (prefers-reduced-motion: reduce) {
    .ns-card, .ns-card-img, .ns-reels-btn, .nr, .nr-stage, .nr-back > div, .nr-progress > span, .nr-close, .nr-nav button, .nr-read { transition: none !important; }
    .nr-stage { transform: none !important; }
    .ns-card:hover, .ns-card:hover .ns-card-img { transform: none !important; }
}
