/* =========================================================================
   Gazeta Konopna – SPLIFF (www.spliff.pl) v2.0
   Nowoczesny, swiezy, zielony styl prasowy + Tryb Ciemny + Full Responsive
   ========================================================================= */

:root {
    --bg-page: #f7f9f8;
    --bg-surface: #ffffff;
    --bg-tint: #eef5f0;
    --bg-muted: #edf2ef;
    --ink: #111827;
    --ink-soft: #374151;
    --ink-muted: #6b7280;
    --border: #d5e6dc;
    --border-strong: #15803d;
    --accent: #16a34a;
    --accent-dark: #15803d;
    --accent-bright: #22c55e;
    --accent-soft: #dcfce7;
    --accent-ink: #14532d;
    --footer-bg: #0f1b14;
    --footer-ink: #d1e3d8;
    --footer-muted: #8aa595;
    --shadow-sm: 0 2px 8px rgba(15, 45, 25, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 45, 25, 0.08);
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
    --max-width: 1200px;
}

/* TRYB CIEMNY */
[data-theme="dark"] {
    --bg-page: #0c1410;
    --bg-surface: #131f18;
    --bg-tint: #182b20;
    --bg-muted: #1b2a21;
    --ink: #f0fdf4;
    --ink-soft: #cbd5d0;
    --ink-muted: #8fa699;
    --border: #23382c;
    --border-strong: #22c55e;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --accent-bright: #4ade80;
    --accent-soft: #153622;
    --accent-ink: #86efac;
    --footer-bg: #080e0b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg-page);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Przelacznik etykiet trybu jasny/ciemny */
.theme-label-dark { display: none; }
[data-theme="dark"] .theme-label-light { display: none; }
[data-theme="dark"] .theme-label-dark { display: inline; }

/* --- GORNY BANER REKLAMOWY --- */
.top-ad-bar {
    background: var(--bg-tint);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

/* --- SLOTY REKLAMOWE --- */
.ad-slot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ad-section-gap { margin: 28px 0; }
.ad-in-feed { margin: 22px 0; }
.ad-in-article { margin: 24px 0; }

.ad-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    margin-bottom: 4px;
    align-self: flex-start;
}

.ad-banner-link {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.ad-banner-link img {
    margin: 0 auto;
    border-radius: var(--radius-sm);
    max-width: 100%;
    height: auto;
}

.ad-slot-placeholder .ad-placeholder-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1.5px dashed var(--border);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    min-height: 82px;
    padding: 12px;
    transition: border-color 0.15s, color 0.15s;
}

.ad-slot-top_banner.ad-slot-placeholder .ad-placeholder-inner { max-width: 970px; min-height: 76px; }
.ad-slot-mid_banner_1.ad-slot-placeholder .ad-placeholder-inner,
.ad-slot-mid_banner_2.ad-slot-placeholder .ad-placeholder-inner,
.ad-slot-in_feed.ad-slot-placeholder .ad-placeholder-inner,
.ad-slot-in_article.ad-slot-placeholder .ad-placeholder-inner { max-width: 728px; min-height: 84px; }
.ad-slot-sidebar_top.ad-slot-placeholder .ad-placeholder-inner { min-height: 220px; }
.ad-slot-sidebar_sticky.ad-slot-placeholder .ad-placeholder-inner { min-height: 420px; }

.ad-slot-placeholder .ad-placeholder-inner:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ad-ph-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; }
.ad-ph-size { font-size: 0.72rem; opacity: 0.85; }

/* Natywna karta partnerska */
.ad-native-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, transform 0.15s;
}

.ad-native-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.ad-native-thumb { flex: 0 0 130px; border-radius: var(--radius-sm); overflow: hidden; }
.ad-native-thumb img { width: 100%; height: 96px; object-fit: cover; }
.ad-native-body { flex: 1; min-width: 0; }
.ad-native-title { font-weight: 700; font-size: 1.04rem; margin-bottom: 4px; color: var(--ink); }
.ad-native-desc { margin: 0 0 10px; font-size: 0.88rem; color: var(--ink-soft); }

/* --- HEADER & TOPBAR --- */
.site-header {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--accent);
    position: relative;
    z-index: 40;
}

.topbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 38px;
}

.topbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar-badge-free { font-weight: 700; color: var(--accent-ink); }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.topbar-socials { display: inline-flex; align-items: center; gap: 10px; }
.topbar-socials a { color: var(--ink-soft); display: inline-flex; padding: 4px; border-radius: 4px; }
.topbar-socials a:hover { color: var(--accent); background: var(--accent-soft); }

.topbar-pdf-link { color: var(--accent-dark); font-weight: 700; }
.topbar-pdf-link:hover { text-decoration: underline; }

.theme-toggle-btn {
    border: 1px solid var(--border);
    background: var(--bg-page);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 3px 10px;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
}
.theme-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Winieta */
.masthead { padding: 18px 0 16px; }
.masthead-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.masthead-left { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--ink-muted); }
.masthead-domain { font-weight: 700; color: var(--ink); font-size: 0.88rem; }

.masthead-brand { text-align: center; }
.brand-link { display: inline-flex; flex-direction: column; align-items: center; }
.brand-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1px;
}
.brand-title {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 4.8vw, 3.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0.03em;
    color: var(--ink);
}
.brand-title-green { color: var(--accent); }

.masthead-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-page);
    padding: 2px 6px 2px 14px;
    max-width: 240px;
    width: 100%;
    transition: border-color 0.15s;
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    width: 100%;
    outline: none;
    color: var(--ink);
}
.header-search button {
    border: none;
    background: transparent;
    color: var(--ink-muted);
    cursor: pointer;
    padding: 6px;
    display: flex;
}
.header-search button:hover { color: var(--accent); }

/* Hamburger mobilny */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 10px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Pasek kategorii */
.main-nav {
    border-top: 1px solid var(--border);
    background: var(--bg-tint);
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.nav-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}
.nav-list a:hover,
.nav-list a.is-active {
    color: var(--accent-dark);
    border-bottom-color: var(--accent);
}
.nav-pdf-item { margin-left: 8px; }
.nav-pdf-btn {
    background: var(--accent) !important;
    color: #fff !important;
    border-radius: var(--radius-sm);
    padding: 8px 14px !important;
    margin: 5px 0;
    border-bottom: none !important;
}
.nav-pdf-btn:hover { background: var(--accent-dark) !important; }

/* Mobilna szuflada */
.mobile-drawer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.mobile-drawer-inner { padding: 16px 20px 20px; }
.mobile-search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.mobile-search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
}
.mobile-drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.drawer-heading { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.drawer-links { list-style: none; margin: 0; padding: 0; }
.drawer-links a { display: block; padding: 7px 0; font-size: 0.92rem; font-weight: 500; border-bottom: 1px solid var(--bg-muted); }
.drawer-accent { color: var(--accent-dark); font-weight: 700 !important; }

/* --- GLOWNA TRESC --- */
.site-main { padding: 24px 0 64px; }

/* Przyciski */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: var(--bg-surface); color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* Odznaki */
.cat-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--accent);
    padding: 3px 9px;
    border-radius: 4px;
}
.cat-badge:hover { background: var(--accent-dark); }

.cat-pill-sm {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-ink);
    background: var(--accent-soft);
    padding: 2px 7px;
    border-radius: 4px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-bottom: 10px;
}
.meta-dot { opacity: 0.55; }
.read-more-link { font-size: 0.86rem; font-weight: 700; color: var(--accent-dark); }
.read-more-link:hover { text-decoration: underline; }

/* --- 3-KOLUMNOWY PASEK ZAJAWEK --- */
.teaser-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.teaser-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, transform 0.15s;
}
.teaser-item:hover { border-color: var(--accent); transform: translateY(-1px); }
.teaser-thumb { flex: 0 0 64px; height: 54px; border-radius: 4px; overflow: hidden; background: var(--bg-muted); }
.teaser-thumb img { width: 100%; height: 100%; object-fit: cover; }
.teaser-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.teaser-title {
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- BELKA TEMAT W TOKU --- */
.ongoing-bar { margin-bottom: 22px; }
.ongoing-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: #fff;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.ongoing-link:hover { filter: brightness(1.05); }
.ongoing-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.ongoing-text { font-size: 0.92rem; font-weight: 600; flex: 1; }
.ongoing-arrow { font-weight: 800; font-size: 1.1rem; }

/* --- PIERWSZA STRONA: HERO + SIDEBAR --- */
.frontpage-grid,
.archive-layout,
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.frontpage-main,
.archive-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.frontpage-sidebar,
.archive-sidebar,
.article-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.sidebar-sticky-wrap { position: sticky; top: 18px; }

.hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.hero-image-wrap { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-muted); }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.hero-card:hover .hero-image-wrap img { transform: scale(1.02); }
.hero-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 7;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 50%, #86efac 100%);
    color: #14532d;
}
.hero-ph-cat { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-ph-logo { font-family: var(--font-serif); font-size: 3rem; font-weight: 900; }

.hero-body { padding: 24px 26px 24px; }
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.18;
    margin: 0 0 12px;
    font-weight: 800;
}
.hero-title a:hover { color: var(--accent-dark); }
.hero-excerpt { font-size: 1rem; color: var(--ink-soft); margin: 0 0 18px; }

