/*
 * PCF main stylesheet (generated by concatenation for fewer enqueued styles)
 * Order: tokens -> base -> layout -> components -> overrides
 */

/* === TOKENS === */
/*
  PCF UI Tokens
*/

:root{
  /* typography */
  --pcf-font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;

  /* colors */
  --pcf-bg: #ffffff;
  --pcf-text: #0f172a;
  --pcf-muted: rgba(15,23,42,.65);
  --pcf-border: rgba(15,23,42,.12);
  --pcf-surface: rgba(15,23,42,.03);
  --pcf-primary: #0b63f6;

  /* radius */
  --pcf-radius-8: 8px;
  --pcf-radius-12: 12px;
  --pcf-radius-16: 16px;

  /* spacing */
  --pcf-1: 4px;
  --pcf-2: 8px;
  --pcf-3: 12px;
  --pcf-4: 16px;
  --pcf-5: 20px;
  --pcf-6: 24px;
  --pcf-8: 32px;

  /* container */
  --pcf-container: 1200px;
}

html.dark,
body.dark{
  --pcf-bg: #0b0b0d;
  --pcf-text: rgba(255,255,255,.92);
  --pcf-muted: rgba(255,255,255,.64);
  --pcf-border: rgba(255,255,255,.16);
  --pcf-surface: rgba(255,255,255,.06);
  --pcf-primary: #7ab0ff;
}


/* === BASE === */
/*
  PCF Base
*/

body{
  font-family: var(--pcf-font-sans);
  color: var(--pcf-text);
}

.pcf-link-reset{ color: inherit; text-decoration: none; }
.pcf-link-reset:hover{ text-decoration: underline; }

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


/* === LAYOUT === */
/* PCF Layout Core
*/
:root{
  --pcf-container-padding: 16px;
  --pcf-container-lg: 1024px;
  --pcf-container-xl: 1320px;
  --pcf-container-site: 1320px;
}

/* Container */
.pcf-container{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pcf-container-padding);
  padding-right: var(--pcf-container-padding);
  max-width: var(--pcf-container-lg);
}
.pcf-container--lg{ max-width: var(--pcf-container-lg); }
.pcf-container--xl{ max-width: var(--pcf-container-xl); }
.pcf-container--site{ max-width: var(--pcf-container-site); }

@media (min-width: 768px){
  :root{ --pcf-container-padding: 20px; }
}
@media (min-width: 1024px){
  :root{ --pcf-container-padding: 24px; }
}

/* Layout helpers */
.pcf-row{ display:flex; align-items:center; }
.pcf-row--between{ justify-content:space-between; }
.pcf-row--center{ justify-content:center; }
.pcf-row--wrap{ flex-wrap:wrap; }
.pcf-row--nowrap{ flex-wrap:nowrap; }

.pcf-stack{ display:flex; flex-direction:column; }
.pcf-gap-1{ gap: 4px; }
.pcf-gap-2{ gap: 8px; }
.pcf-gap-3{ gap: 12px; }
.pcf-gap-4{ gap: 16px; }
.pcf-gap-6{ gap: 24px; }
.pcf-gap-8{ gap: 32px; }

.pcf-grid{ display:grid; }
.pcf-grid-gap-4{ gap: 16px; }
.pcf-grid-gap-6{ gap: 24px; }
.pcf-grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.pcf-grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.pcf-grid-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }

@media (max-width: 767px){
  .pcf-grid-2, .pcf-grid-3, .pcf-grid-4{ grid-template-columns: 1fr; }
}


/* === COMPONENTS === */
/*
  PCF Components
*/

/* Buttons */
.pcf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:44px;
  padding:10px 18px;
  border-radius: var(--pcf-radius-12);
  text-decoration:none;
  font-weight:600;
}
.pcf-btn-primary{
  background: var(--pcf-primary);
  color:#fff;
  border:1px solid transparent;
}
.pcf-btn-primary:hover{ filter: brightness(.95); }

.pcf-btn-outline{
  border:1px solid var(--pcf-border);
  background:transparent;
  color:inherit;
}
.pcf-btn-outline:hover{ border-color: rgba(15,23,42,.30); }
html.dark .pcf-btn-outline:hover,
body.dark .pcf-btn-outline:hover{ border-color: rgba(255,255,255,.35); }

/* Post grid card */
.pcf-post-grid-card{
  border-radius: var(--pcf-radius-16);
  background: transparent;
}

.pcf-post-grid-card__media{ position:relative; }
.pcf-post-grid-thumb__link{ display:block; position:relative; }

.pcf-post-grid-thumb__img,
.pcf-post-grid-thumb__placeholder{
  width:100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display:block;
  border-radius: var(--pcf-radius-8);
}
.pcf-post-grid-thumb__placeholder{ background: rgba(0,0,0,.06); }

.pcf-post-grid-badge{
  position:absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  background: rgba(255,255,255,.92);
  color: #1d4ed8;
  text-decoration:none;
}

.pcf-post-grid-card__body{ padding-top: 18px; }

.pcf-post-grid-title{
  margin:0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-align:center;
}
.pcf-post-grid-title a{ color: var(--pcf-text); text-decoration:none; }
.pcf-post-grid-title a:hover{ text-decoration:underline; }

.pcf-post-grid-meta{
  margin-top: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 18px;
  color: var(--pcf-muted);
  font-size: 14px;
}

.pcf-post-grid-meta__author{ display:inline-flex; align-items:center; gap:10px; color:inherit; text-decoration:none; position:relative; }
.pcf-post-grid-meta__author:hover .pcf-post-grid-author{ text-decoration:underline; }

.pcf-author-avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:block;
  object-fit: cover;
}

.pcf-post-grid-author{ font-weight:700; color: var(--pcf-text); max-width: 130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.pcf-post-grid-date,
.pcf-post-grid-comments{ position:relative; color:inherit; text-decoration:none; }
.pcf-post-grid-comments:hover{ text-decoration:underline; }

/* kropki pomiędzy meta (CSS, żeby układ się nie rozsypywał) */
.pcf-post-grid-meta__author:after,
.pcf-post-grid-date:after{
  content:"";
  position:absolute;
  right: -10px;
  top: 50%;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(15,23,42,.28);
}
html.dark .pcf-post-grid-meta__author:after,
html.dark .pcf-post-grid-date:after,
body.dark .pcf-post-grid-meta__author:after,
body.dark .pcf-post-grid-date:after{
  background: rgba(255,255,255,.35);
}

@media (max-width: 640px){
  .pcf-post-grid-title{ font-size: 22px; }
  .pcf-post-grid-meta{ gap: 14px; }
}

/* Page title + breadcrumbs */
.pcf-page-title-area{ padding: 0; margin: 0; }

.pcf-breadcrumb-bar{
  background: rgba(15,23,42,.04);
  padding: 18px 0;
}
html.dark .pcf-breadcrumb-bar,
body.dark .pcf-breadcrumb-bar{ background: rgba(255,255,255,.06); }

.pcf-breadcrumbs{ display:flex; justify-content:center; }
.pcf-breadcrumbs__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}
.pcf-breadcrumbs__item{ margin:0; padding:0; }
.pcf-breadcrumbs__sep{ color: rgba(15,23,42,.35); }
html.dark .pcf-breadcrumbs__sep,
body.dark .pcf-breadcrumbs__sep{ color: rgba(255,255,255,.45); }

.pcf-breadcrumbs__link{
  color: var(--pcf-link);
  text-decoration:none;
  font-weight:500;
}
.pcf-breadcrumbs__link:hover{ text-decoration:underline; }
.pcf-breadcrumbs__current{ color: rgba(15,23,42,.55); }
html.dark .pcf-breadcrumbs__current,
body.dark .pcf-breadcrumbs__current{ color: rgba(255,255,255,.70); }

.pcf-title-bar{ padding: 56px 0 46px; text-align:center; }
.pcf-page-title{
  margin:0;
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.05;
  font-size: clamp(40px, 5vw, 72px);
}
.pcf-page-subtitle{ margin: 14px 0 0; color: var(--pcf-muted); }

/* Single post: smaller title + tighter spacing to share box */
body.single-post .pcf-title-bar{
  padding: 34px 0 22px;
}
body.single-post .pcf-page-title{
  font-size: clamp(22px, 3vw, 36px);
}
body.single-post article.single-post{
  padding-top: 12px !important;
}
body.single-post .post-header .panel.vstack.text-center{
  gap: 18px !important;
}
@media (min-width: 768px){
  body.single-post .post-header .panel.vstack.text-center{ gap: 22px !important; }
}
@media (min-width: 1280px){
  body.single-post .post-header .panel.vstack.text-center{ gap: 26px !important; }
}

@media (max-width: 640px){
  .pcf-title-bar{ padding: 44px 0 38px; }
}

