/* ==========================================================================
   CNG Portal Skin — forum cng.auto.pl w szacie graficznej portalu (2026-09)
   Nakładka na prosilver: NIE edytujemy plików stylu, tylko nadpisujemy.
   Paleta z motywu bywitek-theme: granat #0A1730/#0B1936, turkus #29B7FF→#0076B1,
   akcent nagłówków #5FD0FF, tekst jasny #EAF4FF / #B7CEE6, font Roboto.
   ========================================================================== */
/* ---------- font Roboto self-hosted z motywu portalu (variable 400–700) ---------- */
@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("https://cng.auto.pl/cms/content/themes/bywitek-theme/assets/fonts/roboto-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: Roboto;
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("https://cng.auto.pl/cms/content/themes/bywitek-theme/assets/fonts/roboto-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--cngp-navy: #0a1730;
	--cngp-navy-2: #0b1936;
	--cngp-navy-3: #10254a;
	--cngp-ink: #101f35;
	--cngp-cyan: #29b7ff;
	--cngp-cyan-d: #0076b1;
	--cngp-cyan-t: #5fd0ff;
	--cngp-light: #eaf4ff;
	--cngp-muted: #b7cee6;
	--cngp-link: #0a5d91;
	--cngp-line: #dbe5f0;
	--cngp-row1: #f6f9fc;
	--cngp-row2: #eef4fa;
}

/* ---------- baza ---------- */
html, body { background: #fff; }
body {
	font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	color: var(--cngp-ink);
	padding: 0;
}
.wrap {
	max-width: 1200px;
	border: 0;
	border-radius: 0;
	background: transparent;
	padding: 24px 16px 8px;
	box-shadow: none;
}
a { color: var(--cngp-link); }
a:hover { color: var(--cngp-cyan-d); }
h2, h3, .forumtitle, .topictitle, a.forumtitle, a.topictitle { font-family: Roboto, "Segoe UI", Arial, sans-serif; }
a.forumtitle, a.topictitle, a.lastsubject { color: var(--cngp-ink); }
a.forumtitle:hover, a.topictitle:hover, a.lastsubject:hover { color: var(--cngp-cyan-d); }
h2.topic-title, h2.forum-title { color: var(--cngp-ink); font-weight: 700; }

/* ---------- nagłówek portalu ---------- */
.cngp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 23, 48, .96);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(95, 208, 255, .14);
	font-family: Roboto, "Segoe UI", Arial, sans-serif;
}
.cngp-header__inner {
	max-width: 1366px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 18px;
}
.cngp-header__logo { flex: 0 0 auto; line-height: 0; }
.cngp-header__logo img { width: 80px; height: auto; display: block; }
.cngp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; flex: 1 1 auto; }
.cngp-nav a {
	color: var(--cngp-light);
	font-size: 14.4px;
	font-weight: 600;
	padding: 10px 8px;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s, color .15s;
}
.cngp-nav a:hover, .cngp-nav a:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.cngp-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cngp-forum {
	display: inline-block;
	padding: 14px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--cngp-cyan) 0%, var(--cngp-cyan-d) 100%);
	color: #04121f !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 8px 26px rgba(41, 183, 255, .3);
}
.cngp-forum:hover { filter: brightness(1.08); }
.cngp-toggle { display: none; } /* desktop: menu zawsze widoczne, przełącznik zbędny (nie łapie fokusu) */
.cngp-burger {
	display: none;
	width: 50px; height: 50px;
	border: 1px solid rgba(183, 206, 230, .35);
	border-radius: 12px;
	cursor: pointer;
	align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.cngp-burger span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--cngp-light); }
