/* ==========================================================================
   SERWISY LOKALNE - MODERN MUNICIPAL DESIGN SYSTEM (CSS)
   Target: Clean, fast (CWV LCP/INP < 100ms), accessible (WCAG 2.1 AA)
   ========================================================================== */

:root {
  /* Default Color Palette (Overridden per-gmina in theme-*.css) */
  --color-primary: #0f4c81;
  --color-primary-hover: #0a355c;
  --color-primary-light: #f0f7ff;
  --color-secondary: #0284c7;
  --color-accent: #d97706;
  --color-accent-light: #fffbeb;

  --color-success: #16a34a;
  --color-warning: #ea580c;
  --color-danger: #dc2626;

  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-border: #e2e8f0;
  
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;

  /* Fonts & Radius */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 25px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-hover: 0 14px 28px -4px rgba(15, 76, 129, 0.12), 0 6px 12px -2px rgba(0, 0, 0, 0.04);

  /* Container */
  --container-max: 1240px;
}

/* WCAG High Contrast Theme Support */
body.high-contrast {
  --color-bg: #000000;
  --color-surface: #121212;
  --color-surface-hover: #1e1e1e;
  --color-border: #ffffff;
  --color-text: #ffffff;
  --color-text-muted: #ffff00;
  --color-primary: #ffff00;
  --color-primary-light: #333300;
  --color-accent: #00ffff;
}

/* Large Font Scale Support */
body.font-lg { font-size: 112.5%; }
body.font-xl { font-size: 125%; }

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  text-decoration: underline;
}

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

/* Skip link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.top-bar {
  background: #0f172a;
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.accessibility-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-wcag {
  background: transparent;
  border: 1px solid #475569;
  color: #f8fafc;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}
.btn-wcag:hover {
  background: #334155;
}
.header-main .btn-wcag {
  color: var(--color-primary);
}
.header-main .btn-wcag:hover {
  color: #ffffff;
}

/* Branding & Nav */
.header-main {
  padding: 0.85rem 0;
}
.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-logo {
  height: 50px;
  width: auto;
}

/* Main Navigation */
.main-nav {
  background: var(--color-primary);
  color: #ffffff;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.2rem;
  align-items: center;
  position: relative;
}
.nav-item {
  position: relative;
}
.nav-item a,
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  padding: 0.75rem 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-icon {
  opacity: 0.85;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}
.nav-item:hover .nav-icon {
  opacity: 1;
  transform: translateY(-1px);
}
.nav-caret {
  opacity: 0.7;
  transition: transform 0.2s ease;
  margin-left: 0.15rem;
}
.nav-item:hover .nav-caret,
.nav-item.has-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-item a:hover,
.nav-dropdown-btn:hover,
.nav-item.active a,
.nav-item.active .nav-dropdown-btn {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  list-style: none;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown li a {
  color: var(--color-text);
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: none;
}
.nav-dropdown li a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.dropdown-icon {
  color: var(--color-primary);
  opacity: 0.85;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

/* Emergency Ticker Banner */
.emergency-banner {
  background: #fef2f2;
  border-left: 4px solid var(--color-danger);
  color: #991b1b;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  padding: 4.2rem 0 3.2rem 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.92) 0%, rgba(2, 132, 199, 0.78) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero-subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
}

/* Global Search Bar */
.search-box {
  display: flex;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
}
.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.search-box button {
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
}
.search-box button:hover {
  background: #b45309;
}

/* Page Layout Grid */
.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  margin-bottom: 3rem;
}
.layout-full {
  grid-template-columns: 1fr;
}

/* Section Titles */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 0.5rem;
}
.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}
.section-link {
  font-size: 0.88rem;
  font-weight: 700;
}

/* ==========================================================================
   EDITORIAL MAGAZINE NEWS MODULE
   ========================================================================== */
