:root {
  --nb-bg: #f5efe4;
  --nb-panel: #efe7d6;
  --nb-ink: #1a1614;
  --nb-muted: #7a6f60;
  --nb-rule: #1a1614;
  --nb-subtle: #d8cfba;
  --nb-accent: #b13b32;
  --nb-headline-font: "Source Serif 4", Georgia, serif;
  --nb-body: "Source Serif 4", Georgia, serif;
  --nb-ui: "IBM Plex Sans", system-ui, sans-serif;
  --nb-mono: "IBM Plex Mono", ui-monospace, monospace;
  --nb-density: 1;
  --nb-pad-y: calc(20px * var(--nb-density));
  --nb-pad-x: 28px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--nb-bg);
  color: var(--nb-ink);
  font-family: var(--nb-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; font-family: var(--nb-headline-font); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* ============ LAYOUT WRAPPER ============ */
.nb-root {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--nb-pad-x);
  border-left: 1px solid var(--nb-subtle);
  border-right: 1px solid var(--nb-subtle);
  background: var(--nb-bg);
  min-height: 100vh;
}

/* ============ MARKET STRIP ============ */
.nb-market {
  display: flex; gap: 36px;
  padding: 9px 0;
  border-bottom: 1px solid var(--nb-subtle);
  font-family: var(--nb-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--nb-muted);
  overflow: hidden;
}
.nb-market-item { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.nb-market-name { font-weight: 700; color: var(--nb-ink); }
.nb-market-value { font-weight: 600; color: var(--nb-ink); }
.nb-up { color: oklch(0.55 0.14 150); }
.nb-down { color: oklch(0.55 0.18 25); }

/* ============ MASTHEAD ============ */
.nb-masthead { padding: 14px 0 18px; }
.nb-masthead-row { display: flex; align-items: center; justify-content: space-between; }
.nb-masthead-row--top {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nb-subtle);
  font-family: var(--nb-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nb-muted);
}
.nb-masthead-meta { display: flex; gap: 10px; }
.nb-dot { opacity: 0.5; }
.nb-masthead-actions { display: flex; gap: 8px; align-items: center; }
.nb-pill {
  font-family: var(--nb-ui);
  font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--nb-ink);
  border-radius: 999px;
  color: var(--nb-ink);
  background: transparent;
  transition: all 0.15s;
  letter-spacing: 0.01em;
  display: inline-block;
}
.nb-pill:hover { background: var(--nb-ink); color: var(--nb-bg); }
.nb-pill--ghost { border-color: var(--nb-subtle); color: var(--nb-muted); }
.nb-pill--accent { background: var(--nb-accent); border-color: var(--nb-accent); color: white; }
.nb-pill--accent:hover { filter: brightness(1.1); background: var(--nb-accent); color: white; }
.nb-pill--sm { padding: 4px 10px; font-size: 11px; }
.nb-search-icon { font-size: 14px; line-height: 1; vertical-align: -1px; }

