/* News Rank — dark independent-media desk */
:root {
  --nr-bg: #070809;
  --nr-surface: #121417;
  --nr-surface-2: #181b1f;
  --nr-fg: #f4f6f8;
  --nr-muted: #8b919a;
  --nr-subtle: #5c636c;
  --nr-accent: #2ee6d6;
  --nr-accent-fg: #04110f;
  --nr-border: #23282e;
  --nr-radius: 8px;
}

.nr-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nr-accent);
  margin: 0 0 0.35rem;
}

.nr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.nr-btn--accent {
  background: var(--nr-accent);
  color: var(--nr-accent-fg);
}
.nr-btn--accent:hover {
  filter: brightness(1.08);
  color: var(--nr-accent-fg);
}
.nr-btn--ghost {
  background: transparent;
  border-color: var(--nr-border);
  color: var(--nr-muted);
}
.nr-btn--ghost:hover {
  color: var(--nr-fg);
  border-color: #3a424c;
}

.nr-auth {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.nr-auth-name {
  color: var(--nr-fg);
  font-size: 0.875rem;
  font-weight: 600;
}
.nr-auth-handle {
  color: var(--nr-subtle);
  font-size: 0.8rem;
}
.nr-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}
.nr-muted {
  color: var(--nr-muted);
  font-size: 0.85rem;
}

.nr-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.nr-vote-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--nr-border);
  background: var(--nr-surface-2);
  color: var(--nr-muted);
  cursor: pointer;
  line-height: 1;
  font-size: 0.7rem;
}
.nr-vote-btn:hover {
  color: var(--nr-fg);
  border-color: #3a424c;
}
.nr-vote-btn.is-active {
  color: var(--nr-accent-fg);
  background: var(--nr-accent);
  border-color: var(--nr-accent);
}
.nr-vote-score {
  min-width: 1.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--nr-fg);
  font-size: 0.9rem;
}
.nr-vote-math {
  font-size: 0.75rem;
  color: var(--nr-subtle);
  margin-left: 0.25rem;
}

.nr-hero {
  position: relative;
  display: block;
  min-height: 22rem;
  border-radius: var(--nr-radius);
  overflow: hidden;
  background: var(--nr-surface);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
}
/* Image fill only inside overlay .nr-hero frame — NOT stack */
.nr-hero > .nr-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nr-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(to top, rgba(7, 8, 9, 0.95) 10%, rgba(7, 8, 9, 0.35) 55%, transparent);
}
.nr-hero-title {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 650;
  color: var(--nr-fg);
}
.nr-hero-dek {
  margin: 0;
  max-width: 36rem;
  color: var(--nr-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.nr-hero--x {
  min-height: 0;
  box-shadow: none;
  background: transparent;
}

.nr-rail {
  margin: 2.5rem 0;
}
.nr-rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.nr-rail-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--nr-fg);
}
.nr-view-all {
  color: var(--nr-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.nr-view-all:hover {
  color: var(--nr-accent);
}
.nr-rail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .nr-rail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nr-rail-grid.nr-cols-1 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1024px) {
  .nr-rail-grid.nr-cols-1 {
    grid-template-columns: 1fr;
  }
  .nr-rail-grid.nr-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .nr-rail-grid.nr-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .nr-rail-grid.nr-cols-4,
  .nr-rail-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .nr-rail-grid.nr-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  .nr-rail-grid.nr-cols-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}
.nr-hero-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nr-hero-wrap .nr-vote {
  margin-top: 0;
}
.nr-card {
  display: flex;
  flex-direction: column;
  background: var(--nr-surface);
  border-radius: var(--nr-radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
  padding-bottom: 0.75rem;
}
.nr-card-link {
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.nr-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--nr-surface-2);
}
.nr-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nr-card-body {
  padding: 0.85rem 0.9rem 0.25rem;
}
.nr-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 650;
  color: var(--nr-fg);
}
.nr-card-dek {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--nr-muted);
}
.nr-card .nr-vote {
  padding: 0 0.9rem;
}

.nr-card--x {
  padding: 0.75rem;
}
.nr-x-embed {
  overflow: hidden;
  border-radius: 6px;
}
.nr-x-embed iframe {
  max-width: 100%;
}
.nr-x-fallback {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 8rem;
  justify-content: center;
}
.nr-x-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nr-accent);
}
.nr-x-fallback-title {
  font-weight: 650;
  color: var(--nr-fg);
  font-size: 1rem;
  line-height: 1.3;
}
.nr-x-fallback-url {
  font-size: 0.8rem;
  color: var(--nr-subtle);
  word-break: break-all;
}

