/*
 * Zaki base CSS.
 * Minimalne style techniczne. Kolory i fonty ustawiaj globalnie w Elementorze.
 */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration-thickness: from-font;
    text-underline-offset: 0.15em;
}

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

.zaki-container {
    width: min(100% - 32px, 1200px);
    margin-inline: auto;
}

.zaki-site-main {
    min-height: 50vh;
}

.zaki-site-header,
.zaki-site-footer {
    padding-block: 16px;
}

.zaki-header-inner,
.zaki-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.zaki-menu,
.zaki-footer-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

.zaki-post,
.zaki-single,
.zaki-page,
.zaki-no-results,
.zaki-error-404,
.zaki-archive-header,
.zaki-comments {
    width: min(100% - 32px, 1200px);
    margin-inline: auto;
}

.zaki-post,
.zaki-single,
.zaki-page,
.zaki-no-results,
.zaki-error-404,
.zaki-archive-header {
    padding-block: 32px;
}

.zaki-full-width-page {
    width: 100%;
}

.screen-reader-text {
    position: absolute;
    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 {
    position: fixed;
    z-index: 100000;
    top: 16px;
    left: 16px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #fff;
    color: #000;
    outline: 2px solid currentColor;
}

@media (max-width: 768px) {
    .zaki-header-inner,
    .zaki-footer-inner,
    .zaki-menu,
    .zaki-footer-menu {
        align-items: flex-start;
        flex-direction: column;
    }
}