.nb-masthead-row--logo {
  padding: 22px 0 12px;
  align-items: center;
  border-bottom: 3px double var(--nb-rule);
}
.nb-weather, .nb-edition-stamp {
  flex: 1;
  font-family: var(--nb-ui);
  font-size: 11px;
  color: var(--nb-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nb-weather { display: flex; gap: 10px; align-items: center; }
.nb-weather-temp {
  font-family: var(--nb-headline-font);
  font-size: 38px; font-weight: 500;
  color: var(--nb-ink);
  line-height: 1;
}
.nb-weather-meta { line-height: 1.3; }
.nb-edition-stamp { text-align: right; }
.nb-edition-label { font-weight: 600; color: var(--nb-ink); }
.nb-edition-sub { margin-top: 2px; }

.nb-logo {
  flex: 0 0 auto;
  font-family: var(--nb-headline-font);
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
  color: var(--nb-ink);
  text-align: center;
}
.nb-logo--serif { font-family: "Source Serif 4", Georgia, serif; font-weight: 900; }
.nb-logo--display { font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-style: italic; letter-spacing: -0.04em; }
.nb-logo--modern { font-family: "IBM Plex Sans", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.045em; text-transform: lowercase; }
.nb-logo-dot { color: var(--nb-accent); }

/* ============ NAV ============ */
.nb-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--nb-subtle);
  font-family: var(--nb-ui);
}
.nb-nav-list { display: flex; gap: 4px; flex-wrap: wrap; }
.nb-nav-item {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--nb-ink);
  letter-spacing: 0.005em;
  transition: background 0.15s;
  display: inline-block;
}
.nb-nav-item:hover { background: var(--nb-panel); }
.nb-nav-item.is-active { color: var(--nb-accent); font-weight: 700; }
.nb-nav-item.is-active::after {
  content: ""; display: block;
  height: 2px; margin-top: 4px;
  background: var(--nb-accent);
}
.nb-nav-tail {
  display: flex; gap: 8px;
  font-family: var(--nb-mono); font-size: 11px;
  color: var(--nb-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============ BREAKING TICKER ============ */
/* ============ LANG SWITCH (banderas) ============ */
.nb-langswitch { display: inline-flex; gap: 4px; align-items: center; }
.nb-lang-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px;
  border: 1px solid var(--nb-subtle);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: var(--nb-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--nb-muted);
  line-height: 1;
  transition: border-color .15s, color .15s, opacity .15s;
  opacity: 0.6;
}
.nb-lang-btn:hover { opacity: 1; border-color: var(--nb-ink); color: var(--nb-ink); }
.nb-lang-btn.is-active {
  opacity: 1;
  border-color: var(--nb-accent);
  color: var(--nb-ink);
  background: color-mix(in srgb, var(--nb-accent) 8%, transparent);
}
.nb-flag {
  width: 20px; height: 14px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.12);
  display: block;
  object-fit: cover;
}
.nb-lang-code { font-size: 10px; }

.nb-ticker {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--nb-subtle);
  overflow: hidden;
  background: var(--nb-bg);
}
.nb-ticker-label {
  flex: 0 0 auto;
  padding: 10px 14px;
  background: var(--nb-accent);
  color: white;
  font-family: var(--nb-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 6px;
}
.nb-ticker-label::before {
  content: ""; width: 6px; height: 6px;
  background: white; border-radius: 50%;
  animation: nb-pulse 1.4s infinite ease-in-out;
}
@keyframes nb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.nb-ticker-track-wrap { overflow: hidden; flex: 1; display: flex; align-items: center; padding: 0 14px; mask-image: linear-gradient(to right, transparent, black 30px, black calc(100% - 30px), transparent); }
.nb-ticker-track {
  display: flex; gap: 32px;
  white-space: nowrap;
  animation: nb-scroll 150s linear infinite;
  font-family: var(--nb-ui);
  font-size: 13px;
  color: var(--nb-ink);
}
.nb-ticker-track:hover { animation-play-state: paused; }
.nb-ticker-item { display: inline-flex; gap: 32px; align-items: center; }
.nb-ticker-sep { color: var(--nb-accent); }
@keyframes nb-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ MAIN ============ */
.nb-main { padding: var(--nb-pad-y) 0; }
.nb-rule {
  height: 1px;
  background: var(--nb-rule);
  margin: calc(28px * var(--nb-density)) 0;
  opacity: 0.85;
}
.nb-divider { height: 1px; background: var(--nb-subtle); margin: 16px 0; }

/* ============ GRIDS ============ */
.nb-row { display: grid; gap: calc(28px * var(--nb-density)); }
.nb-row--hero {
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  column-gap: 32px;
}
.nb-row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nb-row--2sections { grid-template-columns: 1fr 1fr; gap: 40px; }

.nb-col { min-width: 0; }
.nb-col--rail {
  border-right: 1px solid var(--nb-subtle);
  padding-right: 24px;
}
.nb-col--secondary {
  border-left: 1px solid var(--nb-subtle);
  padding-left: 24px;
}

/* ============ KICKER / BYLINE ============ */
.nb-kicker {
  display: inline-block;
  font-family: var(--nb-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nb-muted);
  margin-bottom: 8px;
}
.nb-kicker--accent { color: var(--nb-accent); }

.nb-byline {
  margin-top: 10px;
  font-family: var(--nb-ui);
  font-size: 11.5px;
  color: var(--nb-muted);
  display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap;
}
.nb-byline-author { font-weight: 600; color: var(--nb-ink); }
.nb-byline-dot { opacity: 0.5; }
.nb-byline-time { font-family: var(--nb-mono); font-size: 10.5px; color: var(--nb-muted); }

/* ============ IMG PLACEHOLDER ============ */
.nb-img {
  width: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      var(--nb-subtle) 0 1px,
      transparent 1px 9px
    ),
    var(--nb-panel);
  display: flex; align-items: center; justify-content: center;
  color: var(--nb-muted);
  overflow: hidden;
  position: relative;
}
.nb-img::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--nb-subtle);
  pointer-events: none;
}
.nb-img-label {
  font-family: var(--nb-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  background: var(--nb-bg);
  border: 1px solid var(--nb-subtle);
  color: var(--nb-muted);
  text-align: center;
  max-width: 80%;
  z-index: 1;
}

/* ============ HERO ============ */
.nb-hero-img { margin-bottom: 16px; }
.nb-hero-headline {
  font-size: calc(56px * var(--nb-density));
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.nb-hero-deck {
  font-size: 18px;
  line-height: 1.45;
  color: var(--nb-ink);
  margin-bottom: 4px;
  font-family: var(--nb-body);
}
.nb-hero-related {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--nb-subtle);
  display: flex; flex-direction: column; gap: 8px;
}
.nb-hero-related li {
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--nb-body);
  font-size: 14px;
  font-weight: 600;
}
.nb-hero-related li:hover a { color: var(--nb-accent); }
.nb-related-arrow { color: var(--nb-accent); font-weight: 700; flex: 0 0 auto; }

