/*
Theme Name: Kamiennik Kadence
Template: kadence
Description: Child theme of Kadence for kamiennik.co.pl (BJT-678). Bundles Roboto and Open Sans (no runtime font download) and the site styling.
Version: 1.2.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kamiennik-kadence
*/

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/roboto-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/roboto-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/roboto-latin-ext-500-normal.woff2') format('woff2');
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/roboto-latin-500-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/roboto-latin-ext-700-normal.woff2') format('woff2');
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/roboto-latin-700-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/open-sans-latin-ext-400-normal.woff2') format('woff2');
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/open-sans-latin-400-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/open-sans-latin-ext-600-normal.woff2') format('woff2');
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('fonts/open-sans-latin-600-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/open-sans-latin-ext-700-normal.woff2') format('woff2');
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/open-sans-latin-700-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Site styling: green accent, Newspaper-like header, menu and lists. */
.grecaptcha-badge { display: none; }
body { font-family: 'Open Sans', sans-serif; }
h1, h2, h3, h4, h5, h6, .entry-title, .site-title, .main-navigation, .widget-title, .wp-block-heading {
	font-family: 'Roboto', sans-serif;
}
.site-top-header-wrap .site-header-row-container-inner { background: #222; }
.site-top-header-wrap a, .site-top-header-wrap { color: #fff; font-size: 11px; }
.site-bottom-header-wrap .site-header-row-container-inner { border-bottom: 1px solid #e6e6e6; box-shadow: 0 2px 4px rgba(0, 0, 0, .06); }
.main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-family: 'Roboto', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; color: #000;
}
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover { box-shadow: inset 0 -3px 0 #0ead00; color: #000; }
.kk-ticker { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; font-size: 14px; }
.kk-ticker .kk-label { background: #222; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 9px; text-transform: uppercase; }
.kk-ticker .wp-block-post-title { font-size: 15px; font-weight: 400; margin: 0; }
.kk-ticker .wp-block-post-title a { color: #111; text-decoration: none; }
.kk-feature .wp-block-cover { min-height: 400px; }
.kk-feature .wp-block-post-terms a { background: #222; color: #fff; font-size: 11px; padding: 3px 7px; text-decoration: none; text-transform: uppercase; }
.kk-feature .wp-block-post-title a { color: #fff; text-decoration: none; }
.kk-feature .wp-block-post-author-name, .kk-feature .wp-block-post-date { color: #fff; font-size: 12px; }
.kk-list .wp-block-post-template > li { margin-bottom: 30px; }
.kk-list .wp-block-post-title { font-size: 21px; font-weight: 400; margin: 0 0 6px; }
.kk-list .wp-block-post-title a { color: #111; text-decoration: none; }
.kk-list .kk-meta { font-size: 11px; color: #767676; gap: 6px; }
.kk-list .kk-meta .wp-block-post-author-name { font-weight: 700; color: #000; }
.kk-list .wp-block-post-excerpt { font-size: 13px; color: #767676; }
.widget-title, .widget .wp-block-heading { background: #222; color: #fff; display: inline-block; font-size: 14px; padding: 4px 10px; }
.site-footer .site-middle-footer-wrap .site-footer-row-container-inner { background: #222; color: #fff; }
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { background: #0d0d0d; color: #ccc; font-size: 12px; }
.site-footer a { color: #4db2ec; }

/* BJT-678 r2: look closer to the old Newspaper site. */
body { background: #fff; }
:root { --global-content-boxed-padding: 0; }
.entry.single-entry, .entry.loop-entry { box-shadow: none; }
.entry-hero-container-inner { background: #fff; }
.content-area { margin-top: 1.5rem; margin-bottom: 3rem; }
.kadence-breadcrumbs { font-size: 11px; color: #a9a9a9; }
.kadence-breadcrumbs a { color: #a9a9a9; text-decoration: none; }
/* Compact archive heading as under Newspaper (founder: the category banner was too big). */
.post-archive-title { margin-bottom: 20px; }
.post-archive-title .archive-title { font-size: 24px; font-weight: 700; line-height: 1.3; margin: 0; text-transform: uppercase; }

/* Top bar: plain white Facebook glyph, no light button behind it. */
.site-top-header-wrap a.social-button { background: transparent; color: #fff; width: auto; height: auto; padding: 0 4px; }
.site-top-header-wrap a.social-button:hover { background: transparent; color: #0ead00; }
.site-top-header-wrap a.social-button svg { width: 13px; height: 13px; }

/* Sidebar block title: white label on black with a black rule under it, as under Newspaper. */
.primary-sidebar.widget-area .widget-title {
	background: #222; color: #fff; display: inline-block; font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0; padding: 4px 10px;
}
.primary-sidebar.widget-area .widget_recent_entries ul, .primary-sidebar.widget-area .widget_categories ul { border-top: 2px solid #222; list-style: none; margin: 0; padding: 0; }
.primary-sidebar.widget-area .widget_recent_entries li, .primary-sidebar.widget-area .widget_categories li { border-bottom: 1px solid #ededed; font-size: 13px; padding: 8px 0; }
.primary-sidebar.widget-area .widget_recent_entries li a, .primary-sidebar.widget-area .widget_categories li a { color: #111; text-decoration: none; }
.primary-sidebar.widget-area .widget_recent_entries li a:hover, .primary-sidebar.widget-area .widget_categories li a:hover { color: #0ead00; }
.primary-sidebar.widget-area .widget { margin-bottom: 30px; }
/* Categories widget: count as a small grey badge on the right (markup from the wp_list_categories filter). */
.primary-sidebar.widget-area .widget_categories li { align-items: center; display: flex; justify-content: space-between; }
.primary-sidebar.widget-area .widget_categories .children { border-top: 0; flex-basis: 100%; padding-left: 12px; }
.kk-count { background: #f2f2f2; color: #555; font-size: 11px; line-height: 1.6; min-width: 26px; padding: 0 6px; text-align: center; }
/* "Najnowsze zdjęcia" widget: 3-column square grid under the black rule. */
.primary-sidebar.widget-area .kk-photos, .kk-photos { border-top: 2px solid #222; display: grid; gap: 4px; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 8px 0 0; }
.kk-photos li { margin: 0; }
.kk-photos a { display: block; }
.kk-photos img { aspect-ratio: 1; display: block; height: auto; object-fit: cover; transition: opacity .2s; width: 100%; }
.kk-photos a:hover img, .kk-photos a:focus-visible img { opacity: .8; }

/* Footer: uppercase white headings, readable bottom menu, square Facebook button. */
.site-footer .widget .wp-block-heading, .site-footer .widget-title {
	background: none; color: #fff; display: block; font-size: 16px; font-weight: 700; padding: 0; text-transform: uppercase;
}
#colophon .footer-navigation .footer-menu-container > ul > li > a { color: #fff; }
#colophon .footer-navigation .footer-menu-container > ul li a:hover { color: #4db2ec; }
.site-footer .wp-block-social-links:not(.is-style-logos-only) .wp-social-link { background-color: #333; border-radius: 0; color: #fff; }
.site-footer .wp-block-social-links:not(.is-style-logos-only) .wp-social-link:hover { background-color: #3b5998; }

/* Home: gap under the hero; on phones a small thumbnail left of the title, no excerpt (as under Newspaper). */
.kk-feature { margin-bottom: 30px; }
@media (max-width: 600px) {
	.kk-list .wp-block-columns.is-not-stacked-on-mobile { flex-wrap: nowrap !important; gap: 12px; }
	.kk-list .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column:first-child { flex: 0 0 100px !important; }
	.kk-list .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column:last-child { flex: 1 1 auto !important; min-width: 0; }
	.kk-list .wp-block-post-featured-image, .kk-list .wp-block-post-featured-image a, .kk-list .wp-block-post-featured-image img { width: 100px !important; height: 75px !important; }
	.kk-list .wp-block-post-featured-image img { object-fit: cover; }
	.kk-list .wp-block-post-title { font-size: 15px; line-height: 1.3; }
	.kk-list .wp-block-post-excerpt { display: none; }
	.kk-list .wp-block-post-template > li { margin-bottom: 20px; }
	.kk-list .wp-block-columns, .kk-list .kk-meta { margin-bottom: 0; }
}

/* Share links under a post (plain links, see template-parts/content/share-links.php). */
.kk-share { border-top: 1px solid #ededed; display: flex; gap: 6px; margin-top: 30px; padding-top: 20px; }
.kk-share a { align-items: center; color: #fff; display: inline-flex; height: 32px; justify-content: center; width: 32px; }
.kk-share a svg { height: 15px; width: 15px; }
.kk-share-facebook { background: #516eab; }
.kk-share-x { background: #29c5f6; }
.kk-share-pinterest { background: #ca212a; }
.kk-share-whatsapp { background: #7bbf6a; }
.kk-share a:hover { opacity: .85; }

/* 404 as under Newspaper. */
.kk-404 .page-header, .kk-404-sub, .kk-404-home { text-align: center; }
.kk-404 .page-title { font-size: 36px; font-weight: 400; margin: 20px 0 10px; }
.kk-404-sub { color: #999; font-size: 18px; }
.kk-404-home { font-size: 13px; margin-bottom: 50px; }
.kk-404-btn { background: #222; color: #fff; display: inline-block; font-size: 11px; font-weight: 700; margin-left: 6px; padding: 6px 12px; text-decoration: none; text-transform: uppercase; }
.kk-404-btn:hover { background: #0ead00; color: #fff; }
.kk-block-title { border-bottom: 2px solid #222; font-size: 14px; line-height: 1; margin: 0 0 20px; }
.kk-block-title span { background: #222; color: #fff; display: inline-block; padding: 6px 10px; text-transform: uppercase; }
.kk-404 .entry { box-shadow: none; }
.kk-404-grid { display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.kk-404-thumb img { aspect-ratio: 2 / 1; display: block; height: auto; object-fit: cover; width: 100%; }
.kk-404-title { font-size: 17px; font-weight: 400; line-height: 1.3; margin: 10px 0 4px; }
.kk-404-title a { color: #111; text-decoration: none; }
.kk-404-meta { color: #767676; font-size: 11px; }
.kk-404-meta strong { color: #000; }
@media (max-width: 767px) { .kk-404-grid { grid-template-columns: 1fr; } }

/* Home slider of the latest posts (shortcode kamiennik_slider, js/slider.js), replacing "Na topie" and the hero. */
.kk-slider { margin-bottom: 30px; }
.kk-slides { display: flex; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.kk-slides::-webkit-scrollbar { display: none; }
.kk-slide { flex: 0 0 100%; scroll-snap-align: start; }
.kk-slide-link { color: #fff; display: block; height: 400px; position: relative; text-decoration: none; }
.kk-slide-link:hover, .kk-slide-link:focus { color: #fff; }
.kk-slide-img { display: block; height: 100%; object-fit: cover; width: 100%; }
.kk-slide-caption { background: linear-gradient(transparent, rgba(0, 0, 0, .75)); bottom: 0; left: 0; padding: 60px 20px 20px; position: absolute; right: 0; }
.kk-slide-cat { background: #222; display: inline-block; font-size: 11px; font-weight: 700; margin-bottom: 8px; padding: 3px 7px; text-transform: uppercase; }
.kk-slide-title { display: block; font-family: Roboto, sans-serif; font-size: 28px; font-weight: 500; line-height: 1.2; }
.kk-slide-link:hover .kk-slide-title, .kk-slide-link:focus-visible .kk-slide-title { text-decoration: underline; }
.kk-slide-date { display: block; font-size: 12px; margin-top: 6px; }
.kk-slider-nav { align-items: center; display: flex; gap: 4px; justify-content: center; margin-top: 10px; }
.kk-slider-dots { display: flex; }
.kk-slider-nav button { align-items: center; background: #222; border: 0; border-radius: 0; box-shadow: none; color: #fff; cursor: pointer; display: inline-flex; height: 28px; justify-content: center; padding: 0; width: 28px; }
.kk-slider-nav button:hover, .kk-slider-nav button:focus-visible { background: #0ead00; color: #fff; }
.kk-slider-prev::before { content: "\2039"; font-size: 20px; line-height: 1; }
.kk-slider-next::before { content: "\203A"; font-size: 20px; line-height: 1; }
.kk-slider-pause::before { content: "\275A\275A"; font-size: 8px; letter-spacing: 1px; }
.kk-slider-pause.is-paused::before { content: "\25B6"; font-size: 10px; letter-spacing: 0; }
.kk-slider-nav .kk-slider-dot { background: transparent; width: 24px; }
.kk-slider-nav .kk-slider-dot::before { background: #ccc; border-radius: 50%; content: ""; height: 10px; width: 10px; }
.kk-slider-nav .kk-slider-dot:hover, .kk-slider-nav .kk-slider-dot:focus-visible { background: transparent; }
.kk-slider-nav .kk-slider-dot:hover::before, .kk-slider-nav .kk-slider-dot[aria-current="true"]::before { background: #0ead00; }
.kk-slider-nav .kk-slider-dot:focus-visible { outline: 2px solid #0ead00; }
@media (max-width: 600px) {
	.kk-slide-link { height: 240px; }
	.kk-slide-caption { padding: 40px 14px 14px; }
	.kk-slide-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.kk-slides { scroll-behavior: auto; }
}

/* Archive cards: titles at the Newspaper grid size (17 px regular) instead of Kadence's large bold. */
.content-area .loop-entry .entry-title { font-size: 17px; font-weight: 400; line-height: 1.3; }

/* Classic posts written as one <div> per line relied on <div>&nbsp;</div> spacers, which the round 3 content cleanup
   removes: give those plain divs paragraph spacing instead. */
.single-content > div:not([class]):not([id]) { margin: 0 0 var(--global-md-spacing, 1.5rem); }
/* The same holds for the four pasted (Google/Facebook) div classes that had such spacers between them before the
   cleanup; other pasted classes never had spacers and keep their original look. */
.single-content > div.n6owBd,
.single-content > div.Y3BBE,
.single-content > div.yhAwj,
.single-content > div.x11i5rnm.x1mh8g0r:not(.html-div) { margin: 0 0 var(--global-md-spacing, 1.5rem); }

/* A media-text block whose media slot is empty (Agroturystyka, Chleb) is a 50/50 grid with a blank left half: the text
   gets squeezed into the right half and the page grows tall. Without media it is laid out as one full-width column. */
.wp-block-media-text:has(> .wp-block-media-text__media:empty) { display: block; }
.wp-block-media-text:has(> .wp-block-media-text__media:empty) > .wp-block-media-text__media { display: none; }
.wp-block-media-text:has(> .wp-block-media-text__media:empty) > .wp-block-media-text__content { padding: 0; }
/* Its gallery would then span the full width at 3 per row; keep thumbnails small and stop a lone last photo from
   stretching across the whole row. */
.wp-block-media-text:has(> .wp-block-media-text__media:empty) .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex-grow: 0; }
@media (min-width: 1025px) {
	.wp-block-media-text:has(> .wp-block-media-text__media:empty) .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) { width: calc(16.66% - var(--wp--style--unstable-gallery-gap, 16px) * 0.8333); }
}
@media (min-width: 600px) and (max-width: 1024px) {
	.wp-block-media-text:has(> .wp-block-media-text__media:empty) .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) { width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75); }
}

/* Phones: a floated image (alignleft/alignright) leaves a column of one or two words beside it and splits words
   ("Kamienni ku"); below 600px it stands on its own line, centred, as on the old theme. */
@media (max-width: 599px) {
	.single-content .alignleft,
	.single-content .alignright,
	.single-content .wp-block-image .alignleft,
	.single-content .wp-block-image .alignright {
		float: none;
		display: block;
		margin: 0 auto var(--global-md-spacing, 1.5rem);
	}
	.single-content img.alignleft,
	.single-content img.alignright { height: auto; }
}

/* Pagination (BJT-678 1.2.5, founder 2026-10-23): front page Query Loop and Kadence archives as boxed buttons,
   40 px tap targets, current page filled. The fill is the darker site green (#0b8a00, Kadence palette 2): white
   bold text on it is 4.5:1, on #0ead00 only 3:1. Classes doubled to win over core layout and content link rules. */
.wp-block-query-pagination.wp-block-query-pagination,
.pagination.pagination .nav-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wp-block-query-pagination.wp-block-query-pagination > * { margin: 0; }
.wp-block-query-pagination.wp-block-query-pagination .wp-block-query-pagination-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wp-block-query-pagination.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination.wp-block-query-pagination > a,
.pagination.pagination .nav-links .page-numbers { align-items: center; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-sizing: border-box; color: #222; display: inline-flex; justify-content: center; line-height: 1.2; margin: 0; min-height: 40px; min-width: 40px; padding: 0 12px; text-decoration: none; }
/* inline-flex drops the space between the label and the arrow span on archives; core's arrows have their own margin */
.pagination.pagination .nav-links .prev, .pagination.pagination .nav-links .next { gap: 1ch; }
.wp-block-query-pagination.wp-block-query-pagination .page-numbers.dots,
.pagination.pagination .nav-links .page-numbers.dots { background: none; border-color: transparent; min-width: 0; padding: 0 4px; }
.wp-block-query-pagination.wp-block-query-pagination .page-numbers.current,
.pagination.pagination .nav-links .page-numbers.current { background: #0b8a00; border-color: #0b8a00; color: #fff; font-weight: 700; }
.wp-block-query-pagination.wp-block-query-pagination a:hover,
.pagination.pagination .nav-links a.page-numbers:hover { background: #e9f7e7; border-color: #0ead00; color: #111; }
.wp-block-query-pagination.wp-block-query-pagination a:focus-visible,
.pagination.pagination .nav-links a.page-numbers:focus-visible { outline: 2px solid #0b8a00; outline-offset: 2px; }
