/* Pakstoor :: pks-newsroom.css :: v1.0-000001 :: 2026-10-23 */
/**
 * Copyright (c) 2026 Pakstoor (Pty) Ltd. All rights reserved.
 * Proprietary and confidential.
 * Unauthorized copying, distribution, modification, or use of this file is prohibited.
 */
/*
 * Newsroom (owner brief 2026-10-23, DESIGN-newsroom.md 5.5): /newsroom, /newsroom/<slug> and the admin preview
 * (wrapper .nr-preview). Every class starts with nr-. Part of Pakstoor, not a blog template: the site's Inter type,
 * orange accents (Brand Pack: #F47A20 fill and focus, orange text on light surfaces #B5520F, text on orange #141414),
 * pill buttons and the /help card surface, in both themes (html[data-theme="light"] is the default, dark when chosen).
 * No banner, no carousel, no motion beyond hover colours (and none of that under reduced motion).
 */

/* ---- 1. Tokens ------------------------------------------------------------------------------------------- */
.nr-page, .nr-preview {
  --nr-surface: var(--bg-1, #221F1C);
  --nr-line: var(--line-2, #403B36);
  --nr-line-hover: rgba(244, 122, 32, .55);
  --nr-ink: var(--ink, #F1EFED);
  --nr-muted: var(--ink-muted, #B4AEA8);
  --nr-dim: var(--ink-dim, #99928B);
  --nr-brand-text: #F47A20;
  --nr-focus: #F47A20;
  --nr-media: #2B2723;
  --nr-art-circle: #36312C;
  --nr-intro-circle: #2A2622;
  --nr-reported-bg: var(--bg-1, #221F1C);
  --nr-reported-rule: var(--line-bright, #56504A);
  --nr-skel: rgba(255, 255, 255, .07);
  --nr-shadow: 0 12px 30px rgba(0, 0, 0, .34);
  --nr-chip-line: rgba(244, 122, 32, .6);
  --nr-ribbon-bg: rgba(232, 179, 57, .12);
  --nr-ribbon-line: rgba(232, 179, 57, .5);
  --nr-ribbon-ink: #F2CF7A;
}
/* light: the public site (html[data-theme="light"]) and the admin preview in the light admin (html.adm-light) */
html[data-theme="light"] .nr-page, html[data-theme="light"] .nr-preview, html.adm-light .nr-preview {
  --nr-surface: #FFFFFF;
  --nr-line: #E6E3DE;
  --nr-line-hover: rgba(244, 122, 32, .6);
  --nr-ink: #1E1B18;
  --nr-muted: #4A453F;
  --nr-dim: #6B655E;
  --nr-brand-text: #B5520F;
  --nr-focus: #B5520F;
  --nr-media: #F5F2EE;
  --nr-art-circle: #EAE4DC;
  --nr-intro-circle: #EEE9E2;
  --nr-reported-bg: #FAF9F7;
  --nr-reported-rule: #B3ADA5;
  --nr-skel: #EFECE7;
  --nr-shadow: 0 12px 28px rgba(30, 27, 24, .08);
  --nr-chip-line: #F47A20;
  --nr-ribbon-bg: #FFF6DD;
  --nr-ribbon-line: #E8B339;
  --nr-ribbon-ink: #5C4300;
}

/* Illustrations: the pks-art gold tokens re-pointed to the Brand Pack, as pks-brand.css does on other pages. The
   backdrop circle (fs) inside a tinted image box gets its own shade so it still shows on that box. */
html:not(#pkb):not(#pkc) body :is(.nr-page, .nr-preview) .pa { --a-gold: #F47A20 !important; --a-goldd: #B5520F !important; --a-goldl: #FDE3CF !important; }
html:not([data-theme="light"]):not(.adm-light):not(#pkb):not(#pkc) body :is(.nr-page, .nr-preview) .pa { --a-goldd: #FF9A52 !important; --a-goldl: #4A2A14 !important; }
html:not(#pkb) body :is(.nr-card-media, .nr-art-band) .pa { --a-soft: var(--nr-art-circle); }
html:not(#pkb) body .nr-intro-art .pa { --a-soft: var(--nr-intro-circle); }

/* ---- 2. Page frame --------------------------------------------------------------------------------------- */
.nr-page { padding: 22px 0 80px; color: var(--nr-ink); }
.nr-page [hidden] { display: none !important; }
.nr-page *, .nr-page *::before, .nr-page *::after, .nr-preview *, .nr-preview *::before, .nr-preview *::after { box-sizing: border-box; }
.nr-inner, .nr-article-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 639px) { .nr-inner, .nr-article-wrap { padding: 0 16px; } }
.nr-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.nr-ico { width: 16px; height: 16px; flex: 0 0 auto; }
:is(.nr-page, .nr-preview) a:focus-visible, :is(.nr-page, .nr-preview) button:focus-visible { outline: 2px solid var(--nr-focus); outline-offset: 3px; }

/* breadcrumbs */
.nr-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; line-height: 1.4; color: var(--nr-dim); }
.nr-crumbs a { color: var(--nr-dim); text-decoration: none; padding: 4px 0; }
.nr-crumbs a:hover { color: var(--nr-ink); text-decoration: underline; text-underline-offset: 3px; }
/* touch: 44px tall tap areas for the small text links, without moving anything (padding taken back by margin) */
@media (hover: none), (pointer: coarse) {
  .nr-crumbs a, :is(.nr-page, .nr-preview) :is(.nr-end-link, .nr-source-link) { padding-top: 12px; padding-bottom: 12px; margin-top: -12px; margin-bottom: -12px; }
}
.nr-crumbs [aria-current] { color: var(--nr-ink); }

/* compact introduction (no banner) */
.nr-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 18px; }
.nr-intro-text { min-width: 0; }
.nr-title { margin: 0 0 6px; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--nr-ink); }
.nr-deck { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--nr-muted); }
.nr-intro-art { flex: 0 0 auto; display: block; height: 112px; }
.nr-intro-art .nr-art, .nr-intro-art .pa-svg { display: block; height: 100%; width: auto; }
@media (max-width: 899px) {
  .nr-title { font-size: 28px; }
  .nr-intro-art { height: 84px; }
}
@media (max-width: 639px) {
  .nr-title { font-size: 26px; }
  .nr-deck { font-size: 15.5px; }
  .nr-intro-art { display: none; }
}

/* ---- 3. Category filters (links with aria-current, not tabs) --------------------------------------------- */
.nr-filters { display: flex; gap: 8px; margin: 0 -4px 22px; padding: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nr-filters::-webkit-scrollbar { display: none; }
.nr-filter {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: 1px solid var(--nr-line); border-radius: 999px; background: transparent;
  font-size: 14px; font-weight: 500; line-height: 1; color: var(--nr-muted); text-decoration: none; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.nr-filter:hover { color: var(--nr-ink); border-color: var(--nr-line-hover); }
.nr-filter[aria-current="page"], .nr-filter[aria-current="page"]:hover { background: #F47A20; border-color: #F47A20; color: #141414; font-weight: 600; }
.nr-filter:focus-visible { outline-offset: 2px; }
@media (hover: none), (pointer: coarse) { .nr-filter { height: 44px; } }

/* ---- 4. Cards -------------------------------------------------------------------------------------------- */
.nr-featured { margin: 0 0 28px; }
.nr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .nr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .nr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.nr-grid > .nr-cell { display: flex; min-width: 0; }
.nr-grid > .nr-cell > .nr-card, .nr-grid > .nr-card { flex: 1 1 auto; width: 100%; }

.nr-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--nr-surface); border: 1px solid var(--nr-line); border-radius: 16px; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nr-card:hover { border-color: var(--nr-line-hover); box-shadow: var(--nr-shadow); }
.nr-card-media { position: relative; flex: 0 0 auto; aspect-ratio: 16 / 9; background: var(--nr-media); overflow: hidden; }
.nr-card-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nr-card-media .nr-art { position: absolute; inset: 0; display: block; }
.nr-card-media .nr-art .pa-svg { width: 100%; height: 100%; }
.nr-card-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 8px; padding: 16px 18px 18px; min-width: 0; }

.nr-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; line-height: 1.4; }
.nr-kicker-cat { font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--nr-brand-text); }
.nr-kicker-dot { color: var(--nr-dim); font-size: 12px; }
.nr-kicker-src { font-size: 12.5px; font-weight: 600; color: var(--nr-muted); }

.nr-card-title {
  margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.005em; color: var(--nr-ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}
.nr-card-link { color: inherit; text-decoration: none; }
.nr-card-link::after { content: ""; position: absolute; inset: 0; border-radius: 16px; z-index: 1; }
.nr-card:hover .nr-card-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:is(.nr-page, .nr-preview) .nr-card-link:focus-visible { outline: none; }
.nr-card-link:focus-visible::after { outline: 2px solid var(--nr-focus); outline-offset: -2px; }
.nr-card:has(.nr-card-link:focus-visible) { border-color: var(--nr-focus); }
.nr-card-summary {
  margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--nr-muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word;
}
.nr-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 8px; font-size: 13px; line-height: 1.4; color: var(--nr-dim); }
.nr-card-action { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--nr-brand-text); white-space: nowrap; }

/* featured: larger, image on the left from 900px, stacked below */
.nr-chip { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; margin: 0 0 2px; padding: 4px 11px 4px 9px; border: 1px solid var(--nr-chip-line); border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--nr-ink); }
.nr-chip .nr-ico { width: 14px; height: 14px; color: #F47A20; fill: #F47A20; stroke: #F47A20; }
.nr-card--featured .nr-card-body { gap: 10px; padding: 20px 22px 22px; }
.nr-card--featured .nr-card-title { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; -webkit-line-clamp: 4; }
.nr-card--featured .nr-card-summary { font-size: 16px; -webkit-line-clamp: 4; }
.nr-card--featured .nr-card-foot { font-size: 14px; padding-top: 12px; }
@media (max-width: 639px) {
  .nr-card--featured .nr-card-body { padding: 18px 18px 20px; }
  .nr-card--featured .nr-card-title { font-size: 21px; line-height: 1.28; -webkit-line-clamp: 6; }
  .nr-card--featured .nr-card-summary { font-size: 15px; }
}
@media (min-width: 900px) {
  .nr-card--featured { flex-direction: row; min-height: 320px; }
  .nr-card--featured .nr-card-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 100%; }
  .nr-card--featured .nr-card-img { position: absolute; inset: 0; }
  .nr-card--featured .nr-card-body { flex: 1 1 45%; justify-content: center; padding: 28px 32px; }
  .nr-card--featured .nr-card-title { font-size: 28px; }
  .nr-card--featured .nr-card-foot { margin-top: 6px; }
}

/* placeholders while loading: the same boxes as a card, no shimmer */
.nr-card--skeleton, .nr-card--skeleton:hover { border-color: var(--nr-line); box-shadow: none; }
.nr-card--skeleton .nr-card-media { background: var(--nr-skel); }
.nr-skel { display: block; border-radius: 6px; background: var(--nr-skel); }
.nr-skel--kicker { width: 38%; height: 11px; }
.nr-skel--title { width: 92%; height: 18px; margin-top: 4px; }
.nr-skel--title2 { width: 66%; height: 18px; }
.nr-skel--line { width: 100%; height: 12px; margin-top: 6px; }
.nr-skel--line2 { width: 78%; height: 12px; }
.nr-skel--foot { width: 46%; height: 12px; margin-top: auto; }

/* show more, states */
.nr-more { display: flex; justify-content: center; margin: 28px 0 0; }
.nr-more .btn { min-height: 44px; padding-left: 22px; padding-right: 22px; }
.nr-state { margin: 4px 0 0; padding: 32px 20px 36px; text-align: center; background: var(--nr-surface); border: 1px solid var(--nr-line); border-radius: 16px; }
.nr-state .nr-art { display: block; width: 100%; max-width: 240px; margin: 0 auto 10px; }
.nr-state .nr-art .pa-svg { width: 100%; height: auto; }
.nr-state-title { margin: 0 0 6px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--nr-ink); }
.nr-state-body { max-width: 460px; margin: 0 auto 18px; font-size: 15px; line-height: 1.55; color: var(--nr-muted); }
.nr-state .btn { min-height: 44px; }
.nr-state--error .nr-state-title { font-size: 17px; font-weight: 600; }

/* ---- 5. Article page ------------------------------------------------------------------------------------- */
.nr-back-row, .nr-article { max-width: 720px; margin-left: auto; margin-right: auto; }
.nr-back-row { margin-top: 0; margin-bottom: 10px; }
.nr-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--nr-muted); text-decoration: none; }
.nr-back:hover { color: var(--nr-ink); text-decoration: underline; text-underline-offset: 3px; }
.nr-back .nr-ico { width: 18px; height: 18px; }