.subhero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.subhero-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    border: 1px solid transparent;
}
.subhero-item:hover { border-color: var(--accent); }
.subhero-thumb { flex: 0 0 72px; height: 56px; border-radius: 4px; overflow: hidden; }
.subhero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.subhero-title { font-size: 0.88rem; font-weight: 700; line-height: 1.3; margin-top: 4px; }

/* --- WIDGETY BOCZNE --- */
.widget-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

/* Widget PDF */
.issue-widget { padding: 0; overflow: hidden; border-color: var(--accent); }
.issue-widget-head {
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
    color: #fff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.issue-widget-kicker { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.issue-widget-num { font-size: 0.78rem; font-weight: 700; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 999px; }
.issue-widget-body { padding: 16px; }
.issue-widget-cover {
    display: block;
    max-width: 190px;
    margin: 0 auto 12px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-sm);
}
.issue-widget-cover img { width: 100%; height: 100%; object-fit: cover; }
.issue-widget-title { font-family: var(--font-serif); font-size: 1.08rem; margin: 0 0 6px; text-align: center; }
.issue-widget-desc { font-size: 0.84rem; color: var(--ink-soft); margin: 0 0 12px; text-align: center; }
.issue-widget-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Najczesciej czytane */
.popular-list { list-style: none; margin: 0; padding: 0; }
.popular-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-muted);
}
.popular-list li:last-child { border-bottom: none; padding-bottom: 0; }
.pop-rank {
    flex: 0 0 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-weight: 800;
    font-size: 0.84rem;
}
.pop-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pop-link { font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.pop-link:hover { color: var(--accent-dark); }
.pop-meta { font-size: 0.72rem; color: var(--ink-muted); text-transform: uppercase; font-weight: 600; }

/* Kalendarz wydarzen */
.events-list { list-style: none; margin: 0; padding: 0; }
.event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--bg-muted);
}
.event-item:last-child { border-bottom: none; padding-bottom: 0; }
.event-date-badge {
    flex: 0 0 46px;
    text-align: center;
    background: var(--accent-soft);
    color: var(--accent-ink);
    border-radius: 6px;
    padding: 5px 4px;
    line-height: 1.1;
}
.event-date-badge strong { display: block; font-size: 1rem; font-weight: 800; }
.event-date-badge span { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; }
.event-info { display: flex; flex-direction: column; min-width: 0; }
.event-title { font-weight: 700; font-size: 0.88rem; line-height: 1.3; }
a.event-title:hover { color: var(--accent-dark); }
.event-loc { font-size: 0.78rem; color: var(--ink-muted); }

/* --- SEKCJA KANALOW YOUTUBE --- */
.yt-section {
    background: var(--bg-tint);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.yt-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.yt-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-dark);
}
.yt-head-links { display: flex; gap: 14px; font-size: 0.82rem; font-weight: 700; color: var(--accent-dark); }
.yt-head-links a:hover { text-decoration: underline; }

.yt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yt-channel-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.yt-thumb-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #102016;
    overflow: hidden;
    cursor: pointer;
    display: block;
}
.yt-thumb-box img,
.yt-thumb-box iframe { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-thumb-branded {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #123821 0%, #16a34a 100%);
    color: #fff;
}
.yt-branded-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.yt-branded-handle { font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em; }
.yt-play-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 40px;
    border-radius: 10px;
    background: #dc2626;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.18s;
}
.yt-thumb-branded .yt-play-circle { position: static; transform: none; }
.yt-thumb-box:hover .yt-play-circle { transform: translate(-50%, -50%) scale(1.08); }
.yt-thumb-branded:hover .yt-play-circle { transform: scale(1.08); }

