/* Redakcja (Strona O Nas) — CSS */

.ed-page {
    background: #fff;
}

/* ── HERO ──────────────────────────────────────────────────────── */
.ed-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 70px 0 60px;
    color: white;
    position: relative;
    overflow: hidden;
}
.ed-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
}
.ed-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.ed-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.ed-breadcrumbs {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; opacity: .75; margin-bottom: 22px;
}
.ed-breadcrumbs a { color: white; text-decoration: none; }
.ed-hero h1 {
    font-size: 42px; font-weight: 800; margin: 0 0 16px;
    letter-spacing: -0.5px; line-height: 1.2;
}
.ed-hero-subtitle { font-size: 18px; line-height: 1.7; opacity: .92; margin: 0 0 26px; }
.ed-hero-highlights { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-highlight-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
    padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 600;
}
.ed-highlight-chip i { opacity: .85; font-size: 11px; }

/* ── SECTION SHELL ─────────────────────────────────────────────── */
.ed-section { padding: 64px 0; }
.ed-section--alt { background: #f8f9fa; }
.ed-section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.ed-section-head .ed-kicker {
    display: inline-block; color: var(--primary); font-weight: 700;
    font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
    margin-bottom: 10px;
}
.ed-section-head h2 { font-size: 30px; font-weight: 800; color: var(--text); margin: 0 0 12px; }
.ed-section-head p { font-size: 15px; color: var(--text-secondary); margin: 0; line-height: 1.7; }
.ed-section-head .ed-rule {
    width: 56px; height: 4px; background: var(--primary);
    border-radius: 2px; margin: 16px auto 0;
}

/* ── O NAS ─────────────────────────────────────────────────────── */
.ed-about { max-width: 760px; margin: 0 auto; }
.ed-about p {
    font-size: 16px; line-height: 1.85; color: var(--text-secondary);
    margin: 0 0 20px;
}
.ed-about p strong { color: var(--text); }
.ed-quote {
    margin: 32px 0 0; padding: 24px 28px;
    background: #f8f9fa; border-left: 4px solid var(--primary);
    border-radius: 0 14px 14px 0;
    font-size: 18px; font-style: italic; color: var(--text);
}

/* ── TABELE (region, zespół, standardy, proces) ──────────────────── */
.ed-table-wrap {
    background: white; border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; margin-bottom: 30px;
}
.ed-table { width: 100%; border-collapse: collapse; }
.ed-table thead tr { background: var(--primary); }
.ed-table th {
    color: white; text-align: left; font-size: 12px; font-weight: 700;
    padding: 14px 22px; text-transform: uppercase; letter-spacing: .5px;
}
.ed-table td {
    padding: 18px 22px; font-size: 14px; line-height: 1.75; color: var(--text-secondary);
    border-bottom: 1px solid var(--border); vertical-align: top;
}
.ed-table tbody tr:last-child td { border-bottom: none; }
.ed-table tbody tr:nth-child(even) { background: #fafbfc; }
.ed-table td.ed-table-label {
    color: var(--text); font-weight: 700; white-space: nowrap;
}
.ed-table td.ed-table-label i { color: var(--primary); margin-right: 8px; font-size: 13px; }

@media (max-width: 700px) {
    .ed-table thead { display: none; }
    .ed-table, .ed-table tbody, .ed-table tr, .ed-table td { display: block !important; width: 100% !important; }
    .ed-table tr { border-bottom: 2px solid var(--border); }
    .ed-table tr:last-child { border-bottom: none; }
    .ed-table td { border-bottom: none; padding: 8px 20px; text-align: left !important; }
    .ed-table td.ed-table-label { white-space: normal; padding-top: 18px; }
    .ed-table tr td:last-child { padding-bottom: 18px; }
    .ed-table--process .ed-step-num { margin-bottom: 6px; }
}

/* Szerokości kolumn (tylko desktop — na mobile tabele zwijają się w bloki) */
@media (min-width: 701px) {
    .ed-table--towns td.ed-table-label { width: 220px; }
    .ed-table--team td.ed-table-label { width: 260px; }
    .ed-table--standards td.ed-table-label { width: 240px; }
    .ed-table--process td:first-child { width: 70px; text-align: center; }
}

/* ── REGION ────────────────────────────────────────────────────── */
.ed-region-intro { text-align: center; max-width: 700px; margin: 0 auto 36px; color: var(--text-secondary); font-size: 15px; line-height: 1.75; }
.ed-region-closing { text-align: center; max-width: 700px; margin: 0 auto; color: var(--text-secondary); font-size: 15px; line-height: 1.75; }

/* ── ZESPÓŁ ────────────────────────────────────────────────────── */
.ed-team-intro { text-align: center; max-width: 700px; margin: 0 auto 36px; color: var(--text-secondary); font-size: 15px; line-height: 1.75; }

.ed-chief-message {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 18px; padding: 34px 38px; color: white;
    margin-bottom: 36px; position: relative;
}
.ed-chief-message .ed-chief-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.18); padding: 5px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px;
}
.ed-chief-message p { font-size: 16px; line-height: 1.8; margin: 0; opacity: .96; }
.ed-chief-message p strong { color: white; }

