/* ==========================================================================
   Jaroha newsroom design
   An editorial system for a magazine people can trust: serif headlines that carry
   the authority, a quiet sans for everything around them, the brand navy as ink and
   the brand teal used only to mark sections and links.
   Loaded after site.css; older pages keep their styles and inherit the new type.
   ========================================================================== */

:root {
    --nr-paper: #ffffff;
    --nr-wash: #f3f6f8;
    --nr-ink: #0f253d;        /* brand navy: headlines, masthead */
    --nr-text: #23303d;       /* body copy */
    --nr-muted: #5d6b79;      /* meta, captions */
    --nr-rule: #dde3e8;
    --nr-teal: #1fb8be;       /* brand teal: marks only, never text */
    --nr-teal-ink: #0b6f75;   /* teal that is readable as text */
    --nr-serif: 'Newsreader', 'Lora', Georgia, 'Times New Roman', serif;
    --nr-sans: 'Public Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --nr-measure: 40rem;
    --nr-radius: 3px;

    /* Older components read these. */
    --jaroha-primary: var(--nr-ink);
    --jaroha-secondary: var(--nr-teal-ink);
    --jaroha-bg: var(--nr-paper);
    --jaroha-text: var(--nr-text);
    --jaroha-muted: var(--nr-muted);
}

body {
    font-family: var(--nr-sans);
    color: var(--nr-text);
    background: var(--nr-paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.brand-text {
    font-family: var(--nr-serif);
    color: var(--nr-ink);
    letter-spacing: -0.01em;
}

.btn,
.navbar-nav .nav-link {
    font-family: var(--nr-sans);
}

a {
    color: var(--nr-teal-ink);
}

:focus-visible {
    outline: 2px solid var(--nr-teal-ink);
    outline-offset: 2px;
}

.page-shell {
    padding-top: 0;
    min-height: 60vh;
}

.nr-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.nr-topbar {
    border-bottom: 1px solid var(--nr-rule);
    font-size: .8125rem;
    color: var(--nr-muted);
}

.nr-topbar .nr-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.5rem;
}

.nr-topbar a {
    color: var(--nr-ink);
    text-decoration: none;
    font-weight: 600;
}

.nr-topbar a:hover {
    color: var(--nr-teal-ink);
}

.nr-topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nr-search-btn {
    background: none;
    border: 0;
    padding: .25rem;
    color: var(--nr-ink);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.nr-masthead {
    text-align: center;
    padding: 1.6rem 0 1.2rem;
}

.nr-brand {
    display: inline-flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: var(--nr-ink);
}

.nr-brand-mark {
    width: 3.6rem;
    height: 3.6rem;
    flex: none;
}

.nr-brand-name {
    font-family: var(--nr-serif);
    font-weight: 600;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--nr-ink);
}

.nr-tagline {
    margin: .55rem 0 0;
    font-family: var(--nr-serif);
    font-style: italic;
    font-size: 1.0625rem;
    color: var(--nr-muted);
}

/* The section bar stays on screen while reading. */
.nr-sections {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--nr-paper);
    border-top: 1px solid var(--nr-ink);
    border-bottom: 1px solid var(--nr-rule);
    box-shadow: inset 0 -3px 0 var(--nr-teal);
}

.nr-sections-list {
    display: flex;
    justify-content: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nr-sections-list > li {
    position: relative;
}

.nr-section-link {
    display: block;
    padding: .85rem .8rem calc(.85rem + 3px);
    font-size: .9375rem;
    font-weight: 600;
    color: var(--nr-ink);
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: 0;
}

.nr-section-link:hover,
.nr-section-link[aria-expanded='true'] {
    color: var(--nr-teal-ink);
}

.nr-section-link.is-active {
    color: var(--nr-teal-ink);
    box-shadow: inset 0 -3px 0 var(--nr-ink);
}

.nr-section-menu {
    min-width: 17rem;
    padding: .5rem 0;
    border: 1px solid var(--nr-rule);
    border-top: 3px solid var(--nr-ink);
    border-radius: 0 0 var(--nr-radius) var(--nr-radius);
    box-shadow: 0 16px 32px rgba(15, 37, 61, .12);
}

.nr-section-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .5rem 1.1rem;
    font-size: .9375rem;
    color: var(--nr-text);
}