.nr-top {
  background: var(--nr-surface);
  border-radius: var(--nr-radius);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
  padding: 1.1rem 1.15rem 0.5rem;
}
.nr-top-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.nr-top-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--nr-fg);
}
.nr-top-tabs {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--nr-bg);
  padding: 0.2rem;
  border-radius: 6px;
}
.nr-top-tab {
  border: 0;
  background: transparent;
  color: var(--nr-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}
.nr-top-tab.is-active {
  background: var(--nr-surface-2);
  color: var(--nr-accent);
}
.nr-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nr-top-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--nr-border);
}
.nr-top-rank {
  width: 1.5rem;
  text-align: center;
  font-weight: 700;
  color: var(--nr-subtle);
  font-variant-numeric: tabular-nums;
}
.nr-top-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--nr-surface-2);
}
.nr-top-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nr-top-body {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.nr-top-item-title {
  color: var(--nr-fg);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.nr-top-item-title:hover {
  color: var(--nr-accent);
}
.nr-top-score {
  color: var(--nr-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  white-space: nowrap;
}
.nr-top-empty {
  color: var(--nr-muted);
  padding: 1rem 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--nr-border);
}

.nr-wrap {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
}
.nr-hero-row {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 1024px) {
  .nr-hero-row {
    grid-template-columns: 3fr 2fr;
  }
  .nr-hero-row .nr-hero {
    min-height: 28rem;
  }
}
.nr-sub-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.nr-sub-stack .nr-hero {
  min-height: 13rem;
  flex: 1;
}
.nr-sub-stack .nr-hero-title {
  font-size: 1.25rem;
}


/* Headlines layout */
.nr-rail-grid--headlines {
  gap: 0.35rem 1.25rem;
}
.nr-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--nr-border);
}
.nr-headline-link {
  flex: 1;
  min-width: 12rem;
  text-decoration: none;
  color: inherit;
  line-height: 1.35;
}
.nr-headline-title {
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--nr-fg);
}
.nr-headline-link:hover .nr-headline-title {
  color: var(--nr-accent);
}
.nr-headline .nr-vote {
  margin-top: 0;
}
.nr-rail-title-spacer {
  flex: 1;
}
.nr-rail-head:has(.nr-rail-title-spacer) .nr-view-all {
  margin-left: auto;
}

/* Layer 2 panels */
.nr-panel {
  background: var(--nr-surface);
  border-radius: var(--nr-radius);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
  padding: 1.25rem 1.35rem;
  margin: 1rem 0;
  color: var(--nr-fg);
}
.nr-panel--wide { max-width: 100%; width: 100%; }
.nr-panel-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 650;
}
.nr-form { display: flex; flex-direction: column; gap: 0.75rem; }
.nr-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--nr-muted);
}
.nr-input {
  background: var(--nr-bg);
  border: 1px solid var(--nr-border);
  border-radius: 6px;
  color: var(--nr-fg);
  padding: 0.55rem 0.7rem;
  font: inherit;
}
.nr-flash {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}
.nr-flash--ok { background: rgb(46 230 214 / 0.12); color: var(--nr-accent); }
.nr-flash--err { background: rgb(255 80 80 / 0.12); color: #ff8b8b; }
.nr-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.nr-tab {
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--nr-muted);
  background: var(--nr-bg);
  font-size: 0.85rem;
  font-weight: 600;
}
.nr-tab.is-active { color: var(--nr-accent); }
.nr-queue-item {
  display: grid;
  gap: 1rem;
  grid-template-columns: 120px 1fr;
  padding: 1rem 0;
  border-top: 1px solid var(--nr-border);
}
@media (max-width: 640px) {
  .nr-queue-item { grid-template-columns: 1fr; }
}
.nr-queue-thumb img {
  width: 100%;
  border-radius: 6px;
  display: block;
}
.nr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.nr-person {
  padding: 1rem 0;
  border-top: 1px solid var(--nr-border);
}
.nr-person-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.nr-person-score {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--nr-accent);
  font-variant-numeric: tabular-nums;
}
.nr-person-note {
  color: var(--nr-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.nr-sample-list {
  margin: 0.35rem 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}
.nr-sample-list a { color: var(--nr-muted); }

.nr-chip-link {
  color: var(--nr-accent);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.35rem;
}
.nr-chip-link:hover { text-decoration: underline; }
.nr-submitter {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--nr-subtle);
  margin: 0.15rem 0 0.25rem;
}
.nr-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--nr-muted);
}

