/* ==========================================================================
   ZACHODNIAK.PL – Wersja testowa layoutu w stylu Interia.pl (/test-interia/)
   W pełni odizolowane klasy .zi-* oraz body.zi-layout (zero wpływu na /)
   ========================================================================== */

body.zi-layout {
  --zn-font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --zn-font-display: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --zn-font-serif: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-family: var(--zn-font-sans);
  background-color: #F4F6F8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[data-theme="dark"] body.zi-layout {
  background-color: #0B121D;
}

/* Lekka, czytelna typografia w stylu Interii (Roboto 400/500 zamiast ciężkiego 800) */
body.zi-layout .zi-lead-overlay-title {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.24;
}
body.zi-layout .zi-mid-card-title,
body.zi-layout .zi-sub-card-title {
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}
body.zi-layout .zi-right-title {
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.34;
}
body.zi-layout .zn-sec-title {
  font-weight: 500;
  letter-spacing: -0.01em;
}
body.zi-layout .zn-card-title {
  font-weight: 500;
  font-size: 17px;
  line-height: 1.34;
  letter-spacing: -0.005em;
}
body.zi-layout .zn-compact-title,
body.zi-layout .zn-desk-item-title,
body.zi-layout .zn-brief-title,
body.zi-layout .zn-side-title {
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.36;
}
body.zi-layout .zn-desk-col-head h3,
body.zi-layout .zn-directory-head h2,
body.zi-layout .zn-article-title,
body.zi-layout .zn-sub-hero h1,
body.zi-layout .zn-weather-head h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
body.zi-layout .zn-card-excerpt,
body.zi-layout .zn-compact-excerpt {
  font-weight: 400;
  line-height: 1.54;
}

.zi-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   1. MOBILNY BANER msDJ.pl NAD CAŁOŚCIĄ (jak baner nad nagłówkiem w Interii)
   ========================================================================== */
.zi-mobile-top-banner {
  display: none;
  background: #071226;
  width: 100%;
  position: relative;
  line-height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.zi-mobile-top-banner a {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.zi-mobile-top-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 76px;
  object-fit: cover;
  object-position: center;
}
.zi-banner-tag {
  position: absolute;
  top: 3px;
  right: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 2px;
  pointer-events: none;
}

/* ==========================================================================
   2. GŁÓWNY BIAŁY NAGŁÓWEK (DESKTOP + MOBILE)
   ========================================================================== */
.zi-header {
  background: #FFFFFF;
  border-bottom: 2px solid #1B3F6E;
  position: sticky;
  top: 0;
  z-index: 65;
  box-shadow: 0 2px 12px rgba(27, 63, 110, 0.08);
}
html[data-theme="dark"] .zi-header {
  background: #0F1A2A;
  border-bottom-color: #2E5F9E;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.zi-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

/* Logo (ciemne na białym tle w trybie dziennym, białe w trybie nocnym) */
.zi-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 0;
}
.zi-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.zi-logo-for-dark {
  display: none;
}
html[data-theme="dark"] .zi-logo-for-light {
  display: none;
}
html[data-theme="dark"] .zi-logo-for-dark {
  display: block;
}

/* Pogoda od razu dla Szczecina i Koszalina */
.zi-weather-duo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #0F172A;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.16s ease;
}
.zi-weather-duo:hover {
  background: #F4F7FA;
  color: #0F172A;
}
html[data-theme="dark"] .zi-weather-duo {
  color: #F1F5F9;
}
html[data-theme="dark"] .zi-weather-duo:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.zi-weather-city {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.zi-weather-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.zi-weather-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}
.zi-weather-top {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.zi-weather-now {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748B;
  text-transform: uppercase;
}
html[data-theme="dark"] .zi-weather-now {
  color: #94A3B8;
}
.zi-weather-temp {
  font-family: var(--zn-font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}
html[data-theme="dark"] .zi-weather-temp {
  color: #FFFFFF;
}
.zi-weather-name {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #334155;
  text-transform: uppercase;
}
html[data-theme="dark"] .zi-weather-name {
  color: #CBD5E1;
}
.zi-weather-sep {
  width: 1px;
  height: 28px;
  background: #DCE3EC;
  flex-shrink: 0;
}
html[data-theme="dark"] .zi-weather-sep {
  background: #253854;
}

/* Czysta wyszukiwarka z podkreśleniem jak w Interii */
.zi-search-inline {
  flex: 1 1 180px;
  max-width: 270px;
  min-width: 130px;
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid #94A3B8;
  padding-bottom: 4px;
  transition: border-color 0.16s ease;
}
.zi-search-inline:focus-within {
  border-bottom-color: #1B3F6E;
}
html[data-theme="dark"] .zi-search-inline {
  border-bottom-color: #475569;
}
html[data-theme="dark"] .zi-search-inline:focus-within {
  border-bottom-color: #60A5FA;
}
.zi-search-inline input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--zn-font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #0F172A;
  padding: 4px 6px 4px 0;
}
.zi-search-inline input::placeholder {
  color: #64748B;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
html[data-theme="dark"] .zi-search-inline input {
  color: #F1F5F9;
}
html[data-theme="dark"] .zi-search-inline input::placeholder {
  color: #94A3B8;
}
.zi-search-inline button {
  border: none;
  background: transparent;
  color: #1B3F6E;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.16s ease, transform 0.14s ease;
}
.zi-search-inline button:hover {
  color: #DC2626;
  transform: scale(1.06);
}
html[data-theme="dark"] .zi-search-inline button {
  color: #93C5FD;
}

/* Ikonki nawigacyjne po prawej: NAJNOWSZE, SPORT, KULTURA, MENU */
.zi-icon-nav {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.zi-icon-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 56px;
  padding: 6px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #1B3F6E;
  text-decoration: none;
  font-family: var(--zn-font-sans);
  transition: color 0.16s ease, transform 0.14s ease;
}
.zi-icon-link:hover,
.zi-icon-link.is-active,
.zi-icon-link[aria-expanded="true"] {
  color: #B91C1C;
}
html[data-theme="dark"] .zi-icon-link {
  color: #E2E8F0;
}
html[data-theme="dark"] .zi-icon-link:hover,
html[data-theme="dark"] .zi-icon-link.is-active,
html[data-theme="dark"] .zi-icon-link[aria-expanded="true"] {
  color: #60A5FA;
}

.zi-icon-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}
.zi-icon-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #1E293B;
  text-transform: uppercase;
  white-space: nowrap;
}
.zi-icon-link:hover .zi-icon-label,
.zi-icon-link.is-active .zi-icon-label,
.zi-icon-link[aria-expanded="true"] .zi-icon-label {
  color: #B91C1C;
}
html[data-theme="dark"] .zi-icon-label {
  color: #CBD5E1;
}
html[data-theme="dark"] .zi-icon-link:hover .zi-icon-label,
html[data-theme="dark"] .zi-icon-link.is-active .zi-icon-label,
html[data-theme="dark"] .zi-icon-link[aria-expanded="true"] .zi-icon-label {
  color: #93C5FD;
}

