/* =========================================================
   JW TECH FIFTEEN — TYPOGRAFIA I DOPRACOWANIE UI
   Fonty są ładowane przez functions.php (bez @import).
   ========================================================= */

:root {
    --jw-font-body: 'Inter', Arial, Helvetica, sans-serif;
    --jw-font-heading: 'Space Grotesk', Arial, Helvetica, sans-serif;
    --jw-text: #333;
    --jw-muted: #777;
    --jw-border: #d5d5d5;
}

/* =========================================================
   1. TYPOGRAFIA BAZOWA
   ========================================================= */

html {
    font-size: 16px;
}

body,
button,
input,
select,
textarea {
    font-family: var(--jw-font-body);
}

body {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* =========================================================
   2. ARTYKUŁY I STRONY
   ========================================================= */

.entry-title,
.wp-block-post-title,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4,
.wp-block-post-content h5,
.wp-block-post-content h6 {
    font-family: var(--jw-font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.entry-title,
.wp-block-post-title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.entry-content h1,
.post-content h1,
.wp-block-post-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.entry-content h2,
.post-content h2,
.wp-block-post-content h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-top: 2.2em;
    margin-bottom: 0.7em;
}

.entry-content h3,
.post-content h3,
.wp-block-post-content h3 {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    margin-top: 1.8em;
    margin-bottom: 0.6em;
}

.entry-content h4,
.post-content h4,
.wp-block-post-content h4 {
    font-size: 1.25rem;
}

.entry-content,
.post-content,
.wp-block-post-content {
    font-family: var(--jw-font-body);
}

.entry-content p,
.post-content p,
.wp-block-post-content p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 1.4em;
}

/* =========================================================
   3. NAWIGACJA, PRZYCISKI I LINKI
   ========================================================= */

nav,
nav a,
.main-navigation,
.main-navigation a,
.wp-block-navigation,
.wp-block-navigation a,
.wp-block-navigation-item__content {
    font-family: var(--jw-font-body);
    font-weight: 600;
    letter-spacing: -0.01em;
}

button,
input[type='button'],
input[type='submit'],
.wp-block-button__link,
.wp-element-button {
    font-family: var(--jw-font-body);
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    font-weight: inherit;
}

.entry-content a,
.post-content a,
.wp-block-post-content a {
    font-weight: 500;
}

/* =========================================================
   4. LISTY, CYTATY, PODPISY
   ========================================================= */

.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
    line-height: 1.7;
}

.entry-content li,
.post-content li,
.wp-block-post-content li {
    margin-bottom: 0.45em;
}

blockquote,
.wp-block-quote {
    font-family: var(--jw-font-body);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.65;
}