/* ============ SECONDARY ============ */
.nb-secondary-headline {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
}
.nb-secondary-deck {
  font-size: 14.5px;
  color: var(--nb-muted);
  line-height: 1.45;
}

/* ============ ARTICLE CARD ============ */
.nb-card { display: flex; flex-direction: column; min-width: 0; }
.nb-card-img { margin-bottom: 12px; }
.nb-card-headline {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.nb-card:hover .nb-card-headline { color: var(--nb-accent); }
.nb-card-deck {
  font-size: 14px;
  color: var(--nb-muted);
  line-height: 1.45;
}
.nb-card--sm .nb-card-headline { font-size: 16.5px; }

/* ============ OPINION ============ */
.nb-opinions-stack { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.nb-opinion {
  display: flex; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nb-subtle);
}
.nb-opinion:last-child { border-bottom: 0; padding-bottom: 0; }
.nb-opinion-avatar {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--nb-panel);
  border: 1px solid var(--nb-rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--nb-headline-font);
  font-weight: 700;
  font-size: 14px;
  color: var(--nb-ink);
  text-transform: uppercase;
}
.nb-opinion-body { min-width: 0; flex: 1; }
.nb-opinion-headline {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  font-family: var(--nb-headline-font);
  font-style: italic;
  margin: 4px 0 6px;
}
.nb-opinion-author {
  font-family: var(--nb-ui);
  font-size: 11px;
  color: var(--nb-ink);
  font-weight: 600;
}
.nb-opinion-role { color: var(--nb-muted); font-weight: 400; }

/* ============ LIST ============ */
.nb-list { display: flex; flex-direction: column; }
.nb-list-item {
  display: flex; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--nb-subtle);
  align-items: baseline;
}
.nb-list-item:last-child { border-bottom: 0; }
.nb-list-item:hover .nb-list-headline { color: var(--nb-accent); }
.nb-list-num {
  font-family: var(--nb-headline-font);
  font-weight: 800;
  font-size: 26px;
  color: var(--nb-accent);
  flex: 0 0 28px;
  line-height: 1;
}
.nb-list-headline {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.15s;
}
.nb-list-body { min-width: 0; flex: 1; }
.nb-list--rule .nb-list-item { padding: 12px 0; }

/* ============ SECTION HEADER ============ */
.nb-section-h {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--nb-rule);
}
.nb-section-h-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.nb-section-h--accent .nb-section-h-title { font-style: italic; }
.nb-section-h--accent .nb-section-h-title::before {
  content: "§ ";
  color: var(--nb-accent);
  font-style: normal;
  margin-right: 2px;
}
.nb-section-h-rule { flex: 1; height: 1px; background: var(--nb-subtle); }
.nb-section-h-link {
  flex: 0 0 auto;
  font-family: var(--nb-ui);
  font-size: 11.5px;
  color: var(--nb-accent);
  font-weight: 600;
}
.nb-section-h-link:hover { text-decoration: underline; }