.nr-source-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nr-muted);
  border: 1px solid var(--nr-border);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  margin: 0.2rem 0.35rem 0.2rem 0;
}
.nr-row-2 {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
  .nr-row-2 { grid-template-columns: 1fr; }
}
.nr-queue-embed {
  max-width: 320px;
  overflow: hidden;
}


/* Social embeds: stack preview full width above fields */
.nr-queue-item--embed {
  grid-template-columns: 1fr;
}
.nr-queue-item--embed .nr-queue-embed {
  max-width: 100%;
  width: 100%;
}
.nr-queue-item--embed .nr-queue-embed iframe,
.nr-queue-item--embed .nr-queue-embed blockquote {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
}


/* Queue: stack platform previews full width */
.nr-queue-item--embed {
  grid-template-columns: 1fr !important;
}
.nr-queue-item--embed .nr-queue-embed {
  max-width: 100%;
  width: 100%;
  justify-self: stretch;
}
.nr-queue-item--embed .nr-queue-embed iframe,
.nr-queue-item--embed .nr-queue-embed blockquote {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.nr-card--platform .nr-platform-embed {
  width: 100%;
  overflow: hidden;
}
.nr-card--platform .nr-platform-embed iframe,
.nr-card--platform .nr-platform-embed blockquote {
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Hero adjustable height */
.nr-hero-wrap .nr-hero {
  min-height: var(--nr-hero-height, 420px);
}
.nr-hero > .nr-hero-img {
  min-height: var(--nr-hero-height, 420px);
  object-fit: cover;
}

/* Queue: desktop split for platform embeds */
.nr-queue-item--split {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.2fr);
  align-items: start;
}
.nr-queue-item--split .nr-queue-embed {
  max-width: 100%;
  width: 100%;
}
.nr-queue-item--article {
  grid-template-columns: 200px 1fr;
}
.nr-queue-item--article .nr-queue-thumb img {
  width: 100%;
  border-radius: 8px;
  display: block;
}
@media (max-width: 900px) {
  .nr-queue-item--split,
  .nr-queue-item--article {
    grid-template-columns: 1fr;
  }
}

/* Dashboard approved cards */
.nr-dash-cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-top: 0.5rem;
}
.nr-dash-card {
  display: flex;
  flex-direction: column;
  background: var(--nr-surface);
  border-radius: var(--nr-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
}
.nr-dash-card-media {
  aspect-ratio: 16 / 9;
  background: var(--nr-surface-2);
}
.nr-dash-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nr-dash-card-body {
  padding: 0.55rem 0.65rem;
}
.nr-dash-card-title {
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--nr-fg);
}
.nr-top-cat {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  color: var(--nr-muted);
}

.nr-yt-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.nr-yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.nr-card--platform .nr-platform-embed {
  min-height: 120px;
}


.nr-actions--batch-top {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--nr-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.nr-actions--batch-bottom {
  margin-top: 1.25rem;
  padding-top: 1rem;
}
.nr-card--tiktok-thumb {
  padding: 0.75rem;
}
.nr-card-media--tiktok {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: none;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
}
.nr-card-media--tiktok img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.nr-rail-grid.nr-cols-1 .nr-card-media--tiktok {
  aspect-ratio: 4 / 5;
}
@media (max-width: 640px) {
  .nr-card-media--tiktok {
    aspect-ratio: 4 / 5;
  }
}
.nr-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgb(0 0 0 / 0.65);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.nr-queue-thumb--tiktok {
  position: relative;
  min-height: 200px;
}
.nr-queue-thumb--tiktok img {
  width: 100%;
  border-radius: 8px;
  display: block;
}


/* Hero stack: media on top, caption under */
.nr-hero-wrap--stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nr-hero-wrap--stack .nr-hero-media {
  display: block;
  width: 100%;
  border-radius: var(--nr-radius, 12px);
  overflow: hidden;
  background: var(--nr-surface-2, #111);
}
.nr-hero-wrap--stack .nr-hero-media .nr-hero-img,
.nr-hero-wrap--stack .nr-hero-media img {
  width: 100%;
  height: auto;
  max-height: var(--nr-hero-height, 420px);
  object-fit: cover;
  min-height: 0;
  display: block;
}
.nr-hero-wrap--stack .nr-hero-media--video {
  width: 100%;
}
.nr-hero-wrap--stack .nr-hero-media--video .nr-yt-wrap {
  aspect-ratio: 16 / 9;
  max-height: none;
}
.nr-hero-caption {
  padding: 0 0.15rem 0.35rem;
}
.nr-hero-caption-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.nr-hero-caption .nr-hero-title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin: 0.25rem 0;
  line-height: 1.2;
}
.nr-hero-caption .nr-hero-dek {
  opacity: 0.85;
  margin: 0;
}
.nr-hero--video {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--nr-radius, 12px);
}
.nr-hero--video .nr-hero-overlay {
  pointer-events: none;
}



