/* BBBiPK — dostrojenie motywu Astra do wyglądu strony głównej.
   Ładowane na wszystkich stronach OPRÓCZ szablonu „BBBiPK — gwarant”. */

:root{
  --bb-navy:#1a3a6b;
  --bb-navy-block:#15305a;
  --bb-navy-tint:#eaeff7;
  --bb-ink:#141821;
  --bb-ink-2:#4d5768;
  --bb-ink-3:#79839a;
  --bb-tint:#f4f6fa;
  --bb-rule:#dde2ea;
  --bb-rule-soft:#e9edf3;
  --bb-sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;
}

/* ---------- Typografia ---------- */

body,
button, input, select, textarea,
.entry-content, .ast-blog-layout-4-grid .entry-content{
  font-family:var(--bb-sans);
  color:var(--bb-ink);
}

body{font-size:17px;line-height:1.65;-webkit-font-smoothing:antialiased;}

h1, h2, h3, h4, h5, h6,
.entry-title, .entry-title a,
.ast-archive-title, .page-title{
  font-family:var(--bb-sans);
  font-weight:600;
  letter-spacing:-.024em;
  color:var(--bb-ink);
  text-wrap:balance;
}

.entry-title a{text-decoration:none;}
.entry-title a:hover, .entry-title a:focus{color:var(--bb-navy);}

h1, .entry-title{font-size:clamp(28px,3.4vw,40px);line-height:1.16;}
h2{font-size:26px;line-height:1.25;}
h3{font-size:20px;line-height:1.3;}

.entry-content p, .ast-excerpt-container p{color:var(--bb-ink-2);}

a{color:var(--bb-navy);}

/* ---------- Nagłówek: wordmark zamiast starego znaku ---------- */

/* stary znak znika wszędzie: w nagłówku, w stopce i w widżetach */
.site-logo-img img,
.custom-logo-link img,
img.custom-logo,
.astra-logo-svg{display:none !important;}

.custom-logo-link{
  display:inline-flex !important;
  flex-direction:column;
  gap:6px;
  text-decoration:none;
  line-height:1;
}

.custom-logo-link::before{
  content:"BBBiPK";
  font-family:var(--bb-sans);
  font-size:26px;
  font-weight:700;
  letter-spacing:-.055em;
  color:var(--bb-navy);
  line-height:1;
}

.custom-logo-link::after{
  content:"";
  display:block;
  width:34px;
  height:2.5px;
  background:var(--bb-navy);
}

/* pełna nazwa obok znaku — zbędna, wordmark ją zastępuje */
.ast-site-title-wrap, .site-title, .site-description{display:none !important;}

.main-header-bar, .ast-above-header-bar, .site-header{
  background:#fff;
  border-bottom:1px solid var(--bb-rule);
  box-shadow:none;
}

/* pasek przyklejony do góry, tak jak na stronie głównej.
   Astra ustawia tu position:relative selektorem o tej samej wadze,
   stąd wyższa specyficzność i !important. */
body .site-header,
body header#masthead.site-header{
  position:sticky !important;
  top:0;
  z-index:100;
}
body.admin-bar .site-header,
body.admin-bar header#masthead.site-header{top:32px;}
@media (max-width:782px){
  body.admin-bar .site-header{top:46px;}
}

.main-header-menu .menu-link,
.main-header-menu > .menu-item > .menu-link{
  font-family:var(--bb-sans);
  font-size:15px;
  font-weight:400;
  color:var(--bb-ink-2);
  letter-spacing:0;
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link{color:var(--bb-navy);}

.main-header-menu .sub-menu{
  border:1px solid var(--bb-rule);
  border-radius:3px;
  box-shadow:none;
}
.main-header-menu .sub-menu .menu-link{font-size:14.5px;}

/* ---------- Szerokość i oddech ---------- */

.ast-container, .ast-container-fluid{max-width:1204px;}
.site-content .ast-container{padding-left:32px;padding-right:32px;}
.site-content{padding-top:8px;}

/* ---------- Lista wpisów ---------- */

.ast-article-post{
  background:#fff;
  border:1px solid var(--bb-rule);
  border-radius:3px;
  padding:28px 30px 30px;
  margin-bottom:20px;
  box-shadow:none;
}

.ast-article-post .entry-title{font-size:22px;line-height:1.28;margin-bottom:10px;}
.ast-article-post .entry-meta,
.ast-article-post .post-meta{font-size:13px;color:var(--bb-ink-3);}
.ast-article-post .entry-meta a{color:var(--bb-ink-3);}
.ast-excerpt-container{font-size:16.5px;line-height:1.6;color:var(--bb-ink-2);}

.post-thumb img, .wp-post-image{border-radius:3px;}

.ast-pagination .page-numbers{
  border-radius:3px;
  border:1px solid var(--bb-rule);
  color:var(--bb-ink-2);
}
.ast-pagination .page-numbers.current{
  background:var(--bb-navy);
  border-color:var(--bb-navy);
  color:#fff;
}

/* ---------- Pasek boczny ---------- */

.widget-title, .widget .widget-title{
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--bb-ink-3);
}

.sidebar-main .widget{
  background:var(--bb-tint);
  border:1px solid var(--bb-rule-soft);
  border-radius:3px;
  padding:22px 24px;
}

