/*
  Newsroom listing (/newsroom) and news detail (/newsroom/{slug}).
  All classes are prefixed "nr-" so the legacy theme styles (newsbox, newsinfo, h1/h3 rules) don't leak in.
  Brand colours come from the theme: --color3 #004990, --color6 #005fc2.
*/

.nr {
    --nr-brand: #004990;
    --nr-brand-light: #005fc2;
    --nr-ink: #111418;
    --nr-text: #3a3f45;
    --nr-muted: #6b7280;
    --nr-line: #e6e8ec;
    --nr-soft: #f5f7fa;
    --nr-radius: 14px;
    color: var(--nr-text);
    background: #ffffff;
}

.nr *,
.nr *::before,
.nr *::after {
    box-sizing: border-box;
}

.nr a {
    text-decoration: none;
}

.nr-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nr-narrow {
    max-width: 780px;
}

/* ---------- Category label / pills ---------- */

.nr-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nr-kicker a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #d6e4f3;
    border-radius: 999px;
    background: #eef4fb;
    color: var(--nr-brand);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nr-kicker a:hover,
.nr-kicker a:focus-visible {
    background: var(--nr-brand);
    border-color: var(--nr-brand);
    color: #ffffff;
}

/* ---------- Listing hero ---------- */

.nr-hero {
    padding: 56px 0 28px;
    background: linear-gradient(180deg, var(--nr-soft) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--nr-line);
}

.nr-hero-eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--nr-brand);
}

.nr .nr-hero-title {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--nr-ink);
}

.nr-hero-subtitle {
    max-width: 640px;
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--nr-muted);
}

.nr-filters {
    display: flex;
    gap: 8px;
    margin: 28px 0 0;
    padding: 0 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nr-filters::-webkit-scrollbar {
    display: none;
}

.nr-filter {
    flex: 0 0 auto;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--nr-text);
    background: #ffffff;
    border: 1px solid var(--nr-line);
    border-radius: 999px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nr-filter:hover {
    color: var(--nr-brand);
    border-color: var(--nr-brand);
}

.nr-filter.is-active,
.nr-filter.is-active:hover {
    color: #ffffff;
    background: var(--nr-brand);
    border-color: var(--nr-brand);
}

.nr-section {
    padding: 40px 0 72px;
}

/* ---------- Featured story ---------- */

.nr-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    margin: 0 0 48px;
    padding: 0 0 48px;
    border-bottom: 1px solid var(--nr-line);
}

.nr-featured-media {
    display: block;
    overflow: hidden;
    border-radius: var(--nr-radius);
    background: var(--nr-soft);
    aspect-ratio: 16 / 9;
}

.nr-featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nr-featured:hover .nr-featured-media img {
    transform: scale(1.03);
}

.nr .nr-featured-title {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.nr .nr-featured-title a {
    color: var(--nr-ink);
}

.nr .nr-featured-title a:hover {
    color: var(--nr-brand);
}

.nr-featured-summary {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--nr-text);
}

.nr-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--nr-brand);
}

.nr-read-more i {
    transition: transform 0.2s;
}

.nr-read-more:hover i {
    transform: translateX(4px);
}

/* ---------- Card grid ---------- */

.nr .nr-section-title {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--nr-ink);
}

.nr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 28px;
}

.nr-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.nr-card-media {
    display: block;
    overflow: hidden;
    margin: 0 0 16px;
    border-radius: 12px;
    background: var(--nr-soft);
    aspect-ratio: 16 / 9;
}

.nr-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nr-card:hover .nr-card-media img {
    transform: scale(1.04);
}

.nr .nr-card-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nr .nr-card-title a {
    color: var(--nr-ink);
}

.nr .nr-card-title a:hover {
    color: var(--nr-brand);
}

.nr-card-summary {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--nr-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nr-date {
    margin-top: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--nr-muted);
}

.nr-load-more {
    display: flex;
    justify-content: center;
    margin: 48px 0 0;
}

.nr-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: var(--nr-brand);
    background: #ffffff;
    border: 1.5px solid var(--nr-brand);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nr-btn:hover {
    color: #ffffff;
    background: var(--nr-brand);
}

