/* ----------------------------------------------------------------
   Edycje rekolekcji – strona START i podstrony wersji
   (szablony: edition_start, edition_version)
   Typografia jak w całym portalu: Inter, nagłówki 600
   (h1 36px, h2 30px), tekst 16px, kolor #212529.
   Playfair Display (kursywa) tylko w cytatach – jak na stronie głównej.
   Kolory edycji: granat #1F4E8C, złoto #F0C25F; przyciski w kolorze
   strony (--cnvs-themecolor #3384c5).
-----------------------------------------------------------------*/

.ed {
    --ed-navy: #1F4E8C;
    --ed-navy-dark: #172A4E;
    --ed-gold: #F0C25F;
    --ed-gold-text: #876718;
    --ed-cream: #FBF6EA;
    --ed-tint: #F4F7FB;
    --ed-line: #E3EAF3;
    --ed-text: #212529;
    --ed-muted: #5A6472;
    color: var(--ed-text);
    font-size: 16px;
}
.ed p { margin-bottom: 0; }
.ed-section { padding: 60px 0; }
.ed-section-tint { background: var(--ed-tint); }
.ed-section-cream { background: var(--ed-cream); }
.ed-section-navy { background: var(--ed-navy); color: #fff; }
.ed-section-dark { background: var(--ed-navy-dark); color: #fff; }

/* Nagłówki – jak h1/h2 w portalu */
.ed-h1, .ed-h2, .ed-h3 { font-family: inherit; font-weight: 600; color: inherit; margin: 0; }
.ed-h1 { font-size: 36px; line-height: 1.25; }
.ed-h2 { font-size: 30px; line-height: 1.25; }
.ed-h3 { font-size: 22px; line-height: 1.3; }
.ed-eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ed-gold-text); }
.ed-section-navy .ed-eyebrow, .ed-section-dark .ed-eyebrow, .ed-akt .ed-eyebrow { color: var(--ed-gold); }
.ed-rule { display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--ed-gold); margin: 14px 0 0; }
.ed-center { text-align: center; }
.ed-center .ed-rule { margin-left: auto; margin-right: auto; }
.ed-lead { font-size: 16px; line-height: 1.7; color: var(--ed-text); max-width: 48em; margin: 16px 0 0; }
.ed-center .ed-lead { margin-left: auto; margin-right: auto; }
.ed-section-navy .ed-lead, .ed-section-dark .ed-lead, .ed-akt .ed-lead { color: #DCE6F2; }
.ed-note { font-size: 14px; color: var(--ed-muted); }
.ed-motto { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--ed-navy); margin: 10px 0 0; }
.ed-quote { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; font-size: 20px; line-height: 1.4; }

/* Przyciski */
.ed-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ed-btns .button { margin: 0; }
.ed-btn-light { background: #fff !important; color: var(--ed-navy) !important; }
.ed-btn-light:hover { background: var(--ed-gold) !important; color: var(--ed-navy-dark) !important; }
.ed-btn-wa { background: #25D366 !important; color: #fff !important; }
.ed-btn-wa:hover { background: #1DA851 !important; }

/* Daty */
.ed-dates { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 28px; margin-top: 26px; }
.ed-date { display: flex; flex-direction: column; gap: 2px; }
.ed-date-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ed-gold-text); }
.ed-date-value { font-size: 20px; font-weight: 600; }
.ed-date-note { font-size: 14px; color: var(--ed-muted); }
.ed-date-sep { width: 2px; background: var(--ed-line); }

/* Jak wybrać? */
.ed-guide { max-width: 860px; margin: 32px auto 0; background: var(--ed-tint); border-radius: 14px; padding: 22px 26px; }
.ed-guide ul { margin: 10px 0 0; padding-left: 20px; }
.ed-guide li { margin: 6px 0; line-height: 1.55; }

/* Pasek z liczbami */
.ed-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.ed-fact { display: flex; align-items: center; gap: 16px; }
.ed-fact-big { flex: 0 0 auto; min-width: 56px; font-size: 32px; font-weight: 700; line-height: 1; color: var(--ed-navy); }
.ed-fact-text { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--ed-gold); padding-left: 14px; }
.ed-fact-text strong { font-size: 16px; font-weight: 600; }
.ed-fact-text span { font-size: 14px; line-height: 1.45; color: var(--ed-muted); }

