/* WOLF4 Blog – styles for the Elementor templates and the plugin's shortcodes.
   Everything is scoped under .w4b (set on the top containers of each template). */

.w4b {
  --w4-ink: #17181F;
  --w4-text: #33343D;
  --w4-muted: #5F6270;
  --w4-soft: #6E7180;
  --w4-line: #ECECF4;
  --w4-accent: #696CFF;
  --w4-accent-hover: #5457E6;
  --w4-accent-deep: #494BD4;
  --w4-tint: #F3F2FF;
  --w4-tint-2: #F6F6FF;
  --w4-serif: 'Piazzolla', Georgia, serif;
  --w4-sans: 'Open Sans', system-ui, sans-serif;
  --w4-mono: 'JetBrains Mono', ui-monospace, monospace;
  font-family: var(--w4-sans);
  color: var(--w4-text);
}
.w4b a { text-decoration: none; }
.w4b a:not(.elementor-button) { color: inherit; }

/* Blog pages start right under the header, like the other pages of the site (they zero the kit's body padding). */
body.w4b-page { padding-top: 0; }

/* Colour presets (ACF field "Kolor" on a category). */
.w4-p-fiolet  { --w4-grad: linear-gradient(135deg, #696CFF 0%, #8B5CF6 100%); --w4-tile-bg: rgba(255,255,255,.18); --w4-tile-fg: #FFFFFF; --w4-glow: rgba(139,92,246,.3);  --w4-wash: #F3F0FF; }
.w4-p-lawenda { --w4-grad: linear-gradient(135deg, #F3F2FF 0%, #C9C3FF 100%); --w4-tile-bg: rgba(255,255,255,.75); --w4-tile-fg: #696CFF; --w4-glow: rgba(105,108,255,.18); --w4-wash: #F7F7FF; }
.w4-p-indygo  { --w4-grad: linear-gradient(135deg, #494BD4 0%, #696CFF 100%); --w4-tile-bg: rgba(255,255,255,.18); --w4-tile-fg: #FFFFFF; --w4-glow: rgba(73,75,212,.28);  --w4-wash: #F0F1FF; }
.w4-p-purpura { --w4-grad: linear-gradient(135deg, #8B5CF6 0%, #D3C7FF 100%); --w4-tile-bg: rgba(255,255,255,.18); --w4-tile-fg: #FFFFFF; --w4-glow: rgba(168,120,255,.3); --w4-wash: #F7F2FF; }
.w4-p-blekit  { --w4-grad: linear-gradient(135deg, #5BB8F5 0%, #696CFF 100%); --w4-tile-bg: rgba(255,255,255,.18); --w4-tile-fg: #FFFFFF; --w4-glow: rgba(91,184,245,.3);  --w4-wash: #F1F8FF; }
.w4-p-perla   { --w4-grad: linear-gradient(135deg, #FFFFFF 0%, #D9D5FF 100%); --w4-tile-bg: rgba(255,255,255,.75); --w4-tile-fg: #696CFF; --w4-glow: rgba(170,162,255,.26); --w4-wash: #F8F8FF; }
.w4-p-granat  { --w4-grad: linear-gradient(135deg, #23245A 0%, #5B4FD6 100%); --w4-tile-bg: rgba(255,255,255,.18); --w4-tile-fg: #FFFFFF; --w4-glow: rgba(35,36,90,.22);   --w4-wash: #F2F2F8; }

/* Top band: soft violet glow behind the page header; on a category archive the body carries the category's preset. */
.w4b.w4-top {
  background:
    radial-gradient(70% 520px at 50% 0%, var(--w4-glow, rgba(139,92,246,.22)) 0%, rgba(139,92,246,0) 100%),
    linear-gradient(180deg, var(--w4-wash, #F6F6FF) 0%, #FFFFFF 620px);
}

/* Type */
.w4b .w4-eye,
.w4b .w4-eye .elementor-heading-title {
  font-family: var(--w4-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--w4-accent);
  margin: 0;
}
.w4b .w4-h2 .elementor-heading-title {
  margin: 0;
  font-family: var(--w4-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--w4-ink);
}
.w4b .w4-accent { color: var(--w4-accent); }
.w4b .w4-center { text-align: center; }
/* Breadcrumbs drawn by the plugin, in the look of the site's ElementsKit breadcrumb */
.w4-crumbs {
  display: inline-block;
  padding: 3px;
  border: 1px solid #777777;
  border-radius: 4px;
}
.w4-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'Noto Sans', sans-serif;
  font-size: 12px;
  line-height: 14px;
}
.w4-crumbs li {
  margin: 0;
  padding: 4px 8px;
  border-radius: 4px;
  color: #FFFFFF;
}
.w4-crumbs li:last-of-type { background-image: linear-gradient(180deg, #696CFF 0%, #3436A1 100%); }
.w4-crumbs li > a,
.w4b .w4-crumbs li > a { color: #777777; text-decoration: none; }
.w4-crumbs li > a:hover,
.w4b .w4-crumbs li > a:hover { color: #696CFF; }
.w4-crumbs li:last-of-type > a,
.w4b .w4-crumbs li:last-of-type > a { color: #FFFFFF; }

/* Category header: the category's own colour, as in the design (body carries .w4-p-{colour}) */
.w4b.w4-hero.w4-top {
  background:
    radial-gradient(70% 520px at 50% 0%, var(--w4-glow, rgba(139,92,246,.22)) 0%, rgba(139,92,246,0) 100%),
    linear-gradient(180deg, var(--w4-wash, #F6F6FF) 0%, #FFFFFF 100%);
}

/* Subpage header: same values as the other subpages of wolf4.pl */
.w4b .e-con > .elementor-widget.w4-hero-title { width: 70%; max-width: 70%; align-self: center; }
.w4b .w4-hero-title,
.w4b .w4-hero-title :is(h1, p) {
  margin: 0;
  font-family: 'Piazzolla', Georgia, serif;
  font-size: 58px;
  font-weight: 600;
  line-height: 62px;
  color: #191919;
  text-align: center;
}
.w4b .w4-hero-title strong { font-weight: inherit; }
.w4b .w4-hero-lead,
.w4b .w4-hero-lead p {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 32px;
  color: #42454F;
  text-align: center;
}
.w4b .w4-hero-lead p + p { margin-top: 12px; }
/* The lead is half the width on desktop, narrower than the title (the widget sets the same). */
.w4b .e-con > .elementor-widget.w4-hero-lead { width: 50%; max-width: 50%; align-self: center; }
@media (max-width: 1024px) {
  .w4b .e-con > .elementor-widget.w4-hero-lead { width: 80%; max-width: 80%; }
}
.w4b .w4-hero-icon {
  margin: 0 0 30px;
  text-align: center;
  font-size: 65px;
  line-height: 1;
  color: var(--e-global-color-primary, #696CFF);
}
@media (max-width: 767px) {
  .w4b .e-con > .elementor-widget.w4-hero-title { width: 100%; max-width: 100%; }
  .w4b .e-con > .elementor-widget.w4-hero-lead { width: 100%; max-width: 100%; }
  .w4b .w4-hero-title,
  .w4b .w4-hero-title :is(h1, p) { font-size: 30px; line-height: 1.2em; }
  .w4b .w4-hero-lead,
  .w4b .w4-hero-lead p { font-size: 16px; line-height: 1.5em; }
}
.w4b .w4-text,
.w4b .w4-text p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--w4-muted);
}

/* "See all" link */
.w4b .w4-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--w4-accent);
}
.w4b .w4-more:hover { color: var(--w4-accent-deep); }
.w4b .w4-more :is(i, svg) { font-size: 14px; }
.w4b .w4-nl__eye :is(i, svg) { font-size: 14px; }

/* Layout helpers for widgets and containers */
.w4b .e-con > .elementor-widget.w4-feat-l { flex: 1.15 1 520px; min-width: 0; width: auto; }
.w4b .e-con > .elementor-widget.w4-feat-r { flex: 1 1 400px; min-width: 0; width: auto; }
.w4b .e-con > .elementor-widget.w4-fit { flex: 0 0 auto; width: auto; max-width: 100%; }
.w4b .e-con.w4-grow { flex: 1 1 0; min-width: 0; }
.e-con > .elementor-widget.w4-grow-w { flex: 1 1 0; min-width: 0; width: auto; }
.w4b .e-con.w4-fitc { --width: auto; width: auto; flex: 0 1 auto; }
.w4b .e-con > .elementor-widget.w4-full { width: 100%; align-self: stretch; }
.w4b .e-con.w4-related-in { border-top: 1px solid var(--w4-line); }

/* Thumbnails: featured image, or the category gradient with its icon */
.w4-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  background: var(--w4-grad, linear-gradient(135deg, #696CFF 0%, #8B5CF6 100%));
  border-radius: 16px;
}
.w4-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 85% 0%, rgba(255,255,255,.45), rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.w4-thumb--img::after { display: none; }
/* A photo covers the frame anyway; a transparent image shows the page, not the placeholder gradient. */
.w4-thumb--img { background: transparent; }
.w4-thumb--alpha img.w4-thumb__img { object-position: center bottom; }
.w4-thumb img.w4-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
}
.w4-glass {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--w4-tile-bg, rgba(255,255,255,.18));
  color: var(--w4-tile-fg, #FFFFFF);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px -8px rgba(35,36,90,.35), inset 0 0 0 1px rgba(255,255,255,.45);
}
.w4-glass :is(i, svg) { font-size: 20px; line-height: 1; }
.w4-thumb--wiersz { width: 150px; height: 112px; border-radius: 16px; flex-shrink: 0; }
.w4-thumb--karta { height: 200px; border-radius: 16px; }
.w4-thumb--karta .w4-glass { width: 56px; height: 56px; border-radius: 14px; }
.w4-thumb--karta .w4-glass :is(i, svg) { font-size: 24px; }
.w4-thumb--duza { height: 360px; border-radius: 22px; }
.w4-thumb--duza .w4-glass { width: 96px; height: 96px; border-radius: 24px; background: rgba(255,255,255,.3); color: #FFFFFF; }
.w4-thumb--duza .w4-glass :is(i, svg) { font-size: 40px; }
.w4-thumb--polecana { height: 380px; border-radius: 22px; }
.w4-thumb--polecana .w4-glass { width: 88px; height: 88px; border-radius: 22px; }
.w4-thumb--polecana .w4-glass :is(i, svg) { font-size: 36px; }
.w4-thumb--wpis { height: 500px; border-radius: 24px; }
.w4-thumb--wpis .w4-glass { width: 112px; height: 112px; border-radius: 28px; background: rgba(255,255,255,.3); color: #FFFFFF; }
.w4-thumb--wpis .w4-glass :is(i, svg) { font-size: 48px; }

/* Cards (loop items) */
.e-con.w4b.w4-card { color: inherit; text-decoration: none; }
.w4b .w4-card-title .elementor-heading-title {
  margin: 0;
  font-family: var(--w4-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.22;
  color: var(--w4-ink);
  transition: color .15s;
}
.w4b .w4-card-title--xl .elementor-heading-title { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.12; }
.w4b.w4-card:hover .w4-card-title .elementor-heading-title { color: var(--w4-accent); }
.w4b .w4-card-ex,
.w4b .e-con .w4-card-ex :is(.elementor-widget-container, p) {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: #5F6270;
}
.w4b .w4-card-ex--lg,
.w4b .e-con .w4-card-ex--lg :is(.elementor-widget-container, p) { font-size: 16px; }
.w4b .w4-clamp2 .elementor-widget-container,
.w4b .w4-clamp2 p,
.w4b .w4-clamp2:not(:has(.elementor-widget-container)):not(:has(p)) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.w4b .w4-clamp3 .elementor-widget-container,
.w4b .w4-clamp3 p,
.w4b .w4-clamp3:not(:has(.elementor-widget-container)):not(:has(p)) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.e-con.w4b.w4-card--row { border-bottom: 1px solid var(--w4-line); }
.e-con.w4b.w4-card--row > .elementor-widget.w4-card__thumb { flex: 0 0 auto; width: auto; }
.w4b .e-con.w4-card__body { flex: 1 1 0; min-width: 0; }
.w4b .e-con.w4-card__body > .elementor-widget:last-child { margin-top: auto; }
.w4b .w4-rows-first .e-loop-item:first-child .e-con.w4-card--row { padding-top: 0; --padding-top: 0px; }
.e-con.w4b.w4-card--feat > .elementor-widget.w4-card__thumb { flex: 1.2 1 460px; min-width: 0; width: auto; }
.e-con.w4b.w4-card--feat > .e-con.w4-card__body { flex: 1 1 380px; }

/* Meta row: avatar, author, date, reading time, category */
.w4-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
}
.w4-meta--post {
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid #ECECF4;
}
.w4-an { font-size: 13px; font-weight: 600; color: #17181F; }
.w4-sep { color: #B4B6C4; }
.w4-dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  color: #6E7180;
}
.w4-rt { display: inline-flex; align-items: center; gap: 6px; }
.w4-rt :is(i, svg) { font-size: 12px; }
.w4-meta .w4-eye { letter-spacing: .1em; }
.w4-av {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #EEF0FF, #D3C7FF);
}
.w4-av img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Loop grids: pagination and "load more" */
.w4b .elementor-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.w4b .elementor-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid #E4E2FF;
  background: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  color: var(--w4-text);
}
.w4b .elementor-pagination a.page-numbers:hover { border-color: var(--w4-accent); color: var(--w4-accent); }
.w4b .elementor-pagination .page-numbers.current { background: var(--w4-accent); border-color: var(--w4-accent); color: #FFFFFF; }
.w4b .elementor-pagination .page-numbers.dots { border: 0; background: transparent; }
.w4b .e-load-more-wrapper { display: flex; justify-content: center; margin-top: 40px; }
.w4b .e-load-more-wrapper .elementor-button,
.w4b .w4-btn-outline .elementor-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  border: 1px solid #D9D7F2 !important;
  background: #FFFFFF !important;
  color: var(--w4-ink) !important;
  font-family: var(--w4-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.w4b .e-load-more-wrapper .elementor-button:hover,
.w4b .w4-btn-outline .elementor-button:hover { border-color: var(--w4-accent) !important; color: var(--w4-accent-deep) !important; }

/* Empty states driven by body classes the plugin sets */
body.w4-no-rest .w4b.w4-rest { display: none; }
body.paged .w4b.w4-only-first { display: none; }
body.w4-no-related .w4b.w4-related { display: none; }
.w4b .w4-empty-box {
  padding: 48px;
  border-radius: 22px;
  background: var(--w4-tint-2);
  text-align: center;
  font-size: 15px;
  color: var(--w4-muted);
}

/* Newsletter box */
.w4b .e-con.w4-nl {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #E4E2FF;
  background: linear-gradient(120deg, #F6F6FF 0%, #ECEAFF 45%, #C9C3FF 100%);
}
.w4b .e-con.w4-nl::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.35), rgba(139,92,246,0) 70%);
  pointer-events: none;
}
.w4b .e-con.w4-nl > * { position: relative; }
.w4b .e-con.w4-nl > .e-con.w4-nl__txt { flex: 1 1 380px; min-width: 0; }
.w4b .e-con.w4-nl > .elementor-widget.w4-nl-form { flex: 1 1 420px; max-width: 500px; min-width: 0; width: auto; }
.w4b .w4-nl__h .elementor-heading-title {
  margin: 0;
  font-family: var(--w4-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--w4-ink);
}
.w4b .w4-nl__eye { display: inline-flex; align-items: center; gap: 8px; }
.w4b .w4-nl-form .elementor-field-group { margin-bottom: 12px; }
.w4b .w4-nl-form .elementor-field-type-email { order: 1; }
.w4b .w4-nl-form .elementor-field-type-submit { order: 2; align-self: flex-end; }
.w4b .w4-nl-form .elementor-field-type-acceptance { order: 3; }
/* Elementor hides the honeypot input itself; its empty group would still add a row. */
.w4b .w4-nl-form .elementor-field-type-honeypot { display: none !important; }
.w4b .w4-nl-form .elementor-field-label {
  /* The label is inline and the widget's own label spacing would win, so it is a block with a forced gap. */
  display: block;
  width: 100%;
  margin: 0 0 8px !important;
  padding: 0 !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--w4-ink);
}
/* The consent checkbox has the elementor-field class too; the input look belongs to the email field only. */
.w4b .w4-nl-form .elementor-field-type-email input.elementor-field {
  min-height: 56px;
  padding: 0 16px;
  border-radius: 10px !important;
  border: 1px solid #E4E2FF !important;
  background: #FFFFFF !important;
  font-family: var(--w4-sans);
  font-size: 15px;
  color: var(--w4-ink) !important;
}
.w4b .w4-nl-form .elementor-field-type-email input.elementor-field:focus {
  border-color: var(--w4-accent) !important;
  box-shadow: 0 0 0 3px rgba(105,108,255,.25);
  outline: none;
}
.w4b .w4-nl-form .elementor-field-type-submit .elementor-button {
  min-height: 56px;
  width: 100%;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--w4-accent) !important;
  color: #FFFFFF !important;
  font-family: var(--w4-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.w4b .w4-nl-form .elementor-field-type-submit .elementor-button:hover { background: var(--w4-accent-hover) !important; }
.w4b .w4-nl-form .elementor-field-type-acceptance .elementor-field-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.w4b .w4-nl-form .elementor-field-type-acceptance input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--w4-accent);
}
.w4b .w4-nl-form .elementor-field-type-acceptance label {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--w4-muted);
}
.w4b .w4-nl-form .elementor-field-type-acceptance a { color: var(--w4-accent-deep); text-decoration: underline; }

/* Changelog rows (loop item "wiersz changelogu") */
.e-con.w4-cl-item { border-top: 1px solid #ECECF4; }
.e-con.w4-cl-item > .elementor-widget.w4-cl-date { flex: 0 0 120px; width: 120px; }
.w4-cl-label {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #F3F2FF;
  color: #494BD4;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.w4-cl-label--new { background: #696CFF; color: #FFFFFF; }
.e-con.w4-cl-item:has(.w4-cl-open):not(.is-open) { cursor: pointer; }
.w4-cl-anchor { display: block; position: relative; top: -120px; visibility: hidden; }
.w4-cl-title {
  margin: 0;
  font-family: 'Piazzolla', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.22;
  color: #17181F;
}
.w4b .w4-cl-title a.w4-cl-open,
.w4b .w4-cl-title a.w4-cl-open:hover {
  color: inherit;
  text-decoration: none;
}
.w4-cl-title__text { transition: color .2s ease; }
.w4-cl-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 10px;
  vertical-align: middle;
  color: #696CFF;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s ease, transform .3s ease;
}
.w4-cl-arrow__line {
  display: inline-block;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: width .3s ease;
}
.w4-cl-arrow :is(i, svg) { font-size: 16px; margin-left: -2px; }
.e-con.w4-cl-item:not(.is-open):hover .w4-cl-title__text,
.w4-cl-open:focus-visible .w4-cl-title__text { color: #696CFF; }
.e-con.w4-cl-item:not(.is-open):hover .w4-cl-arrow,
.w4-cl-open:focus-visible .w4-cl-arrow { opacity: 1; transform: none; }
.e-con.w4-cl-item:not(.is-open):hover .w4-cl-arrow__line,
.w4-cl-open:focus-visible .w4-cl-arrow__line { width: 22px; }
.w4-cl-item.is-open .w4-cl-arrow { display: none; }
.w4-cl-text { margin-top: 6px; }
.w4-cl-text.is-opening { overflow: hidden; transition: height .4s ease; }
.w4-cl-short p,
.w4-cl-full p {
  margin: 0 0 12px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: #5F6270;
}
.w4-cl-short p:last-child,
.w4-cl-full > :last-child { margin-bottom: 0; }
.w4-cl-full { animation: w4-cl-in .45s ease; }
.w4-cl-full p { color: #33343D; }
.w4-cl-full a { color: #494BD4; text-decoration: underline; text-underline-offset: 3px; }
.w4-cl-full :is(ul, ol) { margin: 0 0 12px; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: #33343D; }
.w4-cl-full img { display: block; max-width: 100%; height: auto; margin: 16px 0; border-radius: 14px; }
@keyframes w4-cl-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .w4-cl-arrow, .w4-cl-arrow__line, .w4-cl-text.is-opening { transition: none; }
  .w4-cl-full { animation: none; }
}
.w4-cl-label--soon { background: transparent; color: #494BD4; box-shadow: inset 0 0 0 1px #B9B2FF; }

/* Category hub tiles */
.w4-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}
.w4-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  box-sizing: border-box;
  transition: background .15s;
}
.w4-tile:hover { background: rgba(255,255,255,.8); }
.w4-tile:hover .w4-tile__name { color: #696CFF; }
.w4-cicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  background: var(--w4-grad);
  color: var(--w4-tile-fg, #FFFFFF);
}
.w4-cicon :is(i, svg) { font-size: 22px; line-height: 1; }
.w4-tile__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.w4-tile__name {
  font-family: 'Piazzolla', Georgia, serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.22;
  color: #17181F;
  transition: color .15s;
}
.w4-tile__desc { font-size: 13.5px; line-height: 1.6; color: #5F6270; }

/* Single post */
.w4b .w4-post-h1 .elementor-heading-title {
  max-width: 940px;
  margin: 0;
  font-family: var(--w4-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  color: var(--w4-ink);
}
/* Set on the text itself: Elementor paints the excerpt widget with the kit's text colour (#A7A7A7). */
.w4b .w4-post-lead,
.w4b .e-con .w4-post-lead :is(.elementor-widget-container, p) {
  max-width: 760px;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: #5F6270;
}
.w4b .e-con.w4-toc-col { flex: 0 0 240px; width: 240px; position: sticky; top: 108px; }
.w4b .e-con.w4-toc-col.w4-toc-empty { display: none; }
.w4b .e-con.w4-post-main { flex: 1 1 560px; min-width: 0; max-width: 760px; }
.w4-toc[hidden] { display: none; }
.w4-toc__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.w4-toc__list a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #5F6270;
  transition: background .2s, color .2s;
}
.w4-toc__list a:hover,
.w4-toc__list a[aria-current="true"] { background: #F3F2FF; color: #494BD4; }
.w4-toc__n {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  color: #8B8EF9;
}
.w4-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #ECECF4;
}
.w4-tags .w4-eye { margin-right: 8px; }
.w4-tagc {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #F3F2FF;
  color: #494BD4;
  font-size: 13px;
  font-weight: 600;
}
.w4-tagc:hover { background: #E4E1FF; }

/* Post body typography */
html { scroll-behavior: smooth; }
.w4b .w4-prose {
  font-size: 18px;
  line-height: 1.75;
  color: #191919;
}
/* The site kit paints body text #A7A7A7 and Elementor repeats it on this widget; set it on the text itself. */
.w4b .w4-prose :is(p, li, dd, dt, td, th, blockquote, div, span:not([class])) { color: #191919; }
.w4b .w4-prose h2 {
  margin: 48px 0 0;
  scroll-margin-top: 110px;
  font-family: var(--w4-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.25;
  color: var(--w4-ink);
}
.w4b .w4-prose h2:first-child { margin-top: 0; }
.w4b .w4-prose h3 {
  margin: 32px 0 0;
  scroll-margin-top: 110px;
  font-family: var(--w4-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--w4-ink);
}
.w4b .w4-prose p { margin: 16px 0 0; }
.w4b .w4-prose > .elementor-widget-container > p:first-child,
.w4b .w4-prose > p:first-child { margin-top: 0; }
.w4b .w4-prose a {
  color: var(--w4-accent-deep);
  text-decoration: underline;
  text-decoration-color: rgba(73,75,212,.35);
  text-underline-offset: 3px;
}
.w4b .w4-prose a:hover { text-decoration-color: var(--w4-accent-deep); }
.w4b .w4-prose ul,
.w4b .w4-prose ol { margin: 16px 0 0; padding-left: 22px; }
.w4b .w4-prose li { margin-top: 8px; padding-left: 4px; }
.w4b .w4-prose li::marker { color: var(--w4-accent); }
.w4b .w4-prose blockquote {
  margin: 32px 0 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--w4-accent);
  font-family: var(--w4-serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--w4-ink);
}
.w4b .w4-prose figure { margin: 40px 0 8px; }
/* Images in the text: block editor and classic editor (alignnone/aligncenter/alignleft/alignright, captions). */
.w4b .w4-prose img { display: block; max-width: 100%; height: auto; border-radius: 18px; }
.w4b .w4-prose :is(img.alignnone, img.aligncenter, .wp-caption.alignnone, .wp-caption.aligncenter) { margin: 32px auto; }
.w4b .w4-prose :is(img.size-large, img.size-full, .wp-block-image img) { width: 100%; }
.w4b .w4-prose .wp-block-image { margin: 40px 0 8px; }
.w4b .w4-prose :is(img.alignleft, .wp-caption.alignleft, .wp-block-image .alignleft) { float: left; max-width: 50%; margin: 8px 28px 16px 0; }
.w4b .w4-prose :is(img.alignright, .wp-caption.alignright, .wp-block-image .alignright) { float: right; max-width: 50%; margin: 8px 0 16px 28px; }
.w4b .w4-prose .wp-caption { max-width: 100%; }
.w4b .w4-prose .wp-caption img { margin: 0; }
.w4b .w4-prose :is(h2, h3, figure, .wp-block-image) { clear: both; }
.w4b .w4-prose::after { content: ""; display: table; clear: both; }
.w4b .w4-prose .wp-caption-text,
.w4b .w4-prose figcaption,
.w4b .w4-prose .wp-element-caption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--w4-soft);
  text-align: center;
}
.w4b .w4-prose code {
  font-family: var(--w4-mono);
  font-size: .88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--w4-tint);
}

/* Phone */
@media (max-width: 767px) {
  .w4b .w4-prose :is(img.alignleft, img.alignright, .wp-caption.alignleft, .wp-caption.alignright, .wp-block-image .alignleft, .wp-block-image .alignright) { float: none; max-width: 100%; margin: 24px auto; }
  .w4-thumb--wiersz { width: 96px; height: 84px; }
  .w4-thumb--duza,
  .w4-thumb--polecana { height: 240px; }
  .w4-thumb--wpis { height: 260px; }
  .e-con.w4b.w4-card--row { --gap: 14px; --column-gap: 14px; gap: 14px; }
  .e-con.w4-cl-item { --flex-direction: column; flex-direction: column; --gap: 8px; gap: 8px; }
  .e-con.w4-cl-item > .elementor-widget.w4-cl-date { flex: none; width: auto; }
  .w4b .e-con.w4-toc-col { display: none; }
  .w4b .e-con.w4-nl { --padding-top: 32px; --padding-right: 24px; --padding-bottom: 32px; --padding-left: 24px; }
  .w4b .w4-prose { font-size: 17px; }
}