/* ============ SECTION LEAD ============ */
.nb-section-block { min-width: 0; }
.nb-section-lead { margin-bottom: 14px; }
.nb-section-lead .nb-img { margin-bottom: 12px; }
.nb-section-lead-headline {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.nb-section-lead:hover .nb-section-lead-headline { color: var(--nb-accent); }
.nb-section-lead-deck { font-size: 14.5px; color: var(--nb-muted); }

/* ============ FEATURE ============ */
.nb-feature {
  background: var(--nb-panel);
  padding: 0;
  border: 1px solid var(--nb-rule);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
}
.nb-feature-img { aspect-ratio: auto; height: 100%; min-height: 320px; }
.nb-feature-body { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; }
.nb-feature-headline {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
}
.nb-feature-deck { font-size: 16.5px; line-height: 1.5; margin-bottom: 16px; }

/* ============ OPINION FEATURE BLOCK ============ */
.nb-opinion-feature { margin: 0; }
.nb-opinion-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 8px 0 0;
}
.nb-opinion-lead {
  border-left: 3px solid var(--nb-accent);
  padding-left: 28px;
  position: relative;
}
.nb-opinion-quote {
  position: absolute;
  top: -20px; left: 14px;
  font-family: var(--nb-headline-font);
  font-size: 100px;
  line-height: 0.5;
  color: var(--nb-accent);
  font-weight: 900;
}
.nb-opinion-lead-headline {
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: 14px;
}
.nb-opinion-lead-deck {
  font-size: 16px;
  color: var(--nb-ink);
  line-height: 1.5;
  margin-bottom: 12px;
}
.nb-opinion-cols { display: flex; flex-direction: column; gap: 18px; }
.nb-opinion-col {
  padding: 16px 0;
  border-bottom: 1px solid var(--nb-subtle);
}
.nb-opinion-col:last-child { border-bottom: 0; }
.nb-opinion-col h4 {
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.nb-opinion-col:hover h4 { color: var(--nb-accent); }

/* ============ PODCAST PROMO ============ */
.nb-podcast-promo {
  margin-top: 18px;
  padding: 16px;
  background: var(--nb-ink);
  color: var(--nb-bg);
  display: flex; gap: 12px;
  align-items: flex-start;
}
.nb-podcast-promo .nb-kicker { color: var(--nb-bg); opacity: 0.75; }
.nb-podcast-promo h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  margin: 4px 0 12px;
  color: var(--nb-bg);
  font-family: var(--nb-headline-font);
}
.nb-podcast-eq {
  display: flex; gap: 3px; align-items: flex-end;
  height: 40px; flex: 0 0 auto;
  padding-top: 14px;
}
.nb-podcast-eq span {
  width: 4px; background: var(--nb-accent);
  animation: nb-eq 1s infinite ease-in-out;
}
.nb-podcast-eq span:nth-child(1) { height: 60%; animation-delay: 0s; }
.nb-podcast-eq span:nth-child(2) { height: 90%; animation-delay: 0.15s; }
.nb-podcast-eq span:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.nb-podcast-eq span:nth-child(4) { height: 75%; animation-delay: 0.45s; }
@keyframes nb-eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ============ MOST READ ============ */
.nb-most-read { margin-top: 28px; }
.nb-most-read .nb-section-h { margin-bottom: 8px; }