.nr-section-menu .dropdown-item i {
    color: var(--nr-teal-ink);
    width: 1.1rem;
}

.nr-section-menu .dropdown-item:hover,
.nr-section-menu .dropdown-item.active {
    background: var(--nr-wash);
    color: var(--nr-ink);
}

.nr-section-menu .nr-menu-all {
    font-weight: 700;
    color: var(--nr-ink);
    border-bottom: 1px solid var(--nr-rule);
    margin-bottom: .35rem;
    padding-bottom: .65rem;
}

@media (max-width: 991.98px) {
    .nr-masthead {
        padding: 1rem 0 .8rem;
    }

    .nr-brand-mark {
        width: 2.2rem;
        height: 2.2rem;
    }

    .nr-tagline {
        display: none;
    }

    /* Sections scroll sideways on small screens instead of folding into a hidden menu. */
    .nr-sections-list {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nr-sections-list::-webkit-scrollbar {
        display: none;
    }

    .nr-sections-list > li {
        position: static;
    }
}

/* --------------------------------------------------------------------------
   Story parts
   -------------------------------------------------------------------------- */

.nr-kicker {
    display: inline-block;
    font-family: var(--nr-sans);
    font-size: .8125rem;
    font-weight: 700;
    color: var(--nr-teal-ink);
    text-decoration: none;
    margin-bottom: .35rem;
}

a.nr-kicker:hover {
    text-decoration: underline;
}

.nr-headline {
    font-family: var(--nr-serif);
    font-weight: 600;
    color: var(--nr-ink);
    line-height: 1.18;
    margin: 0 0 .45rem;
    text-wrap: balance;
}

.nr-headline a {
    color: inherit;
    text-decoration: none;
}

.nr-headline a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.nr-dek {
    font-family: var(--nr-serif);
    color: var(--nr-text);
    font-size: 1.0625rem;
    line-height: 1.5;
    margin: 0 0 .6rem;
}

.nr-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: .9rem;
    row-gap: .15rem;
    font-size: .8125rem;
    color: var(--nr-muted);
}

.nr-meta .nr-byline {
    color: var(--nr-text);
    font-weight: 600;
}

.nr-meta a {
    color: inherit;
    text-decoration: none;
}

.nr-meta a:hover {
    text-decoration: underline;
}

.nr-figure {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--nr-radius);
    background: var(--nr-wash);
    aspect-ratio: 3 / 2;
    margin-bottom: .85rem;
}

.nr-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lead story: the biggest type on the page. */
.nr-story--lead .nr-figure {
    aspect-ratio: 16 / 9;
    margin-bottom: 1.1rem;
}

