
/* ── Shared section chrome ───────────────────────────────────── */
.ng-section { padding-block: 56px 64px; }


.ng-card-body {
  flex: unset;
}

.ng-card-body--btm {
  margin-top: auto;
}
.ng-head { margin-bottom: 32px; }
.ng-head h2 {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--nui-text); margin: 0 0 8px; line-height: 1.1;
}
.ng-head p { font-size: .95rem; color: var(--nui-text-muted); margin: 0; max-width: 680px; }
.ng-head--dark h2 { color: #fff; }
.ng-label {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 4px;
  text-transform: uppercase; color: var(--nui-text-subtle); margin-bottom: 8px;
}
.ng-label--red { color: #d6173a; }

/* Shared utility atoms */
.ng-spot-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; background: var(--nui-color-brand); color: #fff;
  padding: 3px 8px; border-radius: 3px; text-decoration: none;
}
.ng-spot-badge--red { background: #d6173a; }
.ng-spot-meta { font-size: 12px; color: rgba(255,255,255,.7); }
.ng-dot { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .4; vertical-align: middle; }

.select2-container--default .select2-selection--single .select2-selection__clear {
  margin-right:10px;
  padding-right:10px;
}
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
  float:right;
}


/* ── Category color map ───────────────────────────────────────── */
.ng-wire__cat {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 2px 7px; border-radius: 2px;
  border: 1px solid transparent; white-space: nowrap;
}
.ng-cat--politics   { background: rgba(214,23,58,.1);  color: #c0122c; border-color: rgba(214,23,58,.25); }
.ng-cat--business   { background: rgba(0,112,200,.1);  color: #0060aa; border-color: rgba(0,112,200,.25); }
.ng-cat--tech       { background: rgba(80,30,200,.1);  color: #5020c0; border-color: rgba(80,30,200,.25); }
.ng-cat--sports     { background: rgba(20,160,60,.1);  color: #0e8030; border-color: rgba(20,160,60,.25); }
.ng-cat--culture    { background: rgba(200,100,0,.1);  color: #a05000; border-color: rgba(200,100,0,.25); }
.ng-cat--health     { background: rgba(0,160,140,.1);  color: #007060; border-color: rgba(0,160,140,.25); }
.ng-cat--world      { background: rgba(50,50,160,.1);  color: #282880; border-color: rgba(50,50,160,.25); }
.ng-cat--science    { background: rgba(0,150,200,.1);  color: #006888; border-color: rgba(0,150,200,.25); }


/* ================================================================
   01  WIRE FEED (Reuters-style)
   ================================================================ */
.ng-wire {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--nui-border);
  border-radius: var(--nui-radius-lg);
  overflow: hidden;
  background: var(--nui-surface);
}
.ng-wire__row {
  display: grid;
  grid-template-columns: 56px 80px 1fr 64px;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nui-border);
  transition: background .15s;
}
.ng-wire__row:last-child { border-bottom: none; }
.ng-wire__row:hover { background: var(--nui-bg-elev); }
.ng-wire__time {
  font-size: 11px; font-weight: 600; color: var(--nui-text-subtle);
  white-space: nowrap; letter-spacing: .5px;
}
.ng-wire__headline {
  font-size: .9rem; font-weight: 600; color: var(--nui-text);
  text-decoration: none; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ng-wire__headline:hover { color: var(--nui-color-brand); }
.ng-wire__thumb {
  width: 60px; height: 44px; object-fit: cover; border-radius: 4px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .ng-wire__row { grid-template-columns: 50px 1fr; }
  .ng-wire__cat, .ng-wire__thumb { display: none; }
}


/* ================================================================
   02  SPOTLIGHT TRIO (BBC / Guardian)
   ================================================================ */
.ng-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--nui-radius-lg);
  overflow: hidden;
  height: 520px;
}
.ng-spotlight__hero {
  position: relative; display: block; overflow: hidden; text-decoration: none;
}
.ng-spotlight__hero img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.ng-spotlight__hero:hover img { transform: scale(1.03); }
.ng-spotlight__hero-body {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,0) 100%);
  padding: 32px 24px 24px; color: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.ng-spotlight__hero-body h2 {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 800;
  line-height: 1.2; color: #fff; margin: 0;
}
.ng-spotlight__hero-body p {
  font-size: .85rem; color: rgba(255,255,255,.75);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0;
}
.ng-spotlight__stack {
  display: flex; flex-direction: column; gap: 4px;
}
.ng-spotlight__half {
  position: relative; flex: 1; overflow: hidden; display: block; text-decoration: none;
}
.ng-spotlight__half img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.ng-spotlight__half:hover img { transform: scale(1.04); }
.ng-spotlight__half-body {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0));
  padding: 20px 16px 14px; color: #fff;
  display: flex; flex-direction: column; gap: 5px;
}
.ng-spotlight__half-body h3 {
  font-size: .95rem; font-weight: 700; color: #fff; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Pin card body to the bottom of the image (overrides flex:1 from base card) */
.ng-spotlight__hero .nui-card__body,
.ng-spotlight__half .nui-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  flex: none;
  background: transparent;
}
@media (max-width: 768px) {
  .ng-spotlight { grid-template-columns: 1fr; height: auto; }
  .ng-spotlight__hero, .ng-spotlight__half { height: 260px; }
  .ng-spotlight__stack { flex-direction: row; }
}


/* ================================================================
   03  TABBED CATEGORY COLUMNS (Al Jazeera)
   ================================================================ */
.ng-tabs-bar {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 2px solid var(--nui-border);
  margin-bottom: 28px;
}
.ng-tab {
  padding: 10px 20px; font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; background: none; border: none; border-bottom: 3px solid transparent;
  cursor: pointer; color: var(--nui-text-muted); transition: color .2s, border-color .2s;
  margin-bottom: -2px;
}
.ng-tab:hover { color: var(--nui-text); }
.ng-tab.is-active { color: var(--nui-color-brand); border-bottom-color: var(--nui-color-brand); }
.ng-tab-panel { display: none; }
.ng-tab-panel.is-active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.ng-tab-card { display: flex; flex-direction: column; background: var(--nui-surface); border: 1px solid var(--nui-border); border-radius: var(--nui-radius-lg); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.ng-tab-card:hover { transform: translateY(-3px); box-shadow: var(--nui-shadow-md); }
.ng-tab-card__img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.ng-tab-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ng-tab-card:hover .ng-tab-card__img img { transform: scale(1.04); }
.ng-tab-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.ng-tab-card__body h3 { font-size: 1rem; font-weight: 700; color: var(--nui-text); margin: 0; line-height: 1.3; }
.ng-tab-card__body h3 a { color: inherit; text-decoration: none; }
.ng-tab-card__body h3 a:hover { color: var(--nui-color-brand); }
.ng-tab-card__body p { font-size: .85rem; color: var(--nui-text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-tab-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--nui-text-subtle); margin-top: 4px; }
.ng-tab-meta img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }


/* ================================================================
   04  FULL-BLEED BANNER STRIP (Bloomberg / FT)
   ================================================================ */
.ng-banner { background: var(--nui-surface); border: 1px solid var(--nui-border); border-radius: var(--nui-radius-xl); overflow: hidden; }
.ng-banner__hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
.ng-banner__hero-text {
  padding: 40px 36px;
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
}
.ng-banner__headline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700;
  line-height: 1.2; color: var(--nui-text); margin: 0;
}
.ng-banner__deck { font-size: .95rem; color: var(--nui-text-muted); line-height: 1.65; margin: 0; }
.ng-banner__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--nui-text-subtle);
}
.ng-banner__meta img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ng-banner__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 700; color: var(--nui-color-brand);
  text-decoration: none; border-bottom: 2px solid var(--nui-color-brand);
  padding-bottom: 2px; width: fit-content;
  transition: gap .2s;
}
.ng-banner__cta:hover { gap: 10px; }
.ng-banner__hero-img { display: block; overflow: hidden; }
.ng-banner__hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ng-banner__hero:hover .ng-banner__hero-img img { transform: scale(1.03); }
.ng-banner__strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--nui-border);
}
.ng-banner__sub {
  display: flex; flex-direction: column; text-decoration: none;
  border-inline-end: 1px solid var(--nui-border); transition: background .15s;
}
.ng-banner__sub:last-child { border-inline-end: none; }
.ng-banner__sub:hover { background: var(--nui-bg-elev); }
.ng-banner__sub img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ng-banner__sub-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; }
.ng-banner__sub-body h4 { font-size: .88rem; font-weight: 700; color: var(--nui-text); margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-banner__sub-body span:last-child { font-size: 11px; color: var(--nui-text-subtle); }
:is(.nui-hero-lib, .lib-grid, .lib-card, .lib-list, .lib-carousel, .lib-widget, .lib-nav) a {
  color: var(--nui-text);
}
@media (max-width: 768px) {
  .ng-banner__hero { grid-template-columns: 1fr; }
  .ng-banner__hero-img { height: 220px; }
  .ng-banner__strip { grid-template-columns: 1fr 1fr; }
}


/* ================================================================
   05  CARD RIVER (NYT multi-section)
   ================================================================ */
.ng-river-section { margin-bottom: 44px; }
.ng-river-section:last-child { margin-bottom: 0; }
.ng-river-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--nui-text-subtle);
  margin-bottom: 18px;
}
.ng-river-label span { position: relative; padding-inline-end: 16px; }
.ng-river-label span::after {
  content: ''; position: absolute; inset-inline-end: 0; top: 50%;
  transform: translateY(-50%); width: 6px; height: 6px;
  border-radius: 50%; background: var(--nui-color-brand);
}
.ng-river-row {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 24px; align-items: start;
  border-top: 2px solid var(--nui-border); padding-top: 18px;
}
.ng-river__feature {
  display: grid; grid-template-rows: auto 1fr;
  gap: 0; text-decoration: none; overflow: hidden;
  border-radius: var(--nui-radius-lg);
  background: var(--nui-surface); border: 1px solid var(--nui-border);
}
.ng-river__feature img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ng-river__feature-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ng-river__feature-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--nui-text); margin: 0; line-height: 1.3; }
.ng-river__feature:hover .ng-river__feature-body h3 { color: var(--nui-color-brand); }
.ng-river__feature-body p { font-size: .875rem; color: var(--nui-text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-river__feature-body span { font-size: 12px; color: var(--nui-text-subtle); }
.ng-river__subs { display: flex; flex-direction: column; gap: 16px; }
.ng-river__sub {
  display: grid; grid-template-columns: 72px 1fr;
  gap: 12px; align-items: start;
  text-decoration: none; padding-bottom: 16px;
  border-bottom: 1px solid var(--nui-border);
}
.ng-river__sub:last-child { border-bottom: none; padding-bottom: 0; }
.ng-river__sub img { width: 72px; height: 100% !important; object-fit: cover; border-radius: 4px; }
.ng-river__sub h4 { font-size: .875rem; font-weight: 700; color: var(--nui-text); margin: 0 0 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-river__sub:hover h4 { color: var(--nui-color-brand); }
.ng-river__sub span:last-child { font-size: 11px; color: var(--nui-text-subtle); display: block; margin-top: 4px; }
@media (max-width: 768px) { .ng-river-row { grid-template-columns: 1fr; } }


/* ================================================================
   06  PRIORITY STACK (AP News)
   ================================================================ */
.ng-priority__top {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 4px; margin-bottom: 4px;
  border-radius: var(--nui-radius-lg); overflow: hidden;
  height: 480px;
}
.ng-priority__hero {
  position: relative; overflow: hidden; display: block; text-decoration: none;
}
.ng-priority__hero img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ng-priority__hero:hover img { transform: scale(1.03); }
.ng-priority__hero-body {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 60%);
  padding: 40px 28px 24px; color: #fff;
  display: flex; flex-direction: column; gap: 10px;
}
.ng-priority__hero-body h2 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 800; color: #fff; margin: 0; line-height: 1.15; }
.ng-priority__hero-body p { font-size: .875rem; color: rgba(255,255,255,.75); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-priority__side { display: flex; flex-direction: column; gap: 4px; }
.ng-priority__secondary {
  flex: 1; position: relative; overflow: hidden; display: block; text-decoration: none;
}
.ng-priority__secondary img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ng-priority__secondary:hover img { transform: scale(1.04); }
.ng-priority__sec-body {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,0));
  padding: 24px 16px 14px; color: #fff;
  display: flex; flex-direction: column; gap: 5px;
}
.ng-priority__sec-body h3 { font-size: .92rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-priority__sec-body span { font-size: 11px; color: rgba(255,255,255,.65); }
.ng-priority__row {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 4px;
  border-radius: var(--nui-radius-lg); overflow: hidden;
}
.ng-priority__card {
  position: relative; overflow: hidden; display: block; text-decoration: none;
  background: var(--nui-surface);
}
.ng-priority__card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s ease; }
.ng-priority__card:hover img { transform: scale(1.04); }
.ng-priority__card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.ng-priority__card-body h4 { font-size: .875rem; font-weight: 700; color: var(--nui-text); margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-priority__card:hover .ng-priority__card-body h4 { color: var(--nui-color-brand); }
.ng-priority__card-body span:last-child { font-size: 11px; color: var(--nui-text-subtle); }
@media (max-width: 900px) {
  .ng-priority__top { grid-template-columns: 1fr; height: auto; }
  .ng-priority__side { flex-direction: row; }
  .ng-priority__secondary { height: 200px; }
  .ng-priority__row { grid-template-columns: 1fr 1fr; }
}
/* Pin card body to bottom of image for hero and secondary overlay cards */
.ng-priority__hero .nui-card__body,
.ng-priority__secondary .nui-card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  flex: none;
  background: transparent;
}


/* ================================================================
   07  VIDEO SHOWCASE
   ================================================================ */
.ng-videos__hero {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 28px; margin-bottom: 24px; align-items: center;
}
.ng-videos__play-wrap {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--nui-radius-lg);
  aspect-ratio: 16/9;
}
.ng-videos__play-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ng-videos__play-wrap:hover img { transform: scale(1.04); }
.ng-videos__play {
  position: absolute; top: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--nui-color-brand);
  display: grid; place-items: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  transition: transform .2s, background .2s;
}
.ng-videos__play-wrap:hover .ng-videos__play { transform: translate(-50%,-50%) scale(1.1); background: #fff; }
.ng-videos__play--sm { width: 36px; height: 36px; }
.ng-videos__duration {
  position: absolute; bottom: 10px; inset-inline-end: 10px;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 3px;
}
.ng-videos__hero-body { display: flex; flex-direction: column; gap: 12px; }
.ng-videos__hero-body h2 { font-size: 1.3rem; font-weight: 800; color: var(--nui-text); margin: 0; line-height: 1.3; }
.ng-videos__hero-body p { font-size: .9rem; color: var(--nui-text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ng-videos__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--nui-text-subtle); }
.ng-videos__meta img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.ng-videos__row {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 14px; border-top: 1px solid var(--nui-border); padding-top: 20px;
}
.ng-videos__thumb { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.ng-videos__thumb-img { position: relative; overflow: hidden; border-radius: var(--nui-radius-md); aspect-ratio: 16/9; }
.ng-videos__thumb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ng-videos__thumb:hover .ng-videos__thumb-img img { transform: scale(1.05); }
.ng-videos__thumb h4 { font-size: .8rem; font-weight: 700; color: var(--nui-text); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-videos__thumb:hover h4 { color: var(--nui-color-brand); }
.ng-videos__thumb span { font-size: 11px; color: var(--nui-text-subtle); }
@media (max-width: 768px) {
  .ng-videos__hero { grid-template-columns: 1fr; }
  .ng-videos__row { grid-template-columns: 1fr 1fr; }
}


/* ================================================================
   08  REGIONAL SECTIONS
   ================================================================ */
.ng-regions__grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.ng-region {
  background: var(--nui-surface);
  border: 1px solid var(--nui-border);
  border-radius: var(--nui-radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.ng-region__header {
  display: flex; align-items: center;
  background: var(--region-color, #d6173a);
  color: #fff; padding: 10px 16px;
  font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
}
.ng-region__lead {
  display: block; text-decoration: none; flex-shrink: 0;
}
.ng-region__lead img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s ease; }
.ng-region__lead:hover img { transform: scale(1.04); }
.ng-region__lead h3 {
  font-size: .92rem; font-weight: 700; color: var(--nui-text);
  margin: 0; padding: 12px 14px 45px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ng-region__lead:hover h3 { color: var(--region-color); }
.ng-region__briefs { display: flex; flex-direction: column; padding: 4px 14px 14px; gap: 0; flex: 1; }
.ng-region__brief {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 0; border-top: 1px solid var(--nui-border);
  text-decoration: none; font-size: .82rem; font-weight: 600; color: var(--nui-text-muted);
  line-height: 1.35;
}
.ng-region__brief:hover { color: var(--region-color); }
.ng-region__dot {
  flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--region-color); margin-top: 5px;
}
@media (max-width: 900px) { .ng-regions__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ng-regions__grid { grid-template-columns: 1fr; } }


/* ================================================================
   09  DATA DIGEST (Economist / Bloomberg)
   ================================================================ */
.ng-digest__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.ng-digest__card {
  background: var(--nui-surface);
  border: 1px solid var(--nui-border);
  border-radius: var(--nui-radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.ng-digest__card:hover { transform: translateY(-3px); box-shadow: var(--nui-shadow-md); }
.ng-digest__stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--nui-border);
  background: var(--nui-bg-elev);
}
.ng-digest__kpi {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 6px; border-inline-end: 1px solid var(--nui-border);
  gap: 2px;
}
.ng-digest__kpi:last-child { border-inline-end: none; }
.ng-digest__kpi-val {
  font-size: 1.1rem; font-weight: 800; color: var(--nui-color-brand);
  line-height: 1;
}
.ng-digest__kpi-lbl { font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--nui-text-subtle); }
.ng-digest__img { display: block; overflow: hidden; flex-shrink: 0; }
.ng-digest__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s ease; display: block; }
.ng-digest__card:hover .ng-digest__img img { transform: scale(1.04); }
.ng-digest__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ng-digest__body h3 { font-size: .875rem; font-weight: 700; color: var(--nui-text); margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ng-digest__body h3 a { color: inherit; text-decoration: none; }
.ng-digest__body h3 a:hover { color: var(--nui-color-brand); }
.ng-digest__body p { font-size: .8rem; color: var(--nui-text-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


/* ================================================================
   10  BREAKING WALL (dark editorial)
   ================================================================ */
.ng-bwall {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 3px;
}
.ng-bwall__item {
  position: relative; display: flex;
  background: #111115; border: 1px solid #222228;
  border-radius: 0; overflow: hidden;
  text-decoration: none; transition: background .15s;
  padding: 16px 16px 16px 20px;
  flex-direction: column; gap: 8px;
}
.ng-bwall__item:hover { background: #18181e; }
.ng-bwall__strip {
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
}
.ng-bwall--critical .ng-bwall__strip { background: #d6173a; }
.ng-bwall--high     .ng-bwall__strip { background: #e87700; }
.ng-bwall--medium   .ng-bwall__strip { background: #f0c000; }
.ng-bwall--low      .ng-bwall__strip { background: #3a8a3a; }
.ng-bwall__top { display: flex; align-items: center; gap: 8px; }
.ng-bwall__tag {
  font-size: 9px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; padding: 2px 7px; border-radius: 2px;
}
.ng-bwall--critical .ng-bwall__tag { background: #d6173a; }
.ng-bwall--high     .ng-bwall__tag { background: #e87700; }
.ng-bwall--medium   .ng-bwall__tag { background: #b89000; color: #111; }
.ng-bwall--low      .ng-bwall__tag { background: #2a6a2a; }
.ng-bwall__pulse {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: #d6173a; animation: ng-pulse 1.4s infinite;
  flex-shrink: 0;
}
@keyframes ng-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .35; transform: scale(.65); }
}
.ng-bwall__time { font-size: 10px; color: rgba(255,255,255,.3); margin-inline-start: auto; }
.ng-bwall__title {
  font-size: .875rem; font-weight: 700; color: rgba(255,255,255,.88);
  margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ng-bwall__item:hover .ng-bwall__title { color: #fff; }
.ng-bwall__cat { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.28); font-weight: 600; }
@media (max-width: 1024px) { .ng-bwall { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .ng-bwall { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .ng-bwall { grid-template-columns: 1fr; } }


/* ================================================================
   11  LONGREAD SHELF (New Yorker / Guardian Long)
   ================================================================ */
.ng-longreads {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--nui-border);
  border-radius: var(--nui-radius-xl);
  overflow: hidden;
  background: var(--nui-surface);
}
.ng-longread {
  display: grid; grid-template-columns: 280px 1fr;
  align-items: stretch; text-decoration: none;
  border-bottom: 1px solid var(--nui-border);
  transition: background .15s;
  min-height: 160px;
}
.ng-longread:last-child { border-bottom: none; }
.ng-longread:hover { background: var(--nui-bg-elev); }
.ng-longread__img {
  position: relative; overflow: hidden; flex-shrink: 0;
}
.ng-longread__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ng-longread:hover .ng-longread__img img { transform: scale(1.04); }
.ng-longread__readtime {
  position: absolute; top: 10px; inset-inline-end: 10px;
  background: rgba(0,0,0,.72); color: #fff;
  font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 12px;
  letter-spacing: .5px;
}
.ng-longread__body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 24px; justify-content: center;
}
.ng-longread__title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 700;
  color: var(--nui-text); margin: 0; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ng-longread:hover .ng-longread__title { color: var(--nui-color-brand); }
.ng-longread__deck {
  font-size: .85rem; color: var(--nui-text-muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.6;
}
.ng-longread__author {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
}
.ng-longread__author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ng-longread__author strong { display: block; font-size: .8rem; font-weight: 700; color: var(--nui-text); line-height: 1.2; }
.ng-longread__author span  { display: block; font-size: .75rem; color: var(--nui-text-subtle); }
.ng-longread__progress {
  height: 3px; background: var(--nui-border);
  border-radius: 99px; overflow: hidden; margin-top: 4px;
}
.ng-longread__fill {
  height: 100%; background: var(--nui-color-brand);
  border-radius: 99px; transition: width .4s ease;
}
.ng-longread:hover .ng-longread__fill { filter: brightness(1.1); }
@media (max-width: 640px) {
  .ng-longread { grid-template-columns: 1fr; }
  .ng-longread__img { height: 180px; }
}


/* ================================================================
   12. AGP HERO STRIP — 4-up overlay row + 3×4 text-thumb list
   ================================================================ */
.ng-agp1__top {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--nui-sp-4); margin-bottom: 24px;
}
.ng-agp1__top .nui-card--overlay { min-height: 420px; }
.ng-agp1__top .nui-card--overlay .nui-card__title { font-size: var(--nui-fs-md); }
.ng-agp1__list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--nui-sp-5) var(--nui-sp-6);
}
.ng-agp1__list--grouped > .ng-agp1__col {
  display: flex; flex-direction: column; gap: var(--nui-sp-5);
}
.ng-agp1__item {
  display: grid; grid-template-columns: 1fr 110px;
  gap: var(--nui-sp-3); align-items: start;
}
.ng-agp1__item img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--nui-radius-sm);
  transition: transform var(--nui-dur-3) var(--nui-ease-standard);
}
.ng-agp1__item:hover img { transform: scale(1.04); }
.ng-agp1__cat {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: #d6173a; margin-bottom: 4px;
}
.ng-agp1__title {
  font-size: .95rem; font-weight: 600; line-height: 1.35;
  color: var(--nui-text);
}
.ng-agp1__item:hover .ng-agp1__title { color: var(--nui-color-brand); }
.ng-agp1__time {
  display: block; font-size: 12px; color: var(--nui-text-muted);
  margin-top: 6px;
}
@media (max-width: 900px) {
  .ng-agp1__top { grid-template-columns: repeat(2, 1fr); }
  .ng-agp1__list { grid-template-columns: repeat(2, 1fr); }
  .ng-agp1__top .nui-card--overlay { min-height: 260px; }
}
@media (max-width: 600px) {
  .ng-agp1__top, .ng-agp1__list { grid-template-columns: 1fr; }
  .ng-agp1__top .nui-card--overlay { min-height: 220px; }
  .ng-agp1__item { grid-template-columns: 1fr 90px; gap: var(--nui-sp-2); }
  .ng-agp1__item img { height: 70px; }
}

/* Magazine side column: restore vertical stacking with gap on mobile.
   (core grid.css only sets display:grid inside min-width:900px) */
.ng-grids .nui-magazine__side {
  display: flex;
  flex-direction: column;
  gap: var(--nui-sp-4);
}

/* ================================================================
   13. SECTION BLOCK — rotated red label + tall hero + 2×2 grid
   ================================================================ */
.ng-sb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "label label" "hero grid";
  gap: var(--nui-sp-5);
}
.ng-sb__label {
  grid-area: label;
  writing-mode: horizontal-tb; transform: none;
  background: #d6173a; color: #fff;
  font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  padding: var(--nui-sp-3) var(--nui-sp-5);
  display: flex; align-items: center;
  font-size: .9rem; border-radius: var(--nui-radius-sm);
}
.ng-sb__hero { grid-area: hero; min-height: 440px; }
.ng-sb__grid {
  grid-area: grid;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--nui-sp-4);
}
.ng-sb__grid .nui-card { height: 100%; }
.ng-sb__grid .nui-card__media .nui-ratio { aspect-ratio: 16/10; }
.ng-sb__grid .nui-card__title { font-size: var(--nui-fs-md); }
@media (max-width: 900px) {
  .ng-sb { grid-template-columns: 1fr; grid-template-areas: "label" "hero" "grid"; }
  .ng-sb__hero { min-height: 320px; }
}
@media (max-width: 600px) { .ng-sb__grid { grid-template-columns: 1fr; } }

/* ================================================================
   14. EDITORIAL SECTION — coloured header bar + tall hero + 2×3 list
   ================================================================ */
.ng-edi__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--nui-sp-3) var(--nui-sp-4);
  background: #d6173a; color: #fff;
  margin-bottom: var(--nui-sp-5);
  border-radius: var(--nui-radius-sm);
}
.ng-edi__head h2 {
  color: #fff; font-size: 1.15rem; margin: 0;
  font-weight: 800; letter-spacing: .02em;
}
.ng-edi__viewall {
  color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; opacity: .92;
}
.ng-edi__viewall:hover { opacity: 1; color: #fff; }
.ng-edi { display: grid; grid-template-columns: 1fr 2fr; gap: var(--nui-sp-6); }
.ng-edi__hero .nui-card__title {
  font-size: 1.05rem; font-weight: 700; line-height: 1.35;
}
.ng-edi__list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--nui-sp-5) var(--nui-sp-6);
}
.ng-edi__byline {
  font-size: 11px; color: var(--nui-text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.ng-edi__byline strong { color: var(--nui-text); font-weight: 700; }
@media (max-width: 900px) {
  .ng-edi { grid-template-columns: 1fr; }
  .ng-edi__list { grid-template-columns: 1fr; }
}

/* ================================================================
   15. LATEST NEWS PAIRED — red-accent header + 2 columns
   ================================================================ */
.ng-latest__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--nui-border);
  margin-bottom: var(--nui-sp-5); padding-bottom: var(--nui-sp-3);
  position: relative;
}
.ng-latest__head::after {
  content: ""; position: absolute;
  inset-inline-start: 0; bottom: -1px;
  width: 60px; height: 3px; background: #d6173a;
}
.ng-latest__head h2 { font-size: 1.4rem; margin: 0; font-weight: 800; }
.ng-latest__index {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem;
  border: 1px solid var(--nui-border);
  border-radius: var(--nui-radius-sm);
  font-size: .85rem; font-weight: 600; color: var(--nui-text);
}
.ng-latest__index:hover { background: var(--nui-bg-elev); color: var(--nui-text); }
.ng-latest__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--nui-sp-6);
}
.ng-latest__col {
  display: flex; flex-direction: column; gap: var(--nui-sp-4);
}
.ng-latest__hero { min-height: 280px; }
.ng-latest__mini {
  display: flex; flex-direction: column; gap: var(--nui-sp-3);
}
@media (max-width: 900px) { .ng-latest__cols { grid-template-columns: 1fr; } }

/* ================================================================
   16. TOPIC FEATURE — red dot + serif title + giant feature + 2×2
   ================================================================ */
.ng-topic__head {
  display: flex; align-items: center; gap: var(--nui-sp-3);
  margin-bottom: var(--nui-sp-5);
}
.ng-topic__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #d6173a; flex-shrink: 0;
}
.ng-topic__head h2 {
  font-family: var(--nui-font-sans);
  font-size: 1.6rem; margin: 0; font-weight: 600;
}
.ng-topic { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nui-sp-6); align-items: start; }
.ng-topic__feature .nui-card__media .nui-ratio { aspect-ratio: 16/10; }
.ng-topic__feature .nui-card__title {
  font-family: var(--nui-font-sans);
  font-size: 1.7rem; font-weight: 600; line-height: 1.25;
  margin-top: var(--nui-sp-3);
}
.ng-topic__feature .nui-card__excerpt {
  font-size: .95rem; color: var(--nui-text-muted);
}
.ng-topic__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nui-sp-5); }
.ng-topic__grid .nui-card__media .nui-ratio { aspect-ratio: 16/10; }
.ng-topic__grid .nui-card__title {
  font-family: var(--nui-font-sans);
  font-size: 1.05rem; font-weight: 600; line-height: 1.3;
  margin-top: var(--nui-sp-2);
}
.nui-card__title a {
  font-family: var(--nui-font-sans);
}
@media (max-width: 900px) { .ng-topic { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ng-topic__grid { grid-template-columns: 1fr; } }

/* ================================================================
   17. MASONRY + FILTER + SORT (grid-mfs)
   ================================================================ */
/* The masonry grid container needs position:relative for Masonry.js.
   Column-count provides a CSS-only fallback before/without JS,
   and is harmlessly overridden once Masonry.js positions items
   with position:absolute. */
.lib-grid--mfs [data-nui="grid"] {
  position: relative;
  column-count: 1;
  column-gap: var(--nui-sp-5);
}
@media (min-width: 600px) {
  .lib-grid--mfs [data-nui="grid"] { column-count: 2; }
}
@media (min-width: 900px) {
  .lib-grid--mfs [data-nui="grid"] { column-count: 3; }
}
@media (min-width: 1200px) {
  .lib-grid--mfs [data-nui="grid"] { column-count: 4; }
}
/* Items must avoid breaking across CSS columns (no-JS fallback) */
.lib-grid--mfs .nui-masonry__item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}
/* Override global grid.css breakpoint widths: mfs items fill their CSS column */
.lib-grid--mfs .nui-masonry__sizer,
.lib-grid--mfs .nui-masonry__item {
  width: calc(100% - 2px);
}
/* Sizer is an empty utility div used by Masonry.js for column-width measurement.
   It has no visible content so it produces no visual gap in CSS column layout. */

/* ================================================================
   RTL overrides
   ================================================================ */
[dir="rtl"] .ng-banner__cta { border-bottom: 2px solid var(--nui-color-brand); }
[dir="rtl"] .ng-river-label span::after { inset-inline-start: 0; inset-inline-end: auto; }
[dir="rtl"] .ng-sb__label { transform: rotate(0deg); }