/* ============ FOOTER ============ */
.nb-footer {
  margin-top: 60px;
  padding: 40px 0 32px;
  border-top: 3px double var(--nb-rule);
  color: var(--nb-ink);
}
.nb-footer-top { text-align: center; padding-bottom: 32px; border-bottom: 1px solid var(--nb-subtle); margin-bottom: 32px; }
.nb-footer-top .nb-logo { font-size: 56px; }
.nb-footer-tag {
  margin-top: 12px;
  font-family: var(--nb-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nb-muted);
}
.nb-footer-cols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--nb-subtle);
}
.nb-footer-col h4 {
  font-family: var(--nb-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nb-accent);
  margin-bottom: 12px;
}
.nb-footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.nb-footer-col li, .nb-footer-col li a {
  font-family: var(--nb-ui);
  font-size: 13px;
  color: var(--nb-ink);
}
.nb-footer-col li:hover, .nb-footer-col li a:hover { color: var(--nb-accent); }
.nb-footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 20px;
  font-family: var(--nb-mono);
  font-size: 11px;
  color: var(--nb-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE — 3 breakpoints
   ============================================================ */

/* Tablet (641-1024px) ----------------------------------------- */
@media (max-width: 1024px) {
  :root { --nb-pad-x: 20px; }
  .nb-root { max-width: 100%; border-left: 0; border-right: 0; }

  .nb-row--hero {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .nb-col--rail {
    grid-column: 1 / -1;
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--nb-subtle);
    padding-bottom: 20px;
  }
  .nb-col--secondary {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--nb-subtle);
    padding-top: 20px;
    grid-column: 1 / -1;
  }
  .nb-row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nb-row--2sections { gap: 24px; }

  .nb-logo { font-size: 56px; }
  .nb-hero-headline { font-size: 40px; }
  .nb-feature { grid-template-columns: 1fr; }
  .nb-feature-img { min-height: 220px; }
  .nb-feature-body { padding: 28px 24px; }
  .nb-feature-headline { font-size: 30px; }
  .nb-opinion-grid { grid-template-columns: 1fr; gap: 24px; }
  .nb-footer-cols { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* Mobile (≤640px) -------------------------------------------- */
@media (max-width: 640px) {
  :root {
    --nb-pad-x: 14px;
    --nb-density: 0.92;
  }
  html, body { font-size: 15px; }

  .nb-masthead-row--top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .nb-masthead-actions { flex-wrap: wrap; }
  .nb-masthead-row--logo {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 14px 0 12px;
  }
  .nb-weather, .nb-edition-stamp { flex: 0 0 auto; }
  .nb-edition-stamp { text-align: center; }
  .nb-logo { font-size: 44px; }

  .nb-nav { flex-direction: column; align-items: stretch; gap: 6px; }
  .nb-nav-list { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .nb-nav-list::-webkit-scrollbar { display: none; }
  .nb-nav-item { flex: 0 0 auto; }

  .nb-market { gap: 16px; overflow-x: auto; padding: 6px 0; }
  .nb-ticker-track { animation-duration: 110s; }

  .nb-row--hero { grid-template-columns: 1fr; }
  .nb-row--4 { grid-template-columns: 1fr; }
  .nb-row--2sections { grid-template-columns: 1fr; gap: 28px; }

  .nb-hero-headline { font-size: 30px; }
  .nb-hero-deck { font-size: 16px; }
  .nb-feature-headline { font-size: 24px; }
  .nb-secondary-headline { font-size: 20px; }
  .nb-section-h-title { font-size: 18px; }
  .nb-section-lead-headline { font-size: 20px; }

  .nb-footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .nb-footer-top .nb-logo { font-size: 40px; }
  .nb-footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

/* ============ ARTICLE DETAIL ============ */
.nb-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 4px;
}
.nb-article-header { padding: 16px 0 10px; }
.nb-article-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}
.nb-article-lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--nb-ink);
  margin-bottom: 14px;
  font-family: var(--nb-body);
}
.nb-article-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--nb-subtle);
  border-bottom: 1px solid var(--nb-subtle);
  margin: 12px 0;
}
.nb-share { display: flex; gap: 6px; }
.nb-article-updated { color: var(--nb-muted); font-style: italic; }
.nb-article-corrected { color: var(--nb-accent); font-weight: 700; }

.nb-article-hero-img { margin: 16px 0 22px; }
.nb-article-hero-img figcaption {
  margin-top: 8px;
  font-family: var(--nb-ui);
  font-size: 12.5px;
  color: var(--nb-muted);
}
.nb-credit { font-style: italic; }

