/*
Theme Name: QDAY News
Theme URI: https://qday.eu
Author: QDAY Team & Antigravity
Author URI: https://qday.eu
Description: High-performance, bespoke news platform theme engineered for Israel continuous reporting, intelligence briefs, fast Core Web Vitals, and modular NRK-style editorial floors with seamless edge-to-edge imagery.
Version: 1.8.0
Text Domain: qday-news
*/

/* ==========================================================================
   CSS CUSTOM PROPERTIES & DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand Palette */
  --color-brand-primary: #0284c7;    /* Vibrant Blue */
  --color-brand-primary-hover: #0369a1;
  --color-brand-dark: #0f172a;       /* Deep Slate/Navy */
  --color-brand-surface: #1e293b;    /* Header & Dark Elements */
  --color-brand-accent: #e11d48;     /* Breaking / Live Red */
  
  /* Neutrals & UI */
  --color-bg: #f8fafc;              /* Crisp background */
  --color-surface: #ffffff;         /* Cards & Containers */
  --color-surface-subtle: #f1f5f9;  /* Secondary background */
  --color-text-main: #0f172a;        /* High-contrast body text */
  --color-text-secondary: #475569;   /* Metadata & excerpts */
  --color-text-muted: #94a3b8;       /* Timestamps & dividers */
  --color-border: #e2e8f0;          /* Clean hairline borders */
  --color-border-subtle: #f1f5f9;

  /* AI & Intelligence Highlights */
  --color-ai-bg: #eff6ff;
  --color-ai-border: #bfdbfe;
  --color-ai-text: #1e40af;

  /* Typography */
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Spacing */
  --max-width-site: 1260px;
  --max-width-article: 820px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.09), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   GLOBAL RESETS & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

a:hover {
  color: var(--color-brand-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width-site);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-article);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   TOP BAR & LIVE BREAKING TICKER
   ========================================================================== */
.site-topbar {
  background-color: var(--color-brand-dark);
  color: #f8fafc;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.topbar-date {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.breaking-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  max-width: 75%;
}

.breaking-badge {
  background-color: var(--color-brand-accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pulse-dot {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.breaking-ticker-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e2e8f0;
  font-weight: 500;
}

.breaking-ticker-text a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-brand-dark);
  line-height: 1;
}

.brand-title span {
  color: var(--color-brand-primary);
}

.brand-subtitle {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ==========================================================================
   NAVIGATION & ACCESSIBLE DROPDOWN MENUS
   ========================================================================== */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-menu,
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu > li {
  position: relative;
  list-style: none;
}

.nav-menu > li > a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding: 0.6rem 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--color-brand-primary);
}

.nav-menu > li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-brand-primary);
  border-radius: 2px;
}

/* Dropdown Chevron Indicator */
.nav-menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 3px;
  margin-top: -2px;
  transition: transform 0.2s ease;
}

.nav-menu li.menu-item-has-children:hover > a::after,
.nav-menu li.menu-item-has-children:focus-within > a::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* Submenu Dropdown Box */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu li.is-active > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu .sub-menu li {
  width: 100%;
  list-style: none;
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-brand-dark);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-menu .sub-menu li:last-child a {
  border-bottom: none;
}

.nav-menu .sub-menu li a:hover,
.nav-menu .sub-menu li.current-menu-item a {
  background-color: var(--color-surface-subtle);
  color: var(--color-brand-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-trigger-btn {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
}

.search-trigger-btn:hover {
  background: #e2e8f0;
  color: var(--color-brand-dark);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-brand-dark);
  cursor: pointer;
}

/* ==========================================================================
   NRK-STYLE EDITORIAL FLOORS & FULL-BLEED IMAGERY
   ========================================================================== */
.home-news-wrapper {
  padding-top: 2rem;
  padding-bottom: 4.5rem;
}

/* Floor Container */
.nrk-floor {
  margin-bottom: 3rem;
}

.nrk-floor-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-brand-dark);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.nrk-floor-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--color-brand-dark);
  text-transform: uppercase;
}

.nrk-floor-subtitle {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Category Badge */
.category-badge {
  display: inline-block;
  background-color: var(--color-brand-primary);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  width: fit-content;
}

.category-badge:hover {
  background-color: var(--color-brand-primary-hover);
  color: #ffffff;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: auto;
}

.meta-dot {
  width: 3px;
  height: 3px;
  background-color: var(--color-text-muted);
  border-radius: 50%;
}

/* ==========================================================================
   FLOOR 1: LEAD DUPLEX FLOOR (60/40 Asymmetric Lead Split - Full Bleed)
   ========================================================================== */
.nrk-lead-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
}

.nrk-lead-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nrk-lead-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nrk-lead-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 240px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.nrk-lead-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.nrk-lead-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}

.nrk-lead-card:hover .nrk-lead-thumb img {
  transform: scale(1.03);
}

.nrk-lead-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nrk-lead-title {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-brand-dark);
  margin-bottom: 0.65rem;
}

.nrk-lead-title a:hover {
  color: var(--color-brand-primary);
}

.nrk-lead-excerpt {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Secondary Lead Card */
.nrk-secondary-lead-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nrk-secondary-lead-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nrk-secondary-lead-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.nrk-secondary-lead-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.nrk-secondary-lead-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}

