/* golababa theme — pełny stylesheet
   Bazuje na ../../../styles.css (z React canvasu) i dokłada:
   – style treści artykułu (.gb-article p/h2/h3/ul/ol/blockquote/table/figure)
   – obsługę Gutenberg .alignwide / .alignfull / .wp-caption / .has-*
   – responsywność mobile-first (breakpointy 640 / 1024 / 1280)
   – wszystkie wzorce komponentów z React screens (comparison-table, dupe-row,
     quiz-card, product-rating itd. — te które w JSX były inline).
*/

/* ═══════════════════════════════════════════════
   1. DESIGN TOKENS
   ═══════════════════════════════════════════════ */
:root {
	--bg: #FAFAF8;
	--ink: #1A1A18;
	--accent: #C8956C;
	--accent-deep: #8B5E3A;
	--stone: #E8DDD4;
	--bordo: #7C3D3D;
	--sage: #4A6741;
	--muted: #6B6860;
	--border: #E5E0DA;
	--hover: #F0EAE4;

	--serif: 'Playfair Display', 'Iowan Old Style', 'Georgia', serif;
	--sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--mono:  'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

	--sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
	--sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
	--sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

	--radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 12px;
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
	--shadow-md: 0 4px 24px rgba(0,0,0,0.06);
	--shadow-lg: 0 12px 40px rgba(0,0,0,0.10);

	--transition: 200ms ease;
}

/* ═══════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	color: var(--ink);
	background: var(--bg);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* WP admin bar offset */
body.admin-bar .gb-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .gb-nav { top: 46px; } }

/* ═══════════════════════════════════════════════
   3. TYPOGRAPHY
   ═══════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 { font-family: var(--serif); letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 0.4em; }
p { margin: 0 0 1.2em; }
strong, b { font-weight: 600; }
em, i { font-style: italic; }
small { font-size: 0.85em; color: var(--muted); }
mark { background: rgba(200, 149, 108, 0.3); color: var(--ink); padding: 1px 4px; border-radius: 2px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--stone); padding: 2px 6px; border-radius: 3px; }
pre code { background: transparent; padding: 0; }
pre { background: #1f1d1a; color: #f0e9df; padding: 24px; border-radius: 6px; overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.6; }

/* ═══════════════════════════════════════════════
   4. LAYOUT
   ═══════════════════════════════════════════════ */
.gb-container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.gb-prose     { max-width: 680px; }

@media (max-width: 640px) {
	.gb-container { padding: 0 20px; }
}

/* Gutenberg alignment — używane przez bloki w the_content. */
.alignleft  { float: left;  margin: 0 var(--sp-6) var(--sp-4) 0; }
.alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-6); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide   { max-width: 1024px; margin-left: auto; margin-right: auto; }
.alignfull   { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* WP caption */
.wp-caption { max-width: 100%; margin: 0 0 var(--sp-6); }
.wp-caption-text, .wp-block-image figcaption {
	font-size: 13px; color: var(--muted); text-align: center;
	margin-top: var(--sp-3); font-style: italic;
}

/* Screen reader only — wykorzystywane przez WP w wielu miejscach (skip links itd.). */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--ink); color: #fff; clip: auto; -webkit-clip-path: none; clip-path: none;
	display: block; font-size: 14px; height: auto; left: 5px; line-height: normal; padding: 12px 18px;
	text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

/* ═══════════════════════════════════════════════
   5. TOPBAR
   ═══════════════════════════════════════════════ */
.gb-topbar {
	background: var(--ink); color: #fff;
	font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
	height: 40px; display: flex; align-items: center; justify-content: center; gap: 32px;
}
.gb-topbar .dot  { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }
.gb-topbar .pill { color: var(--accent); }
@media (max-width: 1024px) { .gb-topbar { gap: 16px; font-size: 11px; } .gb-topbar > span:nth-child(3) { display: none; } }

/* ═══════════════════════════════════════════════
   6. NAVIGATION
   ═══════════════════════════════════════════════ */