.nb-article-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--nb-ink);
}
.nb-article-body p { margin: 0 0 18px; }
.nb-article-body h2 { font-size: 28px; margin: 28px 0 10px; }
.nb-article-body h3 { font-size: 22px; margin: 22px 0 8px; }
.nb-article-body h4 { font-size: 18px; margin: 18px 0 6px; }
.nb-article-body ul, .nb-article-body ol { margin: 0 0 18px 22px; }
.nb-article-body ul { list-style: disc; }
.nb-article-body ol { list-style: decimal; }
.nb-article-body li { margin: 4px 0; }
.nb-article-body blockquote {
  border-left: 3px solid var(--nb-accent);
  padding: 4px 0 4px 18px;
  margin: 20px 0;
  font-family: var(--nb-headline-font);
  font-style: italic;
  font-size: 20px;
}
.nb-article-body figure { margin: 22px 0; }
.nb-article-body figure img { width: 100%; }
.nb-article-body figcaption {
  font-family: var(--nb-ui); font-size: 12.5px;
  color: var(--nb-muted); margin-top: 6px;
}
.nb-article-body code {
  font-family: var(--nb-mono); font-size: 14px;
  background: var(--nb-panel); padding: 2px 6px; border-radius: 3px;
}
.nb-article-body pre {
  background: var(--nb-panel);
  padding: 14px;
  overflow-x: auto;
  font-family: var(--nb-mono);
  font-size: 13.5px;
}
.nb-article-body a { color: var(--nb-accent); text-decoration: underline; }
.nb-article-body hr { border: 0; border-top: 1px solid var(--nb-subtle); margin: 28px 0; }

/* ============ PAYWALL ============ */
.nb-paywall {
  background: var(--nb-panel);
  border: 1px solid var(--nb-rule);
  padding: 32px 28px;
  margin: 20px 0;
  text-align: center;
}
.nb-paywall-marker {
  display: inline-block;
  font-family: var(--nb-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: var(--nb-accent);
  color: white;
  margin-bottom: 12px;
}
.nb-paywall h2 { font-size: 26px; margin: 0 0 10px; }
.nb-paywall p { font-size: 16px; color: var(--nb-muted); margin: 0 0 16px; }
.nb-paywall .nb-pill + .nb-pill { margin-left: 8px; }

/* Teaser: 1er párrafo visible con desvanecido hacia el muro de registro. */
.nb-article-body--teaser {
  position: relative;
  max-height: 16em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

/* ============ TAGS / CORRECTIONS ============ */
.nb-article-tags { margin: 24px 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.nb-tag {
  font-family: var(--nb-ui);
  font-size: 12px;
  background: var(--nb-panel);
  color: var(--nb-ink);
  padding: 4px 10px;
  border-radius: 999px;
}
.nb-tag:hover { background: var(--nb-ink); color: var(--nb-bg); }

.nb-corrections-box {
  margin: 28px 0;
  border-left: 3px solid var(--nb-accent);
  background: var(--nb-panel);
  padding: 14px 18px;
}
.nb-corrections-box h3 { font-size: 15px; color: var(--nb-accent); margin-bottom: 8px; }
.nb-corrections-box li { font-size: 14px; margin: 4px 0; }
.nb-corrections-box time { font-family: var(--nb-mono); font-size: 12.5px; color: var(--nb-muted); margin-right: 6px; }

.nb-article-related { margin-top: 36px; }

/* ============ COMMENTS ============ */
.nb-comments { margin-top: 40px; }
.nb-comment-form { margin: 16px 0 28px; }
.nb-comment-textarea {
  width: 100%;
  border: 1px solid var(--nb-subtle);
  background: var(--nb-bg);
  padding: 10px 12px;
  font-family: var(--nb-body);
  font-size: 15px;
  resize: vertical;
  margin-bottom: 8px;
}
.nb-comment-textarea:focus { outline: 2px solid var(--nb-accent); outline-offset: -2px; }
.nb-comments-login-cta {
  font-family: var(--nb-ui);
  font-size: 14px;
  color: var(--nb-muted);
  padding: 14px 0;
}
.nb-comments-login-cta a { color: var(--nb-accent); text-decoration: underline; }
.nb-comments-list { padding: 8px 0; }
.nb-comments-loading {
  font-family: var(--nb-mono); font-size: 12px;
  color: var(--nb-muted); padding: 18px 0; text-align: center;
}
.nb-comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--nb-subtle);
}
.nb-comment:last-child { border-bottom: 0; }
.nb-comment-head {
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--nb-ui); font-size: 12.5px;
  color: var(--nb-muted); margin-bottom: 4px;
}
.nb-comment-author { font-weight: 700; color: var(--nb-ink); }
.nb-comment-body { font-size: 15.5px; line-height: 1.5; }
.nb-comment-actions {
  display: flex; gap: 10px; margin-top: 6px;
  font-family: var(--nb-ui); font-size: 12px; color: var(--nb-muted);
}
.nb-comment-actions a { color: var(--nb-muted); }
.nb-comment-actions a:hover { color: var(--nb-accent); }
.nb-comment-replies { margin-left: 24px; border-left: 2px solid var(--nb-subtle); padding-left: 14px; margin-top: 10px; }

