@charset "utf-8";
/* ==========================================================================
   ZINTEGROWANY ARKUSZ CSS (Layout, Tekst, Tabele & Responsywność)
   ========================================================================== */

/* --------------------------------------------------------------------------
   [KONFIGURACJA STRONY] - Zmień te wartości indywidualnie dla każdej domeny
   -------------------------------------------------------------------------- */
:root {
  /* Krój czcionki (zostanie wymuszony globalnie, nadpisując stary kod HTML) */
/*  --main-font: 'Graphite Light CE ATT', Arial, sans-serif; */
  --main-font: 'Lucida Casual CE', Arial, sans-serif; 
  
  /* Główny kolor tekstu na stronie */
  --main-color: #000099;
  
  /* Kolor odnośników (linków) */
  --link-color: #000099;
  
  /* Ścieżka do obrazka tła dla tej konkretnej strony */
  --bg-image-url: url(/image/backgroundCH.jpg);
}

/* ==========================================================================
   1. GŁÓWNY UKŁAD STRONY (Zabezpieczony przed rozjeżdżaniem na smartfonach)
   ========================================================================== */
body {
  margin: 0 auto;
  padding: 0;
  background: transparent var(--bg-image-url) repeat scroll center;
  
  /* POPRAWIONE: Maksymalna szerokość na PC to 1000px, ale na telefonie 100% */
  width: 100% !important;
  max-width: 1000px !important;
  
  font-family: var(--main-font) !important;
  color: var(--main-color) !important;
  margin-bottom: 0.5em !important;
  box-sizing: border-box;
}

/* Struktura blokowa (Oczyszczona z pozostałości po programie KompoZer) */
#outer {
  margin: auto;
  width: 100%;
  background-color: transparent;
}

#hdr, #bar, #ftr {
  background: transparent none repeat scroll 0% 50%;
  height: auto;
}

#bodyblock {
  padding: 0;
  position: relative;
  width: 100%;
}

#ftr {
  margin: 0 0 5pt;
}

/* ==========================================================================
   2. GLOBALNY RESET I WYMUSZENIE ROZMIARÓW TEKSTU (Komputery PC)
   ========================================================================== */

/* Bezkompromisowe ujednolicenie i zmniejszenie bazy tekstowej w chaosie kodu */
body, p, td, span, div, li, a {
  font-family: var(--main-font) !important;
  
  /* Bezwzględne nadpisywanie starych rozmiarów na komputerach */
  font-size: 13px !important;
  line-height: 1.3 !important;
  margin-top: 2px !important;
  margin-bottom: 2px !important;
  padding: 1px !important;
  
  /* Ochrona przed rozciąganiem układu przez długie słowa */
  word-wrap: break-word !important;
  box-sizing: border-box !important;
}

/* Nagłówki i pogrubienia (Wersja kompaktowa z ujednoliconym rozmiarem) */
h1, h2, h3, h4, h5, h6, b, strong, big {
  font-family: var(--main-font) !important;
  color: var(--main-color) !important;
  font-size: 15px !important;
  font-weight: bold !important;
  font-style: normal !important;
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

h6 {
  font-style: italic !important; /* Subtelne wyróżnienie najniższego stopnia */
}

/* ==========================================================================
   3. SPECJALNE KLASY TEKSTOWE I STARSZE ZNACZNIKI HTML
   ========================================================================== */
p.large {
  font-size: 16px !important;
  line-height: 1.4 !important;
}

small, p.byline, .sidebar p, .menu-nav, .menu-nav a, td a {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

p.byline {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

p.caption {
  font-size: 10px !important;
  margin-top: 2px !important;
  margin-bottom: 4px !important;
}

center {
  display: block !important;
  text-align: center !important; /* Współczesne zastąpienie tagu <center> */
}

/* ==========================================================================
   4. LINKI, OBRAZKI I RETRO TABELE
   ========================================================================== */
a {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

a:hover {
  text-decoration: underline !important;
}

img, a img {
  border: none !important;
  outline: none !important; /* Usuwa stare niebieskie obwódki */
}

table {
  border-collapse: collapse !important; /* Wymusza przyleganie komórek starych tabel */
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}

/* ==========================================================================
   5. OPTYMALIZACJA MOBILNA (RWD - Aktywuje się automatycznie na telefonach)
   ========================================================================== */

/* TABLETY (Ekrany poniżej 1024px szerokości) */
@media screen and (max-width: 1023px) {
  table {
    width: 100% !important;
  }
}

/* SMARTFONY (Ekrany poniżej 768px szerokości) */
@media screen and (max-width: 767px) {
  body {
    padding: 10px !important; /* Odstęp tekstu od krawędzi obudowy telefonu */
  }

  /* Wymuszenie elastyczności głównych kontenerów layoutu */
  #outer, #hdr, #bar, #bodyblock, #ftr {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Lekkie powiększenie tekstu bazowego na smartfonie dla wygody czytania pod palcem */
  body, p, td, span, div, li, a {
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-top: 3px !important;
    margin-bottom: 3px !important;
  }

  /* Mobilne nagłówki i pogrubienia */
  h1, h2, h3, h4, h5, h6, b, strong, big { 
    font-size: 16px !important; 
    line-height: 1.3 !important; 
  }
  
  p.large { font-size: 17px !important; }
  
  small, p.byline, .sidebar p, .menu-nav, .menu-nav a, td a {
    font-size: 12px !important;
  }

  p.caption {
    margin-top: 4px !important;
    margin-bottom: 8px !important;
  }

  /* Zabezpieczenie przed rozrywaniem ekranu przez stare tabele */
  table, thead, tbody, tr, td, th {
    max-width: 100% !important;
  }
  
  /* Bezpieczne, płynne przewijanie boczne dla zbyt szerokich tabel */
  #outer, #bodyblock, .content-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