.nr-preview-ribbon { margin: 0 0 20px; padding: 10px 14px; border: 1px solid var(--nr-ribbon-line); border-radius: 12px; background: var(--nr-ribbon-bg); color: var(--nr-ribbon-ink); font-size: 14px; font-weight: 600; line-height: 1.45; }

.nr-article-head { margin: 0 0 24px; }
.nr-article-head .nr-kicker { margin: 0 0 12px; }
.nr-article-title { margin: 0 0 14px; font-size: 36px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--nr-ink); overflow-wrap: break-word; text-wrap: balance; }
.nr-standfirst { margin: 0 0 16px; font-size: 19px; line-height: 1.55; color: var(--nr-muted); overflow-wrap: break-word; }
.nr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--nr-dim); }
.nr-meta-sep { color: var(--nr-line-hover); }
@media (max-width: 899px) { .nr-article-title { font-size: 30px; } }
@media (max-width: 639px) {
  .nr-article-title { font-size: 26px; }
  .nr-standfirst { font-size: 17px; }
}

/* attribution to the publication (ours, not theirs) */
.nr-source { margin: 0 0 28px; padding: 20px 22px; background: var(--nr-surface); border: 1px solid var(--nr-line); border-radius: 16px; }
.nr-source--press { border-left: 4px solid #F47A20; }
.nr-source-label { margin: 0 0 10px; font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--nr-dim); }
.nr-source-headline { margin: 0 0 8px; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--nr-ink); overflow-wrap: break-word; }
.nr-source-headline-label { display: block; margin: 0 0 2px; font-size: 12.5px; font-weight: 500; color: var(--nr-dim); }
.nr-source-headline-text { quotes: "\201C" "\201D" "\2018" "\2019"; }
.nr-source-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 16px; font-size: 13.5px; color: var(--nr-dim); }
:is(.nr-page, .nr-preview) .nr-source-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 44px; height: auto; padding: 11px 20px; line-height: 1.3; white-space: normal; text-align: center; font-weight: 600; }
.nr-source-btn .nr-ico--ext { width: 15px; height: 15px; }
.nr-source-link, .nr-end-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--nr-brand-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.nr-source-link .nr-ico--ext, .nr-end-link .nr-ico--ext { width: 14px; height: 14px; }
.nr-source-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--nr-dim); }