.nr-btn[disabled] {
    cursor: default;
    color: var(--nr-muted);
    background: #ffffff;
    border-color: var(--nr-line);
}

.nr-empty {
    padding: 64px 0;
    text-align: center;
    font-size: 17px;
    color: var(--nr-muted);
}

/* ---------- Article (detail) ---------- */

/* Article column + sidebar; the header band uses the same grid so left edges line up */
.nr-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 320px;
    justify-content: space-between;
    gap: 56px;
    max-width: 1180px;
}

.nr-article-head {
    padding: 40px 0 36px;
    background: linear-gradient(180deg, var(--nr-soft) 0%, #ffffff 100%);
}

.nr-article-main {
    min-width: 0;
    padding: 0 0 72px;
}

.nr-article-hero {
    margin: 0 0 4px;
}

.nr-article-hero picture,
.nr-article-hero img {
    display: block;
    width: 100%;
}

.nr-article-hero img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    background: var(--nr-soft);
}

/* Sidebar */
.nr-sidebar {
    min-width: 0;
}

.nr-side-card {
    position: sticky;
    top: 96px;
    padding: 22px 22px 24px;
    background: #ffffff;
    border: 1px solid var(--nr-line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.05);
}

.nr .nr-side-title {
    margin: 0 0 14px;
    padding: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--nr-ink);
    border-bottom: 2px solid var(--nr-brand);
}

.nr .nr-side-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nr .nr-side-list li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nr .nr-side-list li + li {
    border-top: 1px solid var(--nr-line);
}

.nr-side-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
}

.nr-side-thumb {
    flex: 0 0 96px;
    height: 64px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--nr-soft);
}

.nr-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nr-side-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.nr-side-item-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--nr-ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.nr-side-item:hover .nr-side-item-title {
    color: var(--nr-brand);
}

.nr-side-text .nr-date {
    margin-top: 0;
    font-size: 12px;
}

.nr-side-all {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding: 11px 20px;
    font-size: 14px;
}

.nr-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nr-muted);
}

.nr-crumbs a {
    color: var(--nr-brand);
}

.nr-crumbs a:hover {
    color: var(--nr-brand-light);
}

.nr .nr-article-title {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--nr-ink);
}

.nr-article-summary {
    margin: 16px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: var(--nr-muted);
}

.nr-dateline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    margin: 20px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--nr-line);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--nr-ink);
}

.nr-dateline-sep {
    color: var(--nr-line);
    font-weight: 400;
}

.nr-dateline-muted {
    font-weight: 500;
    color: var(--nr-muted);
}

/* Share bar */
.nr-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 24px 0 0;
    padding: 14px 0;
    border-top: 1px solid var(--nr-line);
    border-bottom: 1px solid var(--nr-line);
}

.nr-share-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nr-muted);
}

.nr-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nr-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 15px;
    color: var(--nr-ink);
    background: var(--nr-soft);
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nr-share-btn:hover {
    color: #ffffff;
    background: var(--nr-brand);
}

.nr-share-btn.is-copied {
    color: #ffffff;
    background: #1e8e3e;
}

.nr-source {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 0;
    font-size: 14px;
    color: var(--nr-muted);
}

.nr-source img {
    max-height: 28px;
    width: auto;
}

/* Highlights box ("Key Takeaways" / "At a Glance") */
.nr-highlights {
    margin: 28px 0 8px;
    padding: 20px 24px 16px;
    background: linear-gradient(180deg, var(--nr-soft) 0%, #ffffff 100%);
    border: 1px solid var(--nr-line);
    border-left: 4px solid var(--nr-brand);
    border-radius: 12px;
}

.nr .nr-highlights-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--nr-ink);
}

.nr .nr-highlights-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nr .nr-highlights-list li {
    position: relative;
    margin: 0;
    padding: 5px 0 5px 22px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--nr-text);
    list-style: none;
}

.nr .nr-highlights-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    /* centred on the first line: top padding + half the line height - half the dot */
    top: calc(5px + 0.75em - 3.5px);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nr-brand);
}

.nr .nr-highlights-list li + li {
    border-top: 1px dashed var(--nr-line);
}

