/* /wiedza/ blog index and single post — Wiedza.dc.html / Wpis-blogowy.dc.html. */

/* ============================================================ OTWARCIE ==== */
.wie-hero__inner {
  position: relative;
  padding-block: 48px;
  display: grid;
  grid-template-columns: 640px minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
  min-height: 646px;
}

.wie-hero__copy { align-self: center; }

.wie-hero__title {
  margin: 0 0 22px;
  font-size: 57px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.wie-hero__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 32px;
}

.wie-hero__point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.wie-hero__point:first-child { padding-left: 0; }
.wie-hero__point:last-child { padding-right: 0; }
.wie-hero__point + .wie-hero__point { border-left: 1px solid var(--rule-light); }
.wie-hero__point .me-icon { color: var(--brand-green); }

.wie-hero__feature {
  position: relative;
  justify-self: end;
  align-self: stretch;
  width: 560px;
  display: flex;
  flex-direction: column;
}

.wie-hero__featurehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.wie-hero__featurehead p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================================== cards ===== */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-large);
  overflow: hidden;
  transition: border-color var(--duration-micro) var(--ease), box-shadow var(--duration-micro) var(--ease);
}

.post-card:hover { border-color: var(--brand-green); box-shadow: var(--shadow-soft); }
.wie-hero__feature .post-card { flex: 1; }

.post-card__media {
  aspect-ratio: 8 / 5;
  background: var(--surface-soft);
}
.post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 28px; }

.post-card__cat {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.post-card__title { margin: 0 0 14px; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.wie-hero__feature .post-card__title { font-size: 26px; line-height: 1.25; letter-spacing: -0.025em; margin-bottom: 12px; }
.post-card__title a { text-decoration: none; color: inherit; }
.post-card__title a:hover { color: var(--brand-green-text); }

.post-card__text { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

.post-card__link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tap-min);
  border-top: 1px solid var(--rule-light);
  padding-top: 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.post-card__link .svc-arrow { color: var(--brand-green); }
.post-card__link:hover .svc-arrow { transform: translate(2px, -2px); }

/* =========================================================== ARTYKUŁY ===== */
.wie-list { padding: 56px 0 96px; }

.wie-list__label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.wie-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 44px;
}

.wie-filter {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: 8px 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  transition: border-color var(--duration-micro) var(--ease), color var(--duration-micro) var(--ease);
}

.wie-filter:hover { border-color: var(--brand-green); color: var(--brand-navy); }

.wie-filter[aria-current="true"] {
  background: var(--surface-success-soft);
  border-color: #cbe7d5;
  color: var(--brand-navy);
}

.wie-list__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.wie-list__title { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; }
.wie-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }

.wie-empty { margin: 0; font-size: 16px; line-height: 1.625; color: var(--text-secondary); }

/* ============================================================== POMOC ===== */
.wie-help { padding: 56px 0 72px; }

.wie-help__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  background: var(--surface-success-soft);
  border: 1px solid #cbe7d5;
  border-radius: var(--radius-large);
  padding: 32px 36px;
}

.wie-help__title { margin: 0 0 8px; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.wie-help__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-secondary); max-width: 640px; }
.wie-help__ctas { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }

.wie-help__link { font-size: 15px; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.wie-help__link:hover { color: var(--brand-green-text); }

/* ======================================================== single post ===== */
.pos-hero { padding: 56px 0 40px; }
.pos-hero__inner { max-width: 760px; }

.pos-hero__title {
  margin: 0 0 20px;
  font-size: 44px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.pos-hero__lead { margin: 0 0 24px; font-size: 19px; line-height: 1.6; color: var(--text-secondary); }

.pos-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  border-top: 1px solid var(--rule-light);
  padding-top: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.pos-media { padding-bottom: 48px; }
.pos-figure { margin: 0; }
.pos-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-large);
}
.pos-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pos-body { padding-bottom: 88px; }
.pos-layout--toc {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.pos-toc { position: sticky; top: 104px; }
.pos-toc__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.pos-toc__list { margin: 0; padding: 0; list-style: none; display: grid; }
.pos-toc__list a {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  padding: 11px 0;
  border-top: 1px solid var(--rule-light);
  text-decoration: none;
  color: var(--text-primary);
}
.pos-toc__list a:hover { color: var(--brand-green-text); }

.pos-body__inner { max-width: 760px; }

.pos-prose { font-size: 17px; line-height: 1.75; color: var(--text-primary); }
.pos-prose > * + * { margin-top: 20px; }
.pos-prose h2 { margin-top: 44px; font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; }
.pos-prose h3 { margin-top: 32px; font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.pos-prose p { margin: 0; }
.pos-prose ul, .pos-prose ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.pos-prose a { font-weight: 600; color: var(--brand-green-text); }
.pos-prose img { border-radius: var(--radius-medium); }

.pos-prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 8px 0 4px;
  font-size: 16px;
}
.pos-prose th {
  text-align: left;
  padding: 14px 16px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
}
.pos-prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule-light);
  line-height: 1.55;
  color: var(--text-secondary);
  vertical-align: top;
}
.pos-prose td:first-child { color: var(--text-primary); font-weight: 600; }
.pos-prose .pos-num { text-align: right; font-variant-numeric: tabular-nums; }

.pos-note,
.pos-example,
.pos-check {
  padding: 22px 24px;
  border-radius: 16px;
}
.pos-note { background: var(--surface-soft); }
.pos-example {
  background: var(--surface-soft);
  display: grid;
  gap: 16px;
}
.pos-example p + p { padding-top: 16px; border-top: 1px solid var(--rule-light); }
.pos-check {
  background: var(--surface-success-soft);
  border: 1px solid #cbe7d5;
}
.pos-check h2 { margin-top: 0; font-size: 24px; }
.pos-decision {
  background: var(--surface-soft);
  border-left: 3px solid var(--brand-green);
  border-radius: 0 16px 16px 0;
  padding: 24px 28px;
}

.pos-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--rule-light);
}
.pos-step__n {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-green);
}
.pos-step h3 { margin-top: 0; }

.pos-prose blockquote {
  margin: 0;
  padding: 22px 26px;
  background: var(--surface-success-soft);
  border: 1px solid #cbe7d5;
  border-radius: var(--radius-medium);
  font-size: 17px;
  line-height: 1.6;
}

.pos-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 56px;
  background: var(--surface-soft);
  border-radius: 24px;
  padding: 30px 32px;
}
.pos-service__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.pos-service__text { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

.pos-author {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-light);
}
.pos-author img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
}
.pos-author__name { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.pos-author__bio { margin: 0 0 14px; max-width: 620px; font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.pos-author__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.pos-author__link span { color: var(--brand-green); }

.pos-related { padding: 72px 0 88px; background: var(--surface-soft); }
.pos-related__label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.pos-related__title { margin: 0 0 32px; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -0.025em; }
.pos-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pos-related__grid--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

@media (max-width: 1023px) {
  .pos-layout--toc { grid-template-columns: 1fr; gap: 32px; }
  .pos-toc { position: static; }
  .pos-service { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .pos-related__grid,
  .pos-related__grid--two { grid-template-columns: 1fr; }
  .pos-author { flex-direction: column; }
  .pos-prose table { display: block; overflow-x: auto; }
}