/* main image or illustration band */
.nr-figure { margin: 0 0 28px; }
.nr-figure-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: var(--nr-media); }
.nr-figure-credit { margin: 8px 0 0; font-size: 13px; color: var(--nr-dim); }
.nr-art-band { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 260px; margin: 0 0 28px; background: var(--nr-media); border-radius: 16px; overflow: hidden; }
.nr-art-band .nr-art { position: absolute; inset: 0; display: block; }
.nr-art-band .pa-svg { width: 100%; height: 100%; }

/* body (server-parsed blocks, rendered with textContent) */
.nr-prose { font-size: 17px; line-height: 1.7; color: var(--nr-ink); overflow-wrap: break-word; }
.nr-prose > *, .nr-reported > * { margin: 0 0 18px; }
.nr-prose > :first-child { margin-top: 0; }
.nr-prose h2 { margin: 40px 0 14px; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--nr-ink); }
.nr-prose h3 { margin: 28px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 700; color: var(--nr-ink); }
.nr-prose ul, .nr-prose ol { padding-left: 1.4em; }
.nr-prose ul { list-style: disc outside; }
.nr-prose ol { list-style: decimal outside; }
.nr-prose li { margin: 0 0 8px; padding-left: 2px; line-height: 1.6; }
.nr-prose li::marker { color: var(--nr-dim); }
.nr-prose strong { font-weight: 700; color: var(--nr-ink); }
.nr-prose a.nr-link { color: var(--nr-brand-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nr-prose a.nr-link:hover { text-decoration-thickness: 2px; }
.nr-link--ext .nr-ico--ext { display: inline-block; width: 12px; height: 12px; margin-left: 3px; vertical-align: -1px; }
.nr-quote { padding: 2px 0 2px 18px; border-left: 3px solid var(--nr-line); color: var(--nr-muted); }
.nr-quote p { margin: 0; }
/* external reporting looks different from our own statements: neutral rule, own label, no orange */
.nr-reported { margin: 6px 0 26px; padding: 18px 20px 4px; background: var(--nr-reported-bg); border: 1px solid var(--nr-line); border-left: 3px solid var(--nr-reported-rule); border-radius: 4px 14px 14px 4px; font-size: 16.5px; }
.nr-reported .nr-reported-label { margin: 0 0 10px; font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: 11.5px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--nr-dim); }
.nr-reported ul, .nr-reported ol { padding-left: 1.4em; }

.nr-article-end { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--nr-line); }
.nr-end-row { margin: 0; }
.nr-summary-by { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--nr-dim); }

