.hidden {
  display: none !important;
}

:root {
  color-scheme: dark;
  /* Fall back when site theme script has not run (e.g. file://) */
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-dark: #1e40af;
  --text-light: #ffffff;
  --text-dim: #c0c0d0;
  --bg-darker: #000000;
  --bg-card: rgba(5, 5, 10, 0.85);
  --border-color: rgba(37, 99, 235, 0.35);
  --bg0: var(--bg-darker);
  --bg1: #0c0e14;
  --panel: var(--bg-card);
  --border: var(--border-color);
  --muted: #a1a7b8;
  --muted2: #7c8498;
  --text: var(--text-light);
  --accent: var(--primary-light);
  --accent-dim: rgba(96, 165, 250, 0.14);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 32px rgba(37, 99, 235, 0.45);
  --radius: 1rem;
  /* News feed — premium surfaces */
  --nti-surface-0: linear-gradient(
    165deg,
    rgba(30, 34, 48, 0.98) 0%,
    rgba(16, 18, 28, 0.97) 52%,
    rgba(10, 12, 20, 0.96) 100%
  );
  --nti-surface-toolbar: linear-gradient(
    180deg,
    rgba(18, 22, 34, 0.72) 0%,
    rgba(12, 14, 22, 0.55) 100%
  );
  --nti-line: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.35) 45%, rgba(147, 197, 253, 0.5) 50%, rgba(96, 165, 250, 0.35) 55%, transparent 100%);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  /* Neural canvas + particles on index.html sit behind feed UI */
  background: transparent;
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

#main-feed {
  scroll-margin-top: 5.5rem;
}

@media (min-width: 768px) {
  .shell {
    padding: 0 2rem 5rem;
  }
}

@media (min-width: 1200px) {
  .shell {
    padding: 0 3rem 6rem;
  }
}

/* Sits below fixed #navbar; not sticky — scrolls away so only the nav stays fixed. */
.top {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  z-index: 40;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.top-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.75rem 1rem 1rem;
}

@media (min-width: 768px) {
  .top-inner {
    padding: 2.25rem 2rem 1.25rem;
  }
}

.kicker {
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.top h1 {
  background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-top: 1.25rem;
}

.search-wrap {
  position: relative;
  flex: 1 1 220px;
  max-width: 28rem;
}

.search-wrap span {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted2);
  pointer-events: none;
}

#search {
  width: 100%;
  padding: 0.65rem 0.75rem 0.65rem 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(17, 20, 28, 0.85);
  color: var(--text);
  font-size: 0.875rem;
  outline: none;
}

#search:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.22);
}
@supports (color: color-mix(in srgb, white, black)) {
  #search:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-light) 22%, transparent);
  }
}

label.filter {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted2);
  font-weight: 600;
}

select {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
  min-width: 8.5rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #d4d4d8;
}

button.primary {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}

button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.banner {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
  font-size: 0.85rem;
}

.section {
  margin-top: 3.5rem;
}

.section-head {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--text-light);
}

.section-head p {
  margin: 0.5rem 0 0;
  max-width: 48rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.chip {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent-dim);
  color: var(--accent);
}

.grid {
  display: grid;
  gap: clamp(1.15rem, 2.4vw, 1.65rem);
  align-items: stretch;
}

.feed-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .feed-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .feed-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid:not(.feed-grid).cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .grid:not(.feed-grid).cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 18rem;
  height: 100%;
  min-width: 0;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(26, 30, 44, 0.98) 0%, rgba(12, 14, 22, 0.96) 48%, rgba(8, 10, 16, 0.94) 100%);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.32s ease, box-shadow 0.32s ease;
}

/* News / article cards — cool accent rail */
.card--article {
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 3px 0 0 0 color-mix(in srgb, var(--primary-light) 75%, transparent);
}

.card--article:hover {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary-light) 22%, transparent),
    0 28px 56px -12px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 3px 0 0 0 color-mix(in srgb, var(--primary-light) 90%, transparent);
}

/* Video cards — teal accent */
.card--video {
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 3px 0 0 0 rgba(94, 234, 212, 0.45);
}

.card--video:hover {
  box-shadow:
    0 0 0 1px rgba(94, 234, 212, 0.18),
    0 28px 56px -12px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 3px 0 0 0 rgba(94, 234, 212, 0.65);
}

.card--readable {
  cursor: pointer;
}

.card--readable:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary-light) 85%, transparent);
  outline-offset: 3px;
}

.card:hover,
.card--video:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #141824 0%, #0d1018 100%);
  overflow: hidden;
  flex-shrink: 0;
}

.card--article .card-media {
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card:hover .card-media img {
  transform: scale(1.03);
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 12, 0.92) 0%, rgba(7, 8, 12, 0.35) 38%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.card-badges-float {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}

.badge {
  font-size: 0.62rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
}

.badge.accent {
  background: color-mix(in srgb, var(--primary) 20%, transparent);
  border-color: color-mix(in srgb, var(--primary-light) 35%, transparent);
  color: var(--accent);
}

.badge--kind {
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.card-head {
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(22, 26, 36, 0.95), rgba(17, 20, 28, 0.5));
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-body {
  padding: 1.1rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-height: 0;
}

.card-title {
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: #f4f6fb;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-domain {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--primary-light);
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1rem;
}

.card-domain-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary-light) 70%, transparent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--primary-light) 45%, transparent);
  flex-shrink: 0;
}

.card-summary {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

/* Compact grid: title + meta only; full copy opens in reader modal */
.card-body--compact {
  padding-top: 0.95rem;
  padding-bottom: 1rem;
  gap: 0.35rem;
}

.card-open-hint {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.card-title-link {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(transparent 92%, rgba(94, 234, 212, 0.35) 92%);
}

.card-title-link:hover {
  color: var(--accent);
}

.card--video {
  cursor: default;
}

/* YouTube story cards: thumbnail + play; opens reader modal (same as articles). */
.card--video.card--yt {
  cursor: pointer;
}

.card-media--yt-preview {
  aspect-ratio: 16 / 9;
  background: #0a0c12;
}

.card-media--yt-preview .card-yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease;
}

.card--yt:hover .card-yt-play {
  transform: translate(-50%, -50%) scale(1.07);
}

.card-media--yt-preview .card-badges-float {
  z-index: 3;
}

.card-media--embed {
  aspect-ratio: 16 / 9;
  background: #0a0c12;
}

.card-media--embed::after {
  display: none;
}

.card-yt-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.card-media--embed .card-badges-float {
  z-index: 2;
}

.card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #141824 0%, #0d1018 100%);
  position: relative;
}

.card-media--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(255, 255, 255, 0.04) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: nti-shimmer 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  /* Lighter shimmer so the PNG brand placeholder stays visible */
  opacity: 0.35;
}

@keyframes nti-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.card-media--placeholder::after {
  opacity: 0.5;
  background: linear-gradient(to top, rgba(7, 8, 12, 0.88), transparent 52%);
}

.card-media--placeholder .card-badges-float {
  z-index: 2;
}

.card-media--placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  opacity: 1;
  transform: none;
  position: relative;
  z-index: 1;
}

.card:hover .card-media--placeholder img {
  transform: scale(1.02);
}

