/* R20 compact editorial News & Articles layouts. Scoped to the two controlled routes. */
:root {
  --nj-news-navy: #071a2a;
  --nj-news-navy-2: #0d2b40;
  --nj-news-ink: #172a39;
  --nj-news-muted: #56636c;
  --nj-news-ivory: #f8f6ef;
  --nj-news-paper: #fffdf8;
  --nj-news-gold: #a87828;
  --nj-news-gold-fill: #d0a660;
  --nj-news-gold-light: #e6c77d;
  --nj-news-line: #ddd3bf;
  --nj-news-header-height: 86px;
}
.nj-news-shell { width: min(1272px, calc(100% - 72px)); margin-inline: auto; }
.nj-news-reading .nj-news-shell { width: min(1216px, calc(100% - 96px)); }
.nj-news-archive,
.nj-production-article-preview { min-width: 0; overflow: clip; background: var(--nj-news-ivory); color: var(--nj-news-ink); }
.nj-news-eyebrow,
.nj-reading-eyebrow { margin: 0; color: #94661f; font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; }

/* Index masthead */
.nj-news-masthead { padding: 32px 0 28px; border-bottom: 1px solid var(--nj-news-line); background: var(--nj-news-ivory); }
.nj-news-masthead-grid { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 64px; align-items: center; }
.nj-news-masthead h1 { max-width: 930px; margin: 10px 0 7px; color: var(--nj-news-navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(44px, 4vw, 58px); font-weight: 600; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
.nj-news-masthead-grid > div > p:last-child { max-width: 900px; margin: 0; color: #536674; font-size: 18px; line-height: 1.45; }
.nj-news-masthead-identity { display: grid; gap: 2px; margin: 0; padding: 18px 0 0; border-top: 1px solid #b58b45; color: #334b5b; font-family: Georgia, serif; font-size: 12px; letter-spacing: .14em; line-height: 1.25; text-transform: uppercase; }

/* Index feature and listing */
.nj-news-feature-section { padding: 27px 0 52px; background: var(--nj-news-ivory); }
.nj-news-feature { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); gap: 38px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--nj-news-line); }
.nj-news-feature--text-only { grid-template-columns: minmax(0, 760px); }
.nj-news-feature-media { display: block; min-width: 0; background: #e4dece; }
.nj-news-feature-media img,
.nj-reading-featured img { display: block; width: 100%; height: auto; }
.nj-news-feature-copy { min-width: 0; }
.nj-news-feature h2 { margin: 12px 0 14px; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(38px, 3.6vw, 50px); font-weight: 600; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
.nj-news-feature h2 a,
.nj-news-card h3 a { color: var(--nj-news-navy); text-decoration: none; }
.nj-news-feature h2 a:hover,
.nj-news-feature h2 a:focus-visible,
.nj-news-card h3 a:hover,
.nj-news-card h3 a:focus-visible { color: #7a571c; }
.nj-news-meta,
.nj-reading-meta,
.nj-news-card-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; align-items: center; color: #5c6972; font-size: 12px; line-height: 1.45; }
.nj-news-meta { margin: 0 0 16px; }
.nj-news-meta span + span::before,
.nj-reading-meta span + span::before,
.nj-news-card-meta span + span::before { display: inline-block; width: 3px; height: 3px; margin: 0 8px 3px 0; border-radius: 50%; background: var(--nj-news-gold); content: ""; }
.nj-news-feature-excerpt { margin: 0 0 13px; color: #42545f; font-size: 16px; line-height: 1.55; }
.nj-news-read-link { display: inline-flex; min-height: 38px; gap: 8px; align-items: center; color: #8a5e16; font-size: 14px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nj-news-read-link span { font-size: 18px; transition: transform .2s ease; }
.nj-news-read-link:hover span,
.nj-news-read-link:focus-visible span { transform: translateX(3px); }

.nj-news-listing { padding-top: 22px; }
.nj-news-listing-head { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-bottom: 18px; }
.nj-news-listing-head h2 { margin: 0 auto 0 0; color: #344c5b; font-size: 13px; font-weight: 700; letter-spacing: .17em; line-height: 1.3; text-transform: uppercase; }
.nj-news-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nj-news-filter button { min-height: 38px; padding: 0 18px; border: 1px solid #b9c0c3; border-radius: 999px; background: transparent; color: #314655; cursor: pointer; font: inherit; font-size: 13px; }
.nj-news-filter button[aria-pressed="true"] { border-color: var(--nj-news-gold-fill); background: var(--nj-news-gold-fill); color: #111b22; }
.nj-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nj-news-card { min-width: 0; border: 1px solid var(--nj-news-line); background: rgba(255, 253, 248, .72); }
.nj-news-card--grid { display: grid; grid-template-columns: minmax(190px, 43%) minmax(0, 1fr); }
.nj-news-card--text-only { grid-template-columns: 1fr; }
.nj-news-card-media { display: block; align-self: start; min-width: 0; background: #e4dece; }
.nj-news-card-media img { display: block; width: 100%; height: auto; }
.nj-news-card-copy { min-width: 0; padding: 18px; }
.nj-news-card h3 { margin: 9px 0 12px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 600; letter-spacing: -.018em; line-height: 1.05; text-wrap: balance; }
.nj-news-card-excerpt { margin: 0 0 15px; color: #51616b; font-size: 13px; line-height: 1.55; }
.nj-news-card-meta { margin: 0 0 7px; }
.nj-news-empty { margin: 22px 0 0; padding: 20px; border: 1px solid var(--nj-news-line); color: #495b66; font-size: 15px; line-height: 1.55; }

/* Shared newsletter */
.nj-newsletter { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.1fr); gap: 48px; align-items: center; margin-top: 34px; padding: 27px 30px; border: 1px solid var(--nj-news-line); background: rgba(255, 253, 248, .64); }
.nj-newsletter-copy { padding-left: 20px; border-left: 2px solid var(--nj-news-gold); }
.nj-newsletter h2 { margin: 0 0 4px; color: var(--nj-news-navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: 39px; font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.nj-newsletter-copy p { margin: 0; color: #586873; font-size: 14px; line-height: 1.5; }
.nj-newsletter-form > div { display: grid; grid-template-columns: minmax(0, 1fr) 144px; gap: 12px; }
.nj-newsletter input { min-width: 0; height: 44px; padding: 0 15px; border: 1px solid #c8ced0; border-radius: 0; background: #fff; color: var(--nj-news-ink); font: inherit; font-size: 13px; }
.nj-newsletter button { min-height: 44px; border: 1px solid var(--nj-news-gold-fill); border-radius: 0; background: var(--nj-news-gold-fill); color: #111b22; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; }
.nj-newsletter-form > p { margin: 5px 0 0; color: #768087; font-size: 11px; line-height: 1.4; }

/* Article introduction */
.nj-reading-progress { position: fixed; z-index: 120; top: var(--nj-news-header-height); right: 0; left: 0; height: 3px; pointer-events: none; }
.nj-reading-progress span { display: block; width: 0; height: 100%; background: var(--nj-news-gold-light); transform-origin: left center; }
.nj-news-reading-hero { padding: 22px 0 20px; border-bottom: 1px solid var(--nj-news-line); background: var(--nj-news-ivory); }
.nj-reading-intro-grid,
.nj-reading-media-grid { display: grid; grid-template-columns: 228px minmax(0, 936px); gap: 52px; align-items: start; }
.nj-reading-intro-rail { min-width: 0; }
.nj-reading-back { display: inline-flex; min-height: 34px; align-items: center; margin-bottom: 17px; color: #435661; font-size: 12px; text-decoration: none; }
.nj-reading-back:hover,
.nj-reading-back:focus-visible { color: #795419; text-decoration: underline; text-underline-offset: 4px; }
.nj-news-breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 0 0 12px; color: #5b6971; font-size: 12px; line-height: 1.4; }
.nj-news-breadcrumb a { color: #4b5d67; text-decoration: none; }
.nj-news-breadcrumb a:hover,
.nj-news-breadcrumb a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.nj-news-reading-hero h1 { max-width: 936px; margin: 6px 0 8px; color: var(--nj-news-navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(43px, 3.8vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
.nj-reading-deck { max-width: 780px; margin: 0 0 10px; color: #3f5664; font-size: 18px; line-height: 1.38; }
.nj-reading-utility { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--nj-news-line); }
.nj-reading-meta { margin: 0; }
.nj-reading-share { display: flex; flex: 0 0 auto; gap: 6px; align-items: center; }
.nj-reading-share > span:first-child { margin-right: 2px; color: #5a6870; font-size: 12px; }
.nj-reading-share a,
.nj-reading-share button { display: inline-flex; min-width: 34px; min-height: 34px; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--nj-news-navy); }
.nj-reading-share a:hover,
.nj-reading-share button:hover,
.nj-reading-share a:focus-visible,
.nj-reading-share button:focus-visible { background: #eee4d0; }
.nj-reading-share button { width: auto; padding: 0 8px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.nj-reading-share img { display: block; }
.nj-reading-share img[src*="nj-profile-x.svg"] { filter: brightness(0) saturate(100%); }

/* Article body */
.nj-news-reading-body { padding: 18px 0 38px; background: var(--nj-news-ivory); }
.nj-reading-main { min-width: 0; }
.nj-reading-featured { width: 100%; max-width: 936px; margin: 0 0 14px; }
.nj-reading-featured img { border: 1px solid rgba(168, 120, 40, .32); }
.nj-reading-featured figcaption { margin: 6px 0 0; color: #68737a; font-size: 11px; line-height: 1.45; }
.nj-reading-toc { padding-left: 14px; border-left: 1px solid #cbbc9d; }
.nj-reading-toc ol { margin: 10px 0 0; padding: 0; list-style: none; }
.nj-reading-toc li + li { margin-top: 1px; }
.nj-reading-toc a { display: block; padding: 6px 0; color: #53626b; font-size: 12px; line-height: 1.35; text-decoration: none; }
.nj-reading-toc a:hover,
.nj-reading-toc a:focus-visible,
.nj-reading-toc a[aria-current="true"] { color: #73501a; text-decoration: underline; text-underline-offset: 3px; }
.nj-reading-toc-mobile { display: none; }
.nj-preview-article-body { width: min(720px, 100%); min-width: 0; margin-top: 12px; }
.nj-preview-article-body > * { max-width: 100%; }
.nj-preview-article-body p,
.nj-preview-article-body li { color: #344650; font-size: 16.5px; line-height: 1.6; }
.nj-preview-article-body p { margin: 0 0 1em; }
.nj-preview-article-body h2 { margin: 1.12em 0 .22em; padding: 0; border: 0; color: var(--nj-news-navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(30px, 2.6vw, 36px); font-weight: 600; line-height: 1.05; letter-spacing: -.022em; overflow-wrap: anywhere; scroll-margin-top: calc(var(--nj-news-header-height) + 20px); text-wrap: balance; }
.nj-preview-article-body h2:first-of-type { margin-top: .55em; }
.nj-preview-article-body h3 { margin: 1.05em 0 .28em; color: #173a51; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(22px, 2vw, 27px); font-weight: 600; line-height: 1.12; scroll-margin-top: calc(var(--nj-news-header-height) + 20px); }
.nj-preview-article-body strong { color: #142f42; }
.nj-key-judgment { margin: 20px 0 22px; padding: 17px 20px; border-left: 3px solid var(--nj-news-gold); background: #f3efe6; }
.nj-key-judgment p:last-child { margin: 7px 0 0; color: #172f40; font-family: "Cormorant Garamond", Georgia, serif; font-size: 23px; font-weight: 600; line-height: 1.28; }
.nj-pull-quote { margin: 22px 0; padding: 8px 16px 8px 25px; border-left: 3px solid var(--nj-news-gold); background: #f3efe6; }
.nj-pull-quote p { margin: 0; color: #173a51; font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.25; }
.nj-preview-article-body .wp-block-table { display: block; max-width: 100%; margin: 1.25em 0; overflow-x: auto; border: 1px solid #cfc1a5; background: var(--nj-news-paper); -webkit-overflow-scrolling: touch; }
.nj-preview-article-body .wp-block-table:focus-visible { outline: 3px solid var(--nj-news-gold); outline-offset: 3px; }
.nj-preview-article-body table { width: 100%; min-width: 620px; margin: 0; border-collapse: collapse; color: #30434f; font-size: 12px; line-height: 1.4; }
.nj-preview-article-body th,
.nj-preview-article-body td { padding: 8px 10px; border: 1px solid var(--nj-news-line); text-align: left; vertical-align: top; }
.nj-preview-article-body th { background: #ede8dc; color: #182e3d; font-weight: 700; }
.nj-preview-article-body tbody tr:nth-child(even) td { background: #f7f3ea; }
.nj-priority-list { margin: 0 0 1.2em; padding: 0; list-style: none; }
.nj-priority-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; }
.nj-priority-list li > span { color: #a87524; font-size: 15px; line-height: 1.55; }
.nj-priority-list li > div { color: #344650; font-size: 15px; line-height: 1.55; }
.nj-preview-article-body .nj-method-note { margin: 1.8em 0 0; padding: 14px 16px; border-left: 3px solid #9ab8ce; background: #edf3f7; color: #52626c; font-size: 12px; line-height: 1.5; }
.nj-reading-author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 15px; align-items: start; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--nj-news-line); }
.nj-reading-author-mark { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border: 1px solid var(--nj-news-gold); color: var(--nj-news-navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: 22px; line-height: 1; }
.nj-reading-author h2 { margin: 3px 0 3px; padding: 0; border: 0; font-size: 23px; }
.nj-reading-author p:not(.nj-reading-eyebrow) { margin: 0 0 4px; font-size: 12px; line-height: 1.45; }
.nj-reading-author a,
.nj-reading-return a { display: inline-flex; min-height: 34px; align-items: center; color: #825a19; font-size: 12px; font-weight: 700; text-underline-offset: 3px; }

/* Related articles */
.nj-reading-related { margin-top: 32px; padding-top: 4px; }
.nj-reading-section-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 11px; }
.nj-reading-section-heading h2 { margin: 0; color: var(--nj-news-navy); font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1; }
.nj-reading-section-heading span { flex: 1; height: 1px; background: var(--nj-news-line); }
.nj-reading-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nj-news-card--related { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
.nj-news-card--related .nj-news-card-copy { padding: 11px 12px; }
.nj-news-card--related h3 { margin: 5px 0 7px; font-size: 19px; }
.nj-news-card--related .nj-news-card-excerpt { display: none; }
.nj-news-card--related .nj-news-card-meta { font-size: 10px; }
.nj-news-card--related .nj-news-card-meta span:nth-child(2) { display: none; }
.nj-news-card--related .nj-news-read-link { min-height: 28px; font-size: 11px; }
.nj-reading-return { margin: 7px 0 0 !important; }
.nj-news-reading-body > .nj-news-shell > .nj-newsletter { margin-top: 12px; }

.nj-news-archive a:focus-visible,
.nj-news-archive button:focus-visible,
.nj-news-archive input:focus-visible,
.nj-production-article-preview a:focus-visible,
.nj-production-article-preview button:focus-visible,
.nj-production-article-preview input:focus-visible,
.nj-production-article-preview summary:focus-visible { outline: 3px solid var(--nj-news-gold); outline-offset: 3px; }

@media (max-width: 1020px) {
  .nj-news-shell,
  .nj-news-reading .nj-news-shell { width: min(760px, calc(100% - 64px)); }
  .nj-news-masthead-grid { grid-template-columns: 1fr 150px; gap: 36px; }
  .nj-news-masthead h1 { font-size: 46px; }
  .nj-news-feature { grid-template-columns: 1fr; gap: 22px; }
  .nj-news-feature-copy { max-width: 700px; }
  .nj-reading-intro-grid,
  .nj-reading-media-grid { display: block; }
  .nj-reading-intro-rail { display: none; }
  .nj-reading-main { width: min(760px, 100%); margin-inline: auto; }
  .nj-reading-toc-mobile { display: block; margin: 13px 0 18px; border-top: 1px solid var(--nj-news-line); border-bottom: 1px solid var(--nj-news-line); }
  .nj-reading-toc-mobile summary { min-height: 44px; padding: 11px 2px; color: var(--nj-news-navy); cursor: pointer; font-size: 14px; font-weight: 700; }
  .nj-reading-toc-mobile .nj-reading-toc { margin-bottom: 12px; }
  .nj-reading-toc-mobile .nj-reading-toc > .nj-reading-eyebrow { display: none; }
  .nj-preview-article-body { margin-inline: auto; }
  .nj-newsletter { grid-template-columns: 1fr; gap: 20px; }
  .nj-reading-related-grid { grid-template-columns: 1fr; }
  .nj-news-card--related { grid-template-columns: 150px minmax(0, 1fr); }
}

@media (max-width: 800px) {
  .nj-news-masthead-grid { grid-template-columns: 1fr; gap: 20px; }
  .nj-news-masthead-identity { max-width: 170px; }
  .nj-news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nj-news-shell,
  .nj-news-reading .nj-news-shell { width: calc(100% - 32px); }
  .nj-news-masthead { padding: 27px 0 23px; }
  .nj-news-masthead h1,
  .nj-news-reading-hero h1 { font-size: clamp(36px, 10.5vw, 43px); line-height: 1; }
  .nj-news-masthead-grid > div > p:last-child { font-size: 16px; }
  .nj-news-masthead-identity { display: none; }
  .nj-news-feature-section { padding-top: 20px; }
  .nj-news-feature h2 { font-size: clamp(34px, 9vw, 42px); }
  .nj-news-listing-head { display: block; }
  .nj-news-listing-head h2 { margin-bottom: 12px; }
  .nj-news-filter { gap: 7px; }
  .nj-news-filter button { min-height: 36px; padding-inline: 14px; font-size: 12px; }
  .nj-news-card--grid { grid-template-columns: 1fr; }
  .nj-newsletter { padding: 21px 18px; }
  .nj-newsletter h2 { font-size: 34px; }
  .nj-newsletter-form > div { grid-template-columns: 1fr; }
  .nj-reading-deck { font-size: 17px; }
  .nj-reading-utility { display: block; }
  .nj-reading-meta { display: grid; gap: 4px; }
  .nj-reading-meta span + span::before,
  .nj-news-meta span + span::before,
  .nj-news-card-meta span + span::before { display: none; }
  .nj-reading-share { margin-top: 8px; }
  .nj-reading-share > span:first-child { margin-right: 4px; }
  .nj-news-reading-body { padding-top: 12px; }
  .nj-preview-article-body p,
  .nj-preview-article-body li { font-size: 16px; }
  .nj-preview-article-body h2 { font-size: 30px; }
  .nj-reading-related-grid { gap: 10px; }
  .nj-news-card--related { grid-template-columns: 108px minmax(0, 1fr); }
}

@media (max-width: 390px) {
  .nj-news-shell,
  .nj-news-reading .nj-news-shell { width: calc(100% - 24px); }
  .nj-news-card-copy { padding: 15px; }
  .nj-news-card h3 { font-size: 25px; }
  .nj-news-card--related h3 { font-size: 17px; }
  .nj-priority-list li { grid-template-columns: 30px minmax(0, 1fr); gap: 7px; }
  .nj-reading-author { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
  .nj-reading-author-mark { width: 44px; height: 44px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .nj-news-archive *,
  .nj-news-archive *::before,
  .nj-news-archive *::after,
  .nj-production-article-preview *,
  .nj-production-article-preview *::before,
  .nj-production-article-preview *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
