/* ── Treść WordPress (the_content) ──────────────────────────────────────────── */

.wnw-content {
    color: var(--foreground);
    font-size: 1rem;
    line-height: 1.75;
}

/* Akapity */
.wnw-content p {
    margin-top: 0;
    margin-bottom: 1.5em;
}
.wnw-content p:last-child {
    margin-bottom: 0;
}

/* Nagłówki — Cormorant Garamond */
.wnw-content h1,
.wnw-content h2,
.wnw-content h3,
.wnw-content h4,
.wnw-content h5,
.wnw-content h6 {
    font-family: var(--font-serif);
    color: var(--foreground);
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 0.6em;
}
.wnw-content h2 { font-size: 2rem; }
.wnw-content h3 { font-size: 1.5rem; }
.wnw-content h4 { font-size: 1.25rem; }
.wnw-content h2:first-child,
.wnw-content h3:first-child { margin-top: 0; }

/* Listy */
.wnw-content ul,
.wnw-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.wnw-content ul { list-style: disc; }
.wnw-content ol { list-style: decimal; }
.wnw-content li { margin-bottom: 0.4em; }
.wnw-content li > p { margin-bottom: 0.4em; }

/* Linki */
.wnw-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.wnw-content a:hover { opacity: 0.8; }

/* Cytat */
.wnw-content blockquote {
    border-left: 3px solid var(--primary);
    margin: 2em 0;
    padding: 0.5em 0 0.5em 1.5em;
    font-style: italic;
    color: var(--muted-foreground);
    font-family: var(--font-serif);
    font-size: 1.2em;
}
.wnw-content blockquote p { margin-bottom: 0; }

/* Obrazki */
.wnw-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin: 1.5em 0;
}
.wnw-content figure { margin: 2em 0; }
.wnw-content figcaption {
    font-size: 0.85em;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.5em;
}

/* Pozioma linia */
.wnw-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5em 0;
}

/* Kod */
.wnw-content code {
    font-size: 0.875em;
    background: var(--accent);
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
}
.wnw-content pre {
    background: var(--accent);
    padding: 1.5em;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5em 0;
}

/* Tabela */
.wnw-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9em;
}
.wnw-content th,
.wnw-content td {
    border: 1px solid var(--border);
    padding: 0.6em 1em;
    text-align: left;
}
.wnw-content th {
    background: var(--accent);
    font-weight: 600;
}
.wnw-content tr:nth-child(even) td {
    background: var(--muted);
}

/* Wyrównanie Gutenberga */
.wnw-content .alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.wnw-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.wnw-content .aligncenter { display: block; margin: 1.5em auto; text-align: center; }
.wnw-content .wp-caption { max-width: 100%; }
.wnw-content .wp-caption-text { font-size: 0.85em; color: var(--muted-foreground); }

/* ── Leaflet tooltip styl ───────────────────────────────────────────────────── */
.wnw-map-tooltip {
    background: var(--foreground);
    color: var(--background);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.wnw-map-tooltip::before {
    border-top-color: var(--foreground);
}
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.leaflet-popup-tip {
    background: white;
}

/* ── Normalizacja .text-lg ───────────────────────────────────────────────────── */
/* Przywraca standardowe wartości Tailwind (1.125rem / 400) */
html body .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 400;
}