.nr-story--lead .nr-headline {
    font-size: clamp(1.9rem, 3.4vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: .7rem;
}

.nr-story--lead .nr-dek {
    font-size: 1.1875rem;
    max-width: var(--nr-measure);
}

.nr-story--card .nr-headline {
    font-size: 1.3rem;
}

/* The first story of a section on the front page. */
.nr-story--feature .nr-headline {
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    line-height: 1.12;
}

.nr-story--feature .nr-dek {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nr-story--card .nr-dek {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Text-only story, separated by a rule. */
.nr-story--compact {
    padding: .95rem 0;
    border-top: 1px solid var(--nr-rule);
}

.nr-story--compact:first-child {
    border-top: 0;
    padding-top: 0;
}

.nr-story--compact .nr-headline {
    font-size: 1.125rem;
}

/* Small picture beside the headline. */
.nr-story--row {
    display: grid;
    grid-template-columns: 1fr 7.5rem;
    gap: 1rem;
    align-items: start;
    padding: 1rem 0;
    border-top: 1px solid var(--nr-rule);
}

.nr-story--row .nr-figure {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    aspect-ratio: 1 / 1;
}

.nr-story--row .nr-story-text {
    grid-column: 1;
    grid-row: 1;
}

.nr-story--row .nr-headline {
    font-size: 1.125rem;
}

/* --------------------------------------------------------------------------
   Front page
   -------------------------------------------------------------------------- */

.nr-front {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2rem 0 2.5rem;
}

.nr-front-side {
    border-left: 1px solid var(--nr-rule);
    padding-left: 2rem;
}

.nr-block-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border-top: 2px solid var(--nr-ink);
    padding-top: .6rem;
    margin-bottom: 1rem;
}

.nr-block-title h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0;
}

.nr-block-title h2 a {
    color: inherit;
    text-decoration: none;
}

.nr-block-title h2 a:hover {
    color: var(--nr-teal-ink);
}

.nr-more {
    font-size: .875rem;
    font-weight: 600;
    color: var(--nr-teal-ink);
    text-decoration: none;
    white-space: nowrap;
}

.nr-more:hover {
    text-decoration: underline;
}

/* Latest: a running list with the time of publication. */
.nr-river {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nr-river li {
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    gap: .75rem;
    padding: .8rem 0;
    border-top: 1px solid var(--nr-rule);
}

.nr-river li:first-child {
    border-top: 0;
    padding-top: 0;
}

.nr-river time {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--nr-teal-ink);
    padding-top: .15rem;
}

.nr-river .nr-headline {
    font-size: 1.0625rem;
    margin: 0;
}

.nr-second-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding-top: 1.75rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--nr-rule);
}

/* Most read is a ranking, so it is numbered. */
.nr-ranked {
    list-style: none;
    counter-reset: rank;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.75rem;
}

.nr-ranked li {
    counter-increment: rank;
    display: grid;
    grid-template-columns: 2.1rem 1fr;
    gap: .5rem;
}

.nr-ranked li::before {
    content: counter(rank);
    font-family: var(--nr-serif);
    font-size: 2.4rem;
    font-weight: 500;
    line-height: .9;
    color: var(--nr-teal-ink);
}

.nr-ranked .nr-headline {
    font-size: 1.0625rem;
    margin-bottom: .3rem;
}

.nr-band {
    background: var(--nr-wash);
    border-top: 1px solid var(--nr-rule);
    border-bottom: 1px solid var(--nr-rule);
    padding: 2rem 0;
}

/* Sections on the front page: one lead and its companions. */
.nr-section-block {
    padding: 2.25rem 0 .5rem;
}

.nr-section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
}

.nr-section-grid .nr-stack {
    display: flex;
    flex-direction: column;
}

.nr-topics {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    list-style: none;
    margin: -.4rem 0 1.25rem;
    padding: 0;
}

.nr-topics a {
    font-size: .875rem;
    color: var(--nr-muted);
    text-decoration: none;
}

.nr-topics a:hover {
    color: var(--nr-teal-ink);
    text-decoration: underline;
}

/* Newsletter invitation */
.nr-newsletter {
    background: var(--nr-ink);
    color: #fff;
    margin-top: 2.5rem;
}

.nr-newsletter .nr-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.nr-newsletter h2 {
    color: #fff;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    margin: 0 0 .4rem;
}

.nr-newsletter p {
    color: rgba(255, 255, 255, .78);
    font-family: var(--nr-serif);
    font-size: 1.0625rem;
    margin: 0;
}

.nr-signup {
    display: flex;
    gap: .5rem;
}

.nr-signup input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-radius: var(--nr-radius);
    padding: .75rem .9rem;
    font-size: 1rem;
}

.nr-signup input::placeholder {
    color: rgba(255, 255, 255, .6);
}