.nrk-secondary-lead-card:hover .nrk-secondary-lead-thumb img {
  transform: scale(1.03);
}

.nrk-secondary-lead-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nrk-secondary-lead-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-brand-dark);
  margin-bottom: 0.5rem;
}

.nrk-secondary-lead-title a:hover {
  color: var(--color-brand-primary);
}

/* ==========================================================================
   FLOOR 2: NRK ASYMMETRIC FLOOR (Feature Card + Side-by-Side Row Teasers)
   ========================================================================== */
.nrk-asym-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.75rem;
  align-items: stretch;
}

/* Left: Vertical / Editorial Feature Card */
.nrk-feature-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nrk-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nrk-feature-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  background-color: #e2e8f0;
  overflow: hidden;
}

.nrk-feature-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.nrk-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}

.nrk-feature-card:hover .nrk-feature-thumb img {
  transform: scale(1.03);
}

.nrk-feature-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nrk-feature-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--color-brand-dark);
  margin-bottom: 0.5rem;
}

.nrk-feature-title a:hover {
  color: var(--color-brand-primary);
}

/* Right: Stack of Side-by-Side Row Cards (artwork-on-left-side) */
.nrk-row-stack {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 100%;
  justify-content: space-between;
  overflow: hidden;
}

.nrk-row-card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.15s ease;
}

.nrk-row-card:last-child {
  border-bottom: none;
}

.nrk-row-card:hover {
  background-color: var(--color-surface-subtle);
}

.nrk-row-thumb {
  width: 130px;
  height: 100px;
  min-width: 130px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #e2e8f0;
}

.nrk-row-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.nrk-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 0.2s ease;
}

.nrk-row-card:hover .nrk-row-thumb img {
  transform: scale(1.04);
}

.nrk-row-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.nrk-row-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-brand-dark);
  margin-bottom: 0.35rem;
}

.nrk-row-title a:hover {
  color: var(--color-brand-primary);
}

.nrk-row-excerpt {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   FLOOR 3: CONTINUOUS DISPATCHES (3-Column Categorized Grid - Full Bleed)
   ========================================================================== */
.nrk-dispatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.nrk-dispatch-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nrk-dispatch-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nrk-dispatch-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 190px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.nrk-dispatch-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.nrk-dispatch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}

.nrk-dispatch-card:hover .nrk-dispatch-thumb img {
  transform: scale(1.03);
}

.nrk-dispatch-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nrk-dispatch-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: var(--color-brand-dark);
}

.nrk-dispatch-title a:hover {
  color: var(--color-brand-primary);
}

.nrk-dispatch-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ==========================================================================
   SINGLE ARTICLE VIEW & AI METADATA
   ========================================================================== */
.single-article-wrap {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--color-brand-dark);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.reading-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--color-brand-primary);
}

.article-featured-image {
  margin: 1.75rem 0 2rem 0;
  display: block;
}

.article-featured-image .image-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: #0f172a;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-featured-image img {
  max-height: 550px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.image-caption-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem 0.25rem 0.25rem;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  border-bottom: 1px solid #f1f5f9;
}

.image-caption-bar .caption-credit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.image-caption-bar .license-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
}

/* AI Key Takeaways Box */
.ai-summary-box {
  background: var(--color-ai-bg);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--color-brand-primary);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.ai-summary-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ai-text);
  margin-bottom: 0.75rem;
}

.ai-summary-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #1e3a8a;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.ai-summary-list li {
  margin-bottom: 0.4rem;
}

.ai-summary-list li:last-child {
  margin-bottom: 0;
}

/* Source Attribution Badge */
.source-attribution-badge {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.source-label {
  color: var(--color-text-secondary);
}

.source-link {
  font-weight: 700;
  color: var(--color-brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.source-link:hover {
  text-decoration: underline;
}

/* Named Entity Tags Cloud */
.entities-cloud {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.entities-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.entities-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entity-pill {
  background-color: var(--color-surface-subtle);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.entity-pill:hover {
  background-color: var(--color-brand-primary);
  color: #ffffff;
  border-color: var(--color-brand-primary);
}

/* Article Content Typography */
.article-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #1e293b;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-brand-dark);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-body blockquote {
  border-left: 4px solid var(--color-brand-primary);
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-brand-dark);
  color: #cbd5e1;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand h3 span {
  color: var(--color-brand-primary);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links li a {
  color: #94a3b8;
  font-size: 0.9375rem;
}

.footer-links li a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .nrk-lead-grid {
    grid-template-columns: 1fr;
  }
  .nrk-asym-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .header-nav.mobile-active {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .header-nav.mobile-active .nav-menu {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nrk-row-card {
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }
  .nrk-row-thumb {
    width: 105px;
    height: 80px;
    min-width: 105px;
  }
  .nrk-dispatch-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .topbar-date {
    display: none;
  }
  .breaking-ticker-wrap {
    max-width: 100%;
  }
  .article-title {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY & PERFORMANCE UTILITIES
   ========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  clip: auto !important;
  clip-path: none;
  color: var(--color-brand-primary);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.nrk-dispatch-grid {
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}