.news-magazine-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Featured Lead Story (Left) */
.news-lead-card {
  background: 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.25s ease, box-shadow 0.25s ease;
}
.news-lead-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.news-lead-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  overflow: hidden;
}
.news-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-lead-card:hover .news-lead-media img {
  transform: scale(1.035);
}
.news-lead-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-pill-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
  margin-bottom: 0.75rem;
}
.news-lead-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.news-lead-title a {
  color: var(--color-text);
}
.news-lead-title a:hover {
  color: var(--color-primary);
}
.news-lead-excerpt {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

/* Side News Feed (Right) */
.news-side-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.news-side-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.news-side-item:hover {
  transform: translateX(3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.news-side-thumb {
  width: 90px;
  height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface-hover);
  flex-shrink: 0;
}
.news-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-side-thumb-fallback {
  width: 90px;
  height: 75px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #e0f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.news-side-content {
  flex: 1;
  min-width: 0;
}
.news-side-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  display: block;
}
.news-side-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-side-title a {
  color: var(--color-text);
}
.news-side-title a:hover {
  color: var(--color-primary);
}
.news-side-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* Fallback graphic banner for news without media */
.news-fallback-banner {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.news-fallback-banner svg {
  opacity: 0.25;
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 120px;
  height: 120px;
}

/* Cards Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Standard Card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.card-media {
  height: 180px;
  background-color: #e2e8f0;
  position: relative;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card:hover .card-media img {
  transform: scale(1.03);
}
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}
.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.75rem;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.card-title a {
  color: var(--color-text);
}
.card-title a:hover {
  color: var(--color-primary);
}
.card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex: 1;
}
.card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Category Quick Badges Grid */
.category-badges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.category-badge-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
}
.category-badge-card:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
  text-decoration: none;
}
.category-badge-icon {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.category-badge-card:hover .category-badge-icon {
  transform: scale(1.08);
  background: #ffffff;
}
.category-badge-icon img, .category-badge-icon svg {
  width: 24px;
  height: 24px;
}

/* Sidebar Widgets */
.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 0.4rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.widget-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  stroke-width: 2px;
  flex-shrink: 0;
  color: var(--color-primary);
}
.inline-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -0.12em;
  stroke-width: 2px;
  flex-shrink: 0;
  color: currentColor;
}

/* Weather Widget */
.weather-card {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.weather-temp {
  font-size: 2.25rem;
  font-weight: 800;
}
.weather-cond {
  font-size: 0.95rem;
  opacity: 0.9;
}
.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 0.75rem;
}

/* Map Embed Container */
.map-container {
  height: 320px;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   EDITORIAL SUBPAGES & PROSE SYSTEM
   ========================================================================== */

/* Subpage Main Content Surface */
.subpage-article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.page-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.page-header-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-bg);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-weight: 500;
}

.page-title {
  font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.35rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.page-lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 1.75rem;
  max-width: 75ch;
  text-wrap: pretty;
}
.page-lead p + p {
  margin-top: 0.85rem;
}

.page-subtitle-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Rich Editorial Typography (.prose) */
.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 76ch;
  overflow-wrap: break-word;
}

.prose p {
  margin-bottom: 1.25rem;
  text-wrap: pretty;
}
.prose p:last-child {
  margin-bottom: 0;
}

.prose > p:first-of-type {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #1e293b;
  font-weight: 450;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 0.85rem 0;
  padding-left: 0.85rem;
  border-left: 4px solid var(--color-primary);
  text-wrap: balance;
}
.prose h2:first-child {
  margin-top: 0.25rem;
}

.prose h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin: 1.75rem 0 0.65rem 0;
  text-wrap: balance;
}

.prose ul,
.prose ol {
  margin: 1rem 0 1.5rem 0;
  padding-left: 1.5rem;
}

.prose ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.55rem;
}