.nr-signup input:focus {
    outline: 2px solid var(--nr-teal);
    outline-offset: 1px;
}

.nr-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--nr-radius);
    background: var(--nr-teal);
    color: var(--nr-ink);
    font-weight: 700;
    padding: .75rem 1.25rem;
    text-decoration: none;
    white-space: nowrap;
}

.nr-button:hover {
    background: #45cbd0;
    color: var(--nr-ink);
}

.nr-fineprint {
    font-size: .8125rem !important;
    font-family: var(--nr-sans) !important;
    margin-top: .6rem !important;
}

.nr-fineprint a {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Section and topic pages
   -------------------------------------------------------------------------- */

.nr-page-head {
    padding: 2rem 0 1.25rem;
    border-bottom: 1px solid var(--nr-rule);
}

.nr-crumbs {
    font-size: .8125rem;
    color: var(--nr-muted);
    margin-bottom: .6rem;
}

.nr-crumbs a {
    color: var(--nr-muted);
    text-decoration: none;
}

.nr-crumbs a:hover {
    color: var(--nr-teal-ink);
    text-decoration: underline;
}

.nr-crumbs span[aria-hidden] {
    margin: 0 .4rem;
}

.nr-page-title {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 .5rem;
}

.nr-page-title i {
    font-size: .6em;
    color: var(--nr-teal);
}

.nr-page-intro {
    font-family: var(--nr-serif);
    font-size: 1.1875rem;
    color: var(--nr-text);
    max-width: var(--nr-measure);
    margin: 0;
}

.nr-page-banner {
    border-radius: var(--nr-radius);
    overflow: hidden;
    aspect-ratio: 5 / 1;
    background: var(--nr-wash);
    margin-top: 1.25rem;
}

.nr-page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nr-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.nr-subnav a {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--nr-ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.nr-subnav a i {
    color: var(--nr-teal-ink);
}

.nr-subnav a:hover,
.nr-subnav a[aria-current='page'] {
    color: var(--nr-teal-ink);
    text-decoration: underline;
    text-underline-offset: .25em;
}

.nr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem 2rem;
}

.nr-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2rem 0 1rem;
}

.nr-empty {
    font-family: var(--nr-serif);
    font-size: 1.125rem;
    color: var(--nr-muted);
    padding: 2rem 0;
}

.nr-aside-box {
    border-top: 2px solid var(--nr-ink);
    padding-top: .75rem;
}

.nr-aside-box + .nr-aside-box {
    margin-top: 2rem;
}

.nr-aside-signup h2 {
    font-size: 1.25rem;
    margin: 0 0 .3rem;
}

.nr-aside-signup p {
    font-size: .9375rem;
    color: var(--nr-muted);
    margin: 0 0 .8rem;
}

.nr-aside-signup input {
    width: 100%;
    border: 1px solid var(--nr-rule);
    border-radius: var(--nr-radius);
    padding: .65rem .8rem;
    margin-bottom: .5rem;
}

.nr-aside-signup .nr-button {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.nr-footer {
    background: var(--nr-ink);
    color: rgba(255, 255, 255, .8);
    margin-top: 3rem;
    padding: 2.75rem 0 1.5rem;
    font-size: .9375rem;
}

.nr-newsletter + .nr-footer {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.nr-footer a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
}

.nr-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.nr-footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 3fr);
    gap: 2.5rem;
}

.nr-footer .nr-brand-name {
    color: #fff;
    font-size: 2rem;
}

.nr-footer .nr-brand-mark {
    width: 2.1rem;
    height: 2.1rem;
}

.nr-footer-about {
    font-family: var(--nr-serif);
    margin: .8rem 0 0;
    max-width: 24rem;
    line-height: 1.55;
}

.nr-footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
    gap: 1.5rem 1.25rem;
}

.nr-footer h3 {
    font-family: var(--nr-sans);
    font-size: .9375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .5rem;
}