/* Search results layout (3/4 + 1/4) */
.pcf-search-layout{
  display:grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 40px;
  align-items:start;
}
.pcf-search-main{ min-width:0; }
.pcf-search-sidebar{ min-width:0; }

@media (max-width: 1024px){
  .pcf-search-layout{ grid-template-columns: 1fr; gap: 28px; }
}


/* =========================================================
   Comments
   ========================================================= */
.pcf-comments{ margin-top: 44px; }
.pcf-comments-inner{ width:100%; }
.pcf-comments-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 18px; }
.pcf-comments-title{ margin:0; font-size: 28px; letter-spacing: -0.01em; }

.pcf-comment-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:18px; }

.pcf-comment{ margin:0; padding:0; }

.pcf-comment-card{
  background: rgba(15,23,42,.04);
  border-radius: var(--pcf-radius-16);
  padding: 22px 22px;
}
html.dark .pcf-comment-card,
body.dark .pcf-comment-card{ background: rgba(255,255,255,.06); }

.pcf-comment-authorbox{ display:flex; gap:16px; align-items:flex-start; }

.pcf-comment-avatar{ flex:0 0 auto; }
.pcf-comment-avatar-img{
  width:56px;
  height:56px;
  border-radius: 9999px;
  object-fit: cover;
  display:block;
  background: transparent;
}

.pcf-comment-author-meta{ min-width:0; }
.pcf-comment-author{
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}
.pcf-comment-author a{ color: var(--pcf-text); text-decoration:none; }
.pcf-comment-author a:hover{ text-decoration:underline; }

.pcf-comment-meta{
  margin-top: 6px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  font-size: 14px;
  color: var(--pcf-muted);
}

/* Separatory jak w News5: kropeczki pseudo-elementami */
.pcf-comment-meta time,
.pcf-comment-time,
.pcf-comment-reply{ position:relative; }

.pcf-comment-meta time:after,
.pcf-comment-time:after{
  content:"";
  position:absolute;
  right:-8px;
  top:50%;
  width:4px;
  height:4px;
  transform: translateY(-50%);
  border-radius:50%;
  background: rgba(15,23,42,.28);
}
html.dark .pcf-comment-meta time:after,
html.dark .pcf-comment-time:after,
body.dark .pcf-comment-meta time:after,
body.dark .pcf-comment-time:after{ background: rgba(255,255,255,.35); }

/* Ukryj tekstowe separatory z PHP (zostawiamy kompatybilność) */
.pcf-comment-meta-sep{ display:none !important; }

.pcf-comment-reply a{
  color: var(--pcf-link);
  text-decoration:none;
  font-weight:600;
}
.pcf-comment-reply a:hover{ text-decoration:underline; }

.pcf-comment-content{ margin-top: 14px; color: var(--pcf-text); }
.pcf-comment-content p{ margin: 0 0 10px; }
.pcf-comment-content p:last-child{ margin-bottom:0; }

.pcf-comment-awaiting{ margin: 0 0 10px; font-weight:600; color: var(--pcf-muted); }

/* Threaded */
.pcf-comment-list .children{
  list-style:none;
  margin: 16px 0 0 72px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}
@media (max-width: 640px){
  .pcf-comment-card{ padding: 18px 16px; }
  .pcf-comment-avatar-img{ width:48px; height:48px; }
  .pcf-comment-list .children{ margin-left: 18px; }
}

/* Comment form */
.pcf-comment-form{ margin-top: 26px; }
.pcf-comment-form-title{ margin:0 0 14px; font-size: 24px; letter-spacing:-0.01em; }

.pcf-comment-form-inner{ display:flex; flex-direction:column; gap:14px; }

.pcf-form-row{ display:grid; gap:14px; }
.pcf-form-row--2{ grid-template-columns: 1fr 1fr; }
@media (max-width: 640px){ .pcf-form-row--2{ grid-template-columns: 1fr; } }

.pcf-input,
.pcf-textarea{
  width:100%;
  border:1px solid var(--pcf-border);
  border-radius: var(--pcf-radius-12);
  padding: 14px 14px;
  font-size: 16px;
  background: #fff;
  color: var(--pcf-text);
}
html.dark .pcf-input,
html.dark .pcf-textarea,
body.dark .pcf-input,
body.dark .pcf-textarea{
  background: rgba(0,0,0,.18);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

.pcf-input:focus,
.pcf-textarea:focus{
  outline:none;
  border-color: rgba(29,78,216,.55);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}

.pcf-comment-form .pcf-btn{ width: fit-content; }
@media (max-width: 640px){
  .pcf-comment-form .pcf-btn{ width: 100%; }
}

.pcf-comments-pagination{ margin-top: 18px; }
.pcf-comments-closed{ margin-top: 12px; color: var(--pcf-muted); }

/* =========================
 * Author hero (author archive)
 * =======================*/
.pcf-author-hero{ padding: 24px 0 0; }
.pcf-author-hero__inner{
  display:flex;
  align-items:center;
  gap:20px;
  padding:20px;
  border-radius: var(--pcf-radius-16);
  background: rgba(15,23,42,.04);
}
html.dark .pcf-author-hero__inner,
body.dark .pcf-author-hero__inner{ background: rgba(255,255,255,.06); }
.pcf-author-hero__avatar img{
  width:96px;
  height:96px;
  border-radius:999px;
  object-fit:cover;
  display:block;
}
.pcf-author-hero__name{ margin:0; font-size:28px; line-height:1.15; }
.pcf-author-hero__title{ margin-top:4px; opacity:.8; font-weight:600; }
.pcf-author-hero__bio{ margin-top:10px; max-width:70ch; opacity:.85; }
.pcf-author-hero__social{ margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }
.pcf-author-hero__soc{
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:1px solid rgba(15,23,42,.15);
  font-size:12px;
  font-weight:700;
}
html.dark .pcf-author-hero__soc,
body.dark .pcf-author-hero__soc{ border-color: rgba(255,255,255,.18); }
.pcf-author-hero__soc:hover{ transform: translateY(-1px); }

@media (max-width:640px){
  .pcf-author-hero__inner{ flex-direction:column; align-items:flex-start; }
}

/* --- PCF Profile page --- */
.pcf-profile { padding: 24px 0; }
.pcf-profile-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
}
.dark .pcf-profile-card { background: rgba(255,255,255,0.06); }

.pcf-profile-avatar img{
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}
.pcf-profile-avatar { margin-bottom: 12px; }

.pcf-profile-avatar-form,
.pcf-profile-avatar-remove { display: grid; gap: 10px; }

.pcf-profile-name { margin: 0 0 6px; }
.pcf-profile-title { opacity: .8; margin-bottom: 12px; }
.pcf-profile-bio { margin-top: 10px; opacity: .92; }

.pcf-profile-meta {
  margin-top: 14px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  opacity: .9;
}

.pcf-profile-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.pcf-profile-section{
  padding: 20px;
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
}
.dark .pcf-profile-section { background: rgba(255,255,255,0.06); }