.yt-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 27, 20, 0.82);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
}

.yt-card-body { padding: 14px; }
.yt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.yt-handle-link { font-weight: 800; font-size: 0.96rem; color: var(--ink); }
.yt-handle-link:hover { color: var(--accent-dark); }
.yt-sub-btn {
    font-size: 0.74rem;
    font-weight: 700;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.yt-sub-btn:hover { background: #dc2626; color: #fff; }
.yt-card-desc { margin: 0; font-size: 0.84rem; color: var(--ink-soft); }

/* Kompaktowy widget YouTube w sidebarze */
.yt-sidebar-widget { background: var(--bg-tint); }
.yt-mini-list { display: flex; flex-direction: column; gap: 10px; }
.yt-mini-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    transition: border-color 0.15s;
}
.yt-mini-item:hover { border-color: var(--accent); }
.yt-mini-icon {
    flex: 0 0 34px;
    height: 26px;
    border-radius: 6px;
    background: #dc2626;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.yt-mini-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yt-mini-text strong { font-size: 0.88rem; }
.yt-mini-text span { font-size: 0.75rem; color: var(--ink-muted); }
.yt-mini-arrow { color: var(--accent-dark); font-weight: 700; }

/* --- MODULY 6 DZIALOW PO 5 ARTYKULOW NA STRONIE GLOWNEJ --- */
.cat-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cat-module-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.cat-module-head {
    background: var(--accent);
    color: #fff;
    padding: 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.cat-module-head h2 {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cat-module-all { font-size: 0.76rem; font-weight: 600; opacity: 0.95; white-space: nowrap; }
.cat-module-all:hover { text-decoration: underline; }

.cat-module-empty { padding: 24px 16px; font-size: 0.88rem; color: var(--ink-muted); }
.cat-module-empty a { color: var(--accent-dark); text-decoration: underline; }

.cat-mod-lead { padding: 14px 16px 12px; border-bottom: 1px solid var(--border); }
.cat-mod-lead-img {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--bg-muted);
}
.cat-mod-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.card-ph-mini {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-soft), var(--bg-tint));
    color: var(--accent-ink);
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.cat-mod-lead-title {
    font-family: var(--font-serif);
    font-size: 1.08rem;
    line-height: 1.28;
    margin: 0 0 6px;
}
.cat-mod-lead-title a:hover { color: var(--accent-dark); }
.cat-mod-lead-meta { font-size: 0.76rem; color: var(--ink-muted); }

.cat-mod-list { list-style: none; margin: 0; padding: 4px 16px 12px; }
.cat-mod-list li { border-bottom: 1px solid var(--bg-muted); }
.cat-mod-list li:last-child { border-bottom: none; }
.cat-mod-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
}
.cat-mod-row:hover .cat-mod-row-title { color: var(--accent-dark); }
.cat-mod-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-mod-row-title { font-size: 0.88rem; font-weight: 600; line-height: 1.32; }
.cat-mod-row-meta { font-size: 0.72rem; color: var(--ink-muted); }
.cat-mod-row-thumb { flex: 0 0 54px; height: 42px; border-radius: 4px; overflow: hidden; }
.cat-mod-row-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- PODSTRONY DZIALOW & KARTY ARTYKULOW --- */
.category-hero-header {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.category-hero-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    margin: 4px 0 6px;
    line-height: 1.15;
}
.section-subtitle { margin: 0; color: var(--ink-soft); font-size: 0.96rem; max-width: 720px; }

.filter-pills,
.year-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.year-pills { margin-top: 0; }
.filter-pill,
.year-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-page);
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.filter-pill:hover,
.year-pill:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-pill.is-active,
.year-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.year-pill-link { color: var(--accent-dark); border-color: var(--accent); }

.cat-featured-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cat-featured-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-muted); }
.cat-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-featured-body { padding: 20px 22px; }
.cat-featured-body h2 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 0 0 10px; line-height: 1.2; }
.cat-featured-body h2 a:hover { color: var(--accent-dark); }
.cat-featured-body p { margin: 0; color: var(--ink-soft); }

.articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.articles-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.article-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s, box-shadow 0.18s;
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-image-wrap { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-muted); }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; }
.card-title a:hover { color: var(--accent-dark); }
.card-excerpt { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

/* --- SEKCJE & ARCHIWUM PDF --- */
.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.section-heading { font-family: var(--font-serif); font-size: 1.45rem; margin: 0; }

.issues-strip { margin-top: 40px; }
.issues-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.issue-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.issue-cover-link {
    display: block;
    aspect-ratio: 3 / 4;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-muted);
}
.issue-cover-link img { width: 100%; height: 100%; object-fit: cover; }
.issue-card-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 4px; }
.issue-badge { font-weight: 800; color: var(--accent-dark); }
.issue-card-title { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.28; margin: 0 0 8px; }
.issue-card-title a:hover { color: var(--accent-dark); }
.issue-card-desc { font-size: 0.83rem; color: var(--ink-soft); margin: 0 0 10px; }
.issue-toc-mini {
    margin: 0 0 12px;
    font-size: 0.8rem;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
}
.issue-toc-mini summary { cursor: pointer; font-weight: 700; color: var(--accent-dark); }
.issue-toc-text { margin-top: 6px; color: var(--ink-soft); line-height: 1.45; }
.issue-card-actions { display: flex; gap: 8px; margin-top: auto; }
.issue-card-actions .btn { flex: 1; }

.cover-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, #dcfce7 0%, #bbf7d0 100%);
    color: #14532d;
    padding: 16px;
    text-align: center;
}
.cover-placeholder-sm { min-height: 160px; }
.cover-ph-logo { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 900; }
.cover-ph-num { font-size: 0.85rem; font-weight: 700; margin-top: 4px; }
.cover-ph-pdf { margin-top: 8px; font-size: 0.7rem; font-weight: 800; padding: 3px 9px; border-radius: 4px; background: #15803d; color: #fff; }

.archive-controls { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.archive-search-form { display: flex; gap: 8px; max-width: 480px; }
.archive-search-form input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
}

/* --- WIDOK ARTYKULU Z INICJALEM --- */
.breadcrumb { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--accent-dark); text-decoration: underline; }

.article-single {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
}
.article-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.6vw, 2.55rem);
    line-height: 1.15;
    margin: 12px 0 14px;
}
.article-lead { font-size: 1.12rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 18px; }
.article-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--ink-muted);
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.article-hero-figure { margin: 0 0 26px; }
.article-hero-figure img { width: 100%; border-radius: var(--radius-sm); }
.article-hero-figure figcaption { font-size: 0.82rem; color: var(--ink-muted); margin-top: 8px; font-style: italic; }