.gb-nav {
	border-bottom: 1px solid var(--border); background: var(--bg);
	height: 76px; display: flex; align-items: center;
	position: sticky; top: 0; z-index: 50; transition: box-shadow var(--transition);
}
.gb-nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.04); }
.gb-nav-inner    { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.gb-logo         { font-family: var(--serif); font-style: italic; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; text-transform: lowercase; color: var(--ink); text-decoration: none; }
.gb-logo .dot    { color: var(--accent); }

.gb-menu         { display: flex; align-items: center; gap: 36px; list-style: none; padding: 0; margin: 0; }
.gb-menu a       { font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); padding: 6px 0; position: relative; }
.gb-menu .current-menu-item > a,
.gb-menu .current_page_item > a,
.gb-menu a.active { position: relative; }
.gb-menu .current-menu-item > a::after,
.gb-menu .current_page_item > a::after,
.gb-menu a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--accent); }
.gb-menu a:hover { color: var(--accent); }

.gb-nav-right    { display: flex; align-items: center; gap: 16px; }
.gb-search-btn   {
	display: flex; align-items: center; gap: 8px;
	padding: 8px 14px; background: transparent;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-family: var(--sans); font-size: 13px; color: var(--muted);
	cursor: pointer; width: 220px; transition: all var(--transition);
}
.gb-search-btn:hover { border-color: var(--ink); color: var(--ink); }
.gb-search-btn .kbd  { margin-left: auto; font-family: var(--mono); font-size: 11px; background: var(--stone); padding: 2px 6px; border-radius: 3px; color: var(--ink); }

/* Hamburger — widoczny < 1024px */
.gb-hamburger { display: none; width: 36px; height: 36px; border: none; background: transparent; cursor: pointer; padding: 0; align-items: center; justify-content: center; }
.gb-hamburger span { display: block; width: 22px; height: 1.6px; background: var(--ink); margin: 2.5px 0; transition: all var(--transition); }
.gb-nav.menu-open .gb-hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gb-nav.menu-open .gb-hamburger span:nth-child(2) { opacity: 0; }
.gb-nav.menu-open .gb-hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
	.gb-hamburger { display: flex; }
	.gb-menu      { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 24px 40px; gap: 18px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all var(--transition); }
	.gb-nav.menu-open .gb-menu { transform: none; opacity: 1; pointer-events: auto; }
	.gb-search-btn { display: none; }
}

/* ═══════════════════════════════════════════════
   7. BADGES (kategorie)
   ═══════════════════════════════════════════════ */
.gb-badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
	padding: 5px 10px; border-radius: 100px; border: 1px solid;
	font-family: var(--sans);
}
.gb-badge.rankingi   { background: rgba(124, 61, 61, 0.08);  color: var(--bordo);       border-color: rgba(124, 61, 61, 0.2); }
.gb-badge.skladniki  { background: rgba(74, 103, 65, 0.08);  color: var(--sage);        border-color: rgba(74, 103, 65, 0.2); }
.gb-badge.poradniki  { background: rgba(200, 149, 108, 0.1); color: var(--accent-deep); border-color: rgba(200, 149, 108, 0.25); }
.gb-badge.prawda     { background: var(--ink);                color: #fff;               border-color: var(--ink); }
.gb-badge.dupes      { background: rgba(200, 149, 108, 0.15); color: var(--accent-deep); border-color: rgba(200, 149, 108, 0.3); }

/* ═══════════════════════════════════════════════
   8. BUTTONS
   ═══════════════════════════════════════════════ */
.gb-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 26px; background: var(--ink); color: #fff;
	border: none; border-radius: var(--radius-sm);
	font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
	cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.gb-btn:hover { background: var(--accent); color: #fff; }
.gb-btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.gb-btn-secondary:hover { background: var(--ink); color: #fff; }
.gb-btn-ghost { background: transparent; color: var(--accent); padding: 8px 0; border: none; }
.gb-btn-ghost:hover { color: var(--accent-deep); }
.gb-btn-accent { background: var(--accent); }
.gb-btn-accent:hover { background: var(--accent-deep); }

/* ═══════════════════════════════════════════════
   9. CARDS — Artykuły
   ═══════════════════════════════════════════════ */
.gb-card { display: flex; flex-direction: column; gap: 16px; }
.gb-card-link { color: inherit; text-decoration: none; display: contents; }
.gb-card-link:hover .gb-card-title { color: var(--accent-deep); }
.gb-card-img   { aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; background: var(--stone); position: relative; transition: transform var(--transition); }
.gb-card-link:hover .gb-card-img { transform: translateY(-4px); }
.gb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-card-title { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); margin: 0; transition: color var(--transition); }
.gb-card-title.sm { font-size: 18px; }
.gb-card-title.lg { font-size: 28px; }
.gb-card-excerpt { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0; }
.gb-card-meta    { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gb-card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

/* ═══════════════════════════════════════════════
   10. IMAGE PLACEHOLDER (gdy brak featured image)
   ═══════════════════════════════════════════════ */
.gb-img-placeholder {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--mono); font-size: 11px; color: var(--muted);
	letter-spacing: 0.06em; text-transform: uppercase;
	background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,0.025) 14px 15px), var(--stone);
	position: relative;
}
.gb-img-placeholder span { background: var(--bg); padding: 6px 12px; border: 1px solid var(--border); border-radius: 3px; }
.gb-img-placeholder.dark   { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.04) 14px 15px), #2a2825; color: #aaa; }
.gb-img-placeholder.dark span { background: var(--ink); border-color: #3a3835; color: #aaa; }
.gb-img-placeholder.accent { background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,0.04) 14px 15px), color-mix(in srgb, var(--accent) 30%, var(--stone)); }