/* Kompaktowa pogoda na białej belce mobilnej (Szczecin + Koszalin obok siebie / w 2 liniach) */
.zi-mobile-weather {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #F4F7FA;
  border: 1px solid #DCE3EC;
  color: #0F172A;
  text-decoration: none;
  line-height: 1.15;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.zi-mobile-weather:hover {
  background: #EAF0F7;
  border-color: #B8C7DC;
  color: #0F172A;
}
html[data-theme="dark"] .zi-mobile-weather {
  background: #172438;
  border-color: #263A54;
  color: #F1F5F9;
}
.zi-mw-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.zi-mw-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.zi-mw-ico svg {
  width: 15px;
  height: 15px;
  display: block;
}
.zi-mw-city {
  font-size: 10.5px;
  font-weight: 500;
  color: #475569;
}
html[data-theme="dark"] .zi-mw-city {
  color: #CBD5E1;
}
.zi-mw-temp {
  font-size: 11.5px;
  font-weight: 700;
  color: #1B3F6E;
}
html[data-theme="dark"] .zi-mw-temp {
  color: #93C5FD;
}
.zi-mw-sep {
  width: 1px;
  height: 16px;
  background: #CBD5E1;
  flex-shrink: 0;
}
html[data-theme="dark"] .zi-mw-sep {
  background: #2C4160;
}

.zi-menu-trigger .zi-ico-close {
  display: none;
}
.zi-menu-trigger[aria-expanded="true"] .zi-ico-bars {
  display: none;
}
.zi-menu-trigger[aria-expanded="true"] .zi-ico-close {
  display: block;
}

/* Mobilne przyciski w nagłówku (ukryte na desktopie) */
.zi-mobile-actions {
  display: none;
  align-items: center;
  gap: 6px;
}
.zi-mob-ico-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #1B3F6E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.zi-mob-ico-btn:hover {
  background: #F1F5F9;
  color: #B91C1C;
}
html[data-theme="dark"] .zi-mob-ico-btn {
  color: #E2E8F0;
}
html[data-theme="dark"] .zi-mob-ico-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   3. ROZWIJANE MEGA-MENU DESKTOPOWE (WSZYSTKIE MIASTA + DZIAŁY)
   ========================================================================== */
.zi-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 2px solid #1B3F6E;
  border-bottom: 1px solid #D8E0EA;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
  z-index: 66;
  padding: 24px 0 26px;
}
html[data-theme="dark"] .zi-mega-menu {
  background: #111D2E;
  border-top-color: #3B82F6;
  border-bottom-color: #22324A;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.52);
}
.zi-mega-menu[hidden] {
  display: none;
}

.zi-mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 38, 0.42);
  z-index: 60;
}
.zi-mega-backdrop[hidden] {
  display: none;
}

.zi-mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.zi-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--zn-border);
}
.zi-mega-head h3 {
  margin: 0;
  font-family: var(--zn-font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--zn-ink);
}
.zi-mega-head a {
  font-size: 12px;
  font-weight: 700;
  color: var(--zn-crimson);
}

