/* ART-EMI Blog - dodatkowe style (kolory i czcionka jak w sklepie obrazy.org) */

.art-emi-header { border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.art-emi-brand a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.art-emi-brand a:hover { color: var(--wp--preset--color--accent-3); }
.art-emi-sub { color: #5E6166; }
.art-emi-header .wp-block-navigation a { text-decoration: none; }
.art-emi-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-3); }
.art-emi-wa .wp-block-button__link { background: var(--wp--preset--color--whatsapp); color: #fff; }
.art-emi-wa .wp-block-button__link:hover { background: #18763f; color: #fff; }

.art-emi-banner img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* Karty wpisów na stronie głównej i w archiwach */
.art-emi-cards .wp-block-post { background: #fff; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.art-emi-cards .wp-block-post-featured-image { margin: 0; }
.art-emi-cards .wp-block-post-featured-image { background: var(--wp--preset--color--accent-2); }
.art-emi-cards .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: contain !important; width: 100%; height: auto; padding: .6rem; box-sizing: border-box; }
.art-emi-cards .art-emi-card-body { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.art-emi-cards .wp-block-post-title { font-size: 1.15rem; margin: 0; }
.art-emi-cards .wp-block-post-excerpt { font-size: .95rem; margin: 0; }
.art-emi-cards .wp-block-post-excerpt__more-link { font-weight: 600; }

/* Pojedynczy wpis */
.single .wp-block-post-content img { border-radius: 4px; }
.obrazy-cta { border-left-color: var(--wp--preset--color--accent-1) !important; }

/* Stopka */
.art-emi-footer a { color: var(--wp--preset--color--contrast); }
.art-emi-footer a:hover { color: var(--wp--preset--color--accent-3); }

/* Mniejsze odstępy wokół banera na stronie głównej */
.art-emi-banner { margin-top: 0 !important; margin-bottom: 0 !important; }
.home main > .wp-block-heading + p { margin-top: .3rem; }

/* ===== Pojedynczy wpis ===== */
.art-emi-post-hero .wp-block-post-title { margin-bottom: 0; }
.art-emi-kicker { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.art-emi-kicker a { text-decoration: none; color: var(--wp--preset--color--accent-3); }
.art-emi-byline .wp-block-image { margin: 0; }
.art-emi-byline .wp-block-image img { border-radius: 50%; }
.art-emi-byline .wp-block-post-date { color: #5E6166; font-size: .85rem; }

.art-emi-post-body > * { max-width: 100%; }
.art-emi-post-body .wp-block-image img, .art-emi-post-body img { border-radius: 6px; box-shadow: 0 6px 22px rgba(0, 34, 34, .12); }
.art-emi-post-body .wp-block-image { margin-top: 1.8rem; margin-bottom: 1.8rem; }
.art-emi-post-body h2, .art-emi-post-body h3 { margin-top: 2.2rem; }

.art-emi-sidebar { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.art-emi-author-card { padding: 1.4rem 1.3rem; border-radius: 8px; }
.art-emi-author-card .wp-block-image img { border-radius: 50%; border: 4px solid #fff; }
.art-emi-side-title { font-size: 1rem !important; text-transform: uppercase; letter-spacing: .05em; margin: .4rem 0 0; padding-bottom: .4rem; border-bottom: 2px solid var(--wp--preset--color--accent-1); }
.art-emi-latest { padding: 0; margin: 0; }
.art-emi-latest li { list-style: none; display: flow-root; margin-bottom: .8rem; font-size: .92rem; line-height: 1.35; }
.art-emi-latest .wp-block-latest-posts__featured-image img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.art-emi-latest a { color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 500; }
.art-emi-latest a:hover { color: var(--wp--preset--color--accent-3); }
.art-emi-cats { padding-left: 1.1rem; font-size: .95rem; }

.art-emi-related .wp-block-post-title { font-size: 1.02rem !important; }

@media (max-width: 781px) {
	.art-emi-sidebar { position: static; }
	.art-emi-byline .wp-block-post-date { display: none; }
}
.art-emi-latest li { display: flex; align-items: flex-start; gap: .8rem; }
.art-emi-latest .wp-block-latest-posts__featured-image { flex: 0 0 64px; margin: 0 !important; float: none !important; }

/* ===== Strona "O mnie" (szablon page-wide) ===== */
.art-emi-wide-page > .wp-block-post-content > .alignfull:first-child { margin-top: 0; }
.art-emi-about-photo img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 34, 34, .15); width: 100%; height: auto; }
.art-emi-about-hero h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); }

.art-emi-stats { text-align: center; }
.art-emi-stats .wp-block-column { background: #fff; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 8px; padding: 1.4rem 1rem; }
.art-emi-stat-num { font-size: 2.4rem; font-weight: 700; color: var(--wp--preset--color--accent-3); line-height: 1.1; margin: 0; }
.art-emi-stat-label { font-size: .95rem; margin: .4rem 0 0; color: var(--wp--preset--color--accent-4); }
.art-emi-countries { color: #5E6166; margin-top: 1rem; }

.art-emi-tiles .wp-block-image { margin: 0 0 .8rem; background: var(--wp--preset--color--accent-2); border-radius: 6px; overflow: hidden; }
.art-emi-tiles .wp-block-image img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; display: block; transition: transform .3s; }
.art-emi-tiles .wp-block-image:hover img { transform: scale(1.03); }
.art-emi-tiles h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.art-emi-tiles h3 a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.art-emi-tiles p { font-size: .95rem; margin: 0; }

.art-emi-step-num { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--contrast); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin: 0 0 .6rem; }
.art-emi-steps h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.art-emi-steps p { font-size: .95rem; }

.art-emi-rating { font-size: 1.05rem; margin-top: .2rem; }
.art-emi-stars { color: #F2B01E; letter-spacing: .1em; }
.art-emi-review { background: #fff; border: 1px solid var(--wp--preset--color--accent-6) !important; border-left: 4px solid var(--wp--preset--color--accent-1) !important; border-radius: 6px; padding: 1.1rem 1.2rem !important; margin: 0 0 1.2rem !important; font-style: normal; }
.art-emi-review::before { content: "★★★★★"; display: block; color: #F2B01E; letter-spacing: .1em; font-size: .9rem; margin-bottom: .4rem; }
.art-emi-review p { font-size: 1rem; margin: 0; }
.art-emi-review cite { display: block; margin-top: .6rem; font-size: .85rem; font-weight: 600; font-style: normal; color: var(--wp--preset--color--contrast); }
.art-emi-reviews .is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--accent-3); border: 2px solid var(--wp--preset--color--accent-1); }

.art-emi-list li { margin-bottom: .4rem; }
.art-emi-about-cta { border-radius: 10px; }
.art-emi-about-cta .is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--contrast); border: 2px solid var(--wp--preset--color--accent-1); }

/* Justowanie tylko dla dłuższych akapitów (wąskie kolumny zostają do lewej - Chrome na PC nie dzieli polskich wyrazów) */
html[lang^="pl"] .art-emi-wide-page .art-emi-story p,
html[lang^="pl"] .art-emi-post-body > p {
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
	text-wrap: pretty;
}
@media (max-width: 600px) {
	html[lang^="pl"] .art-emi-wide-page .art-emi-story p,
	html[lang^="pl"] .art-emi-post-body > p { text-align: left; }
}

/* Ciaśniejszy rytm pionowy */
h2.wp-block-heading { margin-top: 1.6em; margin-bottom: .5em; }
h3.wp-block-heading { margin-bottom: .35em; }
.wp-block-post-content p { margin-top: 0; margin-bottom: .9em; }
.art-emi-wide-page .wp-block-columns { margin-bottom: 0; }
.art-emi-footer { margin-top: var(--wp--preset--spacing--60) !important; }
.art-emi-stats .wp-block-column > * { margin-block-start: 0 !important; }
.art-emi-stats .wp-block-column { padding: 1rem .8rem; }
.art-emi-stat-label { margin-top: .2rem !important; }
.art-emi-steps .wp-block-column > * + * { margin-block-start: .3rem !important; }
.art-emi-tiles .wp-block-column > * + * { margin-block-start: .3rem !important; }
