/* NB NOW global editorial typography system */

:root {
  /* Font family */
  --nb-font-sans: "Neue Haas Grotesk", "Helvetica Neue", Helvetica, Arial,
    sans-serif;

  /* Brand colors */
  --nb-color-navy: #12163d;
  --nb-color-accent: #f05144;
  --nb-color-body: #222222;
  --nb-color-body-secondary: #374151;
  --nb-color-muted: #6b7280;
  --nb-color-bg: #ffffff;
  --nb-color-border-subtle: #e5e7eb;
}

/* Base text */

body {
  font-family: var(--nb-font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--nb-color-body);
  background-color: var(--nb-color-bg);
}

@media (min-width: 1024px) {
  body {
    font-size: 19px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--nb-font-sans);
  color: var(--nb-color-navy);
  margin-top: 0;
}

/* Unified article headlines – NB NOW brand (navy #12163d, hover #F05144). Exception: hero over image stays white in category-archive.css */
article h1,
article h2,
article h3,
.post-title,
.entry-title,
.article-title,
.card-title,
.headline,
.lista-perfil .entry-link,
.lista-perfil .entry-link.gris,
.related-title h5,
.related-post-content a.entry-link,
.related-post-content .entry-link-2,
.nbnow-cat-card__title,
.nbnow-cat-latest__title,
.titulo-lista {
  color: #12163d;
  font-weight: 700;
}

article .entry-title a,
.post-title a,
.entry-title a,
.article-title a,
.card-title a,
.headline a,
.lista-perfil .entry-link,
.related-title h5 a,
.related-post-content a.entry-link {
  color: inherit;
  text-decoration: none;
}

article .entry-title a:hover,
.post-title a:hover,
.entry-title a:hover,
a.entry-title:hover,
.article-title a:hover,
.card-title a:hover,
.headline a:hover,
.lista-perfil .entry-link:hover,
.related-title h5 a:hover,
.related-post-content a.entry-link:hover,
.nbnow-cat-card__link:hover .nbnow-cat-card__title,
.nbnow-cat-latest__link:hover .nbnow-cat-latest__title {
  color: #f05144;
}

p {
  font-family: var(--nb-font-sans);
  color: var(--nb-color-body);
  line-height: 1.7;
  margin-bottom: 22px;
}

/* Links */

a {
  color: var(--nb-color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--nb-color-accent);
  opacity: 0.85;
}

/* Override older theme link colors in nav/footer where needed */
.site-footer a,
.site-footer a:visited {
  text-decoration: none;
}

/* 1. Site navigation */

.main-navigation a,
.nbnow-main-nav__list > li > a {
  font-family: var(--nb-font-sans);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
  font-size: 13px;
  color: var(--nb-color-navy);
}

.bg-main .main-navigation a,
.site-header.bg-main .main-navigation a,
.nbnow-header .nbnow-main-nav__list > li > a {
  color: #ffffff;
}

@media (min-width: 992px) {
  .main-navigation a,
  .nbnow-main-nav__list > li > a {
    font-size: 14px;
  }
}

.main-navigation a:hover,
.nbnow-main-nav__list > li > a:hover {
  color: var(--nb-color-accent);
}

/* 2. Homepage section labels */

.heading-home,
.mid-section-header h3,
.top-section-header h1 {
  font-family: var(--nb-font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nb-color-navy);
  line-height: 1.1;
  margin-top: 48px;
  margin-bottom: 18px;
  font-size: 16px;
}

@media (min-width: 768px) {
  .heading-home,
  .mid-section-header h3,
  .top-section-header h1 {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .heading-home,
  .mid-section-header h3,
  .top-section-header h1 {
    font-size: 18px;
  }
}

.top-section-header.row {
  align-items: center;
}

.top-section-header.row .heading-home::before,
.top-section-header.row .heading-home::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background-color: var(--nb-color-border-subtle);
  vertical-align: middle;
  margin: 0 8px;
}

/* 3–5. Homepage lead + secondary headlines & deks */

/* Lead story headline in #topnews – first article h2 */
#topnews .row article:first-of-type h2 {
  font-family: var(--nb-font-sans);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--nb-color-navy);
  margin-top: 14px;
  margin-bottom: 12px;
  font-size: 30px;
}

@media (min-width: 768px) {
  #topnews .row article:first-of-type h2 {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  #topnews .row article:first-of-type h2 {
    font-size: 44px;
  }
}

/* Secondary story headlines */
#topnews .row article h5,
.post-top-title h5,
.lista-perfil .entry-link,
.lista-perfil .entry-link.gris {
  font-family: var(--nb-font-sans);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--nb-color-navy);
  font-size: 18px;
}