.nr-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nr-footer li + li {
    margin-top: .3rem;
}

.nr-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .65);
}

.nr-footer-bottom ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
}

.nr-footer-bottom li + li {
    margin-top: 0;
}

.nr-social {
    display: flex;
    gap: .9rem;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Article pages: the shared article renderer, in newsroom type
   -------------------------------------------------------------------------- */

.article {
    --art-ink: var(--nr-text);
    --art-accent: var(--nr-teal-ink);
    --art-accent-soft: rgba(11, 111, 117, .1);
    --art-quote: var(--nr-ink);
    --art-radius: var(--nr-radius);
    font-family: var(--nr-sans);
}

.article .article-headline,
.article .article-section-title,
.article .article-related-title,
.article .article-related-headline,
.article .article-author-name,
.article .article-author-card-name,
.article .article-quote {
    font-family: var(--nr-serif);
    letter-spacing: -0.015em;
}

.article .article-headline {
    font-weight: 600;
    line-height: 1.08;
    color: var(--nr-ink);
}

.article .article-standfirst,
.article .article-prose,
.article .article-prose p,
.article .article-prose li {
    font-family: var(--nr-serif);
}

.article .article-prose {
    font-size: 1.1875rem;
    line-height: 1.72;
}

.article .article-kicker {
    font-family: var(--nr-sans);
    text-transform: none;
    letter-spacing: 0;
    color: var(--nr-teal-ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    .nr-ranked {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .nr-front,
    .nr-columns,
    .nr-newsletter .nr-wrap,
    .nr-footer-top {
        grid-template-columns: 1fr;
    }

    .nr-front-side {
        border-left: 0;
        padding-left: 0;
    }

    .nr-section-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nr-section-grid > :first-child {
        grid-column: 1 / -1;
    }

    .nr-grid,
    .nr-second-row {
        grid-template-columns: 1fr 1fr;
    }

    .nr-ranked {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    /* Secondary stories become a headline with a small picture, so the page is not a wall of photos. */
    .nr-second-row .nr-story--card,
    .nr-grid .nr-story--card,
    .nr-section-grid .nr-story--card {
        display: grid;
        grid-template-columns: 1fr 6.5rem;
        gap: 1rem;
        align-items: start;
        padding-top: 1rem;
        border-top: 1px solid var(--nr-rule);
    }

    .nr-second-row .nr-story--card .nr-figure,
    .nr-grid .nr-story--card .nr-figure,
    .nr-section-grid .nr-story--card .nr-figure {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        aspect-ratio: 1 / 1;
    }

    .nr-second-row .nr-story--card .nr-story-text,
    .nr-grid .nr-story--card .nr-story-text,
    .nr-section-grid .nr-story--card .nr-story-text {
        grid-column: 1;
        grid-row: 1;
    }

    .nr-second-row,
    .nr-grid {
        gap: 0;
    }

    .nr-story--card .nr-headline {
        font-size: 1.125rem;
    }

    .nr-grid,
    .nr-second-row,
    .nr-section-grid,
    .nr-ranked {
        grid-template-columns: 1fr;
    }

    .nr-signup {
        flex-direction: column;
    }

    .nr-topbar-date {
        display: none;
    }

    .nr-page-banner {
        aspect-ratio: 3 / 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Search in the top bar */
.nr-topbar-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--nr-rule);
    border-radius: var(--nr-radius);
    background: var(--nr-paper);
}

.nr-topbar-search input {
    border: 0;
    background: transparent;
    width: 10rem;
    padding: .3rem .55rem;
    font-size: .8125rem;
    color: var(--nr-text);
}

.nr-topbar-search input:focus {
    outline: none;
}

.nr-topbar-search:focus-within {
    border-color: var(--nr-teal-ink);
}

.nr-topbar-search button {
    border: 0;
    background: none;
    padding: .3rem .55rem;
    color: var(--nr-ink);
}

@media (max-width: 575.98px) {
    .nr-topbar-actions {
        width: 100%;
        justify-content: space-between;
        gap: .75rem;
    }

    .nr-topbar-search input {
        width: 6.5rem;
    }
}

.nr-skip {
    position: absolute;
    left: 1rem;
    top: .5rem;
    z-index: 2000;
    background: var(--nr-ink);
    color: #fff;
    padding: .5rem .9rem;
    border-radius: var(--nr-radius);
}

/* Explore: one tile per topic group */
.nr-explore {
    padding-top: 2.5rem;
}

.nr-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: 1.5rem;
}

.nr-tile {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--nr-text);
}

.nr-tile-image {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--nr-radius);
    overflow: hidden;
    background: var(--nr-wash);
    margin-bottom: .65rem;
}

.nr-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nr-tile-name {
    font-family: var(--nr-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--nr-ink);
}

.nr-tile-name i {
    font-size: .9em;
    color: var(--nr-teal-ink);
    margin-right: .25rem;
}

.nr-tile-topics {
    font-size: .875rem;
    color: var(--nr-muted);
    margin-top: .2rem;
}

.nr-tile:hover .nr-tile-name {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

@media (min-width: 576px) {
    .nr-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nr-aside-box > .nr-block-title {
    border-top: 0;
    padding-top: 0;
}

.nr-ranked--column {
    grid-template-columns: 1fr !important;
    gap: 1.1rem;
}

.nr-aside-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nr-aside-links li {
    border-top: 1px solid var(--nr-rule);
}

.nr-aside-links li:first-child {
    border-top: 0;
}

.nr-aside-links a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 0;
    color: var(--nr-ink);
    font-weight: 600;
    text-decoration: none;
}

.nr-aside-links a i {
    color: var(--nr-teal-ink);
}

.nr-aside-links a:hover {
    color: var(--nr-teal-ink);
}

/* Single-column lists: latest, search, most read */
.nr-narrow {
    max-width: 860px;
}

.nr-list {
    padding: 1rem 0 2rem;
}

.nr-list .nr-story--row:first-child {
    border-top: 0;
}

.nr-list .nr-story--row .nr-dek {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nr-list .nr-story--row {
    grid-template-columns: 1fr 10rem;
    gap: 1.5rem;
    padding: 1.4rem 0;
}

.nr-list .nr-story--row .nr-figure {
    aspect-ratio: 3 / 2;
}

.nr-ranked--page {
    padding: 1.5rem 0 2rem;
}

.nr-ranked--page li {
    grid-template-columns: 3rem 1fr;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--nr-rule);
}

.nr-ranked--page .nr-headline {
    font-size: 1.5rem;
}

.nr-search {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    max-width: 36rem;
}

.nr-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--nr-muted);
    border-radius: var(--nr-radius);
    padding: .7rem .9rem;
    font-size: 1.0625rem;
}

