/* Wyjazdowo - wydruk wpisu z przeglądarki (ładowany z media="print"), 23.10.2026. */
@page { size: A4; margin: 18mm 16mm 20mm; @bottom-left { content: "wyjazdowo.com"; font: 8pt Inter, sans-serif; color: #64748b; } @bottom-right { content: counter(page) " / " counter(pages); font: 8pt Inter, sans-serif; color: #64748b; } }
@page :first { @bottom-left { content: none; } }

html, body { background: #fff !important; color: #1e293b !important; }
body { padding: 0 !important; font-size: 10.5pt; }
* { box-shadow: none !important; text-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Ukryte w druku */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part,
#wpadminbar, .skip-link, #rank-math-analytics-stats-wrapper,
.wy-okruszki, .wy-okruszki-nav, .wy-dojazd, .wy-wnav, .wp-block-wyjazdowo-wyprawa-calosc-link,
.wy-hero-mapa, .wy-lokalizacja, .wy-staty, .wy-uklad__sidebar, .wy-planning-journey,
.wy-po-lekturze, .wy-komentarze-sekcja, .wy-planning-comments,
.wy-narzedzia, .wy-cz-belka, .wy-cz-panel, .wy-cz-toast, .wy-cz-wiecej, .wy-lb-udostepnij,
.wp-lightbox-overlay, .lightbox-trigger, .wp-block-wyjazdowo-odznaki,
.wy-mapa-osadzona, .wym, .leaflet-container, .wp-block-wyjazdowo-mapa, .wp-block-wyjazdowo-mapa-osadzona, .wp-block-wyjazdowo-gpx, .wy-gpx,
.wp-block-embed, .wp-block-video, video, audio, iframe, form, .wp-block-buttons,
figure.wy-druk-duplikat,
.wy-calosc__spis, .wy-calosc__stopka, .wp-block-wyjazdowo-staty-wyprawy, .wy-band__opis { display: none !important; }

/* Cała wyprawa: każdy dzień od nowej strony */
.wy-calosc, .wy-calosc__tresc { display: block !important; max-width: none !important; }
.wy-calosc__dzien { break-before: page; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.wy-calosc__dzien:first-child { break-before: auto; }
.wy-calosc__tytul { font-size: 18pt !important; margin: 2mm 0 1mm !important; }
.wy-calosc__tytul a { color: #0f172a !important; }
.wy-calosc__foto img { max-height: 95mm; object-fit: cover; border-radius: 0 !important; }
.wy-calosc__wpis { font-size: 10.5pt; line-height: 1.5; }
.wy-calosc__wpis p, .wy-calosc__wpis li { hyphens: auto; orphans: 3; widows: 3; }
.wy-calosc__wpis :is(h2, h3, h4) { break-after: avoid; color: #0f172a !important; margin: 6mm 0 2mm !important; }
.wy-calosc__wpis figure.wp-block-image img { display: block; max-width: 100% !important; max-height: 115mm; width: auto !important; height: auto !important; margin: 0 auto; object-fit: contain; border-radius: 0 !important; }
.wy-calosc__wpis .wp-block-gallery figure.wp-block-image img { width: 100% !important; height: 45mm !important; max-height: none; object-fit: cover !important; }

/* Główka: logo, adres, QR */
.wy-glowa, :has(> .wy-druk-glowa) { display: flex !important; flex-direction: column; }
.wy-druk-glowa { order: -1; display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 6mm; margin: 0 0 6mm; padding-bottom: 4mm; border-bottom: .4pt solid #cbd5e1; }
.wy-druk-glowa img { width: 42mm; height: auto; }
.wy-druk-glowa__url { font: 8pt/1.35 Inter, sans-serif; color: #475569; text-align: right; }
.wy-druk-glowa__url span { color: #64748b; }
.wy-druk-glowa .wy-qr { width: 20mm; height: 20mm; }

/* Układ: jedna kolumna na całą szerokość */
.wy-main-pas, .wy-band, .wy-band--glowa, .wy-glowa, .wy-hero-wrap, .wy-uklad, .wy-uklad__glowna, .wp-block-post-content, .wy-planning-hero__columns { display: block !important; max-width: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.wy-glowa__gora { display: flex !important; gap: 3mm; font-size: 9pt; color: #475569; }
.wy-znacznik { background: none !important; padding: 0 !important; color: #0F766E !important; }
h1.wp-block-post-title { margin: 2mm 0 2mm !important; font-size: 24pt !important; line-height: 1.12 !important; color: #0f172a !important; }
.wy-meta { margin-bottom: 5mm; font-size: 9pt !important; color: #475569 !important; }
.wy-hero-zdjecie-kol { max-width: none !important; }
.wy-hero-zdjecie img { width: 100% !important; max-height: 105mm; object-fit: cover; border-radius: 0 !important; aspect-ratio: auto !important; }
.wy-hero-wrap { margin-bottom: 6mm !important; }

/* Tekst */
.wp-block-post-content { font-size: 10.5pt; line-height: 1.5; }
.wp-block-post-content > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-post-content p, .wp-block-post-content li { hyphens: auto; orphans: 3; widows: 3; }
.wp-block-post-content :is(h2, h3, h4) { break-after: avoid; page-break-after: avoid; color: #0f172a !important; margin: 7mm 0 2.5mm !important; line-height: 1.2; }
.wp-block-post-content h2 { font-size: 15pt !important; }
.wp-block-post-content h3 { font-size: 12.5pt !important; }
.wp-block-post-content a { color: #0F766E !important; text-decoration: none; }
.wp-block-post-content a[href^="http"]:not([href*="wyjazdowo.com"])::after { content: " (" attr(href) ")"; font-size: 7.5pt; color: #64748b; word-break: break-all; }
.wp-block-post-content a[href^="http"]:has(img)::after { content: none; }
blockquote, .wy-komentarz, .wy-fakty, .wy-perspektywy, table, pre { break-inside: avoid; }
.wy-komentarz, .wy-fakty__kafel, .wy-perspektywa, .wy-skrot { background: #f8fafc !important; border: .4pt solid #e2e8f0 !important; }

/* Zdjęcia */
figure { break-inside: avoid; page-break-inside: avoid; margin: 4mm 0 !important; }
.wp-block-post-content figure.wp-block-image img { display: block; max-width: 100% !important; max-height: 115mm; width: auto !important; height: auto !important; margin: 0 auto; object-fit: contain; border-radius: 0 !important; }
.wp-block-gallery { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 2.5mm !important; margin: 4mm 0 !important; }
.wp-block-gallery > figure { display: block !important; width: auto !important; margin: 0 !important; }
.wp-block-gallery > figure.wy-druk-duplikat { display: none !important; }
.wp-block-gallery figure.wp-block-image img { width: 100% !important; height: 45mm !important; max-height: none; object-fit: cover !important; }
.wp-block-gallery figcaption { font-size: 7pt !important; }
figcaption { font-size: 8pt !important; color: #64748b !important; text-align: center; background: none !important; position: static !important; padding: 1mm 0 0 !important; }