/* ═══════════════════════════════════════════════
   11. SECTION HEADERS (eyebrow + h2 + link)
   ═══════════════════════════════════════════════ */
.gb-eyebrow {
	font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
	color: var(--accent-deep); display: inline-flex; align-items: center; gap: 10px;
}
.gb-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.gb-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--border); gap: 24px; flex-wrap: wrap; }
.gb-section-head h2 { font-size: 36px; font-weight: 700; margin: 8px 0 0; letter-spacing: -0.02em; }
.gb-section-head a  { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.gb-section-head a:hover { color: var(--accent); }

.gb-divider { height: 1px; background: var(--border); width: 100%; margin: 64px 0; }

/* ═══════════════════════════════════════════════
   12. ARTICLE BODY (the_content)
   ═══════════════════════════════════════════════ */
.gb-article-body { font-size: 17px; line-height: 1.75; color: #2a2a26; }
.gb-article-body > p:first-of-type { font-size: 21px; line-height: 1.55; font-family: var(--serif); color: var(--ink); margin-top: 0; }
.gb-article-body > p:first-of-type::first-letter { float: left; font-size: 64px; line-height: 0.9; font-weight: 700; margin-right: 12px; margin-top: 6px; color: var(--accent); font-family: var(--serif); }
.gb-article-body h2 { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 52px 0 18px; line-height: 1.2; color: var(--ink); }
.gb-article-body h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin: 36px 0 14px; line-height: 1.3; color: var(--ink); }
.gb-article-body p  { margin: 0 0 1.2em; }
.gb-article-body a  { color: var(--accent-deep); text-decoration: underline; text-decoration-color: rgba(139, 94, 58, 0.4); text-underline-offset: 3px; }
.gb-article-body a:hover { text-decoration-color: var(--accent-deep); }
.gb-article-body ul, .gb-article-body ol { padding-left: 20px; margin: 20px 0 28px; }
.gb-article-body li { margin-bottom: 10px; }
.gb-article-body blockquote {
	margin: 40px 0; padding: 0 32px; border-left: 3px solid var(--accent);
	font-family: var(--serif); font-size: 24px; line-height: 1.45; font-style: italic; color: var(--ink);
}
.gb-article-body blockquote cite, .gb-article-body blockquote footer {
	font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 14px; display: block;
}
.gb-article-body figure { margin: 40px 0; }
.gb-article-body figure img { border-radius: var(--radius-md); display: block; width: 100%; }
.gb-article-body figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; font-style: italic; }

/* ═══════════════════════════════════════════════
   13. INCI BOX (block pattern)
   ═══════════════════════════════════════════════ */