.pcf-profile-section__title{ margin: 0 0 12px; font-size: 18px; }
.pcf-profile-list{ list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.pcf-profile-list li{ padding-bottom:12px; border-bottom:1px solid rgba(0,0,0,0.08); }
.dark .pcf-profile-list li{ border-bottom-color: rgba(255,255,255,0.10); }
.pcf-profile-list li:last-child{ border-bottom:none; padding-bottom:0; }

.pcf-profile-muted{ opacity:.75; font-size:14px; margin-top:6px; }

.pcf-alert{ padding:12px 14px; border-radius:12px; margin-bottom:16px; font-size:14px; }
.pcf-alert--info{ background: rgba(59,130,246,.12); }
.pcf-alert--success{ background: rgba(34,197,94,.12); }
.pcf-alert--error{ background: rgba(239,68,68,.12); }

.pcf-label{ font-size: 13px; opacity: .8; }
.pcf-input{ width:100%; padding:10px 12px; border-radius:12px; border:1px solid rgba(0,0,0,.14); background:#fff; }
.dark .pcf-input{ background: rgba(0,0,0,.25); border-color: rgba(255,255,255,.16); color: inherit; }

.pcf-btn{ display:inline-flex; align-items:center; justify-content:center; padding:10px 14px; border-radius:12px; border:1px solid rgba(0,0,0,.12); background: transparent; cursor:pointer; }
.pcf-btn--primary{ background: rgba(59,130,246,.92); color:#fff; border-color: transparent; }
.pcf-btn--ghost{ background: transparent; opacity:.9; }

@media (max-width: 900px){
  .pcf-profile-card{ grid-template-columns: 1fr; }
  .pcf-profile-grid{ grid-template-columns: 1fr; }
}

/* Public user profile (/u/{slug}) */
.pcf-public-profile{padding:24px 0}
.pcf-public-profile__header{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.pcf-public-profile__avatar img{width:96px;height:96px;border-radius:999px;object-fit:cover;display:block}
.pcf-public-profile__name{margin:0 0 4px;font-size:32px;line-height:1.1}
.pcf-public-profile__title{opacity:.75;margin:0 0 8px}
.pcf-public-profile__bio{max-width:760px}
.pcf-public-profile__grid{display:grid;grid-template-columns:1fr;gap:24px;margin-top:24px}
.pcf-public-profile__section-title{margin:0 0 10px;font-size:18px}
.pcf-public-profile__list{margin:0;padding-left:18px}

/* Account (/konto/*) – minimal styles, polish later */
.pcf-account{padding:24px 0}
.pcf-account__tabs{display:flex;flex-wrap:wrap;gap:10px;list-style:none;margin:0 0 18px;padding:0}
.pcf-account__tabs a{display:inline-block;padding:8px 12px;border-radius:8px;text-decoration:none;border:1px solid rgba(0,0,0,.12)}
.pcf-account__tabs a.is-active{font-weight:600}
.pcf-account__content{padding:8px 0}
.pcf-account__heading{margin:0 0 10px}
.pcf-account__lead{margin:0 0 18px;opacity:.85}
.pcf-account__list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.pcf-account__list-item{padding:12px 14px;border-radius:8px;border:1px solid rgba(0,0,0,.08)}
.pcf-account__muted{opacity:.8;margin-top:6px;font-size:.95em}


/* Saved posts buttons (minimal, styling later) */
.pcf-save-btn{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:0;background:transparent;}
.pcf-save-btn i{pointer-events:none;}
.pcf-save-btn--card{position:absolute;top:10px;right:10px;z-index:3;}
.pcf-post-grid-card__media{position:relative;}
.pcf-save-btn--list{margin-left:8px;vertical-align:middle;}

/* Review badge on cards (top-right, obok zapisu / ikonki) */
.pcf-post-grid-flag{
  position:absolute;
  top:10px;
  right:48px;
  z-index:3;
  width:32px;
  height:32px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  color: rgba(15,23,42,.92);
}
.pcf-post-grid-flag i{ font-size:16px; line-height:1; }
.pcf-post-grid-flag--poleca{ color: rgba(12, 120, 102, 1); }
.pcf-post-grid-flag--power{ color: rgba(29, 78, 216, 1); }
html.dark .pcf-post-grid-flag,
body.dark .pcf-post-grid-flag{ background: rgba(15,23,42,.82); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.92); }

/* Sprint 2.1: generic cards that previously relied on uc-* classes */
.pcf-card-post{
  border-radius: var(--pcf-radius-16);
  overflow:hidden;
  background: var(--pcf-surface);
  border: 1px solid var(--pcf-border);
}
.pcf-card-thumb{ display:block; }
.pcf-card-thumb__img{ width:100%; height:auto; display:block; }
.pcf-card-thumb__placeholder{ aspect-ratio: 16/10; background: rgba(0,0,0,.06); }
.pcf-card-body{ padding:16px; }
.pcf-card-date{ font-size: 13px; opacity:.7; margin-bottom:8px; }
.pcf-card-title{ margin:0; font-size: 18px; line-height:1.25; }

.pcf-post-classic{
  border-radius: var(--pcf-radius-16);
  overflow:hidden;
  background: var(--pcf-surface);
  border: 1px solid var(--pcf-border);
}
.pcf-post-classic-thumb{ display:block; }
.pcf-post-classic-thumb__img{ width:100%; height:auto; display:block; }
.pcf-post-classic-thumb__placeholder{ aspect-ratio: 16/9; background: rgba(0,0,0,.06); }
.pcf-post-classic-body{ padding:16px; }
@media (min-width: 640px){ .pcf-post-classic-body{ padding:24px; } }
.pcf-post-classic-title{ margin:0 0 12px 0; font-size: 26px; line-height:1.15; }
.pcf-post-classic-excerpt{ margin-top:12px; opacity:.8; }
.pcf-post-classic-actions{ margin-top:16px; }

/* Save button in search listing title */
.pcf-save-btn--inline{
  margin-left:10px;
  vertical-align:middle;
}


/* ===== Sprint 3: basic PCF UI helpers (drawer/dropdown) ===== */
html.pcf-scroll-locked, html.pcf-scroll-locked body{ overflow:hidden; }
.pcf-submenu-toggle{ margin-left:auto; background:none; border:0; font-size:18px; line-height:1; padding:10px 12px; cursor:pointer; color:inherit; }
.pcf-mobile-nav .pcf-nav__submenu{ display:none; padding-left:12px; }
.pcf-mobile-nav li.is-open > .pcf-nav__submenu{ display:block; }


/* === OVERRIDES === */

/* === PAGINATION === */
.pcf-pagination{
  margin-top: 28px;
}
.pcf-pagination__rule{
  width: 100%;
  height: 1px;
  background: var(--pcf-border);
  margin: 0 0 18px 0;
}
.pcf-pagination__nav{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pcf-pagination__link,
.pcf-pagination__current,
.pcf-pagination__dots{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  user-select: none;
}

.pcf-pagination__link{
  color: var(--pcf-text);
  background: transparent;
  transition: background .15s ease, transform .05s ease;
}
.pcf-pagination__link:hover{
  background: var(--pcf-surface);
}
.pcf-pagination__link:active{
  transform: translateY(1px);
}
.pcf-pagination__link:focus-visible{
  outline: 2px solid var(--pcf-primary);
  outline-offset: 2px;
}

.pcf-pagination__current{
  background: var(--pcf-primary);
  color: #fff;
}

.pcf-pagination__dots{
  min-width: auto;
  padding: 0 6px;
  color: var(--pcf-muted);
  background: transparent;
}

.pcf-pagination__link--prev,
.pcf-pagination__link--next{
  font-size: 18px;
  padding: 0 10px;
}
/* PCF overrides: keep original look, remove JS dependencies */

/* TOP BAR gradient + same geometry as skin */
.uc-top-navbar{
  background: linear-gradient(90deg,#1b0b8a 0%, #2c0fb2 45%, #1b0b8a 100%) !important;
}

/* make sure background image div (from demo) does not interfere */
.uc-top-navbar .position-cover{ display:none !important; }

/* Popularne ticker (Swiper, like the skin) */
.pcf-popularne-ticker{max-width:600px; overflow:hidden; flex:1; min-width:0;}
.pcf-popularne-ticker .pcf-topbar-ticker__list{list-style:none;margin:0;padding:0;position:relative;height:24px;}
.pcf-popularne-ticker .pcf-topbar-ticker__item{position:absolute;inset:0;display:flex;align-items:center;opacity:0;pointer-events:none;transition:opacity 300ms ease;}
.pcf-popularne-ticker .pcf-topbar-ticker__item.is-active{opacity:1;pointer-events:auto;}
.pcf-popularne-ticker a{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; display:inline-block; max-width:100%;}

/* Topbar gradient (zamiast obrazka z HTML skórki) */
.pcf-topbar-gradient{
  background: linear-gradient(90deg, #0b2ea6 0%, #2b0a86 55%, #2a0630 100%);
}

/* Dopnij wygląd przełącznika (bez JS skórki) */
.uc-modes-trigger .switch{ display:inline-flex; align-items:center; }

/* keep rounded corners like original */
.uc-top-navbar{ border-bottom-left-radius:12px; border-bottom-right-radius:12px; }

/* keep search icon consistent */
.uc-search-trigger, .uc-navbar-item a[aria-label="Szukaj"]{ display:inline-flex; }

/* Page title + breadcrumbs – przeniesione do pcf-components.css (Sprint 1.1) */

/* Archive layout */
.pcf-archive{ padding-bottom: 64px; }
.pcf-archive-grid{ display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px){ .pcf-archive-grid{ grid-template-columns: 1.6fr 0.9fr; } }
.pcf-sidebar .widget{ margin-bottom: 28px; }
.pcf-sidebar .widget-title{ font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.pcf-sidebar ul{ padding-left: 18px; }

/* remove any WP-injected login/cart buttons if they appear */
.uc-cart-trigger, .uc-account-trigger, button[data-uc-toggle*="#uc-account-modal"], .woocommerce, .cart, .shopping-cart{ display:none !important; }

/* If menu gets wp default underline */
.uc-navbar-nav a{ text-decoration:none; }

/* Ensure admin bar doesn't push layout weirdly */
body.admin-bar .uc-header{ margin-top: 0; }

/* FOOTER */
.pcf-footer{ background:#0f0f10; }
.pcf-footer .widget{ margin-bottom: 18px; }
.pcf-footer .widget-title{ letter-spacing:.08em; font-size:12px; opacity:.7; }
.pcf-footer a{ text-decoration:none; }
.pcf-footer a:hover{ text-decoration:underline; }
.pcf-footer-sep{ width:1px; height:22px; background:rgba(255,255,255,.12); display:inline-block; }

/* --- PCF: Category Tiles --- */
.pcf-category-tiles .pcf-cat-tiles{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
}
.pcf-category-tiles .pcf-cat-tiles::-webkit-scrollbar{ height:8px; }
.pcf-category-tiles .pcf-cat-tiles .image-link{ flex:0 0 146px; scroll-snap-align:start; }

/* --- PCF: Buttons przeniesione do pcf-components.css --- */

.pcf-latest-news .section-footer{margin-top:18px;}

/* Ensure category tiles show their background images (skin-like) */
.pcf-category-tiles .image-link{
  position:relative;
  height:168px;
  border-radius:14px;
  overflow:hidden;
}
.pcf-category-tiles .image-link > a.img{
  position:absolute;
  inset:0;
  display:block;
  background-size:cover;
  background-position:center;
}
.pcf-category-tiles .image-link .overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  align-items:center;
  padding:14px;
  text-align:center;
  color:#fff;
  background:linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.85) 100%);
}
.pcf-category-tiles .image-link .overlay h4{
  margin:0 0 10px 0;
  font-size:20px;
  font-weight:700;
  line-height:1.1;
  text-shadow:0 1px 6px rgba(0,0,0,.35);
}
.pcf-category-tiles .image-link .overlay .pcf-btn{
  width:100%;
  max-width:96px;
  min-height:32px;
  padding:6px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);
  color:#fff;
}

/* Topbar ticker should actually scroll (swipe) */
.pcf-topbar-links{
  flex:1;
  min-width:0;
}
.pcf-topbar-items{
  width:100%;
  min-width:0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.pcf-topbar-items::-webkit-scrollbar{display:none;}
.pcf-topbar-items{cursor:grab;}
.pcf-topbar-items.pcf-dragging{cursor:grabbing; user-select:none;}



/* Author photo */
.pcf-author-avatar{width:22px;height:22px;border-radius:9999px;object-fit:cover;display:block;}


.pcf-btn-outline--sm{min-height:34px;padding:6px 14px;border-radius:12px;font-size:14px;}



/* ===== DARK MODE (global, works even when blocks don't have dark: utilities) ===== */
html.dark body{
  background:#0b1020 !important;
  color:#e5e7eb;
}
html.dark .uc-card,
html.dark .bg-white,
html.dark .bg-gray-50,
html.dark .bg-light{
  background-color:#0f172a !important;
}
html.dark .text-dark,
html.dark .text-gray-900,
html.dark .text-black{
  color:#f8fafc !important;
}
html.dark .text-gray-700,
html.dark .text-gray-600,
html.dark .text-muted,
html.dark .opacity-70{
  color:#cbd5e1 !important;
}
html.dark .border,
html.dark .border-gray-200,
html.dark .border-gray-100,
html.dark .uc-border{
  border-color: rgba(255,255,255,.12) !important;
}
html.dark a{ color: inherit; }

/* Author page */
.pcf-author-avatar{border-radius:9999px;object-fit:cover;}
.pcf-author-avatar-lg{border-radius:9999px;object-fit:cover;}
.pcf-author-page .navigation.pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;border-radius:12px;border:1px solid rgba(0,0,0,.12);margin-right:8px;text-decoration:none;}
html.dark .pcf-author-page .navigation.pagination .page-numbers{border-color:rgba(255,255,255,.18);}
.pcf-author-page .navigation.pagination .page-numbers.current{background:rgba(0,0,0,.08);}
html.dark .pcf-author-page .navigation.pagination .page-numbers.current{background:rgba(255,255,255,.12);}



/* Comments */

/* Comments (News5-like) */
.pcf-comments-inner{width:100%;}
.pcf-comment-list{margin:0;padding:0;}
.pcf-comment-item{width:100%;}
.pcf-comment-card{background:#f7f7f7;border-radius:14px;padding:22px;}
.pcf-comment-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;}
.pcf-comment-authorbox{display:flex;align-items:flex-start;gap:14px;min-width:0;}
.pcf-comment-avatar{width:48px;height:48px;flex:0 0 48px;overflow:hidden;border-radius:9999px;background:#e7e7e7;position:relative;}
.pcf-comment-avatar, .pcf-comment-avatar *{background-image:none !important;}
/* Kill demo-seven .avatar absolute positioning inside comments */
.pcf-comment-card .avatar{position:static !important;margin:0 !important;}
.pcf-comment-avatar img,
.pcf-comment-card img.avatar,
.pcf-comment-card img.pcf-comment-avatar-img{
  width:48px !important;
  height:48px !important;
  max-width:48px !important;
  max-height:48px !important;
  border-radius:9999px !important;
  object-fit:cover !important;
  display:block !important;
}
.pcf-comment-author-meta{min-width:0;}
.pcf-comment-author a{font-weight:700;color:inherit;text-decoration:none;}
.pcf-comment-author a:hover{text-decoration:underline;}
.pcf-comment-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;opacity:.75;font-size:.92em;margin-top:4px;}
.pcf-comment-meta-sep{opacity:.55;}
.pcf-comment-content{margin-top:12px;line-height:1.65;}
.pcf-comment-reply a{color:inherit;text-decoration:underline;font-weight:600;}
.pcf-comment-reply a:hover{opacity:.85;}
.pcf-comment-list .children{margin-top:14px;margin-left:56px;padding-left:18px;border-left:2px solid rgba(0,0,0,.06);}
.pcf-comment-list .children > li{margin-top:14px;}


/* Category badge like template */
.pcf-cat-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(16,24,40,.12);
}

/* Grid archive spacing */
.pcf-grid-archive .pcf-post-grid { height:100%; }

/* Classic post */
.pcf-post-classic { border:1px solid rgba(16,24,40,.10); }
.pcf-post-classic-thumb img { display:block; width:100%; height:auto; }
.pcf-post-classic .pcf-meta-author img { width:32px; height:32px; border-radius:999px; }
.pcf-dot { opacity:.55; }

/* ===== Archive / Search (blog-category.html inspired) ===== */
.pcf-archive-hero{
  padding: 48px 0 18px;
}
.pcf-archive-title{font-size: 44px; line-height: 1.15; margin: 10px 0 10px; font-weight: 700;}
.pcf-archive-desc{color: rgba(0,0,0,.55); margin: 0 0 6px;}
/* .pcf-breadcrumbs – style przeniesione do pcf-components.css */

.pcf-archive-body{padding: 18px 0 70px;}
.pcf-post-list{display:flex; flex-direction:column; gap: 26px;}

.pcf-post-list-item{display:grid; grid-template-columns: 420px 1fr; gap: 26px; align-items: start;}
.pcf-post-list-item__media{display:block; border-radius: 18px; overflow:hidden; background: #f2f2f2;}
.pcf-post-list-item__media img{width:100%; height: 260px; object-fit:cover; display:block;}
.pcf-post-list-item__noimg{display:block; width:100%; height:260px;}
.pcf-post-list-item__title{font-size: 26px; line-height:1.2; margin: 10px 0 12px; font-weight:700;}
.pcf-post-list-item__title a{color:#111; text-decoration:none;}

/* Title truncation (like homepage tiles) */
.pcf-post-grid-title a,
.pcf-post-list-item__title a,
.pcf-post-classic-title a{
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow:hidden;
}

.pcf-post-meta{display:flex; align-items:center; gap:10px; font-size:14px;}
.pcf-post-meta__cat{color:#2b67ff; text-decoration:none;}
.pcf-post-meta__sep{color: rgba(0,0,0,.35);}
.pcf-post-meta__time{color: rgba(0,0,0,.6);}

.pcf-post-byline{display:flex; align-items:center; gap: 10px; flex-wrap:wrap; color: rgba(0,0,0,.55); font-size:14px;}
.pcf-post-byline__author{display:inline-flex; align-items:center; gap: 10px; color:#111; text-decoration:none; font-weight:600;}
.pcf-author-avatar{width: 32px; height: 32px; border-radius: 999px; object-fit:cover;}
.pcf-post-byline__dot{opacity:.5}
.pcf-post-byline__comments{color: rgba(0,0,0,.65); text-decoration:none;}

@media (max-width: 960px){
  .pcf-post-list-item{grid-template-columns: 1fr;}
  .pcf-post-list-item__media img{height: 220px;}
  .pcf-archive-title{font-size: 34px;}
}

/* ===== 404 ===== */
.pcf-404-section{padding: 90px 0 110px;}
.pcf-404-inner{text-align:center; max-width: 760px; margin: 0 auto;}
.pcf-404-code{font-size: 110px; font-weight: 800; line-height:1; letter-spacing:-2px;}
.pcf-404-title{font-size: 42px; margin: 18px 0 10px;}
.pcf-404-text{color: rgba(0,0,0,.6); margin: 0 0 28px;}
.pcf-404-actions{display:flex; justify-content:center; gap: 12px; flex-wrap:wrap;}

/* ===== Page title – przeniesione do pcf-components.css ===== */

/* ===== MOBILE MENU (off-canvas) ===== */
.pcf-mobile-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; padding:0; border:none; background:none; cursor:pointer;
  color:inherit;
}
.pcf-hamburger{ display:flex; flex-direction:column; gap:5px; width:22px; }
.pcf-hamburger span{ display:block; height:2px; background:currentColor; border-radius:2px; transition:transform .25s, opacity .2s; }

.pcf-mobile-menu{
  position:fixed; inset:0; z-index:10000;
  visibility:hidden; pointer-events:none;
  transition:visibility 0s .35s;
}
.pcf-mobile-menu.is-open{
  visibility:visible; pointer-events:auto;
  transition-delay:0s;
}
.pcf-mobile-menu__backdrop{
  position:absolute; inset:0;
  background:rgba(0,0,0,.45);
  opacity:0; transition:opacity .3s;
}
.pcf-mobile-menu.is-open .pcf-mobile-menu__backdrop{ opacity:1; }

.pcf-mobile-menu__panel{
  position:absolute; top:0; left:0; bottom:0;
  width:min(320px, 85vw);
  background:#fff; color:#111;
  display:flex; flex-direction:column;
  transform:translateX(-100%);
  transition:transform .3s ease;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
html.dark .pcf-mobile-menu__panel{ background:#0f172a; color:#e5e7eb; }
.pcf-mobile-menu.is-open .pcf-mobile-menu__panel{ transform:translateX(0); }

.pcf-mobile-menu__header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; border-bottom:1px solid rgba(0,0,0,.08);
}
html.dark .pcf-mobile-menu__header{ border-color:rgba(255,255,255,.1); }
.pcf-mobile-menu__logo{ height:36px; width:auto; }
.pcf-mobile-menu__close{
  width:36px; height:36px; border:none; background:none;
  font-size:28px; line-height:1; cursor:pointer; color:inherit;
}

.pcf-mobile-menu__nav{ flex:1; padding:12px 0; }
.pcf-mobile-menu__list{
  list-style:none; margin:0; padding:0;
}
.pcf-mobile-menu__list li{ border-bottom:1px solid rgba(0,0,0,.06); }
html.dark .pcf-mobile-menu__list li{ border-color:rgba(255,255,255,.08); }
.pcf-mobile-menu__list a{
  display:block; padding:14px 20px;
  text-decoration:none; color:inherit;
  font-size:16px; font-weight:500;
}
.pcf-mobile-menu__list .sub-menu{ padding-left:18px; }
.pcf-mobile-menu__list .sub-menu a{ font-size:14px; font-weight:400; padding:10px 20px; }

.pcf-mobile-menu__footer{ padding:16px 20px; }
body.pcf-menu-open{ overflow:hidden; }


/* ===== PCF Mobile menu fixes (nav class + hamburger button) ===== */
button.pcf-hamburger{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  padding:0;
  border:none;
  background:transparent;
  cursor:pointer;
  color:inherit;
}
button.pcf-hamburger .pcf-hamburger__line{
  display:block;
  width:22px;
  height:2px;
  background:currentColor;
  border-radius:2px;
  transition:transform .25s, opacity .2s;
}

/* The mobile menu markup uses .pcf-mobile-nav (items_wrap). Style it like the intended list. */
.pcf-mobile-nav{
  list-style:none;
  margin:0;
  padding:0;
}
.pcf-mobile-nav > li{
  border-bottom:1px solid rgba(0,0,0,.06);
}
html.dark .pcf-mobile-nav > li{
  border-color:rgba(255,255,255,.08);
}
.pcf-mobile-nav a{
  display:block;
  padding:14px 20px;
  text-decoration:none;
  color:inherit;
  font-size:16px;
  font-weight:600;
}
.pcf-mobile-nav a:hover,
.pcf-mobile-nav a:focus{
  background:rgba(15,23,42,.04);
}
html.dark .pcf-mobile-nav a:hover,
html.dark .pcf-mobile-nav a:focus{
  background:rgba(255,255,255,.06);
}
.pcf-mobile-nav .sub-menu{
  list-style:none;
  margin:0;
  padding:0 0 8px 18px;
}
.pcf-mobile-nav .sub-menu a{
  font-size:14px;
  font-weight:500;
  padding:10px 20px;
}

/* Ensure the header toggle area matches News5-like rhythm */
.pcf-mobile-menu__header{
  min-height:56px;
}

@media (min-width:1024px){
  .pcf-mobile-toggle{ display:none !important; }
  .pcf-mobile-menu{ display:none !important; }
}

/* ===== Search trigger (top bar) ===== */
button.pcf-search-trigger{background: transparent; border: 0; padding: 0; box-shadow: none; cursor:pointer;}
button.pcf-search-trigger:focus{outline: none;}
button.pcf-search-trigger:focus-visible{outline: 2px solid rgba(255,255,255,.75); outline-offset: 4px; border-radius: 999px;}

/* ===== Search modal (News5-like centered panel) ===== */
.pcf-modal-open{overflow:hidden !important;}
.pcf-search-modal{position:fixed; inset:0; z-index: 99999;}
.pcf-search-modal__overlay{position:absolute; inset:0; background: rgba(255,255,255,.92);}
.pcf-search-modal__dialog{position:relative; max-width: 760px; margin: 10vh auto 0; background: transparent; padding: 40px 22px 34px; text-align:center;}
.pcf-search-modal__title{font-size: 56px; line-height:1.05; font-weight:800; margin: 0 0 26px;}
.pcf-search-modal__close{position:absolute; top: 18px; right: 18px; background: transparent; border: 0; padding: 10px; cursor:pointer; color: rgba(0,0,0,.75);}
.pcf-search-modal__close:hover{color: rgba(0,0,0,1);}

.pcf-search-modal__field{display:flex; align-items:center; gap: 12px; justify-content:center; max-width: 560px; margin: 0 auto; border-bottom: 1px solid rgba(0,0,0,.15); padding: 10px 6px 12px;}
.pcf-search-modal__field i{opacity:.55;}
.pcf-search-modal__input{flex:1; border:0; outline:0; background: transparent; font-size: 16px; padding: 8px 0;}
.pcf-search-modal__input::placeholder{color: rgba(0,0,0,.45);}

@media (max-width: 640px){
  .pcf-search-modal__dialog{margin-top: 12vh;}
  .pcf-search-modal__title{font-size: 40px;}
}
/* ===== Top bar: Popularne ticker (News5-like Swiper) ===== */
.pcf-popularne-swiper{min-width:0;}
.pcf-popularne-swiper .pcf-popular-swiper{min-width:0; width:100%;}
.pcf-popularne-swiper .pcf-popular-swiper .swiper-wrapper{min-width:0;}
.pcf-popularne-swiper .pcf-popular-swiper .swiper-slide{min-width:0;}
.pcf-popularne-swiper .post-title{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pcf-popularne-swiper .post-title a{color:#fff !important; text-decoration:none; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.pcf-popularne-swiper .post-title a:hover{opacity:.9;}


/* === TOP BAR (Popularne) – force single line layout (News5-like) === */
.uc-top-navbar .hstack.panel{
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  align-items: center !important;
}
.uc-top-navbar .uc-navbar-left{
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.uc-top-navbar .uc-navbar-right{
  flex: 0 0 auto !important;
  width: auto !important;
  flex-basis: auto !important;
  margin-left: auto !important;
}


/* === TOP BAR: FORCE SINGLE ROW (override anything from pcf-ui / uc) === */
.uc-top-navbar .container > .hstack.panel{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap: .75rem !important;
}
.uc-top-navbar .uc-navbar-left{
  display:flex !important;
  align-items:center !important;
  min-width:0 !important;
  flex:1 1 auto !important;
}
.uc-top-navbar .uc-navbar-right{
  display:flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
  width:auto !important;
  margin-left:auto !important;
}
.uc-top-navbar .trending-ticker,
.uc-top-navbar .trending-ticker .swiper{
  min-width:0 !important;
  flex:1 1 auto !important;
}
.uc-top-navbar .trending-ticker .post-title,
.uc-top-navbar .trending-ticker .post-title a{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
/* Make sure right-side icons never wrap onto a new row */
.uc-top-navbar .uc-navbar-right *{
  flex-wrap:nowrap !important;
}



/* Page title styles – przeniesione do pcf-components.css */

/* =========================
   Search trigger button (topbar)
   ========================= */
.pcf-search-trigger{
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

/* =========================
   Search results list item: add excerpt + CTA
   ========================= */
.pcf-post-list-item__excerpt{margin:10px 0 0;color:rgba(0,0,0,.75);font-size:15px;line-height:1.6;}
.pcf-post-list-item__more{display:inline-block;margin-top:12px;color:#2563eb;text-decoration:none;font-weight:600;}
.pcf-post-list-item__more:hover{text-decoration:underline;}

/* Excerpt truncation on archives/search */
.pcf-post-list-item__excerpt{
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow:hidden;
}
.pcf-post-classic-excerpt{
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow:hidden;
}


/* =========================
   Archive grid cards (News5-like)
   ========================= */
.pcf-archive-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;}
@media(max-width:1024px){.pcf-archive-cards{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.pcf-archive-cards{grid-template-columns:1fr;}}


/* ===============================
   PCF COMMENTS NEWS5
   =============================== */

.pcf-comments{padding-bottom:60px;}
.pcf-comments .uc-container{max-width: 980px;}
.pcf-comment-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:22px;}
.pcf-comment-item{list-style:none;}
.pcf-comment-card{
  background: #f7f7f7;
  border-radius: 18px;
  padding: 26px 28px;
}
@media (max-width: 640px){
  .pcf-comment-card{padding:18px 18px;border-radius:16px;}
}

.pcf-comment-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.pcf-comment-authorbox{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.pcf-comment-avatar{width:56px;height:56px;flex:0 0 56px;border-radius:999px;overflow:hidden;background:#e9e9e9;}
.pcf-comment-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:999px;}
.pcf-comment-author-meta{min-width:0;}
.pcf-comment-author{
  font-weight:700;
  line-height:1.1;
  color: #111;
}
.pcf-comment-meta{
  margin-top:4px;
  font-size: 13px;
  color:#777;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.pcf-comment-meta-dot{opacity:.8;}
.pcf-comment-actions{flex:0 0 auto;white-space:nowrap;margin-top:4px;}
.pcf-comment-reply a{
  color: var(--pcf-primary, #2563eb);
  font-weight:600;
  text-decoration:none;
}
.pcf-comment-reply a:hover{text-decoration:underline;}
.pcf-comment-content{
  margin-top:14px;
  color:#222;
  font-size: 15px;
  line-height:1.65;
}
.pcf-comment-content p{margin:0 0 10px;}
.pcf-comment-content p:last-child{margin-bottom:0;}
.pcf-comment-awaiting{
  font-size: 13px;
  color:#666;
  margin-bottom:10px;
}

.pcf-comment-list .children{
  list-style:none;
  margin: 18px 0 0 72px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}
@media (max-width: 640px){
  .pcf-comment-list .children{margin-left:18px;}
}

/* Form */
.pcf-comment-form-inner .uc-input,
.pcf-comment-form-inner .uc-textarea{
  background:#fff;
}
.pcf-comment-form-inner .uc-input:focus,
.pcf-comment-form-inner .uc-textarea:focus{
  outline:none;
}

/* ------------------------------
 * PCF HOTFIX 1.0.4 (comments width + avatar)
 * ------------------------------ */
/* Vendor skin sets #blog-comment .comment { margin-left: 85px; } and other offsets.
   Reset so comments take full post-content width. */
#blog-comment .comment,
#blog-comment .pcf-comment-item{
  margin-left:0 !important;
  padding-left:0 !important;
}

#blog-comment li.comment{
  min-height:0 !important;
  padding:0 !important;
  margin:0 0 20px 0 !important;
  border:0 !important;
  list-style:none !important;
}

/* Avatar: avoid background/positioning artifacts from vendor `.avatar` rules.
   We render our own <img> so we can control it fully. */
.pcf-comment-avatar{
  background:transparent !important;
  box-shadow:none !important;
}

.pcf-comment-avatar-img{
  display:block !important;
  width:48px !important;
  height:48px !important;
  max-width:48px !important;
  max-height:48px !important;
  border-radius:9999px !important;
  object-fit:cover !important;
  background:transparent !important;
}


/* =========================================================
   Post navigation (Prev/Next) – News5-like
   ========================================================= */
.pcf-post-nav{
  border-top:1px solid rgba(0,0,0,.08);
  padding-top:24px;
}
.pcf-post-nav__inner{
  display:flex;
  gap:24px;
  justify-content:space-between;
  align-items:stretch;
}
.pcf-post-nav__item{
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
  text-decoration:none;
  color:inherit;
}
.pcf-post-nav__item--prev{ justify-content:flex-start; }
.pcf-post-nav__item--next{ justify-content:flex-end; text-align:right; }

.pcf-post-nav__thumb{
  width:72px;
  height:72px;
  border-radius:14px;
  overflow:hidden;
  flex:0 0 72px;
  background:rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:center;
}
.pcf-post-nav__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.pcf-post-nav__content{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.pcf-post-nav__label{
  font-size:14px;
  opacity:.6;
  line-height:1.2;
}
.pcf-post-nav__title{
  font-size:20px;
  font-weight:800;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Responsive: stack on small */
@media (max-width: 767px){
  .pcf-post-nav__inner{ flex-direction:column; }
  .pcf-post-nav__item--next{ justify-content:flex-start; text-align:left; }
}

/* =========================================================
   Related posts – News5-like
   ========================================================= */
.pcf-related{
  border-top:1px solid rgba(0,0,0,.08);
  padding-top:28px;
}
.pcf-related__title{
  font-size:22px;
  font-weight:800;
  margin:0 0 18px 0;
}
.pcf-related__grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:28px;
}
@media (max-width: 1023px){
  .pcf-related__grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px){
  .pcf-related__grid{ grid-template-columns:1fr; }
}

.pcf-related-card__link{
  text-decoration:none;
  color:inherit;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.pcf-related-card__media{
  border-radius:14px;
  overflow:hidden;
  display:block;
  background:rgba(0,0,0,.04);
  aspect-ratio: 4 / 3;
}
.pcf-related-card__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.pcf-related-card__h{
  font-size:20px;
  font-weight:800;
  line-height:1.15;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.pcf-related-card__date{
  font-size:14px;
  opacity:.6;
}

/* ---------------------------------------------------------
   Minimal utility backfills (previously provided by vendor UI)
   Needed by existing markup (header/cards/single).
   --------------------------------------------------------- */

/* Media cover helper (used on images/avatars inside ratio boxes) */
.img-cover,
.media-cover{
  position:absolute !important;
  inset:0;
  width:100% !important;
  height:100% !important;
  object-fit:cover;
}

/* Generic image helper */
.image,
img.image{
  display:block;
  max-width:100%;
  height:auto;
}

/* Aspect-ratio helper (ratio + ratio-* modifiers) */
.ratio{
  position:relative;
  display:block;
  overflow:hidden;
}
.ratio::before{
  content:"";
  display:block;
  padding-top:56.25%; /* default 16:9 */
}
.ratio-1x1::before{ padding-top:100%; }
.ratio-16x9::before{ padding-top:56.25%; }
.ratio-4x3::before{ padding-top:75%; }
.ratio-3x2::before{ padding-top:66.6667%; }
.ratio > *{
  position:absolute;
  inset:0;
}

/* === PCF: REVIEW (recenzja) === */
.pcf-review{
  margin: var(--pcf-8) 0;
  font-family: var(--pcf-font-sans);
}
.pcf-review__scorebox{
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
  position: relative;
}
.pcf-review__title{
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--pcf-text);
}
.pcf-review__score{
  margin-top: 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.pcf-review__score-num{
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--pcf-text);
}
.pcf-review__score-den{
  font-weight: 600;
  font-size: 16px;
  color: var(--pcf-muted);
}

.pcf-review__badge{
  position:absolute;
  top: 14px;
  right: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  color: rgba(15,23,42,.92);
  white-space: nowrap;
}
.pcf-review__badge--poleca{ color: rgba(12, 120, 102, 1); }
.pcf-review__badge--power{ color: rgba(29, 78, 216, 1); }

html.dark .pcf-review__badge,
body.dark .pcf-review__badge{ background: rgba(15,23,42,.82); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.92); }
.pcf-review__cols{
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.pcf-review__col{
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  padding: 18px 18px;
}
.pcf-review__coltitle{
  font-weight: 800;
  font-size: 22px;
  margin: 2px 0 12px;
  color: var(--pcf-text);
}
.pcf-review__list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.pcf-review__item{
  position: relative;
  padding-left: 34px;
  color: var(--pcf-text);
  line-height: 1.45;
}
.pcf-review__item::before{
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(15,23,42,.2);
}
.pcf-review__item::after{
  content: "+";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
}
.pcf-review__item--plus::before{ background: rgba(12, 120, 102, .75); }
.pcf-review__item--plus::after{ content: "+"; }
.pcf-review__item--minus::before{ background: rgba(178, 62, 76, .75); }
.pcf-review__item--minus::after{ content: "–"; }

.pcf-review__empty{
  margin: 0;
  color: var(--pcf-muted);
}

@media (max-width: 720px){
  .pcf-review__cols{ grid-template-columns: 1fr; }
  .pcf-review__score-num{ font-size: 40px; }
  .pcf-review__badge{ position: static; margin: 12px auto 0; }
}


/* === PCF Block: Before/After (zdjęcie przed/po) === */
.pcf-before-after{
  --pcf-ba-pos: 50%;
  margin: 24px 0;
}

.pcf-before-after__frame{
  position: relative;
  border-radius: var(--pcf-radius-12);
  overflow: hidden;
  background: var(--pcf-surface);
  border: 1px solid var(--pcf-border);
}

.pcf-before-after__img{
  display: block;
  width: 100%;
  height: auto;
}

.pcf-before-after__img--after{
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--pcf-ba-pos)) 0 0);
}

.pcf-before-after__handle{
  position: absolute;
  top: 0;
  left: var(--pcf-ba-pos);
  transform: translateX(-1px);
  width: 2px;
  height: 100%;
  background: rgba(15,23,42,.35);
  pointer-events: none;
}

.pcf-before-after__handle::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--pcf-border);
  box-shadow: 0 6px 16px rgba(15,23,42,.14);
}

.pcf-before-after__handle::after{
  content: "⇆";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: rgba(15,23,42,.75);
}

.pcf-before-after__labels{
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.pcf-before-after__label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--pcf-border);
  font-size: 12px;
  font-weight: 700;
  color: rgba(15,23,42,.78);
}

.pcf-before-after__slider{
  margin-top: 10px;
}

.pcf-before-after__slider input[type="range"]{
  width: 100%;
}

.pcf-before-after__missing{
  padding: 28px 18px;
  text-align: center;
  color: var(--pcf-muted);
}

/* Editor preview tweaks */
.pcf-before-after--preview .pcf-before-after__slider{
  margin-top: 12px;
}


/* === Sponsored label (Materiał promocyjny) === */
.pcf-sponsored-note{
  margin: 12px auto 0;
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  color: var(--pcf-muted);
}
.pcf-sponsored-note--top{
  text-align: center;
}
.pcf-sponsored-note--bottom{
  margin-top: 18px;
  text-align: center;
}

/* Card sponsor note */
.pcf-post-sponsor-note{
  margin-top: 6px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #757575;
}
.pcf-post-sponsor-note--list{
  margin-top: 8px;
}
.pcf-post-sponsor-note--classic{
  margin-top: 8px;
}

/* === PCF PATCH: sponsored label + grid title size === */
.pcf-post-sponsored{
  display: block;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #757575;
  margin-top: .25rem;
}

.pcf-post-sponsored--empty{
  visibility:hidden;
}

/* center only on grid cards where required */
.pcf-post-grid-item .pcf-post-sponsored{
  text-align:center;
}
.pcf-post-grid-title,
.pcf-post-grid-title a{
  font-size:1.5rem;
  line-height:1.3;
}

/* === Public profile (/u/) === */
.pcf-public-profile--full{
  padding: 24px 0;
}
.pcf-profile-hero{
  border-top: 1px solid var(--pcf-border);
  border-bottom: 1px solid var(--pcf-border);
  background: var(--pcf-surface);
  border-radius: var(--pcf-radius-12);
  padding: 20px;
  margin-bottom: 22px;
}
.pcf-profile-hero__inner{
  display: grid;
  grid-template-columns: 160px 1fr 260px;
  gap: 18px;
  align-items: start;
}
.pcf-profile-hero__avatar img{
  width: 140px;
  height: 140px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--pcf-border);
  background: #fff;
}
.pcf-profile-hero__name{
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.pcf-profile-hero__role{
  margin-top: 6px;
  color: var(--pcf-muted);
  font-weight: 600;
}
.pcf-profile-hero__bio{
  margin-top: 12px;
  color: var(--pcf-text);
  max-width: 70ch;
}
.pcf-profile-hero__socials{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pcf-profile-hero__social{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--pcf-border);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pcf-text);
  background: #fff;
}
.pcf-profile-hero__social:hover{
  border-color: rgba(11,99,246,.35);
  color: var(--pcf-primary);
}

/* Profile socials: icons like in header */
.pcf-profile-hero__social-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.pcf-profile-hero__social-list .pcf-profile-hero__social{padding:0;font-size:inherit;letter-spacing:0;text-transform:none}
.pcf-profile-hero__stats{
  display: grid;
  gap: 10px;
  justify-items: end;
  text-align: right;
}
.pcf-profile-stat{
  padding: 10px 12px;
  border: 1px solid var(--pcf-border);
  border-radius: var(--pcf-radius-12);
  background: #fff;
  min-width: 220px;
}
.pcf-profile-stat__num{
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}
.pcf-profile-stat__label{
  margin-top: 4px;
  color: var(--pcf-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pcf-profile-publications__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  margin: 10px 0 14px;
}
.pcf-profile-publications__title{
  margin:0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.pcf-profile-publications__list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 680px){
  .pcf-profile-publications__list{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1024px){
  .pcf-profile-publications__list{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 980px){
  .pcf-profile-hero__inner{
    grid-template-columns: 120px 1fr;
  }
  .pcf-profile-hero__stats{
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }
  .pcf-profile-stat{ min-width: 0; width: 100%; }
  .pcf-profile-hero__avatar img{ width: 110px; height:110px; }
}


/* === News5-like mobile menu === */
/* Hamburger */
button.pcf-hamburger{
  width:40px;height:40px;
  display:inline-flex;flex-direction:column;justify-content:center;gap:6px;
  border:0;background:transparent;padding:0;margin:0;
}
.pcf-hamburger__line{
  width:22px;height:2px;display:block;
  background: currentColor;
  border-radius:2px;
}

/* Mobile menu container */
#pcf-mobile-menu{
  position:fixed;inset:0;
  z-index:9999;
  pointer-events:none;
}
#pcf-mobile-menu.is-open{ pointer-events:auto; }

.pcf-mobile-menu__backdrop{
  position:absolute;inset:0;
  background: rgba(15,23,42,.45);
  opacity:0;transition:opacity .18s ease;
  border:0;
}
#pcf-mobile-menu.is-open .pcf-mobile-menu__backdrop{ opacity:1; }

.pcf-mobile-menu__panel{
  position:absolute;top:0;left:0;bottom:0;
  width:320px;max-width:86vw;
  background: var(--pcf-bg,#fff);
  transform:translateX(-104%);
  transition:transform .22s ease;
  box-shadow: 0 10px 30px rgba(15,23,42,.12);
  display:flex;flex-direction:column;
}
#pcf-mobile-menu.is-open .pcf-mobile-menu__panel{ transform:translateX(0); }

.pcf-mobile-menu__header{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--pcf-border, rgba(15,23,42,.12));
}
.pcf-mobile-menu__close{
  width:40px;height:40px;border:0;background:transparent;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;
}
.pcf-mobile-menu__close:active{ transform:translateY(1px); }

/* Search in drawer */
.pcf-mobile-search{ padding:14px 14px 6px; }
.pcf-mobile-search__label{ position:relative; display:block; }
.pcf-mobile-search__icon{
  position:absolute;left:12px;top:50%;transform:translateY(-50%);
  opacity:.65;
}
.pcf-mobile-search__input{
  width:100%;
  padding:12px 12px 12px 40px;
  border:1px solid var(--pcf-border, rgba(15,23,42,.12));
  background: rgba(15,23,42,.03);
  border-radius:12px;
  outline: none;
}
.pcf-mobile-search__input:focus{ box-shadow:0 0 0 3px rgba(11,99,246,.18); border-color: rgba(11,99,246,.35); }

/* Nav list */
.pcf-mobile-menu__body{ overflow:auto; padding: 4px 0 10px; }
.pcf-mobile-nav{ list-style:none; margin:0; padding:0; }
.pcf-mobile-nav > li{
  position:relative;
  border-top:1px solid rgba(15,23,42,.08);
}
.pcf-mobile-nav > li:first-child{ border-top:0; }
.pcf-mobile-nav a.pcf-nav__link{
  display:block;
  padding:12px 44px 12px 14px;
  color: var(--pcf-text, #0f172a);
  font-weight:600;
  text-decoration:none;
}
.pcf-mobile-nav a.pcf-nav__link:active{ background: rgba(15,23,42,.03); }

/* Submenu toggle */
.pcf-submenu-toggle{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);
  width:40px;height:40px;border:0;background:transparent;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;
  opacity:.75;
}
.pcf-submenu-toggle i{ transition: transform .18s ease; }
li.is-open > .pcf-submenu-toggle i{ transform: rotate(90deg); }

/* Submenu */
.pcf-mobile-nav .sub-menu{
  list-style:none;margin:0;padding:0 0 8px;
  display:none;
}
.pcf-mobile-nav li.is-open > .sub-menu{ display:block; }
.pcf-mobile-nav .sub-menu a.pcf-nav__link{
  padding:10px 14px 10px 26px;
  font-weight:500;
  opacity:.9;
}

/* Footer account + socials */
.pcf-mobile-menu__footer{
  margin-top:auto;
  padding:12px 14px 16px;
  border-top:1px solid rgba(15,23,42,.08);
}
.pcf-mobile-account{ display:grid; gap:8px; margin-bottom:12px; }
.pcf-mobile-account__link{
  color: var(--pcf-text,#0f172a);
  text-decoration:none;
  font-weight:600;
}
.pcf-mobile-social{
  display:flex;gap:10px;align-items:center;
  list-style:none;margin:0;padding:0;
}
.pcf-mobile-social a{
  width:36px;height:36px;border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;
  background: rgba(15,23,42,.03);
  border:1px solid rgba(15,23,42,.10);
  color: var(--pcf-text,#0f172a);
}


/* === Footer grid proportions 20/20/20/40 (PCF) ===
   Footer template uses .pcf-footer-widgets wrapping a .uc-grid.
   We override layout on .uc-grid to avoid breaking UC width classes. */
.pcf-footer-widgets .uc-grid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 2fr; /* 20/20/20/40 */
  gap: 2rem;
  align-items:start;
}
.pcf-footer-widgets .uc-grid > *{
  width:auto !important; /* neutralize uc-width-* */
  min-width:0;
}

/* Tablet: 2 + 2 */
@media (max-width: 1024px){
  .pcf-footer-widgets .uc-grid{
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px){
  .pcf-footer-widgets .uc-grid{
    grid-template-columns: 1fr;
  }
}

/* Utility: width 120px (header logo) */
.w-120px{width:120px!important;}


/* === A11Y: skip link + focus === */
.pcf-skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;z-index:9999;background:#fff;color:#0f172a;padding:10px 14px;border-radius:8px;box-shadow:0 4px 18px rgba(0,0,0,.18);}
.pcf-skip-link:focus{left:16px;top:16px;width:auto;height:auto;}
:focus-visible{outline:2px solid rgba(11,99,246,.85);outline-offset:2px;}


/* A11Y: robust skip link hiding */
.pcf-skip-link{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
.pcf-skip-link:focus{left:16px!important;top:16px!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;}


/* === PCF SIDEBAR WIDGETS === */
.pcf-sidebar{
  display:flex;
  flex-direction:column;
  gap: 20px;
}
@media (min-width: 1024px){
  .pcf-sidebar{
    position: sticky;
    top: 110px; /* below topbar + header */
    align-self: flex-start;
  }
}

.pcf-sidebar .widget,
.pcf-sidebar .widget_block{
  background: var(--pcf-bg);
  border: 1px solid var(--pcf-border);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

.pcf-sidebar .widget-title,
.pcf-sidebar .wp-block-heading{
  margin: 0 0 12px 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
}

.pcf-sidebar .widget a{
  color: inherit;
  text-decoration: none;
}
.pcf-sidebar .widget a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pcf-sidebar .widget ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.pcf-sidebar .widget li{
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(15,23,42,.08);
  line-height: 1.25;
  font-size: 14px;
}
.pcf-sidebar .widget li:first-child{
  border-top: 0;
  padding-top: 0;
}
.pcf-sidebar .widget li:last-child{
  padding-bottom: 0;
}

/* Archive/cat lists can get huge – keep them readable */
.pcf-sidebar .widget_archive ul,
.pcf-sidebar .widget_categories ul{
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}
.pcf-sidebar .widget_archive ul::-webkit-scrollbar,
.pcf-sidebar .widget_categories ul::-webkit-scrollbar{ width: 8px; }
.pcf-sidebar .widget_archive ul::-webkit-scrollbar-thumb,
.pcf-sidebar .widget_categories ul::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.15);
  border-radius: 999px;
}

/* Calendar widget */
.pcf-sidebar #wp-calendar{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.pcf-sidebar #wp-calendar caption{
  text-align:left;
  margin-bottom: 8px;
  font-weight: 700;
}
.pcf-sidebar #wp-calendar th,
.pcf-sidebar #wp-calendar td{
  padding: 6px 4px;
  border: 1px solid rgba(15,23,42,.10);
  text-align:center;
}
.pcf-sidebar #wp-calendar a{
  font-weight: 700;
}

/* Search widget */
.pcf-sidebar .widget_search form{
  display:flex;
  gap:10px;
}
.pcf-sidebar .widget_search input[type="search"],
.pcf-sidebar .widget_search input[type="text"]{
  flex:1;
  min-width: 0;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.16);
  padding: 0 12px;
  background: rgba(15,23,42,.02);
}
.pcf-sidebar .widget_search input[type="submit"],
.pcf-sidebar .widget_search button{
  height: 42px;
  border-radius: 12px;
  padding: 0 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: #0b63f6;
  color: #fff;
  font-weight: 700;
}

/* Dark mode tweaks */
.dark .pcf-sidebar .widget,
.dark .pcf-sidebar .widget_block{
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.dark .pcf-sidebar .widget li{
  border-top-color: rgba(255,255,255,.10);
}
.dark .pcf-sidebar .widget_search input[type="search"],
.dark .pcf-sidebar .widget_search input[type="text"]{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}


/* === PCF SEARCH RESULTS === */
.search .pcf-post-grid-item,
.search .pcf-archive-post,
.search .pcf-post-card,
.search .pcf-search-item{
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  background: transparent;
  padding: 14px 14px;
}

.dark.search .pcf-post-grid-item,
.dark.search .pcf-archive-post,
.dark.search .pcf-post-card,
.dark.search .pcf-search-item{
  border-color: rgba(255,255,255,.12);
}

.dark.search .pcf-post-grid-item .pcf-post-grid-excerpt,
.dark.search .pcf-archive-post .pcf-post-grid-excerpt,
.dark.search .pcf-post-grid-item .pcf-excerpt,
.dark.search .pcf-archive-post .pcf-excerpt{
  color: rgba(255,255,255,.72) !important;
}

.dark.search .pcf-post-grid-item .pcf-post-grid-author,
.dark.search .pcf-archive-post .pcf-post-grid-author,
.dark.search .pcf-post-grid-item .pcf-meta,
.dark.search .pcf-archive-post .pcf-meta,
.dark.search .pcf-post-grid-item .pcf-post-meta,
.dark.search .pcf-archive-post .pcf-post-meta,
.dark.search .pcf-post-grid-item .pcf-post-grid-meta,
.dark.search .pcf-archive-post .pcf-post-grid-meta{
  color: rgba(255,255,255,.70) !important;
}

.dark.search .pcf-post-grid-item .pcf-post-grid-author a,
.dark.search .pcf-archive-post .pcf-post-grid-author a{
  color: rgba(255,255,255,.80) !important;
}


/* === PCF SEARCH RESULTS v2 (pcf-post-list-item markup) === */
.search article.pcf-post-list-item{
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  padding: 14px 14px;
}

.dark.search article.pcf-post-list-item{
  border-color: rgba(255,255,255,.12);
}

.dark.search .pcf-post-byline,
.dark.search .pcf-post-byline *,
.dark.search .pcf-post-list-item__excerpt{
  color: rgba(255,255,255,.72) !important;
}

.dark.search .pcf-post-byline a{
  color: rgba(255,255,255,.82) !important;
}


/* === PCF SEARCH RESULTS v3 (dark mode scope fix) === */
/* Dark class is on <html>, search class is on <body> */
html.dark body.search-results article.pcf-post-list-item,
html.dark body.search article.pcf-post-list-item{
  border-color: rgba(255,255,255,.12);
}

html.dark body.search-results .pcf-post-byline,
html.dark body.search-results .pcf-post-byline *,
html.dark body.search-results .pcf-post-list-item__excerpt,
html.dark body.search .pcf-post-byline,
html.dark body.search .pcf-post-byline *,
html.dark body.search .pcf-post-list-item__excerpt{
  color: rgba(255,255,255,.72) !important;
}

html.dark body.search-results .pcf-post-byline a,
html.dark body.search .pcf-post-byline a{
  color: rgba(255,255,255,.82) !important;
}