/* Wersje */
.ed-group { margin-top: 44px; }
.ed-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; border-bottom: 2px solid var(--ed-line); padding-bottom: 10px; margin-bottom: 20px; }
.ed-group-label { font-size: 22px; font-weight: 600; color: var(--ed-navy); }
.ed-group-sub { font-size: 15px; color: var(--ed-muted); }
.ed-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.ed-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #DCE4EF; border-radius: 14px; overflow: hidden; color: var(--ed-text) !important; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.ed-card:hover { box-shadow: 0 18px 40px rgba(23, 42, 78, .14); transform: translateY(-2px); }
.ed-card-cover { background: #EEF3F9; padding: 26px; display: flex; justify-content: center; border-bottom: 3px solid var(--ed-gold); }
.ed-card-cover img { height: 230px; width: auto; max-width: 100%; border-radius: 4px; box-shadow: 0 16px 34px rgba(23, 42, 78, .28); }
.ed-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.ed-card-who { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ed-gold-text); }
.ed-card-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.ed-card-desc { font-size: 15px; line-height: 1.6; color: var(--ed-text); flex-grow: 1; }
.ed-card-more { font-size: 15px; font-weight: 600; color: var(--cnvs-themecolor); margin-top: 6px; }
.ed-promo { background: var(--ed-cream); border: 2px dashed #E2C47A; border-radius: 14px; padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ed-promo .ed-quote { font-size: 18px; color: var(--ed-navy); }
.ed-promo .button { align-self: flex-start; margin: 6px 0 0; }

/* WhatsApp */
.ed-wa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; background: #fff; border: 1px solid #DCE4EF; border-left: 5px solid #25D366; border-radius: 14px; padding: 24px 28px; }
.ed-wa-text { flex: 1 1 420px; min-width: 0; display: flex; gap: 18px; align-items: flex-start; }
.ed-wa-icon { flex: 0 0 48px; height: 48px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.ed-wa .button { margin: 0; }
.ed-wa-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ed-wa-list li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.ed-wa-list i { color: #25D366; font-size: 20px; }

/* Świadkowie */
.ed-witness { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.ed-witness figure { margin: 0; flex: 0 1 400px; min-width: 0; }
.ed-witness img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 15%; border-radius: 12px; border: 4px solid var(--ed-gold); }
.ed-witness figcaption { font-size: 13px; color: #9FB0C9; margin-top: 8px; }
.ed-witness-text { flex: 1 1 420px; min-width: 0; }

/* Cytat */
.ed-bigquote { border: 0; padding: 0; margin: 16px auto 0; max-width: 820px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; font-size: 24px; line-height: 1.45; color: var(--ed-navy); }
.ed-bigquote-src { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ed-gold-text); }

/* Zamów */
.ed-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.ed-order .ed-btns { margin-top: 0; }

/* Podstrona wersji */
.ed-version-head { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.ed-version-text { flex: 1 1 520px; min-width: 0; }
.ed-version-cover { flex: 0 0 auto; max-width: 100%; padding: 14px; border-radius: 10px; background: var(--ed-cream); border: 2px solid #EAD39A; }
.ed-version-cover img { display: block; height: 360px; width: auto; max-width: 100%; border-radius: 4px; box-shadow: 0 22px 46px rgba(23, 42, 78, .35); }
.ed-back { display: inline-block; font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.ed-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; margin-top: 24px; }
.ed-step { background: #fff; border-top: 3px solid var(--ed-gold); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ed-step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--ed-navy); color: var(--ed-gold); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.ed-step-title { font-size: 18px; font-weight: 600; line-height: 1.3; }
.ed-step-text { font-size: 15px; line-height: 1.6; color: var(--ed-text); }
.ed-step-links { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.ed-step-links a { font-weight: 600; padding: 4px 0; }
.ed-book-note { display: inline-flex; align-items: flex-start; line-height: 1.55; max-width: 860px; gap: 10px; margin-top: 16px; padding: 10px 16px; border-radius: 10px; background: var(--ed-cream); font-weight: 500; }
.ed-book-note i { color: var(--ed-gold-text); font-size: 20px; line-height: 1.2; }
.ed-plan { list-style: none; margin: 24px 0 0; padding: 0; background: #fff; border: 1px solid #DCE4EF; border-radius: 14px; overflow: hidden; }
.ed-plan li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 18px 22px; border-bottom: 1px solid #E8EEF6; }
.ed-plan li:last-child { border-bottom: 0; }
.ed-plan-n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--ed-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.ed-plan-date { flex: 0 0 150px; font-weight: 600; color: var(--ed-navy); }
.ed-plan-title { flex: 1 1 300px; display: flex; flex-direction: column; gap: 2px; }
.ed-plan-title strong { font-size: 17px; font-weight: 600; }
.ed-plan-title span { font-size: 14px; color: var(--ed-muted); }
.ed-plan li.ed-plan-akt { background: var(--ed-cream); }
.ed-plan-akt .ed-plan-n { background: var(--ed-gold); color: var(--ed-navy-dark); }
.ed-akt { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--ed-navy); color: #fff; }
.ed-akt-img { flex: 0 1 420px; position: relative; min-height: 360px; border-right: 6px solid var(--ed-gold); }
.ed-akt-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.ed-akt-text { flex: 1 1 420px; min-width: 0; padding: 52px max(24px, 4vw); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ed-akt-text .ed-quote { margin: 8px 0 0; }
.ed-akt-text small { font-size: 14px; color: var(--ed-gold); }
.ed-akt + .ed-section-navy { border-top: 1px solid rgba(255, 255, 255, .18); }

@media (max-width: 991.98px) {
    .ed-section { padding: 44px 0; }
    .ed-h1 { font-size: 30px; }
    .ed-h2 { font-size: 26px; }
    .ed-akt-img { flex-basis: 100%; border-right: 0; border-bottom: 6px solid var(--ed-gold); min-height: 300px; }
    .ed-version-cover img { height: 280px; }
}

/* Strony edycji same ustalają odstępy sekcji */
#content .content-wrap:has(.ed) { padding-top: 0; padding-bottom: 0; }