/* ===== Hero stack: in-flow, full image, caption under (no crop) ===== */
.nr-hero-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 1;
}
.nr-hero-wrap--stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  position: relative;
  z-index: 1;
  /* grow with content — never absolute overlay on following rows */
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
.nr-hero-wrap--stack .nr-hero-media {
  display: block;
  width: 100%;
  max-width: 100%;
  position: relative;
  border-radius: var(--nr-radius, 12px);
  overflow: hidden;
  background: var(--nr-surface-2, #111);
  line-height: 0;
}
.nr-hero-wrap--stack .nr-hero-media .nr-hero-img,
.nr-hero-wrap--stack .nr-hero-media img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center top;
  display: block;
}
.nr-hero-wrap--stack .nr-hero-media--video {
  width: 100%;
  line-height: normal;
}
.nr-hero-wrap--stack .nr-hero-media--video .nr-yt-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
}
.nr-hero-wrap--stack .nr-hero-caption {
  padding: 0 0.1rem 0.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}
.nr-hero-wrap--stack .nr-hero-caption-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.nr-hero-wrap--stack .nr-hero-title {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin: 0.25rem 0;
  line-height: 1.2;
}
.nr-hero-wrap--stack .nr-hero-dek {
  opacity: 0.85;
  margin: 0.35rem 0 0;
  line-height: 1.45;
}
.nr-hero-wrap--stack .nr-vote {
  margin-top: 0.35rem;
}

/* Overlay keeps adjustable frame height */
.nr-hero-wrap--overlay .nr-hero,
.nr-hero-wrap:not(.nr-hero-wrap--stack) .nr-hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: var(--nr-hero-height, 420px);
  overflow: hidden;
  border-radius: var(--nr-radius, 12px);
}
.nr-hero-wrap--overlay .nr-hero-img,
.nr-hero-wrap:not(.nr-hero-wrap--stack) .nr-hero-img {
  width: 100%;
  height: 100%;
  min-height: var(--nr-hero-height, 420px);
  object-fit: cover;
  display: block;
}


/* Rail gap from Settings / shortcode */
.nr-rail-grid {
  gap: var(--nr-rail-gap, 1rem);
}

/* Stack hero: force visible full-width images (overlay already works) */
.nr-hero-wrap--stack {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 1;
}
.nr-hero-wrap--stack > .nr-hero-media {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 120px;
  position: relative !important;
  overflow: visible !important;
  line-height: normal !important;
  border-radius: var(--nr-radius, 12px);
  background: var(--nr-surface-2, #1a1a1a);
}
.nr-hero-wrap--stack > .nr-hero-media img,
.nr-hero-wrap--stack > .nr-hero-media .nr-hero-img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: unset !important;
  vertical-align: top;
  border: 0;
  border-radius: var(--nr-radius, 12px);
}
.nr-hero-wrap--stack > .nr-hero-caption {
  display: block !important;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0 0.15rem 0.25rem;
}