/* Article body: HTML from the BlockNote editor */
.nr-article-body {
    margin: 32px 0 0;
    font-size: 18px;
    line-height: 1.75;
    color: var(--nr-text);
    overflow-wrap: break-word;
}

.nr-article-body > *:first-child {
    margin-top: 0;
}

.nr-article-body p {
    margin: 0 0 1.25em;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.nr-article-body h1,
.nr-article-body h2,
.nr-article-body h3,
.nr-article-body h4 {
    margin: 1.8em 0 0.6em;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--nr-ink);
}

.nr-article-body h1 { font-size: 32px; }
.nr-article-body h2 { font-size: 27px; }
.nr-article-body h3 { font-size: 22px; }
.nr-article-body h4 { font-size: 19px; }

.nr-article-body a {
    color: var(--nr-brand);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.nr-article-body a:hover {
    color: var(--nr-brand-light);
}

.nr-article-body ul,
.nr-article-body ol {
    margin: 0 0 1.25em;
    padding-left: 1.4em;
}

.nr-article-body ul { list-style: disc; }
.nr-article-body ol { list-style: decimal; }

.nr-article-body li {
    margin: 0 0 0.4em;
    font-size: inherit;
    line-height: inherit;
}

.nr-article-body blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 22px;
    font-size: 20px;
    font-style: italic;
    line-height: 1.6;
    color: var(--nr-ink);
    border-left: 3px solid var(--nr-brand);
}

.nr-article-body img,
.nr-article-body video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6em auto;
    border-radius: 12px;
}

.nr-article-body iframe {
    display: block;
    max-width: 100%;
    margin: 1.6em auto;
    border: 0;
    border-radius: 12px;
}

.nr-article-body figure {
    margin: 1.6em 0;
}

.nr-article-body figure img,
.nr-article-body figure video {
    margin: 0 auto;
}

.nr-article-body figcaption {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    color: var(--nr-muted);
}

.nr-article-body hr {
    margin: 2.4em auto;
    width: 80px;
    border: 0;
    border-top: 2px solid var(--nr-line);
}

.nr-article-body table {
    width: 100%;
    margin: 0 0 1.4em;
    border-collapse: collapse;
    font-size: 16px;
}

.nr-article-body th,
.nr-article-body td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--nr-line);
}

.nr-article-body th {
    background: var(--nr-soft);
    font-weight: 700;
}

.nr-article-body code {
    padding: 2px 5px;
    font-size: 0.88em;
    background: var(--nr-soft);
    border-radius: 4px;
}

/* ---------- Responsive ---------- */

/* Sidebar drops below the article when there isn't room for both columns */
@media (max-width: 1100px) {
    .nr-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        max-width: 800px;
    }
    .nr-article-main { padding-bottom: 40px; }
    .nr-sidebar { padding: 0 0 64px; }
    .nr-side-card { position: static; }
}

@media (max-width: 991px) {
    .nr .nr-hero-title { font-size: 40px; }
    .nr-featured {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .nr .nr-featured-title { font-size: 28px; }
    .nr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nr .nr-article-title { font-size: 36px; }
}

@media (max-width: 767px) {
    .nr-container { padding: 0 16px; }
    .nr-hero { padding: 36px 0 20px; }
    .nr .nr-hero-title { font-size: 32px; }
    .nr-hero-subtitle { font-size: 16px; }
    .nr-section { padding: 28px 0 56px; }
    .nr-featured { margin-bottom: 32px; padding-bottom: 32px; }
    .nr .nr-featured-title { font-size: 24px; }
    .nr-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .nr-article-head { padding: 24px 0 24px; }
    .nr-article-hero img { border-radius: 12px; }
    .nr .nr-article-title { font-size: 28px; }
    .nr-dateline { font-size: 14px; }
    .nr-article-summary { font-size: 18px; }
    .nr-highlights { padding: 16px 16px 12px; }
    .nr .nr-highlights-title { font-size: 18px; }
    .nr .nr-highlights-list li { font-size: 15px; }
    .nr-article-body { font-size: 17px; }
    .nr-article-body h1 { font-size: 26px; }
    .nr-article-body h2 { font-size: 23px; }
    .nr-article-body h3 { font-size: 20px; }
}