.zi-mega-cities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.zi-mega-city-link {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  background: #F6F8FB;
  border: 1px solid #E5EBF2;
  color: #0F172A;
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.14s ease;
}
.zi-mega-city-link:hover {
  background: #1B3F6E;
  border-color: #1B3F6E;
  color: #FFFFFF;
  transform: translateY(-1px);
}
html[data-theme="dark"] .zi-mega-city-link {
  background: #18263A;
  border-color: #263A54;
  color: #E2E8F0;
}
html[data-theme="dark"] .zi-mega-city-link:hover {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
}

.zi-mega-side-col {
  border-left: 1px solid var(--zn-border);
  padding-left: 28px;
}
.zi-mega-links {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}
.zi-mega-links a {
  display: block;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zn-body);
}
.zi-mega-links a:hover {
  background: var(--zn-surface-soft);
  color: var(--zn-crimson);
}

.zi-mega-tools {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--zn-border);
}
.zi-mega-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--zn-border-strong);
  background: var(--zn-surface-soft);
  color: var(--zn-ink);
  font-family: var(--zn-font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.zi-mega-theme-btn:hover {
  border-color: var(--zn-baltic);
  background: var(--zn-paper);
}
.zi-mega-orig-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--zn-muted);
  text-align: center;
}
.zi-mega-orig-link:hover {
  color: var(--zn-crimson);
}

/* ==========================================================================
   4. MOBILNY PASEK "NOWE" POD BIAŁYM NAGŁÓWKIEM (jak w Interia mobile)
   ========================================================================== */
.zi-mobile-ticker {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E9F0;
}
html[data-theme="dark"] .zi-mobile-ticker {
  background: #131E2E;
  border-bottom-color: #22324A;
}
.zi-mobile-ticker-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  min-height: 40px;
}
.zi-mt-badge {
  font-family: var(--zn-font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #1D4ED8;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 10px;
  border-right: 1px solid #E2E8F0;
}
html[data-theme="dark"] .zi-mt-badge {
  color: #60A5FA;
  border-right-color: #263A54;
}
.zi-mt-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0F172A;
  transition: opacity 0.2s ease;
}
.zi-mt-link.is-switching {
  opacity: 0;
}
html[data-theme="dark"] .zi-mt-link {
  color: #F1F5F9;
}
.zi-mt-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.zi-mt-time {
  font-size: 11.5px;
  font-weight: 700;
  color: #1D4ED8;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}
html[data-theme="dark"] .zi-mt-time {
  color: #93C5FD;
}

/* ==========================================================================
   5. GÓRNA SEKCJA "WYDARZENIA DNIA" (MOZAIKA 3-KOLUMNOWA INTERII)
   ========================================================================== */
.zi-top-band {
  background: #F2F4F7;
  padding: 20px 0 28px;
  border-bottom: 1px solid #E2E8F0;
}
html[data-theme="dark"] .zi-top-band {
  background: #0D1624;
  border-bottom-color: #1E2E45;
}

.zi-top-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.zi-top-title {
  margin: 0;
  font-family: var(--zn-font-sans);
  font-size: 27px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #111827;
  text-transform: uppercase;
}
html[data-theme="dark"] .zi-top-title {
  color: #F1F5F9;
}

.zi-quick-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.zi-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 4px;
  background: #E5E9F0;
  color: #1E293B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.zi-pill:hover {
  background: #1B3F6E;
  color: #FFFFFF;
}
html[data-theme="dark"] .zi-pill {
  background: #1A283C;
  color: #CBD5E1;
}
html[data-theme="dark"] .zi-pill:hover {
  background: #2563EB;
  color: #FFFFFF;
}

/* 3-kolumnowa mozaika desktopowa */
.zi-hero-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 18px;
  align-items: stretch;
}