.cngp-toggle:focus-visible ~ .cngp-header__actions .cngp-burger { outline: 3px solid #7fdcff; outline-offset: 2px; }

@media (max-width: 1180px) {
	.cngp-header__inner { flex-wrap: wrap; padding: 12px 16px; }
	.cngp-burger { display: flex; }
	/* checkbox wizualnie ukryty, ale fokusowalny (Tab + spacja otwiera menu) */
	.cngp-toggle {
		display: block;
		position: absolute;
		width: 1px; height: 1px;
		margin: -1px; padding: 0; border: 0;
		overflow: hidden;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		white-space: nowrap;
		opacity: 0;
	}
	.cngp-nav {
		display: none;
		order: 3;
		flex: 1 0 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 8px 0 4px;
		border-top: 1px solid rgba(95, 208, 255, .14);
	}
	.cngp-nav a { padding: 12px 10px; font-size: 16px; }
	.cngp-toggle:checked ~ .cngp-nav { display: flex; }
	.cngp-header__logo img { width: 72px; }
}

/* ---------- nagłówek forum (H1 + opis + wyszukiwarka) ---------- */
.headerbar {
	background: radial-gradient(120% 140% at 90% 0%, rgba(41, 183, 255, .22) 0%, rgba(41, 183, 255, 0) 55%),
	            linear-gradient(135deg, var(--cngp-navy) 0%, var(--cngp-navy-3) 70%, #0b3d6b 100%);
	border-radius: 16px;
	padding: 26px 28px;
	margin-bottom: 14px;
	color: var(--cngp-light);
	box-shadow: 0 10px 30px rgba(10, 23, 48, .18);
}
/* logo portalu jest już w pasku u góry — baner-zdjęcie forum zbędny */
.headerbar .logo, .headerbar .site_logo { display: none !important; }
.site-description { float: left; width: auto; max-width: 62%; }
.site-description h1 {
	font-family: Roboto, "Segoe UI", Arial, sans-serif;
	font-size: 2.1rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 6px;
	letter-spacing: -.01em;
}
.site-description p { color: var(--cngp-muted); font-size: 14px; line-height: 1.5; margin: 0; }
.headerbar .search-header {
	margin-top: 8px;
	border-radius: 999px;
	box-shadow: none;
	overflow: hidden;
	border: 1px solid rgba(183, 206, 230, .35);
	background: rgba(255, 255, 255, .06);
}
.headerbar .search-header .inputbox {
	background: transparent;
	color: #fff;
	border: 0;
	padding: 8px 14px;
	height: 38px;
	font-size: 14px;
}
.headerbar .search-header .inputbox::placeholder { color: var(--cngp-muted); }
.headerbar .search-header .button {
	background: transparent;
	border: 0;
	border-left: 1px solid rgba(183, 206, 230, .25);
	color: var(--cngp-light);
	height: 38px;
	box-shadow: none;
}
.headerbar .search-header .button:hover { background: rgba(41, 183, 255, .18); color: #fff; }

/* ---------- pasek nawigacji forum ---------- */
.navbar {
	background: var(--cngp-row2);
	border: 1px solid var(--cngp-line);
	border-radius: 12px;
	padding: 6px 12px;
}
.navbar ul.linklist { border-color: var(--cngp-line); }
.navbar a, .navbar .icon, .navbar .crumb a { color: var(--cngp-navy-3); }
.navbar a:hover { color: var(--cngp-cyan-d); }
.crumb a { font-weight: 700; }

/* ---------- bloki działów i list tematów ---------- */
.forabg, .forumbg {
	background: var(--cngp-navy-2);
	background-image: none;
	border-radius: 14px;
	padding: 0 6px 6px;
	margin-bottom: 14px;
	border: 0;
	box-shadow: 0 6px 20px rgba(10, 23, 48, .10);
}
.forumbg-table { background: var(--cngp-navy-2); }
ul.topiclist li.header dt, ul.topiclist li.header dd { color: var(--cngp-cyan-t); border-left-color: transparent; }
ul.topiclist li.header dt .list-inner a, li.header dt a, ul.topiclist li.header a { color: var(--cngp-cyan-t); }
ul.topiclist li.header {
	font-family: Roboto, "Segoe UI", Arial, sans-serif;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 4px 0;
}
ul.forums, ul.topics { background: #fff; border-radius: 10px; overflow: hidden; }
ul.topiclist li.row { border-top-color: #fff; border-bottom-color: var(--cngp-line); }
.bg1 { background-color: var(--cngp-row1); }
.bg2 { background-color: var(--cngp-row2); }
.bg3 { background-color: #e6eef7; }
ul.topiclist dd { border-left-color: var(--cngp-line); }
li.row:hover { background-color: #e8f4fd; }
dl.row-item { background-size: 32px; }

/* ---------- posty ---------- */
.post { border-radius: 12px; border: 1px solid var(--cngp-line); }
.post.bg1 { background-color: var(--cngp-row1); }
.post.bg2 { background-color: #fff; }
.postprofile a.username, .postprofile .username { font-weight: 700; }
.postbody h3 a, .postbody h3 a:visited { color: var(--cngp-ink); }
.content { font-family: Roboto, "Segoe UI", Arial, sans-serif; font-size: 1.05em; line-height: 1.6; color: var(--cngp-ink); }
blockquote { background-color: #f0f6fc; border-color: #cfe0ef; border-radius: 8px; }
.codebox { border-radius: 8px; }

/* ---------- panele, przyciski, paginacja ---------- */
.panel { background-color: var(--cngp-row2); border-radius: 12px; color: var(--cngp-ink); }
.panel h2, .panel h3, .content h2, .content h3 { color: var(--cngp-ink); border-bottom-color: var(--cngp-line); }
.stat-block h3, .stat-block h3 a { color: var(--cngp-navy-3); }
.button {
	border-radius: 999px;
	border-color: #c9dbeb;
	background: #fff;
	color: var(--cngp-navy-3);
	box-shadow: none;
	font-family: Roboto, "Segoe UI", Arial, sans-serif;
	font-weight: 600;
}
.button:hover, .button:focus { border-color: var(--cngp-cyan); background: #eaf7ff; color: var(--cngp-cyan-d); }
.button .icon, .button-secondary { color: var(--cngp-cyan-d); }
input.button1, input.button2, a.button1, a.button2 {
	border-radius: 999px;
	font-family: Roboto, "Segoe UI", Arial, sans-serif;
}
input.button1, a.button1 {
	background: linear-gradient(135deg, var(--cngp-cyan) 0%, var(--cngp-cyan-d) 100%);
	border: 0;
	color: #04121f;
	font-weight: 700;
}
.pagination li a { border-radius: 8px; background: #fff; border-color: #c9dbeb; color: var(--cngp-navy-3); }
.pagination li.active span { border-radius: 8px; background: var(--cngp-cyan-d); border-color: var(--cngp-cyan-d); color: #fff; }
.pagination li a:hover { background: var(--cngp-cyan-d); border-color: var(--cngp-cyan-d); color: #fff; }
.inputbox:focus { border-color: var(--cngp-cyan); }

/* ---------- stopka forum (prosilver) ---------- */
.page-footer .navbar { margin-top: 14px; }
.copyright { color: #4a5f78; padding-bottom: 18px; } /* 6,6:1 na białym (było #6b7f96 = 4,1:1) */
.copyright a { color: #4d6580; }

/* ---------- stopka portalu ---------- */
.cngp-footer {
	background: var(--cngp-navy-2);
	color: var(--cngp-muted);
	font-family: Roboto, "Segoe UI", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	margin-top: 24px;
}
.cngp-footer__inner {
	max-width: 1366px;
	margin: 0 auto;
	padding: 44px 24px 28px;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr .8fr;
	gap: 28px;
}
.cngp-footer__brand img { width: 140px; height: auto; display: block; margin-bottom: 16px; }
.cngp-footer__brand p { margin: 0; font-size: 15px; }
.cngp-footer h3 {
	color: var(--cngp-cyan-t);
	font-size: 13.6px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin: 0 0 16px;
	border: 0;
	font-family: inherit;
}
.cngp-footer__col a { display: block; color: var(--cngp-muted); text-decoration: none; margin-bottom: 11px; font-size: 15.5px; }
.cngp-footer__col a:hover { color: #fff; text-decoration: none; }
.cngp-footer a.cngp-fb {
	display: inline-flex; align-items: center; justify-content: center;
	width: 50px; height: 50px;
	border: 1px solid rgba(183, 206, 230, .3);
	border-radius: 12px;
	color: var(--cngp-light);
}
.cngp-footer a.cngp-fb:hover { border-color: var(--cngp-cyan); color: var(--cngp-cyan); }
.cngp-footer__bottom {
	max-width: 1366px;
	margin: 0 auto;
	padding: 18px 24px 24px;
	border-top: 1px solid rgba(183, 206, 230, .15);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	font-size: 15px;
}

@media (max-width: 1000px) {
	.cngp-footer__inner { grid-template-columns: 1fr 1fr 1fr; }
	.cngp-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
	.wrap { padding: 14px 10px 4px; }
	.headerbar { padding: 18px 16px; border-radius: 12px; }
	.site-description { float: none; max-width: none; }
	.site-description h1 { font-size: 1.7rem; }
	.cngp-footer__inner { grid-template-columns: 1fr 1fr; gap: 22px; padding: 32px 16px 20px; }
	.cngp-footer__bottom { padding: 16px; }
	.forabg, .forumbg { padding: 0 4px 4px; border-radius: 12px; }
}
@media (max-width: 420px) {
	.cngp-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- poprawki po pierwszym podglądzie ---------- */
html { scroll-padding-top: 96px; } /* kotwice #p123 nie chowają się pod przyklejonym paskiem */
h2.topic-title a, h2.forum-title a, h2.topic-title a:visited, h2.forum-title a:visited { color: var(--cngp-ink); }
h2.topic-title a:hover, h2.forum-title a:hover { color: var(--cngp-cyan-d); }
.headerbar .search-header fieldset { display: flex; align-items: center; }
.headerbar .search-header .inputbox { flex: 1 1 auto; min-width: 0; width: 190px; }
.headerbar .search-header .button { flex: 0 0 40px; width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 0; }
.headerbar .search-header .button .icon { color: var(--cngp-cyan-t); font-size: 15px; }
/* pasek linków do portalu (rozszerzenie relatedtopics) — domknięcie granatowej stopki */
.cng-portal-bar {
	background: var(--cngp-navy);
	color: var(--cngp-muted);
	margin: 0;
	padding: 14px 16px 18px;
	text-align: center;
	font-family: Roboto, "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	border-top: 1px solid rgba(183, 206, 230, .12);
}
.cng-portal-bar a { color: var(--cngp-cyan-t) !important; font-weight: 600; text-decoration: none; }
.cng-portal-bar a:hover { color: #fff !important; }
.cng-portal-bar .cng-sep { color: rgba(183, 206, 230, .45); margin: 0 6px; }

/* ==========================================================================
   Audyt UX 2026-10-02 (pkt 20–23): czytelność, cele dotyku, nagłówek mobilny, a11y
   prosilver liczy wszystko w em od body 10px — tu ustawiamy wartości w px.
   ========================================================================== */

/* ---------- czytelność: listy działów i tematów ---------- */
ul.topiclist dt { font-size: 14px; line-height: 1.5; }          /* opisy działów, meta w wierszu */
ul.topiclist dd { font-size: 13px; line-height: 1.5; }
ul.topiclist li.header dt { font-size: 15px; }
ul.topiclist li.header dd { font-size: 13px; }
a.forumtitle, a.topictitle { font-size: 16px; line-height: 1.35; }
.topic-poster, ul.topiclist .responsive-show, dd.lastpost > span { font-size: 13px; }
.row .pagination li a, .row .pagination li span { font-size: 12px; }
.page-body > p.time, .action-bar { font-size: 13px; }
.stat-block p { font-size: 13px; line-height: 1.5; }
.navbar ul.linklist > li { font-size: 14px; }

/* ---------- czytelność: posty ---------- */
.postbody .content { font-size: 15px; line-height: 1.6; }
.postbody h3 { font-size: 17px; line-height: 1.35; }
.postbody h3.first { font-size: 19px; }
p.author { font-size: 13px; line-height: 1.5; }
.postprofile { font-size: 12.5px; }
.postprofile dd, .postprofile dt { line-height: 1.5; }
.postprofile .username, .postprofile .username-coloured { font-size: 14px; }
.signature { font-size: 13px; line-height: 1.5; }
.copyright, .copyright .footer-row { font-size: 12px; line-height: 1.6; }
/* prosilver nadaje tym elementom Trebuchet/Verdana/Lucida/Open Sans (szerokie fonty zastępcze = „rozstrzelony” tekst) */
.postbody h3, p.author, .content p, .postprofile, .signature, .pagination li.active span, .pagination li a, .notice {
	font-family: Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.postbody .content a.postlink { color: var(--cngp-link); } /* #368ad2 miał 3,5:1 na jasnym tle */

/* kolor grupy Administratorzy (#FFA34F z ACP) na jasnych wierszach/postach = 1,9:1 —
   wszystkie miejsca występowania (autor w liście, profil posta, legenda) mają jasne tło */
a.username-coloured[style*="FFA34F" i], .page-body a[style*="FFA34F" i] { color: #9a4700 !important; } /* ≥5,4:1 */

/* ---------- dostępność: fokus i skip-link ---------- */
:focus-visible {
	outline: 3px solid #7fdcff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--cngp-navy); /* granatowa obwódka — fokus widoczny też na białym tle */
}
.headerbar .search-header:focus-within { outline: 3px solid #7fdcff; outline-offset: 2px; }
.headerbar .search-header :focus-visible { outline: 0; box-shadow: none; } /* rodzic ma overflow:hidden */
.cngp-skip {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--cngp-navy);
	color: #fff !important;
	font: 700 15px/1.2 Roboto, "Segoe UI", Arial, sans-serif;
	text-decoration: none !important;
}
.cngp-skip:focus, .cngp-skip:focus-visible { top: 8px; }

/* ---------- telefon (<700 px): nagłówek niższy, większe cele dotyku ---------- */
@media (max-width: 700px) {
	/* pasek portalu */
	.cngp-header__inner { padding: 8px 12px; gap: 10px; }
	.cngp-header__logo img { width: 56px; }
	.cngp-forum { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
	.cngp-burger { width: 44px; height: 44px; }

	/* baner forum: H1 zostaje (SEO), mniej miejsca */
	.wrap { padding-top: 10px; }
	.headerbar { padding: 10px 14px; margin-bottom: 10px; border-radius: 10px; }
	.site-description h1 { font-size: 1.35rem; margin: 0; }
	.site-description p:not(.skiplink) { display: none; }
	.page-body > p.time { display: none; } /* „Dzisiaj jest …” / „Ostatnia wizyta …” */

	/* treść posta */
	.postbody .content { font-size: 16px; }

	/* belka forum: cele min. 40×44 px, ciaśniej, żeby zmieścić się w 2 rzędach */
	.navbar { padding: 2px 8px; }
	.navbar ul.linklist > li { font-size: 13px; line-height: 44px; margin-right: 0; padding-top: 0; }
	.navbar ul.linklist > li.rightside { margin-left: 0; }
	.navbar ul.linklist > li > a,
	.navbar .dropdown-trigger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 44px;
		vertical-align: middle;
		box-sizing: border-box;
	}
	/* okruszki są inline-block — line-height 44px daje pełną wysokość; linki inline przewodnika: padding pionowy
	   powiększa obszar klikalny bez zmiany układu */
	.cngauto-przewodnik a { padding: 12px .2em !important; }

	/* paginacja i przyciski: min. 40 px */
	.pagination li a, .pagination li span, .pagination li.active span {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 40px;
		box-sizing: border-box;
	}
	.action-bar .button,
	.post-buttons .button,
	.search-box .button,
	.back2top .top {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 40px;
		min-height: 40px;
		box-sizing: border-box;
	}
	.action-bar .search-box .inputbox { min-height: 40px; box-sizing: border-box; }
}
@media (max-width: 420px) {
	/* belka w jednym rzędzie: ikona + linki CNG/LNG/Wodór zostają, chowamy samo słowo „Przewodniki:” */
	.cngauto-przewodnik > span:not([aria-hidden]) { display: none; }
}