/* ========== HERO FINAL (2.2.9) ========== */
.nr-hero-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* STACK: in-flow image + caption under — never absolute */
.nr-hero-wrap--stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  position: relative !important;
}
.nr-hero-wrap--stack .nr-hero-media {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  position: relative !important;
  overflow: hidden;
  border-radius: var(--nr-radius, 12px);
  background: var(--nr-surface-2, #111);
  line-height: 0;
}
.nr-hero-wrap--stack .nr-hero-media img,
.nr-hero-wrap--stack .nr-hero-media .nr-hero-img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: initial !important;
  border-radius: var(--nr-radius, 12px);
}
.nr-hero-wrap--stack .nr-hero-caption {
  position: static !important;
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0 0.15rem 0.35rem;
  background: none !important;
  inset: auto !important;
}
.nr-hero-wrap--stack .nr-hero-caption .nr-hero-title {
  position: static !important;
  color: var(--nr-fg, #fff);
}
.nr-hero-wrap--stack .nr-hero-caption .nr-hero-dek {
  position: static !important;
  color: var(--nr-muted, #aaa);
}

/* OVERLAY: fluid width, height from --nr-hero-height */
.nr-hero-wrap--overlay,
.nr-hero-wrap:not(.nr-hero-wrap--stack) {
  width: 100%;
}
.nr-hero-wrap--overlay .nr-hero,
.nr-hero-wrap:not(.nr-hero-wrap--stack) .nr-hero {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-height: var(--nr-hero-height, 420px);
  height: var(--nr-hero-height, 420px);
  overflow: hidden;
  border-radius: var(--nr-radius, 12px);
  box-sizing: border-box;
}
.nr-hero-wrap--overlay .nr-hero > .nr-hero-img,
.nr-hero-wrap:not(.nr-hero-wrap--stack) .nr-hero > .nr-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}


/* Desk panels full width */
.nr-panel,
.nr-panel--wide {
  max-width: 100% !important;
  width: 100%;
  box-sizing: border-box;
}

/* Account approved grid 3 / 2 / 1 */
.nr-dash-cards {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 641px) {
  .nr-dash-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .nr-dash-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.nr-dash-card-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--nr-surface-2, #1a1a1a);
  color: var(--nr-muted, #888);
  font-size: 0.85rem;
  font-weight: 650;
}
.nr-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}
.nr-pager-link {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--nr-fg, #fff);
  background: var(--nr-surface-2, #222);
}
.nr-pager-link.is-active {
  background: var(--nr-accent, #22d3ee);
  color: #000;
}
.nr-vote-count {
  opacity: 0.75;
  font-weight: 500;
}


/* Login chip — compact so it stays in the header row */
.nr-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  width: auto;
  max-width: 100%;
  justify-content: flex-end;
  margin-left: auto;
}
.nr-auth--out {
  justify-content: flex-end;
  width: auto;
}
.nr-auth-links--desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.nr-auth-burger {
  display: none;
  margin-left: 0;
  position: relative;
}
.nr-burger {
  list-style: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  box-sizing: border-box;
}
.nr-burger::-webkit-details-marker { display: none; }
.nr-burger::marker { content: ""; }
.nr-burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.nr-auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 180px;
  background: var(--nr-surface, #111);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 40;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}
@media (max-width: 768px) {
  .nr-auth--has-menu .nr-auth-name--desktop,
  .nr-auth--has-menu .nr-auth-links--desktop {
    display: none;
  }
  .nr-auth--has-menu .nr-auth-burger {
    display: block;
  }
  .nr-auth--simple .nr-auth-name--desktop,
  .nr-auth--simple .nr-auth-name--mobile-hide {
    display: none;
  }
  .nr-auth--simple {
    justify-content: flex-start;
  }
  .nr-auth--simple .nr-chip-logout {
    margin-left: auto;
  }
  .nr-auth--out {
    justify-content: flex-end;
  }
}
.nr-sort-link { margin-right: 0.5rem; text-decoration: none; }
.nr-sort-link.is-active { font-weight: 700; text-decoration: underline; }

@media (max-width: 768px) {
  .nr-auth--simple .nr-auth-name { display: none; }
  .nr-auth--has-menu .nr-auth-name { display: none; }
}


/* 3.2 hero excerpt full width + mobile overlay */
.nr-hero-dek,
.nr-hero-overlay .nr-hero-dek,
.nr-hero-caption .nr-hero-dek {
  max-width: 100% !important;
  width: 100% !important;
}
@media (max-width: 768px) {
  .nr-hero {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .nr-hero-wrap--stack {
    gap: 0.4rem;
  }
  .nr-hero-wrap--stack .nr-hero-caption .nr-hero-dek {
    margin-top: 0.2rem;
  }
}
