/*
Theme Name: KENDOS Core
Theme URI: https://kendos.pl/
Author: Eprojekt
Description: Lekki, modułowy motyw bazowy dla KENDOS. Zoptymalizowany pod responsywność, dostępność, SEO techniczne i wysokie wyniki PageSpeed. Nagłówek współpracuje z wtyczką „KENDOS – Nagłówek SCF”.
Version: 1.1.5
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: kendos-core
*/

:root {
    --kendos-bg: #ffffff;
    --kendos-text: #171717;
    --kendos-muted: #686868;
    --kendos-border: #e8e8e8;
    --kendos-dark: #050505;
    --kendos-yellow: #f7c400;
    --kendos-container: 1240px;
    --kendos-header-container: 1450px;
    --kendos-radius: 14px;
    --kendos-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
    --kendos-font: Poppins, Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--kendos-bg);
    color: var(--kendos-text);
    font-family: var(--kendos-font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.kendos-menu-open {
    overflow: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

figure {
    margin: 0;
}

.kendos-container {
    width: min(calc(100% - 40px), var(--kendos-container));
    margin-inline: auto;
}

.site-main {
    min-height: 55vh;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus,
.kendos-skip-link:focus {
    position: fixed !important;
    z-index: 100000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 12px 16px;
    margin: 0;
    overflow: visible;
    border-radius: 6px;
    background: #ffffff;
    color: #111111;
    font-weight: 700;
    box-shadow: var(--kendos-shadow);
}

.entry-content::after {
    display: table;
    clear: both;
    content: "";
}

.entry-content > :first-child {
    margin-top: 0;
}

.entry-content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .kendos-container {
        width: min(calc(100% - 28px), var(--kendos-container));
    }
}


/*
 * Strony modułowe KENDOS.
 * Każdy shortcode ma własny kontener i własne style, dlatego motyw nie może
 * ograniczać ich do standardowej kolumny 980 px ani dodawać paddingu strony.
 */
.kendos-page.is-modular-page,
.kendos-page.is-builder-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.kendos-page.is-modular-page > .entry-content,
.kendos-page.is-builder-page > .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.kendos-page.is-modular-page > .entry-content > p:empty,
.kendos-page.is-modular-page > .entry-content > p:has(> br:only-child),
.kendos-page.is-modular-page > .entry-content > br,
.kendos-front-page > .entry-content > p:empty,
.kendos-front-page > .entry-content > p:has(> br:only-child),
.kendos-front-page > .entry-content > br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
}