.gb-inci {
	background: var(--stone); border-left: 3px solid var(--accent);
	padding: 24px 28px; margin: 32px 0;
}
.gb-inci .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep); margin-bottom: 12px; display: block; }
.gb-inci .ingredients { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #3a3a36; }
.gb-inci .ingredients .hl { background: rgba(200, 149, 108, 0.25); padding: 1px 4px; border-radius: 2px; color: var(--ink); cursor: help; }

/* ═══════════════════════════════════════════════
   14. GOŁA PRAWDA CALLOUT
   ═══════════════════════════════════════════════ */
.gb-truth {
	background: var(--ink); color: #fff;
	padding: 36px 40px; margin: 40px 0;
	position: relative; border-radius: var(--radius-sm);
}
.gb-truth .bang {
	position: absolute; top: -18px; left: 28px;
	width: 36px; height: 36px;
	background: var(--accent); color: var(--ink);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--serif); font-size: 22px; font-weight: 700; font-style: italic;
}
.gb-truth .label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px; }
.gb-truth p { font-family: var(--serif); font-size: 22px; line-height: 1.45; font-style: italic; margin: 0; color: #fff; }

/* ═══════════════════════════════════════════════
   15. COMPARISON TABLE
   .gb-table to alias dla .gb-compare-table (krótszy zapis w blogposcie).
   ═══════════════════════════════════════════════ */
.gb-compare-table,
.gb-table         { width: 100%; border-collapse: collapse; font-family: var(--sans); margin: 32px 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.gb-compare-table th,
.gb-table th      { background: var(--stone); text-align: left; padding: 14px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-deep); border-bottom: 1px solid var(--border); }
.gb-compare-table td,
.gb-table td      { padding: 14px 16px; color: var(--ink); font-family: var(--sans); font-size: 14px; border-bottom: 1px solid var(--border); }
.gb-compare-table tr.winner,
.gb-table tr.winner { background: rgba(200, 149, 108, 0.08); }
.gb-compare-table tr.winner td:first-child,
.gb-table tr.winner td:first-child { font-family: var(--serif); font-weight: 700; color: var(--accent-deep); }
.gb-compare-table tbody tr:last-child td { border-bottom: none; }
.gb-compare-table td.name { color: var(--ink); font-family: var(--sans); font-size: 14px; font-weight: 500; }
.gb-compare-table tr.winner { background: rgba(200, 149, 108, 0.08); }
.gb-compare-table tr.winner .name::before {
	content: '★ Zwycięzca'; display: block; font-size: 11px; font-weight: 700;
	color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px;
	font-family: var(--sans);
}
@media (max-width: 640px) {
	.gb-compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.gb-compare-table { min-width: 540px; }
}

/* ═══════════════════════════════════════════════
   16. STARS RATING
   ═══════════════════════════════════════════════ */
.gb-stars { color: var(--accent); display: inline-flex; gap: 2px; align-items: center; }

/* ═══════════════════════════════════════════════
   17. PRODUCT RATING BLOCK
   ═══════════════════════════════════════════════ */
.gb-product {
	border: 1px solid var(--border); border-radius: var(--radius-lg);
	padding: 28px; margin: 32px 0;
	display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.gb-product-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-deep); margin-bottom: 6px; }