.card-meta {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.68rem;
  color: var(--muted2);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.strip-card {
  flex: 0 0 min(280px, 85vw);
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(17, 20, 28, 0.85);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.strip-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.strip-desc {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.source-panel {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .source-panel {
    grid-template-columns: repeat(2, 1fr);
  }
}

.source-group {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(17, 20, 28, 0.45);
  padding: 1.1rem;
}

.source-group h3 {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.source-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.source-row {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 8, 12, 0.45);
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 768px) {
  .source-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.source-url {
  font-size: 0.68rem;
  color: var(--muted2);
  word-break: break-all;
}

.status {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
}

.status.ok {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

.status.bad {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

.status.pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
}

/* Use .nti-footer-strip so index.html main site footer is not affected when this sheet is shared. */
footer.nti-footer-strip {
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 1rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  color: var(--text-dim);
}

.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-meta {
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-meta {
    text-align: right;
  }
}

.skel {
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: sk 1.2s ease infinite;
  min-height: 18rem;
}

@keyframes sk {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: -200% 0%;
  }
}

.ai-wrap {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 20, 28, 0.35);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .ai-wrap {
    padding: 2.25rem;
  }
}

.subsection {
  margin-top: 2.5rem;
}

.subsection h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text-light);
}

.subsection p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.empty {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
}

.empty--full {
  grid-column: 1 / -1;
}

.future-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .future-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.future-card {
  border-radius: 1.2rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(17, 20, 28, 0.35);
  padding: 1.25rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.future-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  color: #f4f4f5;
}

.future-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.future-subcount {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  color: var(--muted2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.future-await {
  margin-top: auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted2);
}

.future-mini-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.future-mini {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 12, 0.35);
  padding: 0.75rem 0.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.future-mini:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-light) 28%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.future-mini-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.future-mini-desc {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.future-mini-meta {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Unified feed + bottom pagination bar */
.section--feed {
  margin-top: 1.75rem;
}

.section-head--minimal {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.35rem;
}

.section-feed-title {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0;
  padding-bottom: 0.75rem;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 1px solid color-mix(in srgb, var(--primary-light) 22%, transparent);
  padding-top: 0.15rem;
}

.feed-bottom-bar {
  margin-top: 2.5rem;
  padding: 1.75rem 1rem 0.5rem;
  display: flex;
  justify-content: center;
}

.feed-bottom-inner {
  width: 100%;
  max-width: 1400px;
  padding: 0 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
}

.feed-stats--bottom {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.feed-stats-suffix {
  margin-left: 0.15rem;
  color: var(--muted2);
  font-size: 0.78rem;
}

.feed-range-text {
  color: var(--accent);
}

/* Pagination + per-page (bottom of feed) */
.feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.05rem 1.35rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(14, 18, 28, 0.92), rgba(8, 10, 16, 0.75));
  border: 1px solid color-mix(in srgb, var(--primary-light) 18%, transparent);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feed-pagination {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  justify-content: stretch;
}

.feed-pagination.hidden {
  display: none;
}

.pager--enhanced {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.pager-center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.85rem;
  flex: 1 1 220px;
  min-width: min(100%, 16rem);
}

.pager-jump-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted2);
  white-space: nowrap;
}

.pager-jump-select {
  min-width: 11rem;
  flex: 1 1 auto;
  max-width: min(100%, 22rem);
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 22, 32, 0.9);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.5rem 1.1rem;
  min-height: 2.5rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  flex: 0 0 auto;
}

.pager-btn-text {
  white-space: nowrap;
}

.pager-btn-icon {
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.9;
}

.pager-btn:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--primary-light) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 14%, rgba(12, 14, 22, 0.95));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-light) 22%, transparent);
  transform: translateY(-1px);
}

.pager-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.feed-per-page {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem 0.65rem 0.2rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-per-page-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--muted2);
  white-space: nowrap;
}

.feed-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 5.75rem;
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 22, 0.95)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E")
    no-repeat right 0.65rem center;
  color: var(--text-light);
  font-size: 0.84rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feed-select:hover {
  border-color: color-mix(in srgb, var(--primary-light) 35%, transparent);
}

.feed-select:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary-light) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

@media (max-width: 640px) {
  .feed-toolbar {
    flex-direction: column;
    padding: 1rem;
  }

  .pager--enhanced {
    flex-direction: column;
    align-items: stretch;
  }

  .pager-btn {
    width: 100%;
  }

  .pager-center {
    flex-direction: column;
    align-items: stretch;
  }

  .pager-jump-select {
    width: 100%;
    max-width: none;
  }

  .feed-per-page {
    width: 100%;
    justify-content: space-between;
  }

  .feed-select {
    flex: 1;
    max-width: 12rem;
  }
}