.nr-search .nr-button {
    background: var(--nr-ink);
    color: #fff;
}

.nr-search .nr-button:hover {
    background: var(--nr-teal-ink);
    color: #fff;
}

.nr-result-count {
    color: var(--nr-muted);
    font-size: .9375rem;
    margin: 1.25rem 0 0;
}

@media (max-width: 575.98px) {
    .nr-list .nr-story--row {
        grid-template-columns: 1fr 6rem;
        gap: 1rem;
    }

    .nr-list .nr-story--row .nr-dek {
        display: none;
    }
}

/* Articles open in the light reading theme like the rest of the site; dark stays one click away. */
.article-page[data-theme='light'] {
    background: var(--nr-paper);
}

.nr-note {
    margin: 1.25rem 0 0;
    padding: .75rem 1rem;
    background: var(--nr-wash);
    border-left: 3px solid var(--nr-teal);
    font-size: .9375rem;
    color: var(--nr-text);
}

.legal-page h2,
.legal-page h3 {
    color: var(--nr-ink);
}

.legal-page p,
.legal-page li {
    font-family: var(--nr-serif);
    font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   Phones: sections arrows, readable text, touch-sized targets
   -------------------------------------------------------------------------- */

/* Arrows on the sections bar: only where the bar scrolls sideways (see js/section-nav.js). */
.nr-sections-scroller {
    position: relative;
}

.nr-sections-arrow {
    display: none;
}

@media (max-width: 991.98px) {
    .nr-sections-scroller.has-overflow .nr-sections-arrow {
        display: flex;
        position: absolute;
        top: 0;
        bottom: 3px;
        z-index: 2;
        align-items: center;
        width: 3rem;
        padding: 0;
        border: 0;
        color: var(--nr-teal-ink);
        cursor: pointer;
    }

    .nr-sections-scroller.has-overflow .nr-sections-arrow-next {
        right: 0;
        justify-content: flex-end;
        background: linear-gradient(to left, var(--nr-paper) 55%, rgba(255, 255, 255, 0));
    }

    .nr-sections-scroller.has-overflow .nr-sections-arrow-prev {
        left: 0;
        justify-content: flex-start;
        background: linear-gradient(to right, var(--nr-paper) 55%, rgba(255, 255, 255, 0));
    }

    .nr-sections-arrow svg {
        width: 1.1rem;
        height: 1.1rem;
        margin: 0 .35rem;
    }

    .nr-sections-scroller.has-overflow.is-at-start .nr-sections-arrow-prev,
    .nr-sections-scroller.has-overflow.is-at-end .nr-sections-arrow-next {
        display: none;
    }

    /* A nudge the first time the bar shows: the arrow pulses gently. */
    .nr-sections-scroller:not(.is-scrolled) .nr-sections-arrow-next svg {
        animation: nr-arrow-nudge 1.6s ease-in-out 2;
    }
}

@keyframes nr-arrow-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .nr-sections-arrow svg {
        animation: none !important;
    }
}

/* iPhone: a field under 16px makes Safari zoom the whole page in when it is tapped. */
@media (pointer: coarse) {
    .nr-topbar-search input,
    input[type='search'],
    input[type='email'],
    input[type='text'] {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* The top bar: links at 15px with 44px-tall targets; the search box moves to a row of its own. */
    .nr-topbar {
        font-size: .9375rem;
    }

    .nr-topbar .nr-wrap {
        min-height: 0;
    }

    .nr-topbar-actions {
        flex-wrap: wrap;
        row-gap: 0;
    }

    .nr-topbar-actions > a {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
        white-space: nowrap;
    }

    .nr-topbar-search {
        order: 2;
        flex: 1 1 100%;
        margin-bottom: .5rem;
    }

    .nr-topbar-search input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        padding: .6rem .75rem;
    }

    .nr-topbar-search button {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .nr-section-link {
        font-size: 1rem;
    }

    .nr-section-menu .dropdown-item {
        font-size: 1rem;
        padding: .7rem 1.1rem;
    }

    /* Small labels (13px) are the first thing people struggle with: kickers, bylines and dates. */
    .nr-kicker,
    .nr-meta {
        font-size: .9375rem;
    }
}

/* --------------------------------------------------------------------------
   Sections bar: a link on phones, a dropdown on larger screens
   -------------------------------------------------------------------------- */

.nr-sections-list > li > .nr-section-link--phone {
    display: none;
}

@media (max-width: 991.98px) {
    /* The section page lists its topics, so no dropdown is needed. A dropdown inside this sideways-scrolling bar is
       clipped or ignored by iPhone Safari: tapping a section did nothing. */
    .nr-sections-list > li.dropdown > button.nr-section-link,
    .nr-sections-list > li.dropdown > .dropdown-menu {
        display: none !important;
    }

    .nr-sections-list > li > .nr-section-link--phone {
        display: block;
    }
}