figcaption,
.wp-element-caption,
.wp-block-image figcaption {
    font-family: var(--jw-font-body);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* =========================================================
   5. META, TAGI / HASHTAGI
   ========================================================= */

.entry-meta,
.post-meta,
.wp-block-post-date,
.wp-block-post-author,
.wp-block-post-terms {
    font-family: var(--jw-font-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.entry-footer {
    font-family: var(--jw-font-body) !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
}

.entry-footer .tags-links,
.entry-footer .tags-links a,
.tags-links,
.tags-links a {
    font-family: var(--jw-font-body) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    letter-spacing: 0 !important;
    color: var(--jw-muted) !important;
}

.entry-footer .tags-links a {
    margin-right: 2px;
}

.entry-footer .tags-links a:hover,
.entry-footer .tags-links a:focus {
    color: #222 !important;
}

/* =========================================================
   6. LEWY PANEL / SIDEBAR — TWENTY FIFTEEN
   ========================================================= */

.widget,
.wp-block-widget {
    font-family: var(--jw-font-body);
}

.widget-title,
.wp-block-widget h2 {
    font-family: var(--jw-font-heading);
    font-weight: 700;
}

@media screen and (min-width: 59.6875em) {
    .site-title,
    .site-title a {
        font-family: var(--jw-font-heading);
        font-size: 22px !important;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: -0.03em;
    }

    .site-description {
        font-family: var(--jw-font-body);
        font-size: 13px !important;
        font-weight: 400;
        line-height: 1.5;
        letter-spacing: 0;
        margin-top: 8px;
    }

    .main-navigation,
    .main-navigation a {
        font-family: var(--jw-font-body);
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.45;
        letter-spacing: -0.01em;
    }

    .main-navigation li {
        margin-bottom: 3px;
    }

    .widget-title,
    .widget h2,
    .widget h3 {
        font-family: var(--jw-font-heading);
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.3;
        letter-spacing: -0.02em;
    }

    .widget,
    .widget p,
    .widget li,
    .widget a {
        font-family: var(--jw-font-body);
        font-size: 13.5px !important;
        line-height: 1.55;
    }

    .widget {
        margin-bottom: 28px;
    }
}

/* =========================================================
   7. WYSZUKIWARKA W LEWYM PANELU
   ========================================================= */

.widget_search .search-form {
    display: flex !important;
    align-items: center;
    gap: 7px;
    width: 100%;
    max-width: 280px;
}

.widget_search .search-field,
.widget_search input[type='search'] {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    height: 38px !important;
    min-height: 38px !important;
    padding: 7px 11px !important;
    box-sizing: border-box;
    font-family: var(--jw-font-body);
    font-size: 13.5px !important;
    font-weight: 400;
    line-height: 1.2 !important;
    border: 1px solid var(--jw-border);
    border-radius: 5px;
    background: #fff;
}

.widget_search .search-field::placeholder,
.widget_search input[type='search']::placeholder {
    font-size: 13px;
    opacity: 0.6;
}

.widget_search .search-field:focus,
.widget_search input[type='search']:focus {
    outline: none;
    border-color: #888;
}

.widget_search .search-submit,
.widget_search input[type='submit'],
.widget_search button[type='submit'] {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 68px;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    box-sizing: border-box;
    font-family: var(--jw-font-body);
    font-size: 12.5px !important;
    font-weight: 600;
    line-height: 38px !important;
    border: 1px solid #333;
    border-radius: 5px;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.widget_search .search-submit:hover,
.widget_search input[type='submit']:hover,
.widget_search button[type='submit']:hover,
.widget_search .search-submit:focus,
.widget_search input[type='submit']:focus,
.widget_search button[type='submit']:focus {
    background: #111;
    border-color: #111;
}

/* =========================================================
   8. STOPKA
   ========================================================= */

.site-info.jw-site-info {
    display: block !important;
    padding: 18px 10% 20px !important;
    margin: 0 !important;
    text-align: center !important;
    border-top: 1px solid #eee;
    background: transparent;
}

.jw-footer-title {
    display: block;
    font-family: var(--jw-font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--jw-text);
    text-decoration: none;
}

.jw-footer-tagline {
    display: block;
    margin-top: 3px;
    font-family: var(--jw-font-body);
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
    color: var(--jw-muted);
}

.jw-site-info .privacy-policy-link {
    display: inline-block;
    margin-top: 7px;
    font-family: var(--jw-font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--jw-muted);
}

/* =========================================================
   9. COMPLIANZ COOKIES
   ========================================================= */

.cmplz-manage-consent {
    min-height: 0 !important;
    height: auto !important;
    padding: 7px 12px !important;
    font-family: var(--jw-font-body) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    border-radius: 4px !important;
}

.cmplz-cookiebanner {
    font-family: var(--jw-font-body) !important;
}

.cmplz-cookiebanner .cmplz-title {
    font-family: var(--jw-font-heading) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
}

.cmplz-cookiebanner .cmplz-message {
    font-family: var(--jw-font-body) !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 12px !important;
    font-family: var(--jw-font-body) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
}

/* =========================================================
   10. MOBILE — TREŚĆ I STOPKA
   ========================================================= */

@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.65;
    }

    .entry-content p,
    .post-content p,
    .wp-block-post-content p {
        font-size: 16px;
        line-height: 1.7;
    }

    .entry-title,
    .wp-block-post-title {
        font-size: 2rem;
    }

    .entry-content h2,
    .post-content h2,
    .wp-block-post-content h2 {
        font-size: 1.65rem;
    }

    .entry-content h3,
    .post-content h3,
    .wp-block-post-content h3 {
        font-size: 1.35rem;
    }

    .widget_search .search-form {
        max-width: 100%;
    }

    .site-info.jw-site-info {
        padding: 15px 7% 17px !important;
    }

    .jw-footer-title {
        font-size: 13px;
    }

    .jw-footer-tagline {
        font-size: 11px;
    }
}

/* =========================================================
   11. MOBILNA NAZWA WITRYNY
   ========================================================= */

@media screen and (max-width: 59.6875em) {
    .site-title,
    .site-title a {
        font-family: var(--jw-font-heading) !important;
        font-size: clamp(18px, 5.6vw, 24px) !important;
        font-weight: 700 !important;
        line-height: 1.15 !important;
        letter-spacing: -0.035em !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .site-branding {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media screen and (max-width: 360px) {
    .site-title,
    .site-title a {
        font-size: 18px !important;
        letter-spacing: -0.04em !important;
    }
}

/* =========================================================
   12. KATEGORIE / ARCHIWA
   ========================================================= */

.category .page-title,
.archive .page-title {
    font-family: var(--jw-font-heading) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
}

.category .taxonomy-description,
.archive .taxonomy-description,
.category .taxonomy-description p,
.archive .taxonomy-description p {
    font-family: var(--jw-font-body) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;
}

@media screen and (max-width: 768px) {
    .category .page-header,
    .archive .page-header {
        padding: 12px 10px !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }

    .category .page-title,
    .archive .page-title {
        font-size: clamp(13px, 4vw, 16px) !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        white-space: nowrap !important;
        max-width: 100% !important;
        overflow: visible !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .category .taxonomy-description,
    .archive .taxonomy-description,
    .category .taxonomy-description p,
    .archive .taxonomy-description p {
        font-size: 12.5px !important;
    }
}

@media screen and (max-width: 480px) {
    .category .page-header,
    .archive .page-header {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        margin-bottom: 16px !important;
    }
}

@media screen and (max-width: 360px) {
    .category .page-title,
    .archive .page-title {
        font-size: 13px !important;
        letter-spacing: -0.025em !important;
    }
}