/* KOLUMNA 1: Duże zdjęcie z tytułem nałożonym na dole */
.zi-lead-overlay {
  position: relative;
  min-height: 452px;
  border-radius: 6px;
  overflow: hidden;
  background: #0F172A;
  border: 1px solid rgba(27, 63, 110, 0.25);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.zi-lead-overlay-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  color: #FFFFFF;
  text-decoration: none;
}
.zi-lead-overlay-media {
  position: absolute;
  inset: 0;
}
.zi-lead-overlay-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.zi-lead-overlay:hover .zi-lead-overlay-media img {
  transform: scale(1.03);
}
.zi-lead-overlay-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 32, 0.04) 28%,
    rgba(10, 18, 32, 0.45) 62%,
    rgba(7, 13, 24, 0.92) 100%
  );
  pointer-events: none;
}
.zi-lead-overlay-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 24px 20px;
  z-index: 2;
}
.zi-overlay-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.84);
}
.zi-overlay-cat {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.zi-lead-overlay-title {
  margin: 0 0 14px;
  font-family: var(--zn-font-display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.zi-lead-overlay:hover .zi-lead-overlay-title {
  color: #E0F2FE;
}
.zi-lead-progress {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.24);
  position: relative;
  overflow: hidden;
}
.zi-lead-progress::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 24%;
  background: #3B82F6;
}

/* KOLUMNA 2: 2 średnie karty ze zdjęciem w tle */
.zi-hero-mid-col {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.zi-mid-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #0F172A;
  min-height: 215px;
}
.zi-mid-card-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: #FFFFFF;
  text-decoration: none;
}
.zi-mid-card-media {
  position: absolute;
  inset: 0;
}
.zi-mid-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.zi-mid-card:hover .zi-mid-card-media img {
  transform: scale(1.04);
}
.zi-mid-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 32, 0.02) 20%,
    rgba(10, 18, 32, 0.56) 62%,
    rgba(7, 13, 24, 0.93) 100%
  );
  pointer-events: none;
}
.zi-mid-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 15px;
  z-index: 2;
}
.zi-mid-cat {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(12, 26, 50, 0.74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #FFFFFF;
}
.zi-mid-card-title {
  margin: 0;
  font-family: var(--zn-font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.28;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.48);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zi-mid-card:hover .zi-mid-card-title {
  color: #E0F2FE;
}

/* KOLUMNA 3: Granatowy bałtycki panel Zachodniaka ("Najważniejsze teraz") */
.zi-hero-right-col.zi-baltic-panel {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #193A66 0%, #122A4B 100%);
  border: 1px solid #1E4475;
  border-top: 3px solid var(--zn-crimson);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 31, 58, 0.16);
  color: #FFFFFF;
}
html[data-theme="dark"] .zi-hero-right-col.zi-baltic-panel {
  background: linear-gradient(180deg, #16335A 0%, #0F2442 100%);
  border-color: #2A5284;
}

.zi-baltic-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  background: rgba(10, 22, 42, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}
.zi-baltic-panel-head h2 {
  margin: 0;
  font-family: var(--zn-font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.zi-baltic-panel-head h2::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28);
  flex-shrink: 0;
}
.zi-baltic-panel-head a {
  font-size: 11.5px;
  font-weight: 600;
  color: #93C5FD;
  white-space: nowrap;
}
.zi-baltic-panel-head a:hover {
  color: #FFFFFF;
}

.zi-hero-right-list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zi-right-row {
  flex: 1;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 11px;
  padding: 8px 14px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.16s ease;
}
.zi-right-row:last-child {
  border-bottom: none;
}
.zi-right-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.zi-right-thumb {
  display: block;
  width: 84px;
  height: 54px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}
.zi-right-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.zi-right-row:hover .zi-right-thumb img {
  transform: scale(1.05);
}
.zi-right-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.zi-right-title {
  margin: 0;
  font-family: var(--zn-font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zi-right-title a {
  color: #FFFFFF;
}
.zi-right-title a:hover {
  color: #93C5FD;
}
.zi-right-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #B8CCE4;
}
.zi-right-meta span {
  font-weight: 700;
  color: #FCA5A5;
}

/* DOLNY RZĄD SEKCJI GÓRNEJ: 3 karty zdjęciowe */
.zi-sub-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.zi-sub-card {
  position: relative;
  aspect-ratio: 16 / 9.5;
  border-radius: 4px;
  overflow: hidden;
  background: #0F172A;
}
.zi-sub-card-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: #FFFFFF;
  text-decoration: none;
}
.zi-sub-card-media {
  position: absolute;
  inset: 0;
}
.zi-sub-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.zi-sub-card:hover .zi-sub-card-media img {
  transform: scale(1.04);
}
.zi-sub-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 32, 0.04) 24%,
    rgba(10, 18, 32, 0.54) 62%,
    rgba(7, 13, 24, 0.92) 100%
  );
}
.zi-sub-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px 15px;
  z-index: 2;
}
.zi-sub-card-title {
  margin: 0;
  font-family: var(--zn-font-display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.zi-sub-card:hover .zi-sub-card-title {
  color: #E0F2FE;
}

/* ==========================================================================
   6. DESKTOPOWY BANER msDJ.pl + SPÓJNE WYKOŃCZENIE SEKCJI PONIŻEJ
   ========================================================================== */
.zi-desktop-banner-wrap {
  padding: 22px 0 4px;
}
.zi-desktop-banner {
  display: block;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--zn-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  line-height: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.zi-desktop-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
}
.zi-desktop-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.zi-portal-below {
  padding-top: 22px;
}

/* Spójne bałtyckie obramówki i subtelne akcenty kolorystyczne w sekcjach poniżej */
body.zi-layout .zn-card {
  border-radius: 8px;
  border: 1px solid rgba(27, 63, 110, 0.16);
  border-top: 2px solid rgba(27, 63, 110, 0.34);
}
body.zi-layout .zn-card:hover {
  border-color: rgba(27, 63, 110, 0.32);
  border-top-color: #1B3F6E;
}
html[data-theme="dark"] body.zi-layout .zn-card {
  border-color: rgba(96, 165, 250, 0.16);
  border-top-color: rgba(96, 165, 250, 0.38);
}

body.zi-layout .zn-side-card,
body.zi-layout .zn-compact-wrap {
  border-radius: 8px;
  border: 1px solid rgba(27, 63, 110, 0.22);
  border-top: 3px solid var(--zn-baltic);
}
html[data-theme="dark"] body.zi-layout .zn-side-card,
html[data-theme="dark"] body.zi-layout .zn-compact-wrap {
  border-color: rgba(96, 165, 250, 0.22);
  border-top-color: #3B82F6;
}

body.zi-layout .zn-side-card .zn-panel-head {
  background: linear-gradient(180deg, rgba(27, 63, 110, 0.08) 0%, rgba(27, 63, 110, 0.02) 100%);
  border-bottom: 1px solid rgba(27, 63, 110, 0.16);
}
html[data-theme="dark"] body.zi-layout .zn-side-card .zn-panel-head {
  background: rgba(30, 71, 122, 0.24);
  border-bottom-color: #243B59;
}

/* 3 dolne kolumny miast regionu – subtelne ramki i bałtyckie rozróżnienie */
body.zi-layout .zn-desk-col {
  border-radius: 8px;
  border: 1px solid rgba(27, 63, 110, 0.24);
  border-top: 3px solid #1B3F6E;
}
body.zi-layout .zn-desk-col:nth-child(2) {
  border-color: rgba(14, 90, 138, 0.25);
  border-top-color: #0E5A8A;
}
body.zi-layout .zn-desk-col:nth-child(3) {
  border-color: rgba(44, 82, 130, 0.24);
  border-top-color: #2C5282;
}
body.zi-layout .zn-desk-col-head {
  border-bottom: 1px solid rgba(27, 63, 110, 0.18);
}
body.zi-layout .zn-desk-col:nth-child(2) .zn-desk-col-head {
  border-bottom-color: rgba(14, 90, 138, 0.2);
}
html[data-theme="dark"] body.zi-layout .zn-desk-col {
  border-color: rgba(96, 165, 250, 0.24);
  border-top-color: #3B82F6;
}
html[data-theme="dark"] body.zi-layout .zn-desk-col:nth-child(2) {
  border-color: rgba(56, 189, 248, 0.25);
  border-top-color: #0EA5E9;
}
html[data-theme="dark"] body.zi-layout .zn-desk-col:nth-child(3) {
  border-color: rgba(129, 140, 248, 0.24);
  border-top-color: #6366F1;
}

/* Katalog powiatów i działów na dole */
body.zi-layout .zn-directory {
  border-radius: 8px;
  border: 1px solid rgba(27, 63, 110, 0.24);
  border-top: 3px solid var(--zn-baltic);
}
body.zi-layout .zn-dir-pill {
  border-color: rgba(27, 63, 110, 0.16);
  border-left: 3px solid rgba(27, 63, 110, 0.42);
}
body.zi-layout .zn-dir-pill:hover {
  border-color: var(--zn-baltic);
  border-left-color: var(--zn-crimson-soft);
}
html[data-theme="dark"] body.zi-layout .zn-directory {
  border-color: rgba(96, 165, 250, 0.22);
  border-top-color: #3B82F6;
}
html[data-theme="dark"] body.zi-layout .zn-dir-pill {
  border-color: rgba(96, 165, 250, 0.18);
  border-left-color: rgba(96, 165, 250, 0.5);
}

body.zi-layout .zn-sec-header {
  border-bottom: 2px solid var(--zn-baltic);
}
body.zi-layout .zn-sec-title::before {
  background: var(--zn-baltic);
}
body.zi-layout .zi-mid-card,
body.zi-layout .zi-sub-card {
  border-radius: 6px;
  border: 1px solid rgba(27, 63, 110, 0.24);
}

/* ==========================================================================
   6B. GRANATOWE I BORDOWE BOKSY ZACHODNIAKA (jak prawa kolumna HERO)
       – Kultura i Ciekawostki, Więcej z ostatnich godzin, Sport (granat)
       – Technologia i Nauka (głębokie, stonowane bordo z wyczuciem)
   ========================================================================== */
body.zi-layout .zn-side-card--culture,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list),
body.zi-layout .zi-baltic-card,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2),
body.zi-layout .zi-baltic-box {
  background: linear-gradient(180deg, #193A66 0%, #122A4B 100%) !important;
  border: 1px solid #1E4475 !important;
  border-top: 3px solid var(--zn-crimson) !important;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(15, 31, 58, 0.16);
}
html[data-theme="dark"] body.zi-layout .zn-side-card--culture,
html[data-theme="dark"] body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list),
html[data-theme="dark"] body.zi-layout .zi-baltic-card,
html[data-theme="dark"] body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2),
html[data-theme="dark"] body.zi-layout .zi-baltic-box {
  background: linear-gradient(180deg, #16335A 0%, #0F2442 100%) !important;
  border-color: #2A5284 !important;
}

/* Nagłówki granatowych boksów (Kultura i Ciekawostki + Sport w Regionie) */
body.zi-layout .zn-side-card--culture .zn-panel-head,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-panel-head,
body.zi-layout .zi-baltic-card .zn-panel-head,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-panel-head {
  background: rgba(10, 22, 42, 0.36) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}
body.zi-layout .zn-side-card--culture .zn-panel-head h3,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-panel-head h3,
body.zi-layout .zi-baltic-card .zn-panel-head h3,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-panel-head h3 {
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.zi-layout .zn-side-card--culture .zn-panel-head h3::before,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-panel-head h3::before,
body.zi-layout .zi-baltic-card .zn-panel-head h3::before,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-panel-head h3::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  flex-shrink: 0;
}
body.zi-layout .zn-side-card--culture .zn-panel-head a,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-panel-head a,
body.zi-layout .zi-baltic-card .zn-panel-head a,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-panel-head a {
  color: #93C5FD;
}
body.zi-layout .zn-side-card--culture .zn-panel-head a:hover,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-panel-head a:hover,
body.zi-layout .zi-baltic-card .zn-panel-head a:hover,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-panel-head a:hover {
  color: #FFFFFF;
}

/* Wiersze wewnątrz Kultura i Ciekawostki oraz Sport w Regionie */
body.zi-layout .zn-side-card--culture .zn-side-row,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-side-row,
body.zi-layout .zi-baltic-card .zn-brief-row,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-brief-row {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
body.zi-layout .zn-side-card--culture .zn-side-row:hover,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-side-row:hover,
body.zi-layout .zi-baltic-card .zn-brief-row:hover,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-brief-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
body.zi-layout .zn-side-card--culture .zn-side-thumb,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-side-thumb,
body.zi-layout .zi-baltic-card .zn-brief-thumb,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-brief-thumb {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}
body.zi-layout .zn-side-card--culture .zn-side-title,
body.zi-layout .zn-side-card--culture .zn-side-title a,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-side-title,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-side-title a,
body.zi-layout .zi-baltic-card .zn-brief-title,
body.zi-layout .zi-baltic-card .zn-brief-title a,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-brief-title,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-brief-title a {
  color: #FFFFFF;
}
body.zi-layout .zn-side-card--culture .zn-side-title a:hover,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-side-title a:hover,
body.zi-layout .zi-baltic-card .zn-brief-title a:hover,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-brief-title a:hover {
  color: #93C5FD;
}
body.zi-layout .zn-side-card--culture .zn-date,
body.zi-layout .zn-sidebar > .zn-side-card:has(.zn-side-list) .zn-date,
body.zi-layout .zi-baltic-card .zn-date,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(2) .zn-date {
  color: #B8CCE4;
}

/* Boks "Technologia i Nauka" – eleganckie, głębokie bordo (z wyczuciem, w parze z granatem) */
body.zi-layout .zi-bordeaux-card,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) {
  background: linear-gradient(180deg, #6B1827 0%, #49101B 100%) !important;
  border: 1px solid #822235 !important;
  border-top: 3px solid #1B3F6E !important;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(73, 16, 27, 0.18);
}
html[data-theme="dark"] body.zi-layout .zi-bordeaux-card,
html[data-theme="dark"] body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) {
  background: linear-gradient(180deg, #5A1522 0%, #3B0D16 100%) !important;
  border-color: #88263A !important;
  border-top-color: #3B82F6 !important;
}
body.zi-layout .zi-bordeaux-card .zn-panel-head,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-panel-head {
  background: rgba(34, 6, 12, 0.36) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}
body.zi-layout .zi-bordeaux-card .zn-panel-head h3,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-panel-head h3 {
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.zi-layout .zi-bordeaux-card .zn-panel-head h3::before,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-panel-head h3::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60A5FA;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.28);
  flex-shrink: 0;
}
body.zi-layout .zi-bordeaux-card .zn-panel-head a,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-panel-head a {
  color: #FECDD3;
}
body.zi-layout .zi-bordeaux-card .zn-panel-head a:hover,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-panel-head a:hover {
  color: #FFFFFF;
}
body.zi-layout .zi-bordeaux-card .zn-brief-row,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-brief-row {
  border-bottom-color: rgba(255, 255, 255, 0.13);
}
body.zi-layout .zi-bordeaux-card .zn-brief-row:hover,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-brief-row:hover {
  background: rgba(255, 255, 255, 0.06);
}
body.zi-layout .zi-bordeaux-card .zn-brief-thumb,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-brief-thumb {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
body.zi-layout .zi-bordeaux-card .zn-brief-title,
body.zi-layout .zi-bordeaux-card .zn-brief-title a,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-brief-title,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-brief-title a {
  color: #FFFFFF;
}
body.zi-layout .zi-bordeaux-card .zn-brief-title a:hover,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-brief-title a:hover {
  color: #FECDD3;
}
body.zi-layout .zi-bordeaux-card .zn-date,
body.zi-layout .zn-desks-2col > .zn-side-card:nth-child(1) .zn-date {
  color: #F5C2C7;
}

/* Sekcja "Więcej z ostatnich godzin" (#zn-compact-wrap) na granatowym tle */
body.zi-layout .zi-baltic-box {
  padding: 0;
  overflow: hidden;
}
body.zi-layout .zi-baltic-box .zn-compact-head {
  margin: 0;
  padding: 14px 22px;
  background: rgba(10, 22, 42, 0.36);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
body.zi-layout .zi-baltic-box .zn-compact-head h3 {
  color: #FFFFFF;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.zi-layout .zi-baltic-box .zn-compact-head h3::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  flex-shrink: 0;
}
body.zi-layout .zi-baltic-box .zn-compact-head a {
  color: #93C5FD;
}
body.zi-layout .zi-baltic-box .zn-compact-head a:hover {
  color: #FFFFFF;
}
body.zi-layout .zi-baltic-box .zn-compact-list {
  padding: 4px 18px 8px;
}
body.zi-layout .zi-baltic-box .zn-compact-card {
  padding: 14px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
body.zi-layout .zi-baltic-box .zn-compact-card:last-child {
  border-bottom: none;
}
body.zi-layout .zi-baltic-box .zn-compact-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}
body.zi-layout .zi-baltic-box .zn-compact-thumb {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
body.zi-layout .zi-baltic-box .zn-cat-badge {
  background: rgba(220, 38, 38, 0.26);
  color: #FECACA;
  border-color: rgba(239, 68, 68, 0.45);
}
body.zi-layout .zi-baltic-box .zn-cat-badge:hover {
  background: #DC2626;
  color: #FFFFFF;
}
body.zi-layout .zi-baltic-box .zn-date {
  color: #B8CCE4;
}
body.zi-layout .zi-baltic-box .zn-compact-title,
body.zi-layout .zi-baltic-box .zn-compact-title a {
  color: #FFFFFF;
}
body.zi-layout .zi-baltic-box .zn-compact-title a:hover {
  color: #93C5FD;
}
body.zi-layout .zi-baltic-box .zn-compact-excerpt {
  color: #CBD5E1;
}

@media (max-width: 767px) {
  body.zi-layout .zi-baltic-box .zn-compact-head {
    padding: 12px 16px;
  }
  body.zi-layout .zi-baltic-box .zn-compact-list {
    padding: 4px 14px 8px;
  }
}

/* ==========================================================================
   7. MOBILNY DRAWER (POGODA + SIATKA 20 MIAST) I DOLNY PASEK NAWIGACJI
   ========================================================================== */
.zi-drawer-weather {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #F4F7FA;
  border: 1px solid #DCE3EC;
  color: #0F172A;
}
html[data-theme="dark"] .zi-drawer-weather {
  background: #18263A;
  border-color: #263A54;
  color: #F1F5F9;
}
.zi-dw-city {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.zi-dw-city strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}
.zi-dw-city span {
  font-size: 13px;
  font-weight: 800;
  color: #1B3F6E;
}
html[data-theme="dark"] .zi-dw-city span {
  color: #93C5FD;
}
.zi-dw-sep {
  width: 1px;
  height: 28px;
  background: #CBD5E1;
}
html[data-theme="dark"] .zi-dw-sep {
  background: #2E4463;
}

.zi-drawer-sec-title {
  font-family: var(--zn-font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zn-muted);
  margin-bottom: 8px;
}
.zi-drawer-cities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.zi-drawer-cities a {
  display: block;
  padding: 7px 9px;
  border-radius: 5px;
  background: var(--zn-surface-soft);
  border: 1px solid var(--zn-border);
  color: var(--zn-ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zi-drawer-cities a:hover {
  background: #1B3F6E;
  border-color: #1B3F6E;
  color: #FFFFFF;
}

/* Dolny pasek nawigacji mobilnej w stylu Interii */
.zi-mobile-bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 78;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.09);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}
html[data-theme="dark"] .zi-mobile-bottom-nav {
  background: #0F1A2A;
  border-top-color: #22324A;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
}

.zi-mbn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 2px;
  border: none;
  background: transparent;
  color: #1E293B;
  font-family: var(--zn-font-sans);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.zi-mbn-item:hover {
  color: #1B3F6E;
}
html[data-theme="dark"] .zi-mbn-item {
  color: #CBD5E1;
}
.zi-mbn-ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  color: #1B3F6E;
}
html[data-theme="dark"] .zi-mbn-ico {
  color: #93C5FD;
}
.zi-mbn-count {
  position: absolute;
  top: -4px;
  right: -10px;
  min-width: 17px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: #DC2626;
  color: #FFFFFF;
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

/* Środkowe wypukłe koło Home (znak rozpoznawczy Interii mobile) */
.zi-mbn-home {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.zi-mbn-home-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1B3F6E;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(27, 63, 110, 0.35);
  transform: translateY(-10px);
  margin-bottom: -8px;
}
html[data-theme="dark"] .zi-mbn-home-circle {
  background: #2563EB;
  border-color: #0F1A2A;
}

/* ==========================================================================
   8. RESPONSYWNOŚĆ (TABLET & MOBILE)
   ========================================================================== */

/* Średni desktop (1024px - 1200px): delikatne ściśnięcie nagłówka */
@media (max-width: 1200px) and (min-width: 1024px) {
  .zi-header-inner {
    gap: 14px;
  }
  .zi-logo-img {
    height: 44px;
  }
  .zi-weather-duo {
    gap: 10px;
    padding: 4px 8px;
  }
  .zi-icon-nav {
    gap: 12px;
  }
  .zi-icon-link {
    min-width: 48px;
  }
  .zi-hero-mosaic {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 14px;
  }
  .zi-lead-overlay-title {
    font-size: 23px;
  }
}

/* Tablet & Mobile (<= 1023px): układ mobilny z banerem msDJ nad całością */
@media (max-width: 1023px) {
  .zi-mobile-top-banner {
    display: block;
  }
  .zi-desktop-banner-wrap {
    display: none;
  }
  .zi-weather-duo,
  .zi-search-inline,
  .zi-icon-nav,
  .zi-mega-menu,
  .zi-mega-backdrop {
    display: none !important;
  }
  .zi-mobile-actions {
    display: inline-flex;
  }
  .zi-mobile-weather {
    display: inline-flex;
  }
  .zi-mobile-ticker {
    display: block;
  }
  .zi-header-inner {
    min-height: 58px;
    gap: 10px;
  }
  .zi-logo-img {
    height: 38px;
  }

  /* Tablet: 2 kolumny na górze + granatowy panel pod spodem (2 kolumny wpisów) */
  .zi-hero-mosaic {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 14px;
  }
  .zi-hero-right-col.zi-baltic-panel {
    grid-column: 1 / -1;
  }
  .zi-hero-right-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .zi-hero-right-list .zi-right-row {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
  .zi-hero-right-list .zi-right-row:nth-child(even) {
    border-right: none;
  }
  .zi-lead-overlay {
    min-height: 360px;
  }
  .zi-mid-card {
    min-height: 172px;
  }
}

/* Dolny pasek mobilny (<= 960px) + przesunięcie przycisków pływających nad pasek */
@media (max-width: 960px) {
  .zi-mobile-bottom-nav {
    display: grid;
  }
  body.zi-layout {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
  body.zi-layout .zn-wa-fab {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  body.zi-layout:has(#zn-wa-fab) .zn-back-top {
    bottom: calc(138px + env(safe-area-inset-bottom, 0px));
  }
  body.zi-layout .zn-back-top {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  body.zi-layout .zn-pwa-banner.is-visible {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* Smartfony (<= 767px): 1:1 mobilny układ jak na zrzucie Interii */
@media (max-width: 767px) {
  .zi-container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .zi-header-inner {
    min-height: 54px;
    gap: 8px;
  }
  .zi-logo-img {
    height: 32px;
  }
  .zi-mobile-weather {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 3px 8px;
  }
  .zi-mw-sep {
    display: none;
  }
  .zi-mw-ico {
    width: 13px;
    height: 13px;
  }
  .zi-mw-ico svg {
    width: 13px;
    height: 13px;
  }
  .zi-mw-city {
    font-size: 10px;
  }
  .zi-mw-temp {
    font-size: 10.5px;
  }
  .zi-mobile-actions {
    gap: 2px;
  }
  .zi-mob-ico-btn {
    width: 34px;
    height: 34px;
  }
  .zi-top-band {
    padding: 16px 0 20px;
    background: #F4F5F7;
  }
  html[data-theme="dark"] .zi-top-band {
    background: #0D1624;
  }

  .zi-top-head {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }
  .zi-top-title {
    font-size: 22px;
    text-align: center;
    letter-spacing: 0.03em;
  }
  .zi-quick-pills {
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
  }
  .zi-quick-pills::-webkit-scrollbar {
    display: none;
  }
  .zi-pill {
    background: transparent;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #1E293B;
    position: relative;
  }
  html[data-theme="dark"] .zi-pill {
    background: transparent;
    color: #CBD5E1;
  }

  /* 1-kolumnowa mozaika: pełna szerokość hero + poziome wiersze poniżej */
  .zi-hero-mosaic {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .zi-lead-overlay {
    margin-left: -14px;
    margin-right: -14px;
    border-radius: 0;
    min-height: 256px;
  }
  .zi-lead-overlay-content {
    padding: 18px 16px 16px;
  }
  .zi-lead-overlay-title {
    font-size: 20px;
    line-height: 1.24;
    margin-bottom: 8px;
  }

  /* Na mobile karty ze środkowej kolumny zamieniają się w czyste poziome wiersze (miniatura lewo + tytuł prawo) */
  .zi-hero-mid-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .zi-mid-card {
    min-height: 0;
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px solid #E5E9F0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  }
  html[data-theme="dark"] .zi-mid-card {
    background: #131E2E;
    border-color: #22324A;
  }
  .zi-mid-card-link {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    color: #0F172A;
  }
  .zi-mid-card-media {
    position: relative;
    inset: auto;
    width: 126px;
    height: 84px;
    border-radius: 4px;
    overflow: hidden;
  }
  .zi-mid-card-scrim {
    display: none;
  }
  .zi-mid-card-content {
    position: static;
    padding: 0;
  }
  .zi-mid-card .zi-mid-cat {
    background: var(--zn-cat-bg);
    color: var(--zn-cat-text);
    border: 1px solid rgba(185, 28, 28, 0.16);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    padding: 2px 7px;
    margin-bottom: 5px;
  }
  .zi-mid-card-title {
    font-family: var(--zn-font-sans);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
    text-shadow: none;
    -webkit-line-clamp: 3;
  }
  html[data-theme="dark"] .zi-mid-card-title {
    color: #F1F5F9;
  }

  .zi-hero-right-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .zi-hero-right-list .zi-right-row {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .zi-hero-right-list .zi-right-row:last-child {
    border-bottom: none;
  }
  .zi-right-thumb {
    width: 98px;
    height: 64px;
  }
  .zi-right-title {
    font-size: 13.5px;
    font-weight: 700;
    -webkit-line-clamp: 3;
  }

  .zi-sub-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 12px;
  }
  .zi-sub-card {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }
  .zi-sub-card-title {
    font-size: 15.5px;
  }

  .zi-portal-below {
    padding-top: 16px;
  }
}
