/*
Theme Name: BIP SP5 – GeneratePress Child
Theme URI: https://bip.policealna5.pl
Description: Motyw potomny do GeneratePress dla BIP SP5
Author: Kamil Kowalski
Template: generatepress
Version: 1.1
*/

/* h1 testowo */
/* body{
	background-color:white;
} */


/* === MENU BOCZNE BIP (GeneratePress) === */
.widget_nav_menu {
  background-color: #f9f9f9;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 2em;

}

.widget_nav_menu .widget-title {
  font-weight: bold;
  font-size: 1.2em;
  color: #7a0000;
  margin-bottom: 0.5em;
}

/* Lista menu UL */
#menu-menu-podmiotowe,
#menu-menu-przedmiotowe,
#menu-serwis{
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Elementy menu LI */
#menu-menu-podmiotowe .menu-item,
#menu-menu-przedmiotowe .menu-item,
#menu-serwis .menu-item{
  margin-bottom: 0.3em;
}

/* Linki A */
#menu-menu-podmiotowe .menu-item a,
#menu-menu-przedmiotowe .menu-item a,
#menu-serwis .menu-item a{
  display: block;
  padding: 0.4em 0.6em;
  color: #7a0000;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

/* Hover i focus */
#menu-menu-podmiotowe .menu-item a:hover,
#menu-menu-podmiotowe .menu-item a:focus,
#menu-menu-przedmiotowe .menu-item a:hover,
#menu-menu-przedmiotowe .menu-item a:focus,
#menu-serwis .menu-item a:hover,
#menu-serwis .menu-item a:focus{
  background-color: #f8e6e6;
  color: #7a0000;
  outline: 2px solid #b30000;
}
/*Aktywny link */
#menu-menu-podmiotowe .current-menu-item a,
#menu-menu-przedmiotowe .current-menu-item a,
#menu-serwis .current-menu-item a{
  border-left: 4px solid #b30000;
  padding-left: 0.6em;
  color: #7a0000;
  font-weight: bold;
  background-color: #f8e6e6;
}
/* === Stylizacja PDFów ==== */
a[href$=".pdf"]::after {
  content: " (PDF)";
  color: #666;
  font-size: 0.9em;
}


/* === GŁÓWNE MENU BIP dla tabletów i smartphowów === */
#menu-menu-glowne {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  margin: 0;
  list-style: none;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ccc;
  flex-wrap: wrap;

}

#menu-menu-glowne .menu-item a {
  display: block;
  color: #7a0000;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: underline;
  transition: background-color 0.2s ease;
}

/* Hover & Focus */
#menu-menu-glowne .menu-item a:hover,
#menu-menu-glowne .menu-item a:focus {
  background-color: #f8e6e6;
  color: #7a0000;
  outline: 2px solid #b30000;
  text-decoration: none;
	border-radius:4px;
}

/* Styl aktywnej pozycji */
#menu-menu-glowne .current-menu-item a {
  border-bottom: 4px solid #b30000;
  background-color: #f8e6e6;
  font-weight: bold;
  color: #7a0000;
  text-decoration: none;
}

/* ===============================
   RESPONSYWNE MENU BIP 
   =============================== */

/* === WIDOK NA DESKTOPIE (≥ 769px) === */
/* === WIDOK NA DESKTOPIE (≥ 769px) === */
@media (min-width: 769px) {
  .mobile-only,
  .menu-przedmiotowe,
	.menu-podmiotowe,
  .menu-serwisowe {
    display: none !important;
  }

  .desktop-only {
    display: block !important;
  }
}

/* === WIDOK NA MOBILE (< 769px) === */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only,
  .menu-przedmiotowe,
  .menu-podmiotowe,
  .menu-serwisowe {
    display: block !important;
  }
}

/* === SMUKLEJSZE MENU NA URZADZENIACH MOBILNYCH === */
@media (max-width: 768px) {
  #menu-menu-glowne {
    gap: 0.25rem; /* zmniejsz odstęp między pozycjami */
    padding: 0.5rem 0;
  }

  #menu-menu-glowne .menu-item a {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem; /* opcjonalnie ciut mniejsza czcionka */
    border-bottom: 1px solid #ddd; /* cienka linia oddzielająca pozycje */
    border-radius: 0; /* bez zaokrągleń w mobilnym menu */
  }

  #menu-menu-glowne .menu-item a:hover,
  #menu-menu-glowne .menu-item a:focus {
    background-color: #f8e6e6;
    outline: none;
    border-radius: 0;
		border: 2px solid #b30000;	
  }

  #menu-menu-glowne .current-menu-item a {
    background-color: #e0edf9;
    font-weight: bold;
    border-left: 4px solid #b30000; /* alternatywa dla podkreślenia */
    border-bottom: none;
  }
}


/* ===STYLIZACJA NAGLOWKA STRONY=== */

.inside-header .header-widget{
	display:flex;
/* 	align-items:center;
	justify-content:center; */
}
.custom-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding: 0.5rem;
  color: #111;
  line-height: 1.3;
  word-break: normal;
}

.custom-logo-bip{
	min-width:8rem !important;
}
/* stylizacja na mniejsze urzadzenia */
@media (max-width: 768px){
	
	.inside-header{
		box-sizing:border-box;
}

 .inside-header .header-widget {
    flex-direction:column;
	
  }
	.custom-title{
		 font-size:1.5rem;
	}
	.custom-logo-bip{
	max-width:4rem !important;
}
/* 	.inside-left-sidebar{
		width:700px;
	} */
}
/* stylizacja na mniejsze urzadzenia */
@media (max-width: 480px) {
 .inside-header .header-widget {
    flex-direction:column;
	
  }
	.custom-title{
		 font-size:1.0rem;
	}
	.custom-logo-bip{
	max-width:2rem !important;

}

}
/* Edycja własnych przycisków do powiekszania tekstu */
/* .text-size-toggle {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.text-size-toggle button {
  background: #b30000;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  font-weight: bold;
  cursor: pointer;
}
.text-size-toggle button:hover {
  background: #7a0000;
} */

/* Drukowanie i zapisywanie załaczników	 */
.bip-akcje-strony {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.bip-akcje-strony button,
.bip-akcje-strony a {
  background: #b30000;
  color: white;
  border: none;
  padding: 0.5rem 0.9rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}

.bip-akcje-strony button:hover,
.bip-akcje-strony a:hover {
  background: #7a0000;
}

.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* === KOD TYLKO DO BLOKÓW Z BLOCK PATTERNS */
.bip-alert {
  border-left: 4px solid #cc0000;
  background: #fff2f2;
  padding: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

	@media print {
  header,
  nav,
  .bip-akcje-strony,
  footer {
    display: none !important;
  }

  main {
    width: 100%;
  }
}
/*  nadpisanie koloru dla metadanych */
.bip-metadane-wrap {
  
  border-left: 4px solid #7a0000;

}
.bip-meta-row strong {
  color: #7a0000;
}