/* =========================================================
   Gutenberg / Content styling (front)
   Scope: tylko treść z the_content() w .wmContent
========================================================= */

/* Flow */
.wmContent > *{ margin: 0; }
.wmContent > * + *{ margin-top: 16px; }

/* Puste akapity */
.wmContent p:empty{ display:none; }

/* =========================
   Typografia bazowa
========================= */

/* Akapity */
.wmContent p{
  color: var(--muted);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* Mocniejsze akcenty w tekście */
.wmContent strong{
  color: #0f172a;
  font-weight: 650;
}

/* =========================
   Linki (konsultacyjnie)
========================= */

.wmContent a{
  text-decoration: none;
}
.wmContent a:hover{
  border-bottom-color: rgba(37,99,235,.85);
}

/* =========================
   Headings (Gutenberg)
   Gutenberg: <h2 class="wp-block-heading">
========================= */

/* Wspólne cechy nagłówków */
.wmContent :is(h1,h2,h3,h4,.wp-block-heading){
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* H2 – sekcje */
.wmContent :is(h2, h2.wp-block-heading){
  margin: 28px 0 10px;
  font-size: clamp(22px, 1.6vw + 14px, 30px);
  line-height: 1.25;
  font-weight: 700;
  color: #334155; /* spokojny slate */
}

/* H3 – podsekcje / rozwinięcia myśli */
.wmContent :is(h3, h3.wp-block-heading){
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    font-weight: 700;
}

/* opcjonalny, bardzo dyskretny akcent */
.wmContent h3::before{
  content: "";
  position: absolute;
  left: -12px;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(37,99,235,.45);
}


/* H4 – mikro nagłówki */
.wmContent h4{
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
  color: #0f172a;
}

/* Pierwszy nagłówek bez dużego top-margina */
.wmContent > :is(h2,h4,.wp-block-heading):first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* =========================
   Lists
========================= */

.wmContent :is(ul, ol, .wp-block-list){
  color: var(--muted);
  line-height: 1.7;
}
.wmContent :is(ul, ol, .wp-block-list) li{
}

.wmContent ul li::marker{
  color: #d7fd3b
}

/* Lista po nagłówku */
.wmContent :is(h2, h3, h4, .wp-block-heading) + :is(ul, ol, .wp-block-list){
  margin-top: 10px;
}

/* =========================
   Blockquote – consulting style
========================= */

/* Blockquote jako angażujący moduł */
.wmContent :is(blockquote, .wp-block-quote){
  max-width: 50%;
  margin: 38px 10%;          /* WYŚRODKOWANIE */
  padding: 26px 28px;

  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;

  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 18px 48px rgba(15,23,42,.06);

  color: #334155;
  line-height: 1.85;
  font-size: 1.02em;

  position: relative;
}


/* Znak cytatu bardzo dyskretny */
.wmContent :is(blockquote, .wp-block-quote)::before{
  content: "❝";
  position: absolute;
  top: -14px;
  left: 16px;
  font-size: 44px;
  color: #d7fd3b;
  pointer-events: none;
}

.wmContent :is(blockquote, .wp-block-quote) p{ margin: 0; }



/* =========================
   Images
========================= */

.wmContent .wp-block-image{
  margin-top: 22px;
  margin-bottom: 22px;
}
.wmContent .wp-block-image img{
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 12px 32px rgba(0,0,0,.06);
}
.wmContent figcaption{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* =========================
   Separator
========================= */

.wmContent :is(hr, .wp-block-separator){
  border: 0;
  height: 1px;
  width: min(58vw, 760px);
  background: var(--line);
  margin: 60px auto;
}

/* =========================
   Code
========================= */

.wmContent pre{
  background: #0b1020;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: 14px;
  overflow:auto;
}

.wmContent :is(code, kbd, samp){
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95em;
}

/* inline code */
.wmContent :not(pre) > code{
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .08);
  padding: .15em .35em;
  border-radius: 8px;
}

/* =========================
   Mobile dopieszczenie
========================= */
@media (max-width: 640px){
  .wmContent :is(h2, .wp-block-heading){
    margin-top: 22px;
  }
  .wmContent :is(ul, ol, .wp-block-list){
    padding-left: 1.1em;
  }
}