@media (min-width: 768px) {
  #topnews .row article h5,
  .post-top-title h5,
  .lista-perfil .entry-link,
  .lista-perfil .entry-link.gris {
    font-size: 21px;
  }
}

@media (min-width: 1024px) {
  #topnews .row article h5,
  .post-top-title h5,
  .lista-perfil .entry-link,
  .lista-perfil .entry-link.gris {
    font-size: 24px;
  }
}

#topnews .row article h5 a,
.post-top-title h5 a {
  color: inherit;
  text-decoration: none;
}

#topnews .row article h5 a:hover,
.post-top-title h5 a:hover {
  color: var(--nb-color-accent);
}

/* Homepage story excerpts / deks */
#topnews .small-parragraph,
#topnews .text-left.small-parragraph,
#topnews .entry-header p,
#topnews p.text-left,
.lista-perfil p {
  font-family: var(--nb-font-sans);
  font-weight: 400;
  line-height: 1.5;
  color: var(--nb-color-body-secondary);
  font-size: 16px;
  /* Ensure body text does NOT inherit the +10px headline tracking from .entry-title */
  letter-spacing: 0;
  /* Prevent stretched/justified text on mobile – keep left-aligned, normal word spacing */
  text-align: left;
  word-spacing: normal;
}

/* Mobile: force left-aligned text, no justified stretch (fixes wide word gaps on small viewports) */
@media (max-width: 767px) {
  #topnews p,
  #topnews .entry-header p,
  #topnews .small-parragraph,
  #topnews .text-left,
  #topnews .text-left.small-parragraph {
    text-align: left !important;
    word-spacing: normal;
    hyphens: none;
  }
}