.article-content { font-size: 1.04rem; line-height: 1.78; color: var(--ink); }
.article-dropcap > p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-serif);
    font-size: 3.4rem;
    line-height: 0.82;
    font-weight: 900;
    color: var(--accent);
    padding: 6px 10px 2px 0;
}
.article-content h2,
.article-content h3 { font-family: var(--font-serif); margin: 1.6em 0 0.55em; line-height: 1.25; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.22rem; }
.article-content p { margin: 0 0 1.2em; }
.article-content a { color: var(--accent-dark); text-decoration: underline; }
.article-content ul, .article-content ol { margin: 0 0 1.25em; padding-left: 1.4em; }
.article-content li { margin-bottom: 0.4em; }
.article-content blockquote {
    margin: 1.6em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--accent);
    background: var(--bg-tint);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 1.06rem;
    color: var(--ink);
}
.article-content blockquote p:last-child { margin-bottom: 0; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-chip {
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--accent-soft);
    color: var(--accent-ink);
    padding: 4px 10px;
    border-radius: 999px;
}
.tag-chip:hover { background: var(--accent); color: #fff; }

.article-share {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--ink-muted);
}
.share-btn {
    border: 1px solid var(--border);
    background: var(--bg-page);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.related-section { margin-top: 40px; }

/* --- CZYTNIK PDF --- */
.reader-top-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.reader-title { font-family: var(--font-serif); font-size: clamp(1.35rem, 2.8vw, 1.95rem); margin: 4px 0 0; }
.reader-top-actions { display: flex; gap: 8px; }

.pdf-reader-shell {
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.pdf-reader-shell:fullscreen { border-radius: 0; display: flex; flex-direction: column; }

.pdf-toolbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.pdf-toolbar-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdf-btn {
    border: 1px solid var(--border);
    background: var(--bg-page);
    color: var(--ink);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}
.pdf-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.pdf-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.pdf-page-indicator { font-size: 0.84rem; display: inline-flex; align-items: center; gap: 5px; }
.pdf-page-indicator input {
    width: 52px;
    padding: 5px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-page);
    color: var(--ink);
    text-align: center;
    font: inherit;
}
.pdf-zoom-label { font-size: 0.8rem; min-width: 42px; text-align: center; font-weight: 700; color: var(--ink-muted); }

.pdf-stage {
    padding: 20px 12px;
    min-height: 500px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.pdf-status { padding: 24px; color: var(--ink-soft); }
.pdf-spread { display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.pdf-spread canvas { background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16); border-radius: 2px; }
.pdf-mobile-hint { display: none; margin-top: 12px; font-size: 0.78rem; color: var(--ink-muted); text-align: center; }

.reader-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 22px; }
.reader-description {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
}
.reader-description h2 { font-family: var(--font-serif); font-size: 1.25rem; margin: 0 0 10px; }
.reader-toc-body { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

/* --- PODSTRONY STATYCZNE I KONTAKT --- */
.static-page-wrap {
    max-width: 840px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
}
.static-page-wrap h1 { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 4px 0 18px; }
.ad-spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.ad-spec-card { background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.ad-spec-card strong { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.ad-spec-size { display: inline-block; font-size: 0.74rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; }
.ad-spec-card p { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }

.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.contact-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-field { display: flex; flex-direction: column; gap: 5px; }
.c-field span { font-size: 0.84rem; font-weight: 700; }
.c-field input, .c-field select, .c-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    color: var(--ink);
    font: inherit;
}
.alert-box { padding: 14px 16px; border-radius: var(--radius-sm); margin: 16px 0; font-weight: 600; font-size: 0.92rem; }
.alert-ok { background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent); }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --- PAGINACJA I PUSTE STANY --- */
.pagination { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.page-numbers { display: flex; gap: 6px; }
.page-link, .page-num {
    padding: 8px 13px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    font-size: 0.86rem;
    font-weight: 700;
}
.page-link:hover, .page-num:hover { border-color: var(--accent); color: var(--accent-dark); }
.page-num.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.empty-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 22px;
    text-align: center;
}
.empty-box a { color: var(--accent-dark); text-decoration: underline; }
.empty-box .btn { text-decoration: none; color: #fff; margin-top: 10px; }

/* --- STOPKA --- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 32px; }
.footer-logo { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 900; color: #fff; line-height: 1; }
.footer-logo span { color: var(--accent-bright); }
.footer-sub { font-size: 0.78rem; font-weight: 700; color: var(--accent-bright); text-transform: uppercase; letter-spacing: 0.12em; margin: 5px 0 12px; }
.footer-desc { font-size: 0.88rem; color: var(--footer-muted); margin: 0 0 14px; max-width: 390px; }
.footer-social-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social-pills a {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.35);
    padding: 5px 11px;
    border-radius: 999px;
}
.footer-social-pills a:hover { background: var(--accent); border-color: var(--accent); }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; font-size: 0.88rem; color: var(--footer-muted); }
.footer-col a:hover { color: var(--accent-bright); }

.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; }
.footer-disclaimer-inner { display: flex; align-items: center; gap: 14px; font-size: 0.78rem; color: var(--footer-muted); }
.footer-disclaimer-inner p { margin: 0; }
.badge-18 {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--accent-bright);
    color: var(--accent-bright);
    font-weight: 800;
    font-size: 0.78rem;
}
.badge-18-lg { width: 52px; height: 52px; font-size: 1.05rem; margin-bottom: 12px; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 16px 0; font-size: 0.8rem; color: var(--footer-muted); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom-tools { display: flex; align-items: center; gap: 16px; }
.footer-theme-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font: inherit;
    font-size: 0.76rem;
    cursor: pointer;
}
.footer-theme-btn:hover { border-color: var(--accent-bright); }
.footer-admin-link:hover { color: var(--accent-bright); }

/* Pasek cookies & Bramka 18+ */
.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--footer-bg);
    color: #e5f3ea;
    border-top: 2px solid var(--accent);
    padding: 12px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
.cookie-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; }
.cookie-bar p { margin: 0; flex: 1; }
.cookie-bar a { color: var(--accent-bright); text-decoration: underline; }

.age-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgba(8, 16, 11, 0.86);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.age-modal[hidden] { display: none; }
.age-modal-card {
    background: var(--bg-surface);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    max-width: 440px;
    width: 100%;
    padding: 28px 24px;
    text-align: center;
}
.age-modal-card h2 { font-family: var(--font-serif); margin: 0 0 10px; }
.age-modal-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 20px; }
.age-modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* =========================================================================
   RESPONSYWNOSC: TABLET (<= 1024px) ORAZ KOMORKA (<= 680px)
   ========================================================================= */