/* related, explore */
.nr-related { margin: 56px 0 0; padding-top: 30px; border-top: 1px solid var(--nr-line); }
.nr-related > h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--nr-ink); }
.nr-explore { display: flex; justify-content: center; margin: 36px 0 0; }
.nr-explore a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-size: 15px; font-weight: 600; color: var(--nr-muted); text-decoration: none; }
.nr-explore a:hover { color: var(--nr-ink); text-decoration: underline; text-underline-offset: 3px; }
.nr-explore .nr-ico { width: 18px; height: 18px; color: #F47A20; }

/* article loading / not found / error inside #nrArticle */
.nr-article[aria-busy="true"] { min-height: 420px; }
.nr-article .nr-state { margin-top: 8px; }
.nr-skel-article .nr-skel { margin: 0 0 14px; }
.nr-skel-article .nr-skel--h1 { width: 86%; height: 34px; }
.nr-skel-article .nr-skel--h1b { width: 58%; height: 34px; margin-bottom: 22px; }
.nr-skel-article .nr-skel--band { width: 100%; height: 220px; border-radius: 16px; margin: 18px 0 26px; }

/* ---- 6. Motion -------------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .nr-card, .nr-filter { transition: none !important; }
}
@media print {
  .nr-filters, .nr-more, .nr-related, .nr-explore, .nr-back-row { display: none !important; }
  .nr-card, .nr-source, .nr-reported { box-shadow: none !important; }
}