@media (max-width: 640px) {
  .nb-article-title { font-size: 30px; }
  .nb-article-lead { font-size: 17px; }
  .nb-article-body { font-size: 17px; }
}

/* ============ LIVE BLOG ============ */
.nb-liveblog { margin: 20px 0; padding: 18px; background: var(--nb-panel); border-left: 3px solid var(--nb-accent); }
.nb-liveblog-title { font-size: 22px; margin-bottom: 10px; }
.nb-liveblog-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--nb-ui); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--nb-accent);
  margin-bottom: 14px;
}
.nb-liveblog-status--ended { color: var(--nb-muted); }
.nb-liveblog-started { color: var(--nb-muted); font-weight: 400; }
.nb-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--nb-accent);
  animation: nb-pulse 1.4s infinite ease-in-out;
}
.nb-liveblog-entry {
  padding: 12px 0;
  border-top: 1px solid var(--nb-subtle);
}
.nb-liveblog-entry.is-pinned {
  background: rgba(177, 59, 50, 0.06);
  border-left: 2px solid var(--nb-accent);
  padding-left: 10px;
}
.nb-liveblog-entry-head {
  font-family: var(--nb-mono); font-size: 12px;
  color: var(--nb-muted); margin-bottom: 4px;
}
.nb-liveblog-entry-headline { font-size: 17px; font-weight: 700; margin: 4px 0 6px; }
.nb-liveblog-entry-body { font-size: 15px; line-height: 1.6; }
.nb-liveblog-pinned { color: var(--nb-accent); margin-left: 6px; }