@media (min-width: 768px) {
  #topnews .small-parragraph,
  #topnews .text-left.small-parragraph,
  .lista-perfil p {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  #topnews .small-parragraph,
  #topnews .text-left.small-parragraph,
  .lista-perfil p {
    font-size: 18px;
  }
}

/* 6–11. Article page typography */

/* Article layout widths */
.single-post .post-text.entry-content,
.single-post .meta-autor,
.single-post .titulo-secundario {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.single-post h1.gris {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.single-post .titulo-secundario {
  max-width: 760px;
}

/* Article H1 */
.single-post h1.gris {
  font-family: var(--nb-font-sans);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--nb-color-navy);
  margin-bottom: 16px;
  font-size: 34px;
}

@media (min-width: 768px) {
  .single-post h1.gris {
    font-size: 46px;
  }
}

@media (min-width: 1024px) {
  .single-post h1.gris {
    font-size: 56px;
  }
}

/* Article dek / subheadline */
.single-post .titulo-secundario {
  font-family: var(--nb-font-sans);
  font-weight: 400;
  line-height: 1.42;
  color: var(--nb-color-body-secondary);
  margin-bottom: 24px;
  font-size: 18px;
}

@media (min-width: 768px) {
  .single-post .titulo-secundario {
    font-size: 20px;
  }
}

@media (min-width: 1024px) {
  .single-post .titulo-secundario {
    font-size: 22px;
  }
}

/* Byline / meta */
.single-post .meta-autor small {
  font-family: var(--nb-font-sans);
  font-weight: 500;
  line-height: 1.4;
  color: var(--nb-color-muted);
  font-size: 13px;
}

@media (min-width: 768px) {
  .single-post .meta-autor small {
    font-size: 14px;
  }
}

.single-post .meta-autor {
  margin-bottom: 24px;
}

/* Body text */
.single-post .post-text.entry-content p {
  font-family: var(--nb-font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: 0;
  color: var(--nb-color-body);
  margin-bottom: 22px;
}

@media (min-width: 768px) {
  .single-post .post-text.entry-content p {
    font-size: 19px;
  }
}

@media (min-width: 1024px) {
  .single-post .post-text.entry-content p {
    font-size: 20px;
  }
}

.single-post .post-text.entry-content a {
  color: var(--nb-color-accent);
}

.single-post .post-text.entry-content a:hover {
  opacity: 0.85;
}

/* Article subheadings */
.single-post .post-text.entry-content h2 {
  font-family: var(--nb-font-sans);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--nb-color-navy);
  margin-top: 42px;
  margin-bottom: 14px;
  font-size: 24px;
}

@media (min-width: 768px) {
  .single-post .post-text.entry-content h2 {
    font-size: 27px;
  }
}

@media (min-width: 1024px) {
  .single-post .post-text.entry-content h2 {
    font-size: 30px;
  }
}

.single-post .post-text.entry-content h3 {
  font-family: var(--nb-font-sans);
  font-weight: 600;
  line-height: 1.28;
  color: var(--nb-color-navy);
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 20px;
}

@media (min-width: 768px) {
  .single-post .post-text.entry-content h3 {
    font-size: 22px;
  }
}

@media (min-width: 1024px) {
  .single-post .post-text.entry-content h3 {
    font-size: 24px;
  }
}

/* 12. Captions */

.caption-foto {
  font-family: var(--nb-font-sans);
  font-weight: 400;
  line-height: 1.45;
  color: var(--nb-color-muted);
  font-size: 12px;
}

@media (min-width: 768px) {
  .caption-foto {
    font-size: 13px;
  }
}

/* 13. Related story titles */

.related-title h5,
.related-post-content a,
.related-post-content .entry-link-2 {
  font-family: var(--nb-font-sans);
  font-weight: 600;
  line-height: 1.24;
  color: var(--nb-color-navy);
  font-size: 16px;
}

@media (min-width: 768px) {
  .related-title h5,
  .related-post-content a,
  .related-post-content .entry-link-2 {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .related-title h5,
  .related-post-content a,
  .related-post-content .entry-link-2 {
    font-size: 18px;
  }
}

.related-title h5 a,
.related-post-content a {
  text-decoration: none;
}

.related-title h5 a:hover,
.related-post-content a:hover {
  color: var(--nb-color-accent);
}

/* 14. Category labels / tags */

.post-category,
.lista-perfil .post-category,
.entry-meta .cat-links a {
  font-family: var(--nb-font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--nb-color-navy);
  font-size: 11px;
}

@media (min-width: 1024px) {
  .post-category,
  .lista-perfil .post-category,
  .entry-meta .cat-links a {
    font-size: 12px;
  }
}

/* 14b. Single article – category badge and right rail (NB NOW premium editorial) */

/* Article category label: editorial badge above headline */
.single-post .article-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: #12163d;
  border-radius: 2px;
  margin-bottom: 16px;
  text-decoration: none;
}

.single-post .article-category-badge:hover {
  background: #f05144;
  color: #ffffff;
  opacity: 1;
}

.single-post .article-category-badge .post-category {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0;
  line-height: 1.2;
  background: transparent;
}

@media (min-width: 1024px) {
  .single-post .article-category-badge {
    font-size: 13px;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
  }
  .single-post .article-category-badge .post-category {
    font-size: 13px;
  }
}

/* "The Latest" sidebar module heading – editorial rail label */
.single-post .sidebar-latest-rail .related-title {
  background: #12163d;
  color: #ffffff;
  padding: 8px 14px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.single-post .sidebar-latest-rail .related-title h5 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

/* Sidebar story cards: navy headlines, red hover, spacing */
.single-post .sidebar-latest-rail .related-post-content a,
.single-post .sidebar-latest-rail .related-post-content .title-gray {
  color: #12163d !important;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  text-decoration: none;
}

.single-post .sidebar-latest-rail .related-post-content a:hover,
.single-post .sidebar-latest-rail .related-post-content .title-gray:hover {
  color: #f05144 !important;
}

@media (min-width: 768px) {
  .single-post .sidebar-latest-rail .related-post-content a,
  .single-post .sidebar-latest-rail .related-post-content .title-gray {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .single-post .sidebar-latest-rail .related-post-content a,
  .single-post .sidebar-latest-rail .related-post-content .title-gray {
    font-size: 18px;
  }
}

.single-post .sidebar-latest-rail .lista-perfil li {
  margin-bottom: 20px;
}

.single-post .sidebar-latest-rail .related-post-content {
  border-bottom: 1px solid var(--nb-color-border-subtle);
  padding-bottom: 0;
}

.single-post .sidebar-latest-rail .lista-perfil li:last-child .related-post-content {
  border-bottom: none;
}

/* 15. Buttons */

.btn,
button,
input[type="submit"],
input[type="button"] {
  font-family: var(--nb-font-sans);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: 14px;
}

/* 16. Footer typography */

.nbnow-footer__heading {
  font-family: var(--nb-font-sans);
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
}

.nbnow-footer__list a {
  font-family: var(--nb-font-sans);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.nbnow-footer__list a:hover,
.nbnow-footer__bottom-links a:hover {
  color: var(--nb-color-accent);
}

.nbnow-footer__bottom-links a {
  font-family: var(--nb-font-sans);
  font-weight: 400;
  font-size: 13px;
}

/* 18–19. Readability layout helpers */

.single-post .post-text.entry-content,
.single-post h1.gris,
.single-post .titulo-secundario {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 992px) {
  .single-post .post-text.entry-content,
  .single-post h1.gris,
  .single-post .titulo-secundario {
    padding-left: 0;
    padding-right: 0;
  }
}