.gb-product-name  { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.gb-product-meta  { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.gb-product-meta strong { color: var(--ink); }
@media (max-width: 640px) {
	.gb-product { grid-template-columns: 1fr; gap: 20px; }
}

/* ═══════════════════════════════════════════════
   18. FOOTER
   ═══════════════════════════════════════════════ */
.gb-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 64px 0 32px; margin-top: 80px; }
.gb-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.gb-footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 16px; }
.gb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gb-footer a  { color: var(--ink); font-size: 14px; }
.gb-footer a:hover { color: var(--accent); }
.gb-footer-bottom { padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); gap: 16px; flex-wrap: wrap; }
.gb-footer .gb-logo { display: block; margin-bottom: 14px; }
.gb-footer .tagline  { font-size: 14px; color: var(--muted); max-width: 280px; line-height: 1.6; }
@media (max-width: 1024px) { .gb-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 640px)  { .gb-footer-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════
   19. SIDEBAR (artykuł)
   ═══════════════════════════════════════════════ */
.gb-sidebar       { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.gb-toc           { padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--border); }
.gb-toc-label     { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 16px; }
.gb-toc ol        { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gb-toc li.h3     { padding-left: 20px; }
.gb-toc a         { font-size: 14px; color: var(--muted); display: flex; align-items: baseline; gap: 8px; line-height: 1.4; }
.gb-toc li.h3 a   { font-size: 13px; }
.gb-toc li.active a { color: var(--ink); font-weight: 600; }
.gb-toc li.active a::before { content: ''; width: 12px; height: 1px; background: var(--accent); flex: none; align-self: center; margin-right: -4px; }

.gb-side-widget { padding: 24px; border-radius: var(--radius-md); }
.gb-side-widget.stone { background: var(--stone); }
.gb-side-title  { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 14px; font-family: var(--sans); }
.gb-side-widget.stone .gb-side-title { color: var(--accent-deep); }

/* ═══════════════════════════════════════════════
   20. CHIPS (filter tags)
   ═══════════════════════════════════════════════ */
.gb-chip {
	font-size: 13px; padding: 8px 14px; border-radius: 100px;
	background: transparent; border: 1px solid var(--border); color: var(--ink);
	cursor: pointer; transition: all var(--transition); font-family: var(--sans); text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.gb-chip:hover { border-color: var(--ink); color: var(--ink); }
.gb-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ═══════════════════════════════════════════════
   21. PAGINATION
   ═══════════════════════════════════════════════ */
.gb-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 40px 0 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.gb-pagination a, .gb-pagination span { padding: 8px 14px; min-width: 40px; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.gb-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.gb-pagination a:hover { border-color: var(--ink); }
.gb-pagination .dots { border: none; }
.gb-pagination-info { text-align: center; font-size: 13px; color: var(--muted); }

/* ═══════════════════════════════════════════════
   22. DUPE COMPARISON (single dupe + Dupes archive)
   ═══════════════════════════════════════════════ */
.gb-dupe-row {
	display: grid; grid-template-columns: 120px 1fr 1fr 220px; gap: 32px;
	padding: 32px 0; border-top: 1px solid var(--border); align-items: center;
}
.gb-dupe-idx   { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--accent); font-style: italic; line-height: 1; }
.gb-dupe-cat   { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 12px; }
.gb-dupe-match { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--accent); }
.gb-dupe-bar   { height: 4px; background: #1a1a18; border-radius: 2px; overflow: hidden; margin-top: 8px; }
.gb-dupe-bar > span { display: block; height: 100%; background: var(--accent); }
@media (max-width: 1024px) {
	.gb-dupe-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ═══════════════════════════════════════════════
   23. SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════ */
.gb-progress { position: sticky; top: 76px; height: 3px; background: var(--border); z-index: 49; }
body.admin-bar .gb-progress { top: calc(76px + 32px); }
.gb-progress-fill { height: 100%; background: var(--accent); width: 0; transition: width 100ms linear; }

/* ═══════════════════════════════════════════════
   24. NEWSLETTER (dark card)
   ═══════════════════════════════════════════════ */
.gb-newsletter { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 64px 80px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.gb-newsletter h2 { font-family: var(--serif); font-size: 40px; line-height: 1.15; margin: 14px 0 16px; font-weight: 700; letter-spacing: -0.02em; }
.gb-newsletter p  { color: rgba(255,255,255,0.7); font-size: 16px; line-height: 1.6; margin: 0; max-width: 480px; }
.gb-newsletter .gb-eyebrow { color: var(--accent); }
.gb-newsletter .gb-eyebrow::before { background: var(--accent); }
.gb-newsletter form { display: flex; flex-direction: column; gap: 12px; }
.gb-newsletter input[type=email] { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: #fff; padding: 16px 18px; font-size: 15px; font-family: var(--sans); border-radius: var(--radius-sm); outline: none; }
.gb-newsletter input[type=email]::placeholder { color: rgba(255,255,255,0.4); }
.gb-newsletter .fineprint { font-size: 12px; color: rgba(255,255,255,0.5); margin: 4px 0 0; line-height: 1.5; }
.gb-newsletter .fineprint a { color: rgba(255,255,255,0.7); text-decoration: underline; }
@media (max-width: 1024px) {
	.gb-newsletter { grid-template-columns: 1fr; padding: 40px; gap: 32px; }
	.gb-newsletter h2 { font-size: 32px; }
}

/* ═══════════════════════════════════════════════
   25. BREADCRUMB
   ═══════════════════════════════════════════════ */
.gb-breadcrumb { font-size: 13px; color: var(--muted); padding: 24px 0 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gb-breadcrumb .sep { opacity: 0.4; }
.gb-breadcrumb a { color: var(--muted); }
.gb-breadcrumb a:hover { color: var(--ink); }
.gb-breadcrumb .current { color: var(--ink); }

/* ═══════════════════════════════════════════════
   26. SEARCH MODAL (overlay)
   ═══════════════════════════════════════════════ */
.gb-search-overlay { position: fixed; inset: 0; background: rgba(26,26,24,0.55); backdrop-filter: blur(2px); z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding-top: 80px; }
.gb-search-overlay.open { display: flex; }
.gb-search-modal { width: 100%; max-width: 720px; background: var(--bg); border-radius: var(--radius-xl); box-shadow: 0 24px 80px rgba(0,0,0,0.3); overflow: hidden; }
.gb-search-modal-input { display: flex; align-items: center; gap: 14px; padding: 22px 28px; border-bottom: 1px solid var(--border); }
.gb-search-modal-input input { flex: 1; font-size: 19px; font-family: var(--sans); color: var(--ink); border: none; background: transparent; outline: none; padding: 0; }
.gb-search-modal-input kbd { font-family: var(--mono); font-size: 11px; background: var(--stone); padding: 4px 8px; border-radius: 3px; color: var(--muted); }
.gb-search-results { padding: 20px 28px 8px; max-height: 60vh; overflow-y: auto; }
.gb-search-result { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 6px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.gb-search-result.active, .gb-search-result:hover { background: var(--stone); border-color: rgba(200, 149, 108, 0.3); }
.gb-search-modal-footer { padding: 14px 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); gap: 16px; flex-wrap: wrap; }
.gb-search-modal-footer kbd { font-family: var(--mono); font-size: 10px; background: var(--stone); padding: 2px 5px; border-radius: 3px; color: var(--ink); margin-right: 2px; }

/* ═══════════════════════════════════════════════
   27. 404
   ═══════════════════════════════════════════════ */
.gb-404 { text-align: center; padding: 120px 40px; max-width: 720px; margin: 0 auto; }
.gb-404 .num { font-family: var(--serif); font-size: 220px; line-height: 1; color: var(--accent); font-style: italic; font-weight: 700; letter-spacing: -0.05em; margin: 0; }
.gb-404 h1 { font-family: var(--serif); font-size: 44px; line-height: 1.15; margin: 8px 0 18px; font-weight: 700; letter-spacing: -0.02em; }
.gb-404 p  { font-size: 17px; color: var(--muted); margin: 0 0 40px; }

/* ═══════════════════════════════════════════════
   28. RESPONSIVE — wspólne breakpointy
   Inline grid/padding styles w templates są nadpisywane przez !important.
   To celowe — design jest mobile-first ale templates trzymają desktop intent
   inline (Tailwind-style), a tu wymuszamy collapse.
   ═══════════════════════════════════════════════ */

/* ── < 1024px: tablet + mobile — kolapsuj wielokolumnowe siatki ── */
@media (max-width: 1024px) {
	.gb-article-grid    { grid-template-columns: 1fr !important; gap: 40px !important; }
	.gb-sidebar         { position: static; }

	/* Wielokolumnowe gridy → 1 kolumna lub 2 (4col→2col) */
	.gb-hero-grid       { grid-template-columns: 1fr !important; gap: 32px !important; }
	.gb-2col            { grid-template-columns: 1fr !important; gap: 40px !important; }
	.gb-3col            { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
	.gb-4col            { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
	.gb-quiz-cta        { grid-template-columns: 1fr !important; gap: 32px !important; padding: 40px !important; }
	.gb-archive-head    { grid-template-columns: 1fr !important; gap: 32px !important; align-items: flex-start !important; }
	.gb-skladnik-row    { grid-template-columns: 1fr !important; gap: 12px !important; }

	/* Karty / boxy z dużymi paddingami → mniejsze paddings */
	.gb-newsletter      { padding: 40px !important; }
}

/* ── < 640px: mobile — pełen collapse + skala typografii ── */
@media (max-width: 640px) {
	body { font-size: 16px; }

	/* Cały content blok ma węższy padding — container już ma 20px */
	.gb-container       { padding-left: 18px; padding-right: 18px; }

	/* Wszystko na 1 kolumnę */
	.gb-3col            { grid-template-columns: 1fr !important; gap: 24px !important; }
	.gb-4col            { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
	.gb-quiz-cta        { padding: 28px !important; gap: 24px !important; }
	.gb-newsletter      { padding: 28px !important; gap: 24px !important; }
	.gb-newsletter h2   { font-size: 28px !important; }

	/* Treść artykułu */
	.gb-article-body { font-size: 16px; }
	.gb-article-body h2 { font-size: 26px; margin: 36px 0 14px; }
	.gb-article-body h3 { font-size: 20px; margin: 24px 0 10px; }
	.gb-article-body > p:first-of-type { font-size: 18px; }
	.gb-article-body > p:first-of-type::first-letter { font-size: 44px; }

	/* Wyróżnione bloki — mniejszy padding */
	.gb-truth { padding: 24px 20px; }
	.gb-truth p { font-size: 17px; }
	.gb-inci  { padding: 18px 20px; }

	/* Tabele porównawcze w treści — horizontal scroll na mobile */
	.gb-article-body table,
	.gb-compare-table,
	.gb-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		font-size: 13px;
	}
	.gb-article-body table th,
	.gb-article-body table td,
	.gb-compare-table th, .gb-compare-table td,
	.gb-table th, .gb-table td {
		padding: 10px 12px;
	}

	/* Karty artykułu (gb-card) — mniejszy padding obrazka */
	.gb-card-meta { font-size: 11px; }
	.gb-card-title { font-size: 19px; }

	/* Footer */
	.gb-footer { padding: 48px 0 32px; }
	.gb-footer-grid { gap: 28px !important; }
	.gb-footer h4 { font-size: 13px; }

	/* Search modal — bez padding-top 80px na mobile, klejone do gory */
	.gb-search-overlay { padding-top: 0; align-items: stretch; }
	.gb-search-modal   { border-radius: 0; max-width: 100%; min-height: 100%; }

	/* 404 — mniej drastycznie */
	.gb-404 { padding: 64px 20px; }
	.gb-404 .num { font-size: 140px; }
	.gb-404 h1   { font-size: 32px; }

	/* Topbar mobile — nie chowamy całego topbara, tylko 2. i 3. span */
	.gb-topbar > span:nth-child(2),
	.gb-topbar > span:nth-child(3) { display: none; }

	/* Kbd skrót w search nav — chowamy */
	.gb-search-btn .kbd { display: none; }
	.gb-search-btn span:not(.kbd) { font-size: 13px; }

	/* Sticky progress bar — niżej, żeby nie skakał */
	.gb-progress { top: 64px; height: 2px; }

	/* Hero image absolutny floating box — chowamy żeby nie wystawał */
	.gb-hero-floating { display: none; }

	/* Quiz: odpowiedzi 2x2 → 1 kolumna (przyciski większe i wygodniejsze tapem) */
	.gb-quiz-answers { grid-template-columns: 1fr !important; gap: 12px !important; }
	.gb-quiz-answer  { padding: 18px 20px !important; }
	.gb-quiz-answer .letter { width: 36px !important; height: 36px !important; font-size: 17px !important; }
	.gb-quiz-answer > div:nth-child(2) > div:first-child { font-size: 17px !important; }

	/* Author card pod artykułem — mniej padding na mobile */
	.gb-author-card-mobile { padding: 24px !important; gap: 16px !important; }
}

/* ── Wąski mobile (< 380px) — extra tweaks dla iPhone SE i Galaxy Fold ── */
@media (max-width: 380px) {
	.gb-container       { padding-left: 14px; padding-right: 14px; }
	.gb-4col            { grid-template-columns: 1fr !important; }
	.gb-logo            { font-size: 19px !important; }
	.gb-search-btn span:not(.kbd) { display: none; }
}

/* ═══════════════════════════════════════════════
   29. UTILITIES
   ═══════════════════════════════════════════════ */
.u-hide-mobile { display: initial; }
.u-show-mobile { display: none; }
@media (max-width: 640px) {
	.u-hide-mobile { display: none; }
	.u-show-mobile { display: initial; }
}

/* Lazy-load fade-in */
img[loading="lazy"] { opacity: 0; transition: opacity 400ms ease; }
img[loading="lazy"].loaded, img[loading="lazy"].complete { opacity: 1; }

/* Print */
@media print {
	.gb-topbar, .gb-nav, .gb-footer, .gb-newsletter, .gb-sidebar, .gb-progress { display: none !important; }
	.gb-article-body { font-size: 12pt; }
}
