/* Szablon wpisu: hero, kolumna treści, sticky rail, nawigacja do dalszych wpisów */
.ax-post-hero {
  position: relative;
  min-height: min(78svh, 820px);
  background: var(--ax-ink);
  color: var(--ax-paper);
  overflow: hidden;
}

.ax-post-hero__media {
  position: absolute;
  inset: 0;
}

.ax-post-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.58) contrast(1.05);
}

.ax-post-hero__grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, rgba(20, 24, 51, 0.9) 0%, rgba(20, 24, 51, 0.5) 60%, rgba(20, 24, 51, 0.24) 100%),
    linear-gradient(to top, rgba(20, 24, 51, 0.72) 0%, transparent 52%);
  pointer-events: none;
}

.ax-post-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(78svh, 820px);
  max-width: var(--ax-maxw);
  margin: 0 auto;
  padding: 150px var(--ax-gutter) clamp(40px, 6vh, 80px);
}

.ax-post-hero__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: clamp(20px, 3vh, 36px);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.55);
}

.ax-post-hero__crumb a { color: inherit; text-decoration: none; }

.ax-post-hero__badge {
  display: inline-block;
  margin-bottom: 18px;
  border: 1px solid rgba(244, 241, 235, 0.28);
  border-radius: 6px;
  padding: 8px 13px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ax-post-hero__title {
  margin: 0 0 clamp(22px, 2.6vw, 36px);
  max-width: 24ch;
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  text-wrap: pretty;
}

.ax-post-hero__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(18px, 2.4vw, 34px);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 235, 0.6);
}

.ax-post-hero__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ax-post-hero__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 241, 235, 0.28);
  border-radius: 50%;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ax-paper);
}

.ax-post-hero__author-name { color: var(--ax-paper); }

/* Treść */
.ax-post {
  padding: clamp(48px, 6vw, 100px) 0;
  background: var(--ax-paper);
  color: var(--ax-navy);
}

.ax-post__inner {
  max-width: var(--ax-maxw);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
}

.ax-post__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.4fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: start;
}

.ax-post__rail {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 32px);
}

.ax-post__rail-label {
  display: block;
  margin-bottom: 10px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(53, 59, 102, 0.45);
}

.ax-post__share { display: flex; gap: 8px; }

.ax-post__share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(53, 59, 102, 0.24);
  border-radius: 50%;
  color: var(--ax-navy);
  text-decoration: none;
  transition: background 320ms ease, color 320ms ease, border-color 320ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ax-post__share-link:hover {
    background: var(--ax-navy);
    border-color: var(--ax-navy);
    color: var(--ax-paper);
  }
}

.ax-post__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.ax-post__tag {
  border: 1px solid rgba(53, 59, 102, 0.2);
  border-radius: var(--ax-pill);
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(53, 59, 102, 0.7);
  text-decoration: none;
}

.ax-post__contact-mail,
.ax-post__contact-phone {
  display: block;
  font-size: 15px;
  color: var(--ax-navy);
  text-decoration: none;
}

/* Kolumna artykułu — treść z edytora */
.ax-post__body {
  max-width: 70ch;
}

.ax-entry > *:first-child { margin-top: 0; }
.ax-entry > *:last-child { margin-bottom: 0; }

.ax-entry p {
  margin: 0 0 clamp(18px, 2vw, 26px);
  font-size: 17.5px;
  line-height: 1.76;
  letter-spacing: -0.002em;
  color: rgba(53, 59, 102, 0.86);
  text-wrap: pretty;
}

.ax-entry p.has-large-font-size,
.ax-entry .ax-entry__lead {
  font-size: 20px;
  line-height: 1.66;
  color: var(--ax-navy);
}

.ax-entry h2 {
  margin: clamp(34px, 4vw, 56px) 0 clamp(14px, 1.6vw, 22px);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ax-navy);
  text-wrap: pretty;
}