@media (max-width: 1024px) {
    .frontpage-grid,
    .archive-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-sticky-wrap { position: static; }
    .cat-modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .issues-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .teaser-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .masthead-inner { grid-template-columns: 1fr auto; }
    .masthead-left { display: none; }
    .masthead-brand { text-align: left; }
    .brand-link { align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .topbar-date, .topbar-date-sep, .topbar-pdf-link { display: none; }
    .header-search { display: none; }
    .mobile-menu-toggle { display: flex; }

    /* Na telefonie pasek kategorii plynnie przewija sie w poziomie jednym kciukiem */
    .main-nav .container { padding: 0; }
    .nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 12px;
        gap: 6px;
    }
    .nav-list::-webkit-scrollbar { display: none; }
    .nav-list a {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 999px;
        border-bottom: none;
        background: var(--bg-surface);
        border: 1px solid var(--border);
    }
    .nav-list a.is-active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
    }
    .nav-pdf-item { margin-left: 0; }
    .nav-pdf-btn { border-radius: 999px !important; padding: 8px 14px !important; margin: 0; }

    .teaser-strip { grid-template-columns: 1fr; gap: 8px; }
    .subhero-grid,
    .yt-grid,
    .cat-modules-grid,
    .articles-grid,
    .articles-grid-2,
    .footer-grid,
    .contact-grid-2 { grid-template-columns: 1fr; }
    .issues-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

    .ad-native-card { flex-direction: column; align-items: stretch; }
    .ad-native-thumb { flex: none; }
    .ad-native-thumb img { height: 150px; }

    .hero-body { padding: 18px 16px; }
    .article-single, .static-page-wrap { padding: 20px 16px; }
    .category-hero-header { padding: 16px; }
    .yt-section { padding: 16px; }
    .hide-xs { display: none; }
    .pdf-stage { padding: 12px 6px; min-height: 360px; }
    .pdf-mobile-hint { display: block; }
    .pdf-toolbar { justify-content: center; }
    .footer-disclaimer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 440px) {
    .container { padding: 0 14px; }
    .masthead { padding: 12px 0; }
    .issues-grid { grid-template-columns: 1fr; }
    .mobile-drawer-grid { grid-template-columns: 1fr; }
    .ongoing-link { flex-wrap: wrap; gap: 6px; }
    .issue-widget-actions { grid-template-columns: 1fr; }
}


/* =========================================================================
   V3.0: LOGO, KOLORY 7 DZIALOW (WARIANT B) I PELNOSZEROKOSCIOWE AKTUALNOSCI
   ========================================================================= */
.brand-logo-img {
    height: 62px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
}
.brand-logo-dark { display: none; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

.footer-logo-img {
    height: 54px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    margin-bottom: 6px;
}

.cat-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 7px;
    flex-shrink: 0;
}
.drawer-links a { display: flex; align-items: center; }

/* Kolory 7 dzialow w pasku nawigacji */
.main-nav .nav-list a {
    border-bottom: 3px solid transparent;
}
.main-nav .nav-list a:hover,
.main-nav .nav-list a.is-active {
    color: var(--cat-c, var(--accent-dark));
    border-bottom-color: var(--cat-c, var(--accent));
}
[data-theme="dark"] .main-nav .nav-list a:hover,
[data-theme="dark"] .main-nav .nav-list a.is-active {
    color: var(--cat-dc, var(--cat-c, var(--accent-bright)));
    border-bottom-color: var(--cat-dc, var(--cat-c, var(--accent)));
}