/* ============ LOGIN / AUTH (NotiBae design system) ============ */
.nb-auth-page {
  display: grid;
  grid-template-columns: 460px 1fr;
  min-height: 70vh;
  background: var(--nb-bg);
  margin: 0 calc(-1 * var(--nb-pad-x, 28px));
}
.nb-auth-card {
  padding: 60px 56px;
  display: flex; flex-direction: column; gap: 14px;
  border-right: 1px solid var(--nb-subtle);
}
.nb-auth-logo {
  font-size: 38px;
  text-align: left;
  margin-bottom: 18px;
}
.nb-auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--nb-subtle);
  margin-bottom: 14px;
}
.nb-auth-tab {
  flex: 1;
  padding: 12px 0;
  text-align: center;
  font-family: var(--nb-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nb-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  background: none;
  cursor: pointer;
}
.nb-auth-tab.is-active {
  color: var(--nb-ink);
  border-bottom-color: var(--nb-accent);
}
.nb-field { display: flex; flex-direction: column; gap: 6px; }
.nb-field > span,
.nb-field > label {
  font-family: var(--nb-ui);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nb-ink);
}
.nb-field input,
.nb-field select,
.nb-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--nb-subtle);
  background: var(--nb-bg);
  font-family: var(--nb-body);
  font-size: 15px;
  outline: none;
  color: var(--nb-ink);
  width: 100%;
  border-radius: 0;
}
.nb-field input:focus,
.nb-field select:focus,
.nb-field textarea:focus { border-color: var(--nb-accent); }
.nb-field .helptext {
  font-family: var(--nb-ui);
  font-size: 11.5px;
  color: var(--nb-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.nb-field ul.errorlist {
  list-style: none;
  padding: 0; margin: 0;
  font-family: var(--nb-ui);
  font-size: 12px;
  color: var(--nb-accent);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.nb-auth-extras {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--nb-ui);
  font-size: 12px;
}
.nb-checkbox { display: flex; gap: 6px; align-items: center; cursor: pointer; color: var(--nb-muted); }
/* Casilla de aceptación de T&C en el registro (email + social). */
.nb-field--check { flex-direction: row; align-items: flex-start; gap: 10px; cursor: pointer; }
.nb-field--check input[type="checkbox"] { width: auto; flex: 0 0 auto; margin-top: 3px; }
.nb-field--check > span {
  font-family: var(--nb-ui);
  font-size: 12.5px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--nb-muted);
}
.nb-field--check > span a { color: var(--nb-accent); text-decoration: underline; }
.nb-checkbox input { accent-color: var(--nb-accent); }
.nb-auth-link { color: var(--nb-accent); cursor: pointer; }
.nb-auth-link:hover { text-decoration: underline; }
.nb-auth-cta {
  padding: 14px;
  font-size: 14px;
  margin-top: 8px;
  display: block;
  width: 100%;
  text-align: center;
}
.nb-auth-error {
  font-family: var(--nb-ui);
  font-size: 13px;
  color: #fff;
  background: var(--nb-accent);
  padding: 10px 14px;
  border-left: 3px solid var(--nb-ink);
  margin-bottom: 6px;
}
.nb-auth-divider {
  position: relative;
  text-align: center;
  margin: 6px 0;
  font-family: var(--nb-ui);
  font-size: 11px;
  color: var(--nb-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nb-auth-divider::before, .nb-auth-divider::after {
  content: "";
  position: absolute; top: 50%;
  width: 45%; height: 1px;
  background: var(--nb-subtle);
}
.nb-auth-divider::before { left: 0; }
.nb-auth-divider::after { right: 0; }
.nb-auth-providers { display: flex; flex-direction: column; gap: 8px; }
.nb-auth-providers .nb-pill { padding: 11px; text-align: center; justify-content: center; }
.nb-auth-foot {
  font-family: var(--nb-ui);
  font-size: 12.5px;
  text-align: center;
  color: var(--nb-muted);
  margin-top: 14px;
}
.nb-auth-foot a { color: var(--nb-accent); cursor: pointer; font-weight: 600; }
.nb-auth-bg {
  background: var(--nb-panel);
  background-image:
    repeating-linear-gradient(135deg, var(--nb-subtle) 0 1px, transparent 1px 16px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  border-left: 1px solid var(--nb-subtle);
}
.nb-auth-quote {
  max-width: 440px;
  text-align: left;
  background: var(--nb-bg);
  padding: 36px;
  border: 1px solid var(--nb-rule);
  border-left: 3px solid var(--nb-accent);
}
.nb-auth-quote h2 {
  font-family: var(--nb-headline-font);
  font-size: 34px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.nb-auth-quote p {
  font-size: 14.5px;
  color: var(--nb-muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .nb-auth-page { grid-template-columns: 1fr; }
  .nb-auth-bg { display: none; }
  .nb-auth-card { border-right: 0; padding: 40px 32px; }
}
@media (max-width: 480px) {
  .nb-auth-card { padding: 28px 22px; }
}

/* ───────────────────────────────────────────────────────────────────────────
   RTL — se activa con <html dir="rtl"> para lectores en hebreo (Israel).
   El navegador ya invierte el flujo de texto; acá ajustamos lo que no se
   espeja solo: alineación, márgenes lógicos y el borde del feature.
   ─────────────────────────────────────────────────────────────────────────── */
[dir="rtl"] { text-align: right; }
[dir="rtl"] .nb-feature-body,
[dir="rtl"] .nb-auth-card { text-align: right; }
[dir="rtl"] .nb-list,
[dir="rtl"] .nb-footer-col ul { padding-inline-start: 0; }
[dir="rtl"] .nb-langswitch { flex-direction: row-reverse; }
[dir="rtl"] .nb-masthead-actions { flex-direction: row-reverse; }
/* La numeración de "más leído" y viñetas quedan del lado correcto con props lógicas. */
[dir="rtl"] .nb-card,
[dir="rtl"] .nb-opinion-cols { text-align: right; }