.prose ul li {
  position: relative;
  padding: 0.65rem 1rem 0.65rem 2.2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  line-height: 1.55;
  font-size: 0.96rem;
  text-wrap: pretty;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 1.1rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.prose ol li {
  margin-bottom: 0.5rem;
  padding-left: 0.35rem;
  text-wrap: pretty;
}

.prose a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(15, 76, 129, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
.prose a:hover {
  text-decoration-color: var(--color-primary);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.15rem 1.35rem;
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text);
  font-style: italic;
  text-wrap: pretty;
}

/* Info Panels & Fact Grids (Kontakt, Statystyki, Fakty) */
.info-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.info-panel-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--color-primary-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.fact-tile {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.94rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.fact-tile strong,
.fact-tile dt {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.fact-tile dd {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

/* Provenance & Source Verification Box */
.source-box {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-top: 2rem;
}
.source-box ul {
  margin: 0.5rem 0 0 1.25rem;
  display: grid;
  gap: 0.25rem;
}
.source-box a {
  font-weight: 600;
}

/* Back / Directory Navigation Link */
.back-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.15rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.back-pill-link:hover {
  background: #dbeafe;
  text-decoration: none;
  transform: translateX(-2px);
}

/* Category & Education Jump Pills */
.jump-pills-nav {
  margin-bottom: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.jump-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.jump-pills-list a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.15s ease;
}
.jump-pills-list a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
}

/* Comparison Tables & Cards */
.comparisons-callout {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.comparisons-callout h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}
.comparisons-callout ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.comparisons-callout li {
  font-size: 0.95rem;
}
.comparisons-callout a {
  font-weight: 700;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.94rem;
}
.data-table caption {
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: 0 0 0.65rem 0;
}
.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.data-table thead th {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: none;
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:nth-child(even) {
  background: var(--color-bg);
}
.data-table tbody tr:hover {
  background: var(--color-primary-light);
}
.data-table tbody th[scope="row"] {
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

/* Listing Card Practical Metadata */
.card-meta-list {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

/* Breadcrumbs */
.breadcrumbs-nav {
  padding: 0.9rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}
.breadcrumbs-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumbs-list li::after {
  content: "›";
  margin-left: 0.4rem;
  color: var(--color-text-light);
  font-weight: 600;
}
.breadcrumbs-list li:last-child::after {
  content: "";
}
.breadcrumbs-list li:last-child span {
  color: var(--color-text);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: auto;
  font-size: 0.9rem;
}
.footer-top {
  padding: 3.5rem 0 2.5rem 0;
  border-bottom: 1px solid #1e293b;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
}
.footer-title {
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #cbd5e1;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dc2626;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 0.5rem;
}
.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  .news-magazine-layout {
    grid-template-columns: 1fr;
  }
  .category-badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .subpage-article-card {
    padding: 1.35rem;
  }
  .info-panel {
    padding: 1.15rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .category-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0;
  }
  .nav-list.open {
    display: flex;
  }
  .nav-item {
    width: 100%;
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
  }
  .nav-dropdown li a {
    color: #ffffff;
  }
}

/* Reporter invitation belongs to the homepage sidebar, above weather. */
.reporter-banner {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border: 1px solid #174d78;
  border-radius: var(--radius-md);
  background: #103b60;
  color: #fff;
  box-shadow: 0 6px 20px rgba(15, 59, 96, .1);
}
.reporter-banner-art { display: block; width: 100%; height: 112px; object-fit: cover; }
.reporter-banner-copy { padding: .1rem 1.25rem 1.25rem; }
.reporter-banner-label { display: block; margin-bottom: .5rem; color: #f5bf68; font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.reporter-banner h2 { margin: 0 0 .6rem; color: #fff; font-size: 1.3rem; line-height: 1.25; }
.reporter-banner p { margin: 0; color: #dce9f4; font-size: .85rem; line-height: 1.55; }
.reporter-banner-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: .7rem .9rem;
  border: 1px solid #f5bf68;
  border-radius: var(--radius-sm);
  background: #f5bf68;
  color: #102f49;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}
.reporter-banner-cta:hover { background: #ffce87; border-color: #ffce87; color: #102f49; }
.reporter-banner-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.prose .reporter-photo { margin: 1.5rem 0; }
.prose .reporter-photo img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose .reporter-photo figcaption,
.prose .reporter-photo-credit { display: block; color: var(--color-text-muted); font-size: .8rem; }