.ax-entry h3 {
  margin: clamp(28px, 3.2vw, 42px) 0 clamp(10px, 1.2vw, 16px);
  font-weight: 400;
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.024em;
  color: var(--ax-navy);
}

.ax-entry h4 {
  margin: clamp(24px, 2.6vw, 34px) 0 10px;
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.02em;
}

.ax-entry ul,
.ax-entry ol {
  margin: 0 0 clamp(18px, 2vw, 26px);
  padding-left: 0;
  list-style: none;
}

.ax-entry ol { counter-reset: ax-entry-ol; }

.ax-entry li {
  position: relative;
  margin-bottom: 11px;
  padding-left: 26px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(53, 59, 102, 0.86);
}

.ax-entry ul > li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ax-steel);
}

.ax-entry ol > li {
  counter-increment: ax-entry-ol;
}

.ax-entry ol > li::before {
  content: counter(ax-entry-ol) ".";
  position: absolute;
  left: 0;
  color: var(--ax-steel);
  font-variant-numeric: tabular-nums;
}

.ax-entry a {
  color: var(--ax-navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 59, 102, 0.35);
  transition: color 320ms ease, border-color 320ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ax-entry a:hover { color: var(--ax-steel); border-bottom-color: var(--ax-steel); }
}

.ax-entry strong { font-weight: 500; }

.ax-entry blockquote {
  margin: clamp(28px, 3.4vw, 48px) 0;
  border-left: 2px solid var(--ax-steel);
  padding: 4px 0 4px clamp(20px, 2.4vw, 32px);
}

.ax-entry blockquote p {
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.024em;
  color: var(--ax-navy);
}

.ax-entry blockquote cite,
.ax-entry blockquote figcaption {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(53, 59, 102, 0.5);
}

.ax-entry figure {
  margin: clamp(28px, 3.4vw, 48px) 0;
}

.ax-entry img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ax-radius);
}

.ax-entry figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(53, 59, 102, 0.55);
}

.ax-entry .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.ax-entry hr {
  margin: clamp(32px, 3.6vw, 52px) 0;
  border: 0;
  border-top: 1px solid rgba(53, 59, 102, 0.16);
}

.ax-entry table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 clamp(18px, 2vw, 26px);
  font-size: 15px;
}

.ax-entry th,
.ax-entry td {
  border-bottom: 1px solid rgba(53, 59, 102, 0.16);
  padding: 12px 10px;
  text-align: left;
}

/* Czytaj dalej */
.ax-post-more {
  padding: 0 0 clamp(56px, 7vw, 110px);
  background: var(--ax-paper);
}

.ax-post-more__inner {
  max-width: var(--ax-maxw);
  margin: 0 auto;
  padding: 0 var(--ax-gutter);
}

.ax-post-more__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px clamp(20px, 3vw, 44px);
  border-top: 1px solid rgba(53, 59, 102, 0.16);
  border-bottom: 1px solid rgba(53, 59, 102, 0.16);
  padding: clamp(18px, 2vw, 26px) 0;
  margin-bottom: clamp(30px, 3.6vw, 56px);
}

.ax-post-more__nav-link {
  max-width: 46ch;
  text-decoration: none;
  color: inherit;
}

.ax-post-more__nav-link--next { margin-left: auto; text-align: right; }

.ax-post-more__nav-label {
  display: block;
  margin-bottom: 6px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(53, 59, 102, 0.45);
}

.ax-post-more__nav-title {
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--ax-navy);
}

@media (max-width: 900px) {
  .ax-post-hero,
  .ax-post-hero__inner {
    min-height: 100svh;
  }

  .ax-post-hero__inner {
    padding-top: calc(var(--ax-navh) + 24px);
  }

  .ax-post-hero__title { max-width: none; }

  .ax-post__grid { grid-template-columns: 1fr; }

  .ax-post__rail {
    position: static;
    top: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 22px clamp(20px, 5vw, 40px);
  }

  .ax-post__body { max-width: none; }

  .ax-post-more__nav-link--next { margin-left: 0; text-align: left; }
}