/* Odznaki i pigulki dzialow */
.cat-badge {
    background: var(--cat-c, var(--accent));
    color: #ffffff;
}
.cat-badge:hover {
    background: var(--cat-c, var(--accent));
    filter: brightness(0.9);
    color: #ffffff;
}
[data-theme="dark"] .cat-badge {
    background: var(--cat-dc, var(--cat-c, var(--accent)));
    color: #0b130e;
}

.cat-pill-sm {
    background: color-mix(in srgb, var(--cat-c, #15803d) 12%, transparent);
    color: var(--cat-c, var(--accent-ink));
    border: 1px solid color-mix(in srgb, var(--cat-c, #15803d) 28%, transparent);
}
[data-theme="dark"] .cat-pill-sm {
    background: color-mix(in srgb, var(--cat-dc, var(--cat-c, #22c55e)) 18%, transparent);
    color: var(--cat-dc, var(--cat-c, #86efac));
    border-color: color-mix(in srgb, var(--cat-dc, var(--cat-c, #22c55e)) 35%, transparent);
}

/* Moduly dzialow na stronie glownej */
.cat-module-card {
    border-top: 4px solid var(--cat-c, var(--accent));
}
.cat-module-head {
    background: var(--cat-c, var(--accent));
    color: #ffffff;
}
[data-theme="dark"] .cat-module-head {
    background: color-mix(in srgb, var(--cat-dc, var(--cat-c, var(--accent))) 24%, #131f18);
    color: #ffffff;
    border-bottom: 1px solid var(--border);
}

/* Pelnoszerokosciowy modul Aktualnosci (1 duzy + 4 obok) */
.cat-module-wide {
    margin-bottom: 24px;
}
.cat-wide-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
}
.cat-wide-lead {
    padding: 18px 20px;
    border-right: 1px solid var(--border);
}
.cat-wide-lead-title {
    font-family: var(--font-serif);
    font-size: 1.32rem;
    line-height: 1.24;
    margin: 0 0 8px;
}
.cat-wide-lead-desc {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.cat-wide-list {
    padding: 8px 20px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cat-mod-lead-title a:hover,
.cat-wide-lead-title a:hover,
.cat-mod-row:hover .cat-mod-row-title,
.cat-featured-body h2 a:hover,
.article-content a {
    color: var(--cat-c, var(--accent-dark));
}
[data-theme="dark"] .cat-mod-lead-title a:hover,
[data-theme="dark"] .cat-wide-lead-title a:hover,
[data-theme="dark"] .cat-mod-row:hover .cat-mod-row-title,
[data-theme="dark"] .cat-featured-body h2 a:hover,
[data-theme="dark"] .article-content a {
    color: var(--cat-dc, var(--cat-c, var(--accent-bright)));
}

/* Naglowek dzialu, inicjal i cytat w kolorze kategorii */
.category-hero-header {
    border-left-color: var(--cat-c, var(--accent));
}
[data-theme="dark"] .category-hero-header {
    border-left-color: var(--cat-dc, var(--cat-c, var(--accent)));
}
.article-dropcap > p:first-of-type::first-letter {
    color: var(--cat-c, var(--accent));
}
[data-theme="dark"] .article-dropcap > p:first-of-type::first-letter {
    color: var(--cat-dc, var(--cat-c, var(--accent-bright)));
}
.article-content blockquote {
    border-left-color: var(--cat-c, var(--accent));
}
[data-theme="dark"] .article-content blockquote {
    border-left-color: var(--cat-dc, var(--cat-c, var(--accent-bright)));
}

@media (max-width: 900px) {
    .cat-wide-grid {
        grid-template-columns: 1fr;
    }
    .cat-wide-lead {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 760px) {
    .brand-logo-img {
        height: 46px;
        max-width: 215px;
    }
    .main-nav .nav-list a {
        border-bottom: none;
        border-left: 3px solid var(--cat-c, var(--accent));
    }
    .main-nav .nav-list a.is-active {
        background: var(--cat-c, var(--accent));
        border-color: var(--cat-c, var(--accent));
        color: #ffffff;
    }
    [data-theme="dark"] .main-nav .nav-list a.is-active {
        background: var(--cat-dc, var(--cat-c, var(--accent)));
        border-color: var(--cat-dc, var(--cat-c, var(--accent)));
        color: #0b130e;
    }
}