.sidebar-main .widget ul li{border-bottom:1px solid var(--bb-rule-soft);padding:8px 0;}
.sidebar-main .widget ul li:last-child{border-bottom:none;}
.sidebar-main .widget a{color:var(--bb-ink-2);text-decoration:none;font-size:15px;}
.sidebar-main .widget a:hover{color:var(--bb-navy);}

/* ---------- Treść wpisu ---------- */

.single .entry-content{font-size:17.5px;line-height:1.7;}
.single .entry-content h2{margin-top:2em;}
.single .entry-content a{text-decoration:underline;text-underline-offset:2px;}
.single .entry-content blockquote{
  border-left:2px solid var(--bb-navy);
  background:var(--bb-tint);
  padding:18px 24px;
  margin:1.6em 0;
  font-style:normal;
  color:var(--bb-ink-2);
}

/* ---------- Przyciski jak na stronie głównej i na anturu.com ---------- */

.ast-button, .button, button, input[type="submit"],
.wp-block-button__link, .ast-custom-button{
  font-family:var(--bb-sans);
  font-size:17px;
  font-weight:500;
  padding:14px 30px;
  border-radius:980px;
  background:var(--bb-navy);
  border:none;
  color:#fff;
  transition:background .2s;
}
.ast-button:hover, .button:hover, button:hover,
input[type="submit"]:hover, .wp-block-button__link:hover{
  background:var(--bb-navy-block);
  color:#fff;
}

/* ---------- Stopka ---------- */

.site-footer, .ast-small-footer, .site-primary-footer-wrap{
  background:#fff;
  border-top:1px solid var(--bb-rule);
  color:var(--bb-ink-3);
  font-size:13.5px;
}
.site-footer a{color:var(--bb-ink-3);text-decoration:none;}
.site-footer a:hover{color:var(--bb-navy);}

/* ---------- Nawigacja między wpisami ---------- */

.post-navigation a,
.nav-links a,
.ast-single-post .post-navigation .nav-links a,
.entry-content a{color:var(--bb-navy);}

.post-navigation .nav-links{
  border-top:1px solid var(--bb-rule-soft);
  padding-top:22px;
}
.post-navigation a{font-weight:500;text-decoration:none;}
.post-navigation a:hover{text-decoration:underline;}

/* ---------- Stopka: nazwa zamiast znaku ---------- */

.site-footer .ast-builder-html-element{color:var(--bb-ink-3);}
.site-footer .uagb-heading-text{
  font-family:var(--bb-sans);
  font-size:13.5px;
  line-height:1.75;
  color:var(--bb-ink-3);
  font-weight:400;
}
.site-footer .uagb-heading-text strong{color:var(--bb-ink-2);font-weight:600;}
.footer-navigation .menu-link{font-size:13.5px;color:var(--bb-ink-3);}
.footer-navigation .menu-link:hover{color:var(--bb-navy);}
.ast-footer-copyright{font-size:13px;color:var(--bb-ink-3);}

/* ---------- Drobne ---------- */

#ast-scroll-top,
.ast-scroll-top{
  background:var(--bb-navy);
  border-radius:50%;
  color:#fff;
  box-shadow:none;
}
#ast-scroll-top:hover{background:var(--bb-navy-block);}

@media (max-width:900px){
  .site-content .ast-container{padding-left:22px;padding-right:22px;}
  .ast-article-post{padding:22px 20px 24px;}
  .custom-logo-link::before{font-size:23px;}
}

/* ---------- Baner ciasteczek (wtyczka Compliance) ---------- */

html body #cookie-notice,
#cookie-notice{
  background:#15305a !important;
  background-color:#15305a !important;
  border-top:none;
  box-shadow:0 -1px 0 rgba(255,255,255,.08);
  font-family:var(--bb-sans);
}
#cookie-notice .cookie-notice-container{
  max-width:1204px;
  margin:0 auto;
  padding:18px 32px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px 28px;
}
#cookie-notice .cn-text-container{
  margin:0;
  font-size:14.5px;
  line-height:1.55;
  color:#c3d3ea;
  text-align:left;
  max-width:70ch;
}
#cookie-notice .cn-buttons-container{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0;
}
html body #cookie-notice .cn-button,
#cookie-notice .cn-button{
  font-family:var(--bb-sans);
  font-size:14.5px;
  font-weight:500;
  padding:11px 26px;
  border-radius:980px;
  border:none;
  text-shadow:none;
  box-shadow:none;
  background:#ffffff !important;
  background-color:#ffffff !important;
  color:#15305a !important;
  transition:background .2s,color .2s;
}
#cookie-notice .cn-button:hover{background:#c3d3ea;color:#15305a;}
html body #cookie-notice .cn-button.cn-more-info,
#cookie-notice .cn-button.cn-more-info{
  background:transparent !important;
  background-color:transparent !important;
  color:#c3d3ea !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}
#cookie-notice .cn-button.cn-more-info:hover{
  background:rgba(255,255,255,.1);
  color:#ffffff;
}
#cookie-notice .cn-close-icon{opacity:.55;}
#cookie-notice .cn-close-icon:hover{opacity:1;}
#cookie-notice .cn-close-icon:before,
#cookie-notice .cn-close-icon:after{background:#ffffff;}

@media (max-width:900px){
  #cookie-notice .cookie-notice-container{padding:16px 22px;}
  #cookie-notice .cn-buttons-container{width:100%;}
  #cookie-notice .cn-button{flex:1 1 auto;text-align:center;}
}