.footer-tag {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted2);
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: baseline;
  justify-content: flex-end;
  font-size: 0.8rem;
}

.footer-label {
  color: var(--muted2);
  margin-right: 0.25rem;
}

.footer-note {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
}

.footer-time {
  font-size: 0.72rem;
  color: var(--muted2);
}

.footer-warn {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #fcd34d;
  max-width: 36rem;
  text-align: right;
  margin-left: auto;
}

.footer-failures {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #fcd34d;
  max-width: 42rem;
  text-align: right;
  margin-left: auto;
}

.footer-failures summary {
  cursor: pointer;
  list-style: none;
}

.footer-failures summary::-webkit-details-marker {
  display: none;
}

.footer-fail-list {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.1rem;
  text-align: left;
  color: rgba(252, 211, 77, 0.92);
  max-height: 14rem;
  overflow-y: auto;
}

.footer-fail-name {
  font-weight: 600;
  color: #f8fafc;
}

.footer-fail-err {
  opacity: 0.9;
}

.footer-fail-more {
  list-style: none;
  margin-left: -1rem;
  opacity: 0.85;
}

/* In-page reader */
.read-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
}

.read-modal.hidden {
  display: none;
}

.read-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.read-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(52rem, 96vw);
  max-height: min(94vh, 960px);
  display: flex;
  flex-direction: column;
  border-radius: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--primary-light) 25%, transparent);
  background: linear-gradient(180deg, rgba(18, 22, 32, 0.98) 0%, rgba(10, 12, 18, 0.96) 100%);
  box-shadow:
    0 32px 64px -16px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    var(--shadow-glow);
  overflow: hidden;
}

.read-modal-head {
  padding: 1.1rem 1.25rem 0.85rem;
  padding-right: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.read-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.read-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.read-modal-kicker {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted2);
  letter-spacing: 0.04em;
}

.read-modal-title {
  margin: 0.35rem 0 0;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

.read-modal-meta {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.read-modal-media {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.read-modal-media[hidden] {
  display: none !important;
}

.read-modal-img {
  width: 100%;
  max-height: min(40vh, 320px);
  object-fit: cover;
  display: block;
}

.read-modal-link-preview {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.read-modal-link-preview-hero {
  position: relative;
  background: rgba(6, 8, 12, 0.6);
}

.read-modal-link-preview-hero--ph {
  min-height: 120px;
}

.read-modal-link-preview-hero--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  min-height: 100px;
  background: rgba(8, 10, 16, 0.85);
}

.read-modal-link-preview-logo {
  max-width: min(100%, 200px);
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.read-modal-link-preview-meta {
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 6, 10, 0.45);
}

.read-modal-link-preview-domain {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-light);
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.read-modal-link-preview-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-light);
}

.read-modal-link-preview-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-media--link-preview {
  border: 1px solid color-mix(in srgb, var(--primary-light) 28%, transparent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 24px color-mix(in srgb, var(--primary) 12%, transparent);
}

.card-media--link-preview img {
  object-fit: cover;
  animation: nti-fade-in 0.45s ease;
}

@keyframes nti-fade-in {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

.read-modal-embed-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0c12;
}

.read-modal-embed-wrap--yt {
  border-radius: 0.4rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.read-modal-embed-wrap--thumb .read-modal-img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.read-modal-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.read-modal-body {
  padding: 1.15rem 1.35rem 1.35rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-dim);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.read-modal-prose-label {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.modal-read-p {
  margin: 0 0 1.05rem;
  text-align: left;
}

.modal-read-p:last-child {
  margin-bottom: 0;
}

.read-modal-foot {
  padding: 0.85rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  background: rgba(7, 8, 12, 0.35);
}

.read-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s, opacity 0.2s;
}

.read-modal-cta:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/* News (#news) — editorial / high-end presentation (scoped)                  */
/* -------------------------------------------------------------------------- */

section#news .top {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(14, 16, 26, 0.92) 0%, rgba(8, 10, 18, 0.88) 100%);
  box-shadow:
    0 1px 0 rgba(96, 165, 250, 0.1) inset,
    0 28px 56px -20px rgba(0, 0, 0, 0.65);
}

section#news .top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--nti-line);
  opacity: 0.85;
  pointer-events: none;
}

section#news .top-inner {
  padding-bottom: 1.5rem;
}

section#news .kicker {
  letter-spacing: 0.42em;
  font-weight: 700;
  opacity: 0.95;
}

section#news .tagline {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42rem;
  color: rgba(196, 202, 218, 0.92);
}

section#news .toolbar {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--nti-surface-toolbar);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 40px -12px rgba(0, 0, 0, 0.55);
  gap: 0.85rem 1rem;
  align-items: flex-end;
}

section#news #search {
  padding: 0.72rem 0.85rem 0.72rem 2.15rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 16, 0.75);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

section#news label.filter select {
  min-width: 9rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 20, 0.9);
}

section#news .pill {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(96, 165, 250, 0.25);
  color: #e4e4e7;
}

section#news button.primary {
  padding: 0.5rem 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 8px 28px -6px rgba(37, 99, 235, 0.55);
}

section#news .section-feed-title {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid color-mix(in srgb, var(--primary-light) 32%, transparent);
}

section#news .section-feed-sub {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(180, 188, 206, 0.95);
  max-width: 52rem;
  font-weight: 450;
}

section#news .grid.feed-grid {
  gap: clamp(1.35rem, 2.8vw, 2rem);
}

section#news .card {
  background: var(--nti-surface-0);
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  min-height: 13.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

section#news .card:hover {
  transform: translateY(-5px);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow:
    0 20px 48px -12px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(96, 165, 250, 0.15),
    0 0 40px -8px rgba(37, 99, 235, 0.25);
}

section#news .card-title {
  font-weight: 700;
  letter-spacing: -0.028em;
  color: #f8fafc;
}

section#news .card-summary {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(176, 184, 200, 0.95);
}

section#news .card-open-hint {
  color: rgba(148, 163, 184, 0.8);
}

section#news .card-meta {
  border-top-color: rgba(255, 255, 255, 0.08);
}

section#news .feed-bottom-bar {
  margin-top: 3rem;
}

section#news .feed-toolbar {
  border-radius: 1.15rem;
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(16, 20, 32, 0.95), rgba(8, 10, 16, 0.82));
  box-shadow:
    0 16px 48px -16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

section#news footer.nti-footer-strip {
  margin-top: 3.5rem;
  padding: 2.75rem 1.25rem;
  border-top: 1px solid rgba(96, 165, 250, 0.12);
  background: linear-gradient(180deg, rgba(10, 12, 20, 0.92) 0%, rgba(6, 8, 14, 0.95) 100%);
}

section#news .skel {
  min-height: 19.5rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

section#news .empty {
  padding: 3rem 1.5rem;
  border-radius: 1.25rem;
  border-style: solid;
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(12, 14, 22, 0.5);
  font-size: 0.95rem;
  color: rgba(200, 206, 220, 0.95);
}

section#news .read-modal-panel {
  border-radius: 1.35rem;
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow:
    0 40px 80px -24px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 60px -20px rgba(37, 99, 235, 0.35);
}

section#news #main-feed {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

@media (max-width: 640px) {
  section#news .toolbar {
    padding: 0.9rem 0.85rem;
    flex-direction: column;
    align-items: stretch;
  }

  section#news .search-wrap {
    max-width: none;
  }

  section#news .btn-row {
    justify-content: space-between;
  }

  section#news .section-feed-sub {
    font-size: 0.8rem;
  }
}
