/* ============================================================
   Polacy w Szwajcarii — design system
   Granat jako konstrukcja, biel jako tło, czerwień tylko dla CTA.
   ============================================================ */

:root {
	--navy: #071B45;
	--navy-dark: #06162F;
	--navy-light: #0d2a63;
	--red: #F71935;
	--red-dark: #d60f29;
	--blue: #1769FF;
	--text: #0A1E4D;
	--text-secondary: #48608C;
	--background: #F5F8FC;
	--surface: #FFFFFF;
	--border: #E2EAF4;
	--green: #0E9F6E;
	--amber: #B45309;
	--radius: 10px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(7, 27, 69, 0.05);
	--shadow-lg: 0 4px 14px rgba(7, 27, 69, 0.08);
	--sidebar-w: 244px;
	--sidebar-bg: var(--navy);
	--sidebar-text: #C4D0E6;
	--font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Manrope", "Inter", sans-serif;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body.pws-body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--background);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; color: var(--text); margin: 0 0 0.5em; }

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

.pws-icon { width: 20px; height: 20px; flex: none; }
.pws-icon--lg { width: 26px; height: 26px; }

/* ============ Layout ============ */
.pws-layout { display: flex; min-height: 100vh; }

.pws-layout__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.pws-content {
	flex: 1;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 28px 56px;
}

/* ============ Sidebar ============ */
.pws-sidebar {
	width: var(--sidebar-w);
	flex: none;
	background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
	color: var(--sidebar-text);
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,.2) transparent;
	z-index: 60;
}

.pws-sidebar__inner { display: flex; flex-direction: column; min-height: 100%; }

.pws-sidebar__logo {
	display: flex; align-items: center; gap: 12px;
	padding: 20px 18px 16px;
	color: #fff;
}
.pws-sidebar__logo:hover { text-decoration: none; }
.pws-sidebar__logo-mark { width: 44px; height: 44px; color: #fff; flex: none; }
.pws-sidebar__logo-mark svg { width: 100%; height: 100%; }
.pws-sidebar__logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.pws-sidebar__logo-text strong { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: #fff; }
.pws-sidebar__logo-text em { font-style: normal; font-size: 11.5px; color: #9fb2d4; }

.pws-sidebar__nav { flex: 1; padding: 6px 12px; }

.pws-sidebar__list { list-style: none; margin: 0 0 10px; padding: 0; }
.pws-sidebar__list--secondary { border-top: 1px solid rgba(255,255,255,0.09); padding-top: 10px; }

.pws-sidebar__link {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 12px;
	border-radius: var(--radius-sm);
	color: var(--sidebar-text);
	font-size: 14.5px; font-weight: 500;
	transition: background .15s ease, color .15s ease;
}
.pws-sidebar__link:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.pws-sidebar__link .pws-icon { width: 19px; height: 19px; opacity: .85; }

.pws-sidebar__link.is-active {
	background: var(--red);
	color: #fff;
	font-weight: 600;
}
.pws-sidebar__link.is-active .pws-icon { opacity: 1; }

.pws-sidebar__stats {
	display: flex; align-items: center; gap: 10px;
	margin: 8px 16px;
	padding: 12px 14px;
	background: rgba(255,255,255,0.06);
	border-radius: var(--radius);
	font-size: 12.5px; line-height: 1.45;
}
.pws-sidebar__stats strong { color: #fff; font-size: 15px; }
.pws-sidebar__stats p { margin: 0; }

.pws-dot {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: #2EE6A8; margin-right: 6px; vertical-align: 1px;
}

.pws-sidebar__photo { margin: 4px 16px 16px; position: relative; border-radius: var(--radius); overflow: hidden; }
.pws-sidebar__photo img { display: block; width: 100%; height: 110px; object-fit: cover; }
.pws-sidebar__photo figcaption {
	position: absolute; inset: auto 0 0 0;
	padding: 22px 12px 8px;
	font-family: var(--font-display); font-size: 13px; color: #fff;
	background: linear-gradient(transparent, rgba(6,22,47,0.85));
}
.pws-sidebar__photo figcaption em { color: #ffd7db; font-style: normal; }

/* ============ Topbar ============ */
.pws-topbar {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; gap: 16px;
	padding: 12px 28px;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.pws-topbar__burger {
	display: none;
	flex-direction: column; justify-content: center; gap: 4px;
	width: 44px; height: 44px;
	background: none; border: 0; cursor: pointer; padding: 10px;
}
.pws-topbar__burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* Wordmark mobilny — kontekst strony podczas przewijania */
.pws-topbar__wordmark {
	display: none;
	align-items: baseline; gap: 5px;
	font-family: var(--font-display); font-size: 16px; font-weight: 800;
	color: var(--navy); white-space: nowrap;
}
.pws-topbar__wordmark:hover { text-decoration: none; }
.pws-topbar__wordmark-mark { width: 18px; height: 18px; color: var(--red); align-self: center; }

/* Wyszukiwarka */
.pws-search { position: relative; flex: 1; max-width: 620px; min-width: 0; }
.pws-search__icon {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
	width: 18px; height: 18px; color: var(--text-secondary); pointer-events: none;
}
.pws-search__input {
	width: 100%;
	height: 46px;
	padding: 0 16px 0 42px;
	font-size: 15px; font-family: var(--font);
	color: var(--text);
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 12px;
	outline: none;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pws-search__input::placeholder { color: #7b90b6; }
.pws-search__input:focus {
	border-color: var(--blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.12);
}

.pws-search__dropdown {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0;
	background: #fff; border: 1px solid var(--border); border-radius: 12px;
	box-shadow: var(--shadow-lg);
	max-height: 420px; overflow-y: auto;
	z-index: 70;
}
.pws-search__group { padding: 8px 0; border-bottom: 1px solid var(--border); }
.pws-search__group:last-child { border-bottom: 0; }
.pws-search__group-label {
	display: block; padding: 4px 16px; font-size: 11px; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary);
}
.pws-search__item {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 16px; color: var(--text); font-size: 14px;
}
.pws-search__item:hover { background: var(--background); text-decoration: none; }
.pws-search__item .pws-icon { width: 16px; height: 16px; color: var(--text-secondary); }
.pws-search__item-type { margin-left: auto; font-size: 11px; color: var(--text-secondary); }
.pws-search__empty { padding: 16px; color: var(--text-secondary); font-size: 14px; }

/* Akcje topbara */
.pws-topbar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.pws-icon-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	background: none; border: 0; border-radius: 50%;
	color: var(--text); cursor: pointer;
	transition: background .15s ease;
}
.pws-icon-btn:hover { background: var(--background); }

.pws-badge {
	position: absolute; top: 3px; right: 1px;
	min-width: 17px; height: 17px; padding: 0 4px;
	background: var(--red); color: #fff;
	font-size: 10.5px; font-weight: 700; line-height: 17px;
	border-radius: 9px; text-align: center;
}

.pws-notifications { position: relative; }
.pws-notifications__dropdown {
	position: absolute; right: 0; top: calc(100% + 8px);
	width: 360px; max-width: 90vw;
	background: #fff; border: 1px solid var(--border); border-radius: 12px;
	box-shadow: var(--shadow-lg); z-index: 70;
	overflow: hidden;
}
.pws-notifications__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.pws-notifications__list { list-style: none; margin: 0; padding: 0; max-height: 340px; overflow-y: auto; }
.pws-notifications__list li { border-bottom: 1px solid var(--border); }
.pws-notifications__list li:last-child { border-bottom: 0; }
.pws-notifications__list a {
	display: block; padding: 11px 16px; color: var(--text); font-size: 13.5px;
}
.pws-notifications__list a:hover { background: var(--background); text-decoration: none; }
.pws-notifications__list em { display: block; font-style: normal; color: var(--text-secondary); font-size: 12px; }
.pws-notifications__empty { padding: 16px; color: var(--text-secondary); font-size: 13.5px; }
.pws-notifications__all {
	display: block; padding: 10px 16px; text-align: center;
	border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600;
}
.pws-notifications__all:hover { background: var(--background); text-decoration: none; }

.pws-account { position: relative; }
.pws-account__trigger {
	display: flex; align-items: center; gap: 9px;
	background: none; border: 0; cursor: pointer;
	padding: 6px 8px; border-radius: 10px;
	font-family: var(--font); font-size: 14px; color: var(--text);
	transition: background .15s ease;
}
.pws-account__trigger:hover { background: var(--background); }
.pws-account__hello strong { font-weight: 600; }
.pws-account__dropdown {
	position: absolute; right: 0; top: calc(100% + 8px);
	min-width: 210px;
	background: #fff; border: 1px solid var(--border); border-radius: 12px;
	box-shadow: var(--shadow-lg); z-index: 70; overflow: hidden;
}
.pws-account__dropdown a { display: block; padding: 10px 16px; color: var(--text); font-size: 14px; }
.pws-account__dropdown a:hover { background: var(--background); text-decoration: none; }

.pws-topbar__login { font-weight: 600; font-size: 14.5px; white-space: nowrap; }

/* ============ Przyciski ============ */
.pws-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 18px;
	font-family: var(--font); font-size: 14.5px; font-weight: 600;
	border-radius: var(--radius); border: 1px solid transparent;
	cursor: pointer; text-align: center;
	transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
	white-space: nowrap;
}
.pws-btn .pws-icon { width: 17px; height: 17px; }
.pws-btn:hover { text-decoration: none; }

.pws-btn--primary { background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(247, 25, 53, 0.28); }
.pws-btn--primary:hover { background: var(--red-dark); color: #fff; }

.pws-btn--ghost { background: #fff; color: var(--text); border-color: var(--border); }
.pws-btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.pws-btn--ghost.is-active { border-color: var(--blue); color: var(--blue); background: rgba(23,105,255,0.06); }

.pws-btn--sm { padding: 7px 13px; font-size: 13px; }
.pws-btn--lg { padding: 13px 26px; font-size: 15.5px; }
.pws-btn--block { width: 100%; }

.pws-link-btn {
	background: none; border: 0; padding: 0; cursor: pointer;
	font-family: var(--font); font-size: 13px; color: var(--blue); font-weight: 500;
}
.pws-link-btn:hover { text-decoration: underline; }

.pws-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.pws-link .pws-icon { width: 15px; height: 15px; }

/* ============ Chip / badge / avatar ============ */
.pws-chip {
	display: inline-flex; align-items: center;
	padding: 3px 11px;
	background: #EAF1FD; color: #1756c4;
	font-size: 12.5px; font-weight: 600;
	border-radius: 20px;
}
a.pws-chip:hover { background: #dce8fc; text-decoration: none; }
.pws-chip--cat { background: var(--navy); color: #fff; }
a.pws-chip--cat:hover { background: var(--navy-light); }

.pws-status {
	display: inline-flex; align-items: center;
	padding: 3px 10px; border-radius: 20px;
	font-size: 12px; font-weight: 600;
}
.pws-status--open { background: #EAF1FD; color: var(--blue); }
.pws-status--solved { background: #E5F7F0; color: var(--green); }
.pws-status--closed { background: #F1F4F9; color: var(--text-secondary); }
.pws-status--pending { background: #FDF3E5; color: var(--amber); }

.pws-solved-badge {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 10px;
	background: #E5F7F0; color: var(--green);
	font-size: 12px; font-weight: 700; border-radius: 20px;
	white-space: nowrap;
}
.pws-solved-badge .pws-icon { width: 13px; height: 13px; }

.pws-expert-badge {
	display: inline-flex; align-items: center;
	padding: 2px 9px; margin-left: 6px;
	background: #EAF1FD; color: var(--blue);
	font-size: 11px; font-weight: 700; letter-spacing: .03em;
	border-radius: 20px; text-transform: uppercase; vertical-align: 1px;
}

.pws-avatar {
	display: inline-flex; align-items: center; justify-content: center;
	flex: none;
	background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
	color: #fff; font-weight: 700; font-family: var(--font-display);
	border-radius: 50%;
}
.pws-avatar--sm { width: 34px; height: 34px; font-size: 13px; }
.pws-avatar--md { width: 44px; height: 44px; font-size: 16px; }
.pws-avatar--lg { width: 72px; height: 72px; font-size: 26px; }

/* ============ Breadcrumbs ============ */
.pws-breadcrumbs ol {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	list-style: none; margin: 0 0 18px; padding: 0;
	font-size: 13px; color: var(--text-secondary);
}
.pws-breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.pws-breadcrumbs a { color: var(--text-secondary); }
.pws-breadcrumbs a:hover { color: var(--blue); }

/* ============ Hero strony głównej ============ */
.pws-hero {
	display: flex; align-items: stretch; gap: 28px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.pws-hero__text { flex: 1.1; padding: 34px 10px 34px 34px; min-width: 0; }
.pws-hero__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 12px; }
.pws-hero__title span { color: var(--navy); }
.pws-hero__lead { font-size: 16px; color: var(--text-secondary); max-width: 480px; margin: 0 0 22px; }
.pws-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pws-hero__media { flex: 1; margin: 0; min-width: 0; }
.pws-hero__media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }

/* ============ Kafelki kategorii ============ */
.pws-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 22px 0 30px;
}
.pws-tile {
	position: relative;
	display: flex; flex-direction: column;
	padding: 18px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pws-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #cfdcf0; text-decoration: none; }
.pws-tile__img {
	display: block;
	width: calc(100% + 36px);
	max-width: none;
	margin: -18px -18px 12px;
	height: 84px;
	object-fit: cover;
}
.pws-tile__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; position: relative; }
.pws-tile__head .pws-icon { width: 24px; height: 24px; color: var(--blue); }
.pws-tile__head strong { font-family: var(--font-display); font-size: 15.5px; color: var(--text); text-transform: uppercase; letter-spacing: .02em; }
.pws-tile__topics { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.pws-tile__topics li { font-size: 13px; color: var(--text-secondary); padding: 1.5px 0; }

/* ============ Grid strony głównej ============ */
.pws-home-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 26px;
	align-items: start;
}
.pws-home-grid__side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 18px; }

/* ============ Feed pytań ============ */
.pws-section-title { font-size: 20px; font-weight: 800; margin: 0; }

.pws-feed__head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 16px;
}

.pws-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.pws-tabs__tab {
	padding: 7px 14px;
	background: none; border: 0; border-bottom: 2px solid transparent;
	font-family: var(--font); font-size: 13.5px; font-weight: 600;
	color: var(--text-secondary); cursor: pointer;
	transition: color .15s ease, border-color .15s ease;
}
.pws-tabs__tab:hover { color: var(--text); }
.pws-tabs__tab.is-active { color: var(--red); border-bottom-color: var(--red); }
.pws-tabs--filters .pws-tabs__tab.is-active { color: var(--blue); border-bottom-color: var(--blue); }
a.pws-tabs__tab { text-decoration: none; }

.pws-feed__list { display: flex; flex-direction: column; }
.pws-feed__more { display: flex; justify-content: center; padding: 18px 0 4px; }

/* Skeleton ładowania */
.pws-skeleton {
	padding: 18px 0;
	border-bottom: 1px solid var(--border);
}
.pws-skeleton__line {
	height: 13px; border-radius: 6px;
	background: linear-gradient(90deg, #eef3fa 25%, #e2eaf4 50%, #eef3fa 75%);
	background-size: 200% 100%;
	animation: pws-shimmer 1.2s infinite;
	margin-bottom: 10px;
}
.pws-skeleton__line--title { height: 17px; width: 70%; }
.pws-skeleton__line--short { width: 45%; }
@keyframes pws-shimmer { to { background-position: -200% 0; } }

/* ============ Karta pytania ============ */
.pws-qcard {
	padding: 18px 4px;
	border-bottom: 1px solid var(--border);
}
.pws-feed__list .pws-qcard:last-child { border-bottom: 0; }

.pws-qcard__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pws-qcard__avatar { border-radius: 50%; }
.pws-qcard__who { font-size: 13px; min-width: 0; }
.pws-qcard__author { font-weight: 600; color: var(--text); }
.pws-qcard__time { color: var(--text-secondary); }

.pws-qcard__title { font-size: 17.5px; font-weight: 700; margin: 0 0 5px; }
.pws-qcard__title a { color: var(--text); }
.pws-qcard__title a:hover { color: var(--blue); text-decoration: none; }

.pws-qcard__excerpt {
	margin: 0 0 10px; font-size: 14px; color: var(--text-secondary);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.pws-qcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pws-qcard__chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pws-qcard__answers { display: flex; align-items: center; gap: 14px; }
.pws-qcard__answers .pws-solved-badge { flex: none; }
.pws-qcard__count { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.pws-qcard__count .pws-icon { width: 15px; height: 15px; }

/* ============ Prawa kolumna — moduły ============ */
.pws-rmod {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 18px;
	box-shadow: var(--shadow);
}
.pws-rmod--help { border-top: 3px solid var(--red); }
.pws-rmod__title {
	display: flex; align-items: center; gap: 8px;
	font-size: 15.5px; font-weight: 800; margin: 0 0 12px;
}
.pws-rmod__title .pws-icon { color: var(--red); width: 19px; height: 19px; }
.pws-rmod__lead { font-size: 13px; margin: 0 0 12px; }
.pws-rmod__lead strong { color: var(--red); font-size: 14px; }
.pws-rmod__more { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; margin-left: 8px; }
.pws-rmod__more .pws-icon { width: 13px; height: 13px; }

.pws-rmod__list { list-style: none; margin: 0; padding: 0; }
.pws-rmod__list li { padding: 8px 0; border-top: 1px solid var(--border); }
.pws-rmod__list a { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.4; }
.pws-rmod__list a:hover { color: var(--blue); text-decoration: none; }
.pws-rmod__list span { font-size: 12px; color: var(--text-secondary); }
.pws-rmod__empty { font-size: 13px; color: var(--text-secondary); margin: 0; }

.pws-rmod__guides { list-style: none; margin: 0; padding: 0; counter-reset: guides; }
.pws-rmod__guides li { padding: 8px 0; border-top: 1px solid var(--border); }
.pws-rmod__guides li:first-child { border-top: 0; }
.pws-rmod__guide { display: flex; gap: 11px; align-items: center; }
.pws-rmod__guide:hover { text-decoration: none; }
.pws-rmod__thumb { width: 52px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
.pws-rmod__thumb--empty {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--background); color: var(--text-secondary);
	font-weight: 700; font-size: 15px;
}
.pws-rmod__guide-body { display: flex; flex-direction: column; min-width: 0; }
.pws-rmod__guide-body strong { font-size: 13px; color: var(--text); line-height: 1.35; }
.pws-rmod__guide-body span { font-size: 11.5px; color: var(--text-secondary); }
.pws-rmod__all {
	display: inline-flex; align-items: center; gap: 3px;
	margin-top: 12px; font-size: 12.5px; font-weight: 600;
}
.pws-rmod__all .pws-icon { width: 14px; height: 14px; }

.pws-rmod__topics { list-style: none; margin: 0; padding: 0; }
.pws-rmod__topics li { border-top: 1px solid var(--border); }
.pws-rmod__topics li:first-child { border-top: 0; }
.pws-rmod__topics a {
	display: flex; align-items: center; gap: 9px;
	padding: 8px 0; font-size: 13.5px; font-weight: 500; color: var(--text);
}
.pws-rmod__topics a:hover { color: var(--blue); text-decoration: none; }
.pws-rmod__topics .pws-icon { width: 14px; height: 14px; color: var(--text-secondary); }

/* ============ Polecane poradniki / karty poradników ============ */
.pws-featured { margin-top: 34px; }
.pws-featured__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pws-featured__row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.pws-gcard {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .15s ease, box-shadow .15s ease;
}
.pws-gcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.pws-gcard__badge {
	position: absolute; top: 10px; left: 10px; z-index: 2;
	padding: 3px 10px;
	background: var(--navy); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	border-radius: 20px;
}
.pws-gcard__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pws-gcard__title { padding: 14px 16px 4px; font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; }
.pws-gcard__desc {
	padding: 0 16px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pws-gcard__meta { padding: 8px 16px 14px; font-size: 11.5px; color: var(--text-secondary); }
.pws-gcard__go {
	position: absolute; right: 12px; bottom: 12px;
	color: var(--red); opacity: 0; transform: translateX(-4px);
	transition: opacity .15s ease, transform .15s ease;
}
.pws-gcard:hover .pws-gcard__go { opacity: 1; transform: none; }
.pws-gcard--large .pws-gcard__title { font-size: 16px; }
.pws-gcard--row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center; gap: 12px;
	padding: 14px 16px;
}
.pws-gcard--row .pws-gcard__badge { position: static; }
.pws-gcard--row .pws-gcard__title { padding: 0; }
.pws-gcard--row .pws-gcard__desc { padding: 0; grid-column: 2; -webkit-line-clamp: 1; }
.pws-gcard--row .pws-gcard__go { position: static; opacity: 1; transform: none; }

/* ============ Archiwum (nagłówek) ============ */
.pws-archive__head { margin-bottom: 22px; }
.pws-archive__title { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.pws-archive__lead { font-size: 15px; color: var(--text-secondary); max-width: 640px; margin: 0 0 16px; }
.pws-archive__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ============ Strona kategorii ============ */
.pws-cat-hero {
	display: flex; align-items: stretch; gap: 26px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--shadow);
	margin-bottom: 24px;
}
.pws-cat-hero__text { flex: 1.15; padding: 30px 10px 30px 30px; min-width: 0; }
.pws-cat-hero__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 10px; }
.pws-cat-hero__suffix { color: var(--text-secondary); font-weight: 700; }
.pws-cat-hero__lead { font-size: 15px; color: var(--text-secondary); max-width: 520px; margin: 0 0 20px; }
.pws-cat-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.pws-cat-hero__media { flex: 1; margin: 0; min-width: 0; }
.pws-cat-hero__media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; display: block; }

.pws-subcats {
	display: flex; gap: 10px;
	margin: 0 0 24px; padding: 4px 2px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.pws-subcats__item {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 24px;
	font-size: 13.5px; font-weight: 600; color: var(--text);
	white-space: nowrap;
	transition: border-color .15s ease, color .15s ease;
}
.pws-subcats__item:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.pws-subcats__item .pws-icon { width: 16px; height: 16px; color: var(--blue); }

/* ============ Strona pytania ============ */
.pws-question { max-width: 860px; }

.pws-question__head { margin-bottom: 18px; }
.pws-question__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pws-question__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 12px; }
.pws-question__author { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-secondary); }
.pws-question__author a { font-weight: 600; color: var(--text); }

.pws-question__content { font-size: 16px; line-height: 1.7; }
.pws-question__content p { margin: 0 0 1em; }

.pws-question__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }

.pws-question__actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.pws-attachments { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.pws-attachments__item { display: block; width: 140px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.pws-attachments__item img { display: block; width: 100%; height: 100px; object-fit: cover; }
.pws-attachments__file {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 13px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	font-size: 13px; font-weight: 600; color: var(--text);
}
.pws-attachments__file:hover { border-color: var(--blue); text-decoration: none; }

/* ============ Odpowiedzi ============ */
.pws-answers { margin-top: 28px; }
.pws-answers__list { display: flex; flex-direction: column; gap: 4px; }

.pws-answer {
	display: flex; gap: 12px;
	padding: 16px 0 16px 0;
}
.pws-answer__level {
	flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px;
	font-size: 10.5px; font-weight: 800;
	border-radius: 50%; margin-top: 3px;
}
.pws-answer--depth-1 .pws-answer__level { background: #EAF1FD; color: var(--blue); }
.pws-answer--depth-2 .pws-answer__level { background: #E0F6F3; color: #0d9488; }
.pws-answer--depth-3 .pws-answer__level { background: #FDEEE0; color: var(--amber); }
.pws-answer--depth-4 .pws-answer__level { background: #F1E8FD; color: #7c3aed; }

.pws-answer__body {
	flex: 1; min-width: 0;
	padding-left: 14px;
}
.pws-answer--depth-1 .pws-answer__body { border-left: 3px solid #bfd4f5; }
.pws-answer--depth-2 .pws-answer__body { border-left: 3px solid #99ddd4; }
.pws-answer--depth-3 .pws-answer__body { border-left: 3px solid #f3c98f; }
.pws-answer--depth-4 .pws-answer__body { border-left: 3px solid #cfb3f5; }

.pws-answer.is-accepted .pws-answer__body {
	background: #F4FBF8;
	border-left-color: var(--green) !important;
	border-radius: 0 var(--radius) var(--radius) 0;
	padding-top: 10px; padding-bottom: 10px;
}

.pws-answer__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.pws-answer__who { font-size: 13px; min-width: 0; }
.pws-answer__who a { font-weight: 600; color: var(--text); }
.pws-answer__time { color: var(--text-secondary); }
.pws-answer__head .pws-solved-badge { margin-left: auto; }

.pws-answer__content { font-size: 14.5px; line-height: 1.65; }
.pws-answer__content p { margin: 0 0 0.8em; }
.pws-answer__content p:last-child { margin-bottom: 0; }

.pws-answer__actions { display: flex; gap: 16px; margin-top: 10px; }

/* Kompozytor odpowiedzi */
.pws-answer-composer { margin-top: 26px; }
.pws-answer-composer__title { font-size: 17px; font-weight: 800; }
.pws-answer-composer__foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.pws-reply-form__info { font-size: 13px; color: var(--text-secondary); margin: 0 0 8px; }

/* ============ Formularze ============ */
.pws-form__field { display: flex; flex-direction: column; margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.pws-form__label { font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.pws-form__label em { font-style: normal; font-weight: 400; color: var(--text-secondary); }

.pws-form__input {
	width: 100%;
	padding: 11px 14px;
	font-family: var(--font); font-size: 14.5px; color: var(--text);
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pws-form__input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,255,0.12); }
textarea.pws-form__input { resize: vertical; min-height: 90px; }
select.pws-form__input { min-height: 46px; }

.pws-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pws-form__actions { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.pws-form__check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 16px; cursor: pointer; }
.pws-form__hp { position: absolute !important; left: -9999px; height: 1px; overflow: hidden; }

.pws-radio { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.pws-radio input { accent-color: var(--red); }

.pws-alert { padding: 12px 15px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.pws-alert--error { background: #FDECEC; color: #b91c1c; border: 1px solid #f5c2c2; }
.pws-alert--success { background: #E5F7F0; color: var(--green); border: 1px solid #bfe8d8; }

/* Upload */
.pws-upload__drop {
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 28px 16px;
	background: var(--background);
	border: 2px dashed var(--border);
	border-radius: var(--radius);
	text-align: center; cursor: pointer;
	font-size: 13.5px; color: var(--text-secondary);
	transition: border-color .15s ease, background .15s ease;
}
.pws-upload__drop:hover, .pws-upload__drop.is-drag { border-color: var(--blue); background: #eef4ff; }
.pws-upload__drop .pws-icon { width: 24px; height: 24px; color: var(--blue); }
.pws-upload__drop p { margin: 0; }

.pws-upload__list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pws-upload__item {
	position: relative;
	width: 96px;
}
.pws-upload__item img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.pws-upload__item--file {
	width: auto; display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 12px;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-size: 12.5px; font-weight: 600;
}
.pws-upload__remove {
	position: absolute; top: -7px; right: -7px;
	width: 22px; height: 22px;
	background: var(--red); color: #fff; border: 0; border-radius: 50%;
	font-size: 12px; line-height: 1; cursor: pointer;
}
.pws-upload__progress { position: absolute; inset: auto 0 0 0; height: 4px; background: rgba(23,105,255,0.25); border-radius: 2px; overflow: hidden; }
.pws-upload__progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s ease; }

/* Podobne pytania w formularzu */
.pws-similar {
	margin: -6px 0 18px;
	padding: 14px 16px;
	background: #FFF9F0;
	border: 1px solid #f5dfb8;
	border-radius: var(--radius);
}
.pws-similar__label { font-size: 13px; font-weight: 700; color: var(--amber); margin: 0 0 8px; }
.pws-similar__list { list-style: none; margin: 0; padding: 0; }
.pws-similar__list li { padding: 6px 0; border-top: 1px solid #f5dfb8; }
.pws-similar__list li:first-child { border-top: 0; }
.pws-similar__list a { font-size: 13.5px; font-weight: 600; color: var(--text); }
.pws-similar__list span { display: block; font-size: 12px; color: var(--text-secondary); }

/* ============ Strona zadaj pytanie ============ */
.pws-ask__title { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.pws-ask__lead { font-size: 15px; color: var(--text-secondary); max-width: 640px; margin: 0 0 26px; }
.pws-ask__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.pws-ask__side { display: flex; flex-direction: column; gap: 18px; }
.pws-ask__tips { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.pws-ask__tips h2 { font-size: 15px; font-weight: 800; }
.pws-ask__tips ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--text-secondary); }
.pws-ask__tips li { padding: 3px 0; }

/* ============ Poradnik ============ */
.pws-guide { max-width: 860px; }
.pws-guide__head { margin-bottom: 22px; }
.pws-guide__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 14px 0 10px; }
.pws-guide__lead { font-size: 17px; color: var(--text-secondary); max-width: 640px; line-height: 1.6; margin: 0 0 14px; }
.pws-guide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; }
.pws-guide__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.pws-guide__meta .pws-icon { width: 15px; height: 15px; }
.pws-guide__hero { margin: 0; border-radius: 14px; overflow: hidden; }
.pws-guide__hero img { width: 100%; max-height: 380px; object-fit: cover; display: block; }

.pws-guide__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
.pws-guide__toc {
	position: sticky; top: 90px;
	font-size: 13.5px;
}
.pws-guide__toc strong { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 10px; }
.pws-guide__toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.pws-guide__toc a {
	display: block; padding: 6px 12px;
	color: var(--text-secondary); line-height: 1.4;
	border-left: 2px solid transparent; margin-left: -2px;
}
.pws-guide__toc a:hover, .pws-guide__toc a.is-active { color: var(--blue); border-left-color: var(--blue); text-decoration: none; }

.pws-guide__content { font-size: 16px; line-height: 1.75; min-width: 0; }
.pws-guide__content > * { margin-bottom: 1.2em; }
.pws-guide__content h2 { font-size: 23px; font-weight: 800; margin-top: 1.6em; scroll-margin-top: 90px; }
.pws-guide__content h3 { font-size: 18px; font-weight: 700; margin-top: 1.3em; }
.pws-guide__content ul, .pws-guide__content ol { padding-left: 22px; }
.pws-guide__content li { padding: 2px 0; }
.pws-guide__content blockquote {
	margin: 1.2em 0; padding: 4px 18px;
	border-left: 3px solid var(--blue); color: var(--text-secondary);
}
.pws-guide__content table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.pws-guide__content th, .pws-guide__content td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.pws-guide__content thead th { background: var(--background); font-weight: 700; }
.pws-guide__content .wp-block-table { overflow-x: auto; }

.pws-guide__foot { margin-top: 34px; }
.pws-guide__cta {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
	color: #fff;
	border-radius: 14px;
	padding: 30px;
	text-align: center;
}
.pws-guide__cta h2 { color: #fff; font-size: 21px; }
.pws-guide__cta p { color: #c3d0e8; max-width: 460px; margin: 0 auto 18px; }

/* Bloki poradnika */
.pws-box {
	display: block;
	padding: 16px 18px;
	border-radius: var(--radius);
	font-size: 15px;
}
.pws-box__label { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px !important; }
.pws-box p:last-child { margin-bottom: 0; }
.pws-box--info { background: #EAF1FD; border-left: 3px solid var(--blue); }
.pws-box--info .pws-box__label { color: var(--blue); }
.pws-box--warning { background: #FDF3E5; border-left: 3px solid #f59e0b; }
.pws-box--warning .pws-box__label { color: var(--amber); }
.pws-box--example { background: #F1F4F9; border-left: 3px solid var(--text-secondary); }
.pws-box--example .pws-box__label { color: var(--text-secondary); }
.pws-box--tip { background: #E5F7F0; border-left: 3px solid var(--green); }
.pws-box--tip .pws-box__label { color: var(--green); }

.pws-checklist { list-style: none !important; padding-left: 4px !important; }
.pws-checklist li { position: relative; padding: 5px 0 5px 30px !important; }
.pws-checklist li::before {
	content: "";
	position: absolute; left: 0; top: 8px;
	width: 17px; height: 17px;
	background: #E5F7F0;
	border: 2px solid var(--green);
	border-radius: 5px;
}
.pws-checklist li::after {
	content: "";
	position: absolute; left: 5px; top: 11px;
	width: 7px; height: 4px;
	border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
	transform: rotate(-45deg);
}

.pws-steps { list-style: none !important; counter-reset: step; padding-left: 4px !important; }
.pws-steps li {
	counter-increment: step;
	position: relative; padding: 8px 0 8px 44px !important;
}
.pws-steps li::before {
	content: counter(step);
	position: absolute; left: 0; top: 6px;
	width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center;
	background: var(--navy); color: #fff;
	font-weight: 700; font-size: 14px;
	border-radius: 50%;
}

.pws-faq__item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 10px;
	overflow: hidden;
}
.pws-faq__q {
	padding: 13px 18px;
	font-weight: 700; font-size: 15px; cursor: pointer;
	list-style: none;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pws-faq__q::-webkit-details-marker { display: none; }
.pws-faq__q::after { content: "+"; font-size: 20px; color: var(--text-secondary); transition: transform .15s ease; }
.pws-faq__item[open] .pws-faq__q::after { transform: rotate(45deg); }
.pws-faq__a { padding: 0 18px 14px; margin: 0; font-size: 14.5px; color: var(--text-secondary); }

.pws-sources {
	background: var(--background);
	border-radius: var(--radius);
	padding: 16px 18px;
	font-size: 13.5px;
}
.pws-sources__label { font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 8px !important; }
.pws-sources ul { margin: 0; padding-left: 18px; }

.pws-cta-community {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
	color: #fff;
	border-radius: 14px;
	padding: 26px;
	text-align: center;
}
.pws-cta-community__title { font-family: var(--font-display); font-size: 19px; font-weight: 800; color: #fff; margin: 0 0 6px !important; }
.pws-cta-community__text { color: #c3d0e8; margin: 0 0 16px !important; }
.pws-cta-community__button {
	display: inline-block;
	padding: 11px 24px;
	background: var(--red); color: #fff;
	font-weight: 700; font-size: 14.5px;
	border-radius: var(--radius);
}
.pws-cta-community__button:hover { background: var(--red-dark); color: #fff; text-decoration: none; }

.pws-related-questions {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 18px;
}
.pws-related-questions__label { font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 10px !important; }
.pws-related-questions ul { list-style: none; margin: 0; padding: 0; }
.pws-related-questions li { padding: 9px 0; border-top: 1px solid var(--border); }
.pws-related-questions li:first-child { border-top: 0; }
.pws-related-questions a { font-weight: 600; font-size: 14.5px; color: var(--text); }
.pws-related-questions__meta { display: block; font-size: 12px; color: var(--text-secondary); }

/* ============ Archiwum poradników ============ */
.pws-guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============ Szukaj ============ */
.pws-search-page__title { font-size: 24px; font-weight: 800; }
.pws-search-page__form { display: flex; gap: 10px; margin: 16px 0 20px; max-width: 640px; }
.pws-search-page__results { display: flex; flex-direction: column; }

/* ============ Ulubione / profil / powiadomienia ============ */
.pws-favorites__list, .pws-profile__answers { display: flex; flex-direction: column; }
.pws-profile__answers { list-style: none; margin: 0; padding: 0; }
.pws-profile__answers li { border-bottom: 1px solid var(--border); }
.pws-profile__answers a { display: block; padding: 14px 2px; }
.pws-profile__answers a:hover { text-decoration: none; }
.pws-profile__answers strong { display: block; font-size: 15px; color: var(--text); }
.pws-profile__answers span { font-size: 13.5px; color: var(--text-secondary); }
.pws-profile__answers em { font-style: normal; }

.pws-notifications-page__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pws-notifications-page__list { list-style: none; margin: 18px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.pws-notifications-page__list li { border-bottom: 1px solid var(--border); }
.pws-notifications-page__list li:last-child { border-bottom: 0; }
.pws-notification-item {
	display: flex; align-items: center; gap: 12px;
	padding: 13px 16px; color: var(--text); font-size: 14px;
}
.pws-notification-item:hover { background: var(--background); text-decoration: none; }
.pws-notification-item__body { flex: 1; min-width: 0; }
.pws-notification-item__body em { display: block; font-style: normal; font-size: 12px; color: var(--text-secondary); }
.pws-notifications-page__list .is-unread { background: #F4F8FF; }

.pws-profile__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.pws-profile__name { font-size: 24px; font-weight: 800; margin: 0; }
.pws-profile__since { font-size: 13.5px; color: var(--text-secondary); margin: 4px 0 0; }
.pws-profile__stats { display: flex; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.pws-profile__stats .pws-stat {
	flex: 1; min-width: 110px; max-width: 170px;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 14px 16px;
}
.pws-profile__stats .pws-stat strong { display: block; font-size: 22px; font-weight: 800; color: var(--navy); }
.pws-profile__stats .pws-stat span { font-size: 12.5px; color: var(--text-secondary); }

/* ============ Auth ============ */
.pws-auth { display: flex; justify-content: center; padding: 30px 0; }
.pws-auth__card {
	width: 100%; max-width: 430px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 30px;
	box-shadow: var(--shadow);
}
.pws-auth__title { font-size: 23px; font-weight: 800; }
.pws-auth__lead { font-size: 14px; color: var(--text-secondary); margin: 0 0 20px; }
.pws-auth__links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px; }

/* ============ Strona statyczna ============ */
.pws-static { max-width: 760px; }
.pws-static__title { font-size: 26px; font-weight: 800; }
.pws-static__content { font-size: 15.5px; line-height: 1.75; }
.pws-static__content h2 { font-size: 20px; margin-top: 1.4em; }

/* ============ 404 ============ */
.pws-404 { text-align: center; padding: 40px 0; }
.pws-404__code { font-family: var(--font-display); font-size: 72px; font-weight: 800; color: var(--navy); margin: 0; }
.pws-404__title { font-size: 22px; }
.pws-404__lead { color: var(--text-secondary); }
.pws-404__search { max-width: 460px; margin: 20px auto; }
.pws-404__cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ============ Empty / paginacja / toast / modal / lightbox ============ */
.pws-empty {
	padding: 40px 20px;
	text-align: center;
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: 14px;
}
.pws-empty p { color: var(--text-secondary); margin: 0 0 14px; }
.pws-empty--compact { padding: 24px 16px; }

.pws-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 26px; }
.pws-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 10px;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-size: 14px; font-weight: 600; color: var(--text);
}
.pws-pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.pws-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

.pws-toast {
	position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
	max-width: 90vw;
	padding: 12px 22px;
	background: var(--navy); color: #fff;
	font-size: 14px; font-weight: 600;
	border-radius: 24px;
	box-shadow: var(--shadow-lg);
	opacity: 0; pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
	z-index: 200;
}
.pws-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.pws-toast--error { background: var(--red); }

.pws-modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pws-modal[hidden] { display: none; }
.pws-modal__backdrop { position: absolute; inset: 0; background: rgba(6, 22, 47, 0.55); }
.pws-modal__card {
	position: relative;
	width: 100%; max-width: 460px;
	background: #fff; border-radius: 16px;
	padding: 22px;
	box-shadow: var(--shadow-lg);
	max-height: 90vh; overflow-y: auto;
}
.pws-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pws-modal__head h2 { font-size: 19px; margin: 0; }
.pws-modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.pws-lightbox-overlay {
	position: fixed; inset: 0; z-index: 300;
	background: rgba(6, 22, 47, 0.9);
	display: flex; align-items: center; justify-content: center;
	cursor: zoom-out;
}
.pws-lightbox-overlay img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }

/* ============ Stopka ============ */
.pws-footer {
	margin-top: 40px;
	border-top: 1px solid var(--border);
	background: var(--surface);
}
.pws-footer__inner {
	max-width: 1240px; margin: 0 auto;
	padding: 26px 28px;
	display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; justify-content: space-between;
}
.pws-footer__brand strong { font-family: var(--font-display); font-size: 15px; }
.pws-footer__brand p { font-size: 13px; color: var(--text-secondary); margin: 6px 0 0; max-width: 420px; }
.pws-footer__nav { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.pws-footer__copy {
	margin: 0; padding: 14px 28px;
	border-top: 1px solid var(--border);
	text-align: center; font-size: 12px; color: var(--text-secondary);
}

/* ============ Dolny pasek mobile ============ */
.pws-mobile-bar {
	display: none;
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
	background: #fff;
	border-top: 1px solid var(--border);
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
	box-shadow: 0 -2px 12px rgba(7, 27, 69, 0.07);
}
.pws-mobile-bar__item {
	flex: 1;
	display: flex; flex-direction: column; align-items: center; gap: 3px;
	padding: 6px 2px;
	font-size: 10.5px; font-weight: 600; color: var(--text-secondary);
	border-radius: 10px;
}
.pws-mobile-bar__item:hover { text-decoration: none; }
.pws-mobile-bar__item .pws-icon { width: 21px; height: 21px; }
.pws-mobile-bar__item.is-active { color: var(--navy); }
.pws-mobile-bar__item--cta { color: var(--red); }
.pws-mobile-bar__cta {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: var(--red); color: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(247, 25, 53, 0.35);
	margin-top: -10px;
}
.pws-mobile-bar__item--cta .pws-icon { width: 20px; height: 20px; }

.pws-drawer-overlay {
	position: fixed; inset: 0; z-index: 55;
	background: rgba(6, 22, 47, 0.5);
}

/* ============ Focus / dostępność ============ */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ============ Responsive ============ */
@media (max-width: 1180px) {
	.pws-featured__row { grid-template-columns: repeat(2, 1fr); }
	.pws-tiles { grid-template-columns: repeat(2, 1fr); }
	.pws-guides-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
	.pws-sidebar {
		position: fixed; left: 0; top: 0; bottom: 0;
		transform: translateX(-100%);
		transition: transform .22s ease;
		box-shadow: var(--shadow-lg);
	}
	.pws-sidebar.is-open { transform: none; }
	.pws-topbar__burger { display: flex; }
	.pws-topbar__wordmark { display: inline-flex; }
	.pws-home-grid { grid-template-columns: 1fr; }
	.pws-home-grid__side { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
	.pws-ask__layout { grid-template-columns: 1fr; }
	.pws-guide__layout { grid-template-columns: 1fr; }
	.pws-guide__toc { position: static; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
	.pws-guide__toc ol { border-left: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 4px; max-width: 100%; }
	.pws-guide__toc li { flex: none; max-width: 100%; }
	.pws-guide__toc a { border-left: 0; border-bottom: 2px solid transparent; white-space: normal; overflow-wrap: anywhere; }
	.pws-guide__toc a.is-active { border-bottom-color: var(--blue); }
	.pws-account__hello { display: none; }
}

@media (max-width: 767px) {
	body.pws-body { font-size: 15px; }
	.pws-content { padding: 16px 14px 96px; }
	.pws-topbar { padding: 10px 14px; gap: 10px; flex-wrap: nowrap; }
	.pws-topbar__actions { gap: 6px; }
	.pws-topbar__login { display: none; }
	.pws-btn--ask span { display: none; }
	.pws-btn--ask { padding: 10px 13px; }
	.pws-search__input { height: 40px; font-size: 14px; }
	.pws-hero { flex-direction: column; }
	.pws-hero__text { padding: 24px 20px 6px; }
	.pws-hero__media img { min-height: 180px; max-height: 220px; }
	.pws-tiles {
		display: flex; gap: 10px;
		overflow-x: auto; padding-bottom: 6px;
		scroll-snap-type: x mandatory;
	}
	.pws-tile { min-width: 240px; scroll-snap-align: start; }
	.pws-featured__row { grid-template-columns: 1fr 1fr; }
	.pws-gcard--large .pws-gcard__desc { display: none; }
	.pws-cat-hero { flex-direction: column; }
	.pws-cat-hero__text { padding: 22px 20px 8px; }
	.pws-cat-hero__media img { min-height: 160px; max-height: 200px; }
	.pws-form__row { grid-template-columns: 1fr; }
	.pws-mobile-bar { display: flex; }
	.pws-home-grid__side { grid-template-columns: 1fr; }
	.pws-notifications__dropdown { position: fixed; left: 10px; right: 10px; top: 64px; width: auto; }
	.pws-account__dropdown { position: fixed; right: 10px; top: 64px; }
	.pws-qcard__answers { width: 100%; justify-content: space-between; }
	.pws-qcard__foot { flex-direction: column; align-items: flex-start; }
	.pws-answer__head .pws-solved-badge { margin-left: 0; width: 100%; }
	.pws-auth__card { padding: 22px; }
	.pws-search-page__form { flex-direction: column; }
}

@media (max-width: 480px) {
	.pws-featured__row { grid-template-columns: 1fr; }
	.pws-guides-grid { grid-template-columns: 1fr; }
	.pws-gcard--row { grid-template-columns: 1fr; }
	.pws-gcard--row .pws-gcard__go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
	html { scroll-behavior: auto; }
}

/* Compact desktop home: questions appear in the first viewport. */
@media (min-width: 1024px) {
	body.home .pws-search { max-width: none; }
	body.home .pws-sidebar__link.is-active {
		background: rgba(247, 25, 53, .13);
		box-shadow: inset 3px 0 0 var(--red);
	}
	body.home .pws-hero { min-height: 188px; max-height: 188px; }
	body.home .pws-hero__text { padding: 16px 36px; }
	body.home .pws-hero__title { font-size: clamp(30px, 2.7vw, 36px); line-height: 1.13; margin: 0 0 9px; }
	body.home .pws-hero__lead { font-size: 15px; line-height: 1.45; max-width: 640px; margin: 0 0 10px; }
	body.home .pws-btn--community { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.46); }
	body.home .pws-btn--community:hover { color: #fff; background: rgba(255,255,255,.24); }
	body.home .pws-hero__media img { height: 188px; min-height: 0; }
	body.home .pws-tiles {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 10px;
		margin: 14px 0 20px;
	}
	body.home .pws-tile {
		min-width: 0;
		min-height: 88px;
		max-height: 88px;
		padding: 14px 12px;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		box-shadow: 0 1px 5px rgba(14, 35, 65, .06);
	}
	body.home .pws-tile__head { flex: 1; min-width: 0; margin: 0; padding: 0; gap: 9px; }
	body.home .pws-tile__head .pws-icon { width: 20px; height: 20px; }
	body.home .pws-tile__head strong { font-size: 12px; line-height: 1.2; letter-spacing: 0; white-space: normal; }
	body.home .pws-tile__arrow { display: inline-flex; margin-left: 4px; opacity: .45; }
	body.home .pws-tile__arrow .pws-icon { width: 14px; height: 14px; }
	body.home .pws-section-title { font-size: 22px; }
	body.home .pws-qcard { padding: 16px 8px; }
	body.home .pws-qcard__title { font-size: 18.5px; }
}

.pws-qcard__avatar--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: none;
	background: #e7edf8;
	color: #233f70;
	font-weight: 800;
	font-size: 16px;
}
.pws-qcard__canton { color: var(--text-secondary); }

.pws-guest-note {
	padding: 12px 15px;
	margin: 0 0 16px;
	border: 1px solid #c9d9f3;
	border-radius: 10px;
	background: #f0f5ff;
	color: #24446e;
	font-size: 14px;
}
.pws-form__honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

@media (max-width: 1023px) {
	body.home .pws-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 22px; }
	body.home .pws-tile { min-height: 84px; padding: 14px; justify-content: center; }
	body.home .pws-tile__head { margin: 0; }
	body.home .pws-tile__arrow { display: none; }
}
@media (max-width: 767px) {
	body.home .pws-tiles { display: flex; overflow-x: auto; }
	body.home .pws-tile { min-width: 166px; max-width: 190px; scroll-snap-align: start; }
}