.ed-editor-id { display: flex; align-items: center; gap: 12px; }
.ed-editor-avatar {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; overflow: hidden;
}
.ed-editor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ed-editor-name { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 2px; white-space: normal; }
.ed-editor-role { font-size: 12px; color: var(--primary); font-weight: 600; margin: 0; }
.ed-editor-bio { font-size: 14px; line-height: 1.75; color: var(--text-secondary); margin: 0 0 6px; }
.ed-editor-bio strong { color: var(--text); }
.ed-editor-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ed-editor-tag {
    background: #f0f0f0; color: var(--primary); font-size: 11px; font-weight: 600;
    padding: 4px 11px; border-radius: 16px;
}
.ed-editor-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 700; font-size: 12px; text-decoration: none;
    margin-top: 10px;
}
.ed-table tbody tr.is-chief td:first-child { border-left: 3px solid var(--primary); }

/* ── PROCES TWORZENIA TREŚCI ──────────────────────────────────────── */
.ed-process {
    background: #f8f9fa; border-radius: 18px; padding: 32px 36px 36px; margin-bottom: 24px;
}
.ed-process h3 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 20px; }
.ed-table--process { background: white; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.ed-table--process .ed-step-num {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary); color: white; font-weight: 700; font-size: 13px;
}
.ed-corrections {
    font-size: 13.5px; line-height: 1.75; color: var(--text-secondary);
    border-top: 1px solid var(--border); padding-top: 20px; margin: 0;
}

/* ── KONTAKT / SPOŁECZNOŚĆ ─────────────────────────────────────── */
.ed-contact-grid {
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: stretch;
}
@media (max-width: 880px) {
    .ed-contact-grid { grid-template-columns: 1fr; }
}
.ed-community-card {
    background: white; border: 1px solid var(--border); border-radius: 18px;
    padding: 32px;
}
.ed-community-card h3 { font-size: 19px; font-weight: 700; color: var(--text); margin: 0 0 14px; }
.ed-community-card p { font-size: 14.5px; line-height: 1.75; color: var(--text-secondary); margin: 0; }

.ed-contact-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border-radius: 18px; padding: 32px;
    display: flex; flex-direction: column; justify-content: center;
}
.ed-contact-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 16px; }
.ed-contact-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; }
.ed-contact-row i { width: 18px; opacity: .85; }
.ed-contact-row a { color: white; text-decoration: none; }
.ed-contact-hours { font-size: 13px; opacity: .85; margin: 14px 0 20px; line-height: 1.6; }
.ed-contact-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: white; color: var(--primary); padding: 13px 28px; border-radius: 30px;
    font-weight: 700; font-size: 14px; text-decoration: none; margin-top: auto;
}

/* ── Rich text (dozwolone tagi inline z AI) ───────────────────── */
.ed-rich ul, .ed-rich ol { margin: 10px 0; padding-left: 22px; }
.ed-rich li { margin-bottom: 6px; }

/* ── Fallback (Tryb B) ─────────────────────────────────────────── */
.ed-fallback-notice {
    background: #fff3cd; border-left: 4px solid #ffc107; border-radius: 12px;
    padding: 20px 24px; margin-bottom: 35px;
}
.ed-fallback-notice h4 { margin: 0 0 10px; color: #856404; font-size: 16px; }
.ed-fallback-notice p { margin: 0 0 8px; color: #856404; font-size: 14px; }
.ed-fallback-notice ul { margin: 0; padding-left: 20px; color: #856404; font-size: 14px; line-height: 2; }
