/*!
 * BHP Modern 2.0 - szablon Joomla 6 platformy BHP Inspector
 * Arkusz statyczny. Kolory, typografia i wymiary z panelu szablonu trafiają na stronę jako
 * zmienne CSS (helper.php); ten plik nigdy nie jest modyfikowany przez panel.
 * Czcionki (Archivo, Figtree - licencja OFL) są w ../fonts - nic nie ładuje się z internetu.
 */

/* ==================================================================
   0. Czcionki
   ================================================================== */
@font-face {
	font-family: "Figtree";
	src: url("../fonts/Figtree-Variable.ttf") format("truetype");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

/* Lato 1.x (licencja OFL) - te same pliki, których OSCampus używa na zaświadczeniach. */
@font-face {
	font-family: "Lato";
	src: url("../fonts/Lato-Regular.ttf") format("truetype");
	font-weight: 100 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Lato";
	src: url("../fonts/Lato-Bold.ttf") format("truetype");
	font-weight: 600 750;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Lato";
	src: url("../fonts/Lato-Black.ttf") format("truetype");
	font-weight: 751 950;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Archivo";
	src: url("../fonts/Archivo-Variable.ttf") format("truetype");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ==================================================================
   1. Wartości awaryjne + tokeny projektu
   ================================================================== */
:root {
	--bhp-primary: #ef7d1a;
	--bhp-primary-hover: #d96d0f;
	--bhp-primary-container: #fff1e3;
	--bhp-on-primary: #1d2025;
	--bhp-on-primary-container: #6b3408;
	--bhp-primary-a08: rgba(239, 125, 26, .08);
	--bhp-primary-a16: rgba(239, 125, 26, .16);
	--bhp-accent: #1f2328;
	--bhp-on-accent: #ffffff;
	--bhp-bg: #f6f5f2;
	--bhp-surface: #ffffff;
	--bhp-surface-2: #fbfaf7;
	--bhp-surface-3: #f1efe9;
	--bhp-text: #2e3238;
	--bhp-text-muted: #5d636b;
	--bhp-heading: #1d2025;
	--bhp-link: #b4570f;
	--bhp-link-hover: #8f440b;
	--bhp-outline: rgba(46, 50, 56, .14);
	--bhp-outline-strong: rgba(46, 50, 56, .26);
	--bhp-header-bg: #ffffff;
	--bhp-header-text: #2e3238;
	--bhp-topbar-bg: #1f2328;
	--bhp-topbar-text: #ffffff;
	--bhp-footer-bg: #1d2025;
	--bhp-footer-text: #c9ccd1;
	--bhp-footer-muted: rgba(201, 204, 209, .7);
	--bhp-footer-outline: rgba(201, 204, 209, .18);
	--bhp-menu-bg: #ffffff;
	--bhp-menu-link: #4b5159;
	--bhp-menu-hover: #b4570f;
	--bhp-menu-hover-bg: rgba(180, 87, 15, .08);
	--bhp-menu-active: #1d2025;
	--bhp-menu-active-bg: #fff1e3;
	--bhp-font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--bhp-font-heading: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--bhp-fs: 16px;
	--bhp-lh: 1.6;
	--bhp-h1: clamp(30px, 2.6vw + 18px, 44px);
	--bhp-h2: clamp(24px, 1.4vw + 16px, 30px);
	--bhp-h3: 22px;
	--bhp-h4: 19px;
	--bhp-h5: 17px;
	--bhp-h6: 15px;
	--bhp-h-weight: 700;
	--bhp-h-transform: none;
	--bhp-menu-fs: 15px;
	--bhp-menu-weight: 500;
	--bhp-menu-transform: none;
	--bhp-menu-gap: 4px;
	--bhp-radius: 16px;
	--bhp-radius-sm: 8px;
	--bhp-radius-lg: 24px;
	--bhp-radius-btn: 12px;
	--bhp-radius-pill: 999px;
	--bhp-container: 1200px;
	--bhp-sidebar: 300px;
	--bhp-section: 48px;
	--bhp-header-pad: 14px;
	--bhp-logo-h: 44px;
	--bhp-shadow-1: 0 1px 2px rgba(29, 32, 37, .06), 0 1px 3px 1px rgba(29, 32, 37, .04);
	--bhp-shadow-2: 0 2px 6px 2px rgba(29, 32, 37, .07), 0 1px 2px rgba(29, 32, 37, .08);
	--bhp-shadow-3: 0 12px 32px rgba(29, 32, 37, .14);
	--bhp-motion: 200ms;
	--bhp-gap: 24px;

	/* Tokeny makiety 2026 (stałe niezależne od palety) */
	--bhp-card-radius: 18px;
	--bhp-muted: #5d636b;
	--bhp-line: #e7e5e0;
	--bhp-line-2: #efede8;
	--bhp-soft: #f1efe9;
	--bhp-tile: #fbfaf7;
	--bhp-track: #eceae4;
	--bhp-btn-line: #d9d6cf;
	--bhp-graphite: #1f2328;
	--bhp-graphite-2: #262b31;
	--bhp-graphite-line: #343941;
	--bhp-graphite-text: #c9ccd1;
	--bhp-graphite-muted: #a5abb3;
	--bhp-ok: #0f7a4f;
	--bhp-ok-ink: #0b5e3c;
	--bhp-ok-bg: #e6f4ed;
	--bhp-ok-soft: #f3faf6;
	--bhp-ok-line: #cfe9dc;
	--bhp-warn-bg: #fff1e3;
	--bhp-warn-ink: #9a4a0c;
	--bhp-warm: #fff4ea;
	--bhp-warm-line: #f6d7bb;
	--bhp-danger: #b3261e;
	--bhp-danger-bg: #fdecea;
}

/* Tryb ciemny (gdy włączony w szablonie): tokeny makiety dopasowane do ciemnego tła. */
body[data-bhp-theme-mode="always"],
html[data-theme="dark"] body[data-bhp-theme-mode="toggle"] {
	--bhp-muted: #a5abb3;
	--bhp-line: rgba(255, 255, 255, .12);
	--bhp-line-2: rgba(255, 255, 255, .08);
	--bhp-soft: rgba(255, 255, 255, .07);
	--bhp-tile: rgba(255, 255, 255, .04);
	--bhp-track: rgba(255, 255, 255, .12);
	--bhp-btn-line: rgba(255, 255, 255, .22);
	--bhp-ok-bg: rgba(15, 122, 79, .22);
	--bhp-ok-ink: #7fd8ae;
	--bhp-ok-soft: rgba(15, 122, 79, .12);
	--bhp-ok-line: rgba(127, 216, 174, .3);
	--bhp-warn-bg: rgba(239, 125, 26, .18);
	--bhp-warn-ink: #ffb877;
	--bhp-warm: rgba(239, 125, 26, .1);
	--bhp-warm-line: rgba(239, 125, 26, .3);
}

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) body[data-bhp-theme-mode="auto"],
	html:not([data-theme="light"]) body[data-bhp-theme-mode="toggle"] {
		--bhp-muted: #a5abb3;
		--bhp-line: rgba(255, 255, 255, .12);
		--bhp-line-2: rgba(255, 255, 255, .08);
		--bhp-soft: rgba(255, 255, 255, .07);
		--bhp-tile: rgba(255, 255, 255, .04);
		--bhp-track: rgba(255, 255, 255, .12);
		--bhp-btn-line: rgba(255, 255, 255, .22);
		--bhp-ok-bg: rgba(15, 122, 79, .22);
		--bhp-ok-ink: #7fd8ae;
		--bhp-ok-soft: rgba(15, 122, 79, .12);
		--bhp-ok-line: rgba(127, 216, 174, .3);
		--bhp-warn-bg: rgba(239, 125, 26, .18);
		--bhp-warn-ink: #ffb877;
		--bhp-warm: rgba(239, 125, 26, .1);
		--bhp-warm-line: rgba(239, 125, 26, .3);
	}
}

/* ==================================================================
   2. Reset
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bhp-bg);
	color: var(--bhp-text);
	font-family: var(--bhp-font);
	font-size: var(--bhp-fs);
	line-height: var(--bhp-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}

body > .bhp-main { flex: 1 0 auto; }

body.is-boxed {
	max-width: calc(var(--bhp-container) + 120px);
	margin: 0 auto;
	background: var(--bhp-bg);
	box-shadow: var(--bhp-shadow-2);
}

img, svg, video, iframe, canvas { max-width: 100%; }
img, video { height: auto; }
iframe { border: 0; }
figure { margin: 0 0 1rem; }

hr {
	border: 0;
	border-top: 1px solid var(--bhp-line);
	margin: var(--bhp-gap) 0;
}

.bhp-ico { flex-shrink: 0; vertical-align: -.2em; }

/* ==================================================================
   3. Typografia
   ================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--bhp-font-heading);
	color: var(--bhp-heading);
	font-weight: var(--bhp-h-weight);
	text-transform: var(--bhp-h-transform);
	line-height: 1.2;
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}

h1 { font-size: var(--bhp-h1); line-height: 1.1; }
h2 { font-size: var(--bhp-h2); }
h3 { font-size: var(--bhp-h3); }
h4 { font-size: var(--bhp-h4); }
h5 { font-size: var(--bhp-h5); }
h6 { font-size: var(--bhp-h6); }

p, ul, ol, dl, table, pre, blockquote { margin: 0 0 1rem; }

a {
	color: var(--bhp-link);
	text-decoration: none;
	transition: color var(--bhp-motion) ease;
}

a:hover { color: var(--bhp-link-hover); text-decoration: underline; text-underline-offset: 3px; }

small { font-size: .875em; color: var(--bhp-muted); }
strong, b { font-weight: 700; }

blockquote {
	padding: 14px 20px;
	border-left: 4px solid var(--bhp-primary);
	background: var(--bhp-warm);
	border-radius: 0 var(--bhp-radius-sm) var(--bhp-radius-sm) 0;
	color: var(--bhp-text);
}

code, pre, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--bhp-soft); padding: .15em .4em; border-radius: 4px; }
pre { background: var(--bhp-soft); padding: 16px; border-radius: var(--bhp-radius-sm); overflow-x: auto; }
pre code { background: none; padding: 0; }

::selection { background: var(--bhp-primary); color: var(--bhp-on-primary); }

/* ==================================================================
   4. Układ
   ================================================================== */
.bhp-container {
	width: 100%;
	max-width: var(--bhp-container);
	margin: 0 auto;
	padding: 0 20px;
}

@media (min-width: 768px) { .bhp-container { padding: 0 32px; } }

.bhp-main { padding: 40px 0 var(--bhp-section); }
.bhp-section { padding: var(--bhp-section) 0 0; }
.bhp-section--bottom { padding: 0 0 var(--bhp-section); }
.bhp-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.bhp-content { min-width: 0; }
.bhp-main-top { margin-bottom: var(--bhp-gap); }
.bhp-main-bottom { margin-top: var(--bhp-gap); }
.bhp-grid { display: grid; gap: var(--bhp-gap); grid-template-columns: minmax(0, 1fr); }

@media (min-width: 768px) {
	.bhp-grid.cols-2, .bhp-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bhp-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
	.bhp-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	body.has-sidebar-left .bhp-layout { grid-template-columns: var(--bhp-sidebar) minmax(0, 1fr); }
	body.has-sidebar-right .bhp-layout { grid-template-columns: minmax(0, 1fr) var(--bhp-sidebar); }
	body.has-sidebar-left.has-sidebar-right .bhp-layout { grid-template-columns: var(--bhp-sidebar) minmax(0, 1fr) var(--bhp-sidebar); }
}

/* ==================================================================
   5. Pasek górny i nagłówek
   ================================================================== */
.bhp-topbar { background: var(--bhp-topbar-bg); color: var(--bhp-topbar-text); font-size: .875rem; }
.bhp-topbar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bhp-topbar__inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.bhp-topbar .bhp-module { margin: 0; }

.bhp-header {
	background: var(--bhp-header-bg);
	color: var(--bhp-header-text);
	border-bottom: 1px solid var(--bhp-line);
	position: relative;
	z-index: 100;
	transition: box-shadow var(--bhp-motion) ease;
}

body.has-sticky-header .bhp-header { position: sticky; top: 0; }
/* Chowany nagłówek (opcja "Chowaj nagłówek przy przewijaniu"): przesunięcie przez "top", nie transform -
   transform zmieniłby układ odniesienia wysuwanego panelu menu (position: fixed) wewnątrz nagłówka. */
body.has-autohide-header .bhp-header { transition: top .25s ease, box-shadow var(--bhp-motion) ease; }
body.has-autohide-header .bhp-header.is-hidden { top: calc(-1 * var(--bhp-header-h, 120px) - 8px); box-shadow: none; }
body.has-header-shadow .bhp-header.is-stuck { box-shadow: 0 6px 18px rgba(29, 32, 37, .07); }

.bhp-header {
	--bhp-header-pad-y: var(--bhp-header-pad);
	--bhp-nav-pad-y: 26px;
}

.bhp-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: var(--bhp-header-pad-y);
	padding-bottom: var(--bhp-header-pad-y);
	min-height: 76px;
}

/* Nagłówek kompaktowy (opcja "Rozmiar nagłówka"): logo do 56 px (wchodzi w odstęp, nagłówek ok. 64 px), odstęp do 10 px, kontrolki 40 px. */
body.header-compact .bhp-header { --bhp-header-pad-y: min(var(--bhp-header-pad), 10px); --bhp-nav-pad-y: 20px; }
body.header-compact .bhp-header__inner { min-height: 64px; }
body.header-compact .bhp-brand__img { height: min(var(--bhp-logo-h), 56px); margin: -6px 0; }
body.header-compact .bhp-brand img:not(.bhp-brand__img) { max-height: 56px; width: auto; margin: -6px 0; }
body.header-compact .bhp-header .bhp-icon-btn,
body.header-compact .bhp-header .bhp-burger { width: 40px; height: 40px; }
body.header-compact .bhp-header__tools .bhp-btn { min-height: 40px; }
body.header-compact .bhp-account__btn { height: 40px; }
body.header-compact .bhp-account__avatar { width: 32px; height: 32px; font-size: 12px; }

.bhp-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-right: auto; }
.bhp-brand__link { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.bhp-brand__link:hover { text-decoration: none; color: inherit; }
.bhp-brand__img { height: var(--bhp-logo-h); width: auto; display: block; }
.bhp-brand__text { font-family: var(--bhp-font-heading); font-size: 1.25rem; font-weight: 800; letter-spacing: .02em; color: var(--bhp-heading); }
.bhp-brand__tagline { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--bhp-link); }
.bhp-brand .bhp-module, .bhp-brand p { margin: 0; }

.bhp-header__tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.bhp-header__search { display: none; }

@media (min-width: 768px) { .bhp-header__search { display: block; } }

/* Kontakt w nagłówku - tylko na szerokich ekranach; od 1400 px (nagłówek kompaktowy) w jednej linii */
.bhp-contact { display: none; flex-direction: column; align-items: flex-end; font-size: 13px; line-height: 1.35; }
.bhp-contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--bhp-muted); text-decoration: none; white-space: nowrap; }
.bhp-contact .bhp-ico { width: 14px; height: 14px; flex: none; color: var(--bhp-link); }
.bhp-contact__phone { color: var(--bhp-text) !important; font-weight: 600; }
.bhp-contact a:hover { color: var(--bhp-link); }

@media (min-width: 1200px) { .bhp-contact { display: flex; } }
@media (min-width: 1400px) {
	body.header-compact .bhp-contact { flex-direction: row; align-items: center; gap: 18px; font-size: 14px; }
	body.header-compact .bhp-contact .bhp-ico { width: 16px; height: 16px; }
}

/* Pomoc: kwadratowy przycisk w stylu "Zaloguj" (ta sama ramka, tło i wysokość) */
/* Sam znak zapytania (bez kółka - kółkiem jest przycisk), grubszy niż pozostałe ikony, żeby był czytelny przy 22 px. */
.bhp-btn.bhp-help-btn { width: 46px; padding: 0; flex: none; }
.bhp-btn.bhp-help-btn .bhp-ico { width: 22px; height: 22px; flex: none; stroke-width: 2.6; }
.bhp-help-btn[aria-current="page"] { border-color: var(--bhp-primary); color: var(--bhp-primary); }
body.header-compact .bhp-btn.bhp-help-btn { width: 40px; }

/* Ikony w nagłówku */
.bhp-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-radius-pill);
	background: var(--bhp-surface);
	color: inherit;
	cursor: pointer;
	transition: background var(--bhp-motion) ease;
}

.bhp-icon-btn:hover, .bhp-icon-btn:focus-visible { background: var(--bhp-soft); }

.bhp-theme-toggle .bhp-ico-sun,
.bhp-theme-toggle .bhp-ico-moon { width: 20px; height: 20px; display: block; background: currentColor; }

.bhp-theme-toggle .bhp-ico-sun {
	-webkit-mask: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
	mask: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
}

.bhp-theme-toggle .bhp-ico-moon {
	display: none;
	-webkit-mask: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
	mask: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .bhp-theme-toggle .bhp-ico-sun { display: none; }
html[data-theme="dark"] .bhp-theme-toggle .bhp-ico-moon { display: block; }

@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) .bhp-theme-toggle .bhp-ico-sun { display: none; }
	html:not([data-theme="light"]) .bhp-theme-toggle .bhp-ico-moon { display: block; }
}

/* Konto */
.bhp-account { position: relative; }

.bhp-account__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 44px;
	padding: 0 12px 0 4px;
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-radius-pill);
	background: var(--bhp-surface);
	color: var(--bhp-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color var(--bhp-motion) ease, box-shadow var(--bhp-motion) ease;
}

.bhp-account__btn:hover { border-color: var(--bhp-btn-line); box-shadow: var(--bhp-shadow-1); }
.bhp-account__btn .bhp-ico { width: 14px; height: 14px; transition: transform var(--bhp-motion) ease; }
.bhp-account__btn[aria-expanded="true"] .bhp-ico { transform: rotate(180deg); }

.bhp-account__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bhp-graphite);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
}

.bhp-account__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 575px) {
	.bhp-account__name, .bhp-account__btn > .bhp-ico { display: none; }
	.bhp-account__btn { padding: 0 3px; }
}

.bhp-account__menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 150;
	width: 280px;
	max-width: calc(100vw - 32px);
	padding: 8px;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: 16px;
	box-shadow: var(--bhp-shadow-3);
}

.bhp-account__menu[hidden] { display: none; }

.bhp-account__who { display: flex; flex-direction: column; padding: 10px 12px 12px; border-bottom: 1px solid var(--bhp-line-2); margin-bottom: 6px; }
.bhp-account__who strong { color: var(--bhp-heading); }
.bhp-account__who span { font-size: 13px; color: var(--bhp-muted); overflow: hidden; text-overflow: ellipsis; }

.bhp-account__links ul { list-style: none; margin: 0; padding: 0; }

.bhp-account__links a,
.bhp-account__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--bhp-text);
	font: inherit;
	font-size: 15px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.bhp-account__links a:hover,
.bhp-account__item:hover { background: var(--bhp-soft); color: var(--bhp-heading); text-decoration: none; }

.bhp-account__links li.active > a { background: var(--bhp-warm); font-weight: 600; }
.bhp-account__logout { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--bhp-line-2); }
.bhp-account__logout .bhp-account__item { color: var(--bhp-danger); }

@media (max-width: 575px) { .bhp-login-link { padding-left: 14px; padding-right: 14px; } }

/* Hamburger */
.bhp-burger {
	width: 44px;
	height: 44px;
	border: 1px solid var(--bhp-line);
	padding: 0;
	background: var(--bhp-surface);
	color: inherit;
	border-radius: var(--bhp-radius-pill);
	cursor: pointer;
	position: relative;
	transition: background var(--bhp-motion) ease;
}

.bhp-burger:hover, .bhp-burger:focus-visible { background: var(--bhp-soft); }

.bhp-burger span,
.bhp-burger span::before,
.bhp-burger span::after {
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transform: translateX(-50%);
	transition: transform var(--bhp-motion) ease, opacity var(--bhp-motion) ease;
}

.bhp-burger span { top: 50%; margin-top: -1px; }
.bhp-burger span::before { content: ""; top: -6px; left: 0; transform: none; }
.bhp-burger span::after { content: ""; top: 6px; left: 0; transform: none; }

body.nav-open .bhp-burger span { background: transparent; }
body.nav-open .bhp-burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .bhp-burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==================================================================
   6. Nawigacja - stan bazowy = panel wysuwany (mobile first);
      układ poziomy od progu z panelu szablonu dokłada helper.php.
   ================================================================== */
.bhp-nav {
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	width: 320px;
	max-width: 86vw;
	z-index: 130;
	padding: 12px;
	background: var(--bhp-surface);
	color: var(--bhp-menu-link);
	box-shadow: var(--bhp-shadow-3);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 260ms ease, visibility 0s linear 260ms;
}

body.nav-open .bhp-nav {
	transform: translateX(0);
	visibility: visible;
	transition: transform 260ms ease, visibility 0s linear 0s;
}

.bhp-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 8px 12px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--bhp-line);
}

.bhp-nav__title { font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bhp-muted); }

.bhp-nav__close {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.75rem;
	line-height: 1;
	width: 40px;
	height: 40px;
	border-radius: var(--bhp-radius-pill);
	cursor: pointer;
}

.bhp-nav__close:hover { background: var(--bhp-soft); }
.bhp-nav__group-title { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bhp-muted); margin: 12px 8px 4px; }
.bhp-nav__extra { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bhp-line); }
.bhp-nav__extra:empty { display: none; }

.bhp-nav ul:is(.menu,.mod-menu),
.bhp-nav ul.mod-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.bhp-nav ul:is(.menu,.mod-menu) ul { list-style: none; margin: 0 0 0 12px; padding: 4px 0 4px 8px; border-left: 2px solid var(--bhp-line); }
.bhp-nav ul:is(.menu,.mod-menu) li { position: relative; }

.bhp-nav ul:is(.menu,.mod-menu) a,
.bhp-nav ul:is(.menu,.mod-menu) span.separator,
.bhp-nav ul:is(.menu,.mod-menu) span.nav-header {
	display: block;
	padding: 10px 12px;
	color: var(--bhp-menu-link);
	text-decoration: none;
	font-size: var(--bhp-menu-fs);
	font-weight: var(--bhp-menu-weight);
	text-transform: var(--bhp-menu-transform);
	border-radius: 10px;
	line-height: 1.35;
	transition: background var(--bhp-motion) ease, color var(--bhp-motion) ease, box-shadow var(--bhp-motion) ease;
}

.bhp-nav ul:is(.menu,.mod-menu) a:hover,
.bhp-nav ul:is(.menu,.mod-menu) a:focus-visible { color: var(--bhp-menu-hover); background: var(--bhp-menu-hover-bg); text-decoration: none; }

.bhp-nav ul:is(.menu,.mod-menu) li.active > a,
.bhp-nav ul:is(.menu,.mod-menu) li.current > a { color: var(--bhp-menu-active); background: var(--bhp-menu-active-bg); font-weight: 700; }

.bhp-nav ul:is(.menu,.mod-menu) span.separator { color: var(--bhp-muted); cursor: default; }
.bhp-nav ul:is(.menu,.mod-menu) img { display: inline-block; vertical-align: middle; margin-right: 8px; }

/* Wygląd pozycji na szerokim ekranie (zwykły tekst / podkreślenie / pigułka / delikatne tło) i próg przełączenia
   pochodzą z opcji szablonu (zakładka Menu) - reguły generuje TplBhpModern::menuCss(). */

.bhp-submenu-toggle {
	position: absolute;
	top: 3px;
	right: 4px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	border-radius: var(--bhp-radius-pill);
}

.bhp-submenu-toggle::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform var(--bhp-motion) ease;
}

.bhp-submenu-toggle[aria-expanded="true"]::before { transform: rotate(-135deg) translate(-2px, -2px); }

.bhp-nav ul:is(.menu,.mod-menu) li.parent > ul { display: none; }
.bhp-nav ul:is(.menu,.mod-menu) li.is-open > ul { display: block; }

.bhp-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(22, 23, 26, .5);
	z-index: 120;
	opacity: 0;
	transition: opacity var(--bhp-motion) ease;
}

body.nav-open .bhp-backdrop { opacity: 1; }
body.nav-open { overflow: hidden; }

/* Panel jest dzieckiem nagłówka (własny kontekst nakładania) - nagłówek musi być nad przesłoną. */
body.nav-open .bhp-header,
body.nav-open .bhp-menubar { z-index: 140; }
body.nav-open .bhp-topbar { position: relative; z-index: 140; }

.bhp-menubar { background: var(--bhp-menu-bg); border-bottom: 1px solid var(--bhp-line); position: relative; z-index: 90; }
.bhp-menubar__inner { display: flex; }

/* ==================================================================
   7. Moduły / karty
   ================================================================== */
.bhp-module { margin-bottom: var(--bhp-gap); }
.bhp-module:last-child { margin-bottom: 0; }

.bhp-card {
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
	padding: 24px;
}

body.cards-elevated .bhp-card { box-shadow: var(--bhp-shadow-1); }
body.cards-flat .bhp-card { background: var(--bhp-tile); }

.bhp-module__title { font-size: var(--bhp-h4); margin: 0 0 14px; }
.bhp-module__body > *:last-child { margin-bottom: 0; }
.bhp-module ul { padding-left: 18px; }
.bhp-module ul:is(.menu,.mod-menu), .bhp-module ul.mod-menu { list-style: none; padding: 0; margin: 0; }

.bhp-module ul.mod-menu a,
.bhp-module ul:is(.menu,.mod-menu) a {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--bhp-text);
	transition: background var(--bhp-motion) ease, color var(--bhp-motion) ease;
}

.bhp-module ul.mod-menu a:hover,
.bhp-module ul:is(.menu,.mod-menu) a:hover { background: var(--bhp-soft); color: var(--bhp-link); text-decoration: none; }

.bhp-module ul.mod-menu li.active > a,
.bhp-module ul:is(.menu,.mod-menu) li.active > a { background: var(--bhp-warm); color: var(--bhp-heading); font-weight: 600; }

.bhp-hero > * { margin: 0; }
.bhp-breadcrumbs { padding: 20px 0 0; font-size: .875rem; }

/* ==================================================================
   8. Przyciski i formularze
   ================================================================== */
.bhp-btn,
.btn,
button.btn,
input[type="submit"],
input[type="button"],
a.readmore,
.readmore .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: var(--bhp-radius-btn);
	background: var(--bhp-primary);
	color: var(--bhp-on-primary);
	font: inherit;
	font-weight: 700;
	font-size: .9375rem;
	line-height: 1.25;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background var(--bhp-motion) ease, border-color var(--bhp-motion) ease, box-shadow var(--bhp-motion) ease, transform var(--bhp-motion) ease;
}

.bhp-btn:hover, .btn:hover, input[type="submit"]:hover, a.readmore:hover {
	background: var(--bhp-primary-hover);
	color: var(--bhp-on-primary);
	text-decoration: none;
}

.bhp-btn:active, .btn:active { transform: translateY(1px); }
.bhp-btn .bhp-ico { width: 18px; height: 18px; }

.bhp-btn--lg { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.bhp-btn--sm { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.bhp-btn--block { display: flex; width: 100%; }

.bhp-btn--primary { background: var(--bhp-primary); color: var(--bhp-on-primary); }

.bhp-btn--dark, .bhp-btn--dark:hover { background: var(--bhp-graphite); color: #fff; }
.bhp-btn--dark:hover { background: #343941; }

.bhp-btn--success, .bhp-btn--success:hover, .btn-success { background: var(--bhp-ok); color: #fff; }
.bhp-btn--success:hover, .btn-success:hover { background: #0c6641; color: #fff; }

.bhp-btn--outline,
.bhp-btn--ghost,
.btn-secondary,
.btn.btn-secondary,
.btn-link {
	background: var(--bhp-surface);
	color: var(--bhp-heading);
	border-color: var(--bhp-btn-line);
}

.bhp-btn--outline:hover,
.bhp-btn--ghost:hover,
.btn-secondary:hover,
.btn-link:hover { background: var(--bhp-soft); color: var(--bhp-heading); border-color: var(--bhp-btn-line); }

.bhp-btn--ghost-dark { background: transparent; color: #eef0f2; border-color: #4a5059; }
.bhp-btn--ghost-dark:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #6a7079; }

.btn-danger { background: var(--bhp-danger); color: #fff; }
.btn-small, .btn-sm { min-height: 36px; padding: 0 14px; font-size: .8125rem; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"], input[type="date"],
select, textarea, .inputbox, .form-control, .form-select {
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--bhp-text);
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-btn-line);
	border-radius: var(--bhp-radius-btn);
	transition: border-color var(--bhp-motion) ease, box-shadow var(--bhp-motion) ease;
}

input:focus, select:focus, textarea:focus, .form-control:focus {
	outline: 0;
	border-color: var(--bhp-primary);
	box-shadow: 0 0 0 3px var(--bhp-primary-a16);
}

textarea { min-height: 140px; resize: vertical; }

select, .form-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 38px;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--bhp-primary); }
label { display: inline-block; margin-bottom: 6px; font-weight: 600; font-size: .9375rem; color: var(--bhp-heading); }

.control-group, .mb-3 { margin-bottom: 16px; }
.control-label { display: block; margin-bottom: 6px; }
.controls { margin: 0; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check label, .form-check-label { margin: 0; font-weight: 500; }
.star { color: var(--bhp-danger); }
.form-text, .form-control-feedback { font-size: .8125rem; color: var(--bhp-muted); }
.invalid { border-color: var(--bhp-danger) !important; }
label.invalid, .form-control-feedback.invalid { color: var(--bhp-danger); }

/* Pole hasła z przyciskiem pokaż/ukryj (Joomla 4+) */
.input-group { display: flex; align-items: stretch; }
.input-group > .form-control { flex: 1 1 auto; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-password-toggle,
.input-group > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; background: var(--bhp-soft); color: var(--bhp-text); border: 1px solid var(--bhp-btn-line); border-left: 0; }
.input-group-text { display: inline-flex; align-items: center; padding: 0 12px; background: var(--bhp-soft); border: 1px solid var(--bhp-btn-line); }

/* ==================================================================
   9. Zgodność z markupem rdzenia Joomla (J4+ / Bootstrap 5)
   ================================================================== */
.row { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; }
.row > * { padding-left: 12px; padding-right: 12px; width: 100%; min-width: 0; }

@media (min-width: 768px) {
	.row > .col-md-3 { width: 25%; }
	.row > .col-md-4 { width: 33.333%; }
	.row > .col-md-6 { width: 50%; }
	.row > .col-md-8 { width: 66.666%; }
	.row > .col-md-9 { width: 75%; }
}

.float-start { float: left; }
.float-end { float: right; }
.clearfix::after { content: ""; display: table; clear: both; }
.hide, .hidden, .d-none { display: none !important; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.list-unstyled { list-style: none; padding-left: 0; }
.visually-hidden-focusable:not(:focus):not(:focus-within) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; }
.w-100 { width: 100%; }

.card { background: var(--bhp-surface); border: 1px solid var(--bhp-line); border-radius: var(--bhp-card-radius); }
.card-body { padding: 24px; }
.card-header { padding: 16px 24px; border-bottom: 1px solid var(--bhp-line-2); font-weight: 700; }

/* Komunikaty systemowe (joomla-alert) */
#system-message-container { margin-bottom: var(--bhp-gap); }
#system-message-container:empty { display: none; }

joomla-alert, .alert {
	position: relative;
	display: block;
	padding: 14px 44px 14px 18px;
	border-radius: 14px;
	border: 1px solid var(--bhp-line);
	border-left-width: 4px;
	background: var(--bhp-surface);
	margin-bottom: 16px;
	color: var(--bhp-text);
}

joomla-alert .alert-heading, .alert h4, .alert .alert-heading { margin: 0 0 4px; font-size: 1rem; font-family: var(--bhp-font); }
joomla-alert .alert-heading .visually-hidden + *, .alert-message { margin: 0; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
joomla-alert[type="success"], .alert-success { border-left-color: var(--bhp-ok); background: var(--bhp-ok-soft); }
joomla-alert[type="info"], .alert-info, .alert-notice { border-left-color: #0277bd; }
joomla-alert[type="warning"], .alert-warning { border-left-color: var(--bhp-primary); background: var(--bhp-warm); }
joomla-alert[type="danger"], joomla-alert[type="error"], .alert-error, .alert-danger { border-left-color: var(--bhp-danger); background: var(--bhp-danger-bg); }
joomla-alert .joomla-alert--close, .alert .close, .alert .btn-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 32px;
	height: 32px;
	background: none;
	border: 0;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: .6;
	border-radius: 8px;
}
joomla-alert .joomla-alert--close:hover { opacity: 1; background: var(--bhp-soft); }

/* Artykuły, blog, komponenty użytkownika */
.com-content-article, .item-page, .blog, .blog-featured, .contact, .com-contact, .categories-list, .category-list,
.com-users-login, .com-users-registration, .com-users-profile, .com-users-reset, .com-users-remind, .com-finder, .com-tags {
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
	padding: clamp(20px, 3vw, 36px);
}

.com-users-login, .com-users-reset, .com-users-remind { max-width: 520px; margin: 0 auto; }
.com-users-login .btn, .com-users-reset .btn, .com-users-remind .btn { width: 100%; }
.com-users-login__options { margin-top: 16px; }
.com-users-login__options.list-group, .com-users-login .list-group { display: flex; flex-direction: column; gap: 4px; list-style: none; padding: 0; }
.com-users-login .list-group-item { display: block; padding: 6px 0; border: 0; background: none; font-size: .9375rem; }

.page-header { margin-bottom: 20px; }
.page-header h1, .page-header h2 { margin: 0; }
.page-header h2 a { color: var(--bhp-heading); }

.article-info { font-size: .8125rem; color: var(--bhp-muted); margin-bottom: 16px; }
.article-info dd { display: inline-block; margin: 0 14px 0 0; }
.article-info .article-info-term { display: none; }

.blog-items { display: grid; gap: var(--bhp-gap); grid-template-columns: minmax(0, 1fr); }

@media (min-width: 768px) {
	.blog-items.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.blog-items.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.blog-item { background: var(--bhp-tile); border: 1px solid var(--bhp-line-2); border-radius: var(--bhp-radius); padding: 20px; }
.readmore { margin-top: 16px; }
.item-image img { border-radius: var(--bhp-radius-sm); }
.float-start.item-image { margin: 0 20px 12px 0; max-width: 45%; }
.float-end.item-image { margin: 0 0 12px 20px; max-width: 45%; }

/* Paginacja (rdzeń i OSCampus) */
.pagination, .osc-pagination { margin-top: var(--bhp-gap); }

.pagination, .pagination ul, .osc-pagination-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin-left: 0;
	margin-right: 0;
	justify-content: center;
}

.pagination .page-link, .pagination li > a, .pagination li > span,
.osc-pagination-list li > a, .osc-pagination-list li > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--bhp-line);
	background: var(--bhp-surface);
	color: var(--bhp-text);
	font-size: .9375rem;
}

.pagination .page-link:hover, .pagination li > a:hover, .osc-pagination-list a:hover { border-color: var(--bhp-btn-line); background: var(--bhp-soft); text-decoration: none; }
.pagination .active .page-link, .pagination li.active > span, .osc-pagination-list li > span { background: var(--bhp-graphite); border-color: var(--bhp-graphite); color: #fff; }
.counter, .com-content-category-blog__counter { text-align: center; color: var(--bhp-muted); font-size: .875rem; margin-top: 10px; }

/* Okruszki (mod_breadcrumbs J4+) */
.breadcrumb, .mod-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: .875rem;
	color: var(--bhp-muted);
}

.breadcrumb-item, .mod-breadcrumbs__item { display: flex; align-items: center; gap: 6px; }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--bhp-btn-line); }
.breadcrumb a { color: var(--bhp-muted); }
.breadcrumb a:hover { color: var(--bhp-link); }
.breadcrumb .active { color: var(--bhp-text); font-weight: 500; }
.mod-breadcrumbs__here, .mod-breadcrumbs__divider { display: none; }

/* Tabele */
table { width: 100%; border-collapse: collapse; }
.table { background: var(--bhp-surface); }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--bhp-line-2); text-align: left; vertical-align: top; }
th { font-weight: 700; color: var(--bhp-heading); font-size: .9375rem; }
.table-responsive { overflow-x: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0; }
.tags a, .tags .badge { display: inline-block; padding: 4px 12px; border-radius: var(--bhp-radius-pill); background: var(--bhp-soft); color: var(--bhp-text); font-size: .8125rem; }
.tags a:hover { text-decoration: none; background: var(--bhp-warn-bg); color: var(--bhp-warn-ink); }

.badge { display: inline-block; padding: 2px 10px; border-radius: var(--bhp-radius-pill); background: var(--bhp-soft); font-size: .75rem; font-weight: 700; }

.bhp-header__search input { min-width: 180px; min-height: 40px; padding: 6px 14px; border-radius: var(--bhp-radius-pill); }
.bhp-header__search .bhp-module { margin: 0; }

/* ==================================================================
   9a. Ikony rdzenia Joomli, pola z ikoną, formularze kont
   Szablon nie ładuje czcionki ikon (Font Awesome), więc ikony używane w formularzach rdzenia
   (kalendarz, pokaż/ukryj hasło, użytkownik, kłódka, e-mail, rejestracja) są maskami SVG
   w kolorze tekstu. Pole z przyciskiem lub ikoną (.input-group) ma jedną ramkę, ikona jest w środku.
   ================================================================== */
:is(.icon-calendar, .icon-eye, .icon-eye-slash, .icon-user, .icon-lock, .icon-envelope, .icon-mail, .icon-register, .icon-key) {
	display: inline-block;
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	vertical-align: -.2em;
	background-color: currentColor;
	-webkit-mask: var(--bhp-i) center / contain no-repeat;
	mask: var(--bhp-i) center / contain no-repeat;
}
.icon-calendar { --bhp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='17' rx='2.5'/%3E%3Cpath d='M16 2.5v4M8 2.5v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E"); }
.icon-eye { --bhp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.icon-eye-slash { --bhp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 4.2A10 10 0 0 1 12 4c6.4 0 10 8 10 8a17.6 17.6 0 0 1-2.2 3.2M6.6 6.6C3.7 8.5 2 12 2 12s3.6 7 10 7a9.6 9.6 0 0 0 5.4-1.6M14.1 14.1a3 3 0 0 1-4.2-4.2M2 2l20 20'/%3E%3C/svg%3E"); }
.icon-user { --bhp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.icon-lock { --bhp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='11' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E"); }
:is(.icon-envelope, .icon-mail) { --bhp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.icon-key { --bhp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='m10.7 12.3 9.8-9.8M17 6l3 3M14.5 8.5l2 2'/%3E%3C/svg%3E"); }
.icon-register { --bhp-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M2 21a7 7 0 0 1 14 0M19 8v6M16 11h6'/%3E%3C/svg%3E"); }

/* Ikona w przycisku klucza dostępu (WebAuthn) - SVG bez wymiarów rozciągał się na cały moduł. */
.plg_system_webauthn_login_button svg, .bhp-login__extra svg { width: 20px; height: 20px; flex: none; fill: currentColor; }

/* Pole z ikoną / przyciskiem: jedna ramka, fokus na całości */
.input-group {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-btn-line);
	border-radius: var(--bhp-radius-btn);
	transition: border-color var(--bhp-motion) ease, box-shadow var(--bhp-motion) ease;
}
.input-group:focus-within { border-color: var(--bhp-primary); box-shadow: 0 0 0 3px var(--bhp-primary-a16); }
.input-group:has(.invalid) { border-color: var(--bhp-danger); }
.input-group > .form-control,
.input-group > input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	border: 0 !important;
	border-radius: var(--bhp-radius-btn);
	background: transparent;
	box-shadow: none !important;
}
.input-group > .btn {
	min-height: 0;
	margin: 4px;
	border: 0;
	border-radius: calc(var(--bhp-radius-btn) - 4px);
}
.input-group > .btn.input-password-toggle,
.field-calendar .input-group > .btn,
.input-group > .input-group-text {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	padding: 0;
	background: transparent;
	color: var(--bhp-muted);
	border: 0;
	box-shadow: none;
}
.input-group > .btn.input-password-toggle:hover,
.field-calendar .input-group > .btn:hover { background: var(--bhp-soft); color: var(--bhp-heading); }
.input-group > .btn.input-password-toggle:focus-visible,
.field-calendar .input-group > .btn:focus-visible { outline: 2px solid var(--bhp-primary); outline-offset: 0; color: var(--bhp-heading); }
.input-group > .input-group-text { width: auto; padding-left: 14px; }
.input-group > .input-group-text + .form-control { padding-left: 10px; }
.field-calendar .input-group > .btn .icon-calendar { width: 1.2rem; height: 1.2rem; }

/* Siła hasła (pasek pod polem, Joomla dodaje <meter>) */
.password-group > meter {
	display: block;
	width: 100%;
	height: 6px;
	margin-top: 8px;
	border: 0;
	border-radius: 999px;
	background: var(--bhp-soft);
	-webkit-appearance: none;
	appearance: none;
}
.password-group > meter::-webkit-meter-bar { height: 6px; border: 0; border-radius: 999px; background: var(--bhp-soft); }
.password-group > meter::-webkit-meter-optimum-value { border-radius: 999px; background: var(--bhp-ok); }
.password-group > meter::-webkit-meter-suboptimum-value { border-radius: 999px; background: var(--bhp-primary); }
.password-group > meter::-webkit-meter-even-less-good-value { border-radius: 999px; background: var(--bhp-danger); }
.password-group > meter::-moz-meter-bar { border-radius: 999px; background: var(--bhp-primary); }
.password-group > meter + div { margin-top: 4px; font-size: .75rem; color: var(--bhp-muted); text-align: left !important; }

/* Zestawy pól w widokach kont: bez ramki z przeglądarki */
:is(.com-users-registration, .com-users-login, .com-users-reset, .com-users-remind, .com-users-profile) fieldset { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
:is(.com-users-registration, .com-users-login, .com-users-reset, .com-users-remind, .com-users-profile) legend {
	margin: 0 0 12px;
	padding: 0;
	font-family: var(--bhp-font-heading);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--bhp-heading);
}

/* Logowanie i rejestracja: nagłówek, sekcje, siatka pól */
.bhp-auth { max-width: 520px; margin: 0 auto; }
.bhp-auth--wide { max-width: 820px; }
.bhp-auth__head { margin-bottom: 4px; }
.bhp-auth__title { margin: 0 0 6px; font-size: var(--bhp-h2); line-height: 1.15; }
.bhp-auth__lead { margin: 0; color: var(--bhp-muted); }
.bhp-auth__section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--bhp-line); }
.bhp-auth__section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 4px;
	font-size: 1.125rem;
	line-height: 1.3;
}
.bhp-auth__step {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--bhp-primary-container);
	color: var(--bhp-on-primary-container);
	font: 800 .875rem/1 var(--bhp-font);
}
.bhp-auth__hint { margin: 0 0 16px; font-size: .875rem; color: var(--bhp-muted); }
.bhp-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 18px; }
.bhp-form-grid > .control-group { min-width: 0; }
@media (min-width: 640px) {
	.bhp-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bhp-form-grid > .bhp-field--wide { grid-column: 1 / -1; }
}
.bhp-auth__rules > div {
	margin-bottom: 14px;
	padding: 8px 12px;
	font-size: .8125rem;
	color: var(--bhp-muted) !important;
	background: var(--bhp-surface-2);
	border: 1px dashed var(--bhp-line);
	border-radius: var(--bhp-radius-sm);
}
.bhp-auth__rules strong { color: var(--bhp-heading); }
.bhp-auth .control-group label { font-size: .875rem; }
.bhp-auth .form-control::placeholder { color: var(--bhp-muted); opacity: .7; }

/* Zgody: tekst wtyczki, link do dokumentu i wybór jako dwie "pigułki" */
.bhp-consent .alert { margin: 0 0 12px; font-size: .875rem; }
.bhp-consent fieldset { margin: 0; }
.bhp-consent .control-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 8px; }
.bhp-consent .control-label { margin: 0; font-weight: 700; }
.bhp-consent .control-label a { font-weight: 700; }
.bhp-consent .radio:not(fieldset) { display: flex; flex-wrap: wrap; gap: 8px; }
.bhp-consent .form-check {
	min-height: 40px;
	padding: 0 16px 0 12px;
	border: 1px solid var(--bhp-btn-line);
	border-radius: var(--bhp-radius-pill);
	background: var(--bhp-surface);
	cursor: pointer;
	transition: border-color var(--bhp-motion) ease, background var(--bhp-motion) ease;
}
.bhp-consent .form-check:has(input:checked) { border-color: var(--bhp-primary); background: var(--bhp-primary-container); }
.bhp-consent .form-check:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--bhp-primary-a16); }
.bhp-consent .form-check label { cursor: pointer; }

/* Stopka formularza: CAPTCHA, przycisk, przełącznik logowanie / rejestracja */
.bhp-auth__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--bhp-line);
}
.bhp-auth__captcha .control-group { margin: 0; }
.bhp-auth__captcha .control-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.bhp-auth altcha-widget {
	--altcha-border-radius: var(--bhp-radius-btn);
	--altcha-color-border: var(--bhp-btn-line);
	--altcha-color-base: var(--bhp-surface);
	--altcha-color-text: var(--bhp-text);
	--altcha-max-width: 320px;
}
.bhp-auth__required { margin: 0; font-size: .8125rem; color: var(--bhp-muted); }
.bhp-auth__switch { margin: 0; font-size: .9375rem; color: var(--bhp-muted); }
.bhp-auth__switch a { font-weight: 700; }
.com-users-registration.bhp-auth .com-users-registration__register { min-width: 220px; }
@media (max-width: 639px) {
	.bhp-auth__footer { align-items: stretch; }
	.com-users-registration.bhp-auth .com-users-registration__register { width: 100%; }
}

/* Logowanie: moduł i strona */
.bhp-login .control-group { margin-bottom: 14px; }
.bhp-login .control-group label { font-size: .875rem; }
.bhp-login fieldset { margin: 0; }
.bhp-login__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 2px 0 16px;
	font-size: .9375rem;
}
.bhp-login__forgot { font-size: .875rem; font-weight: 600; }
.bhp-login__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bhp-muted);
}
.bhp-login__or::before, .bhp-login__or::after { content: ""; flex: 1; height: 1px; background: var(--bhp-line); }
.bhp-login__extra { font-weight: 600; }
.bhp-login__extra + .bhp-login__extra, .bhp-login .mod-login__submit + .mod-login__submit { margin-top: 10px; }
.bhp-login__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	font-size: .875rem;
	color: var(--bhp-muted);
}
.bhp-login__links a { font-weight: 600; }
.com-users-login .bhp-login__links { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--bhp-line); }
.bhp-login__text p { margin: 0 0 14px; font-size: .9375rem; color: var(--bhp-muted); }
.bhp-module .bhp-login__links { padding-left: 0; }
.bhp-login__code a { white-space: nowrap; }

/* Rejestracja: podpowiedź o kodzie dostępu firmy / informacja, że rejestracja jest z kodem */
.bhp-auth__notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0 0;
	padding: 12px 16px;
	font-size: .9375rem;
	background: var(--bhp-warm);
	border: 1px solid var(--bhp-primary-a16);
	border-radius: var(--bhp-radius-sm);
}
.bhp-auth__notice .icon-key { margin-top: 3px; color: var(--bhp-link); }
.bhp-auth__notice a { font-weight: 700; white-space: nowrap; }
.bhp-auth__notice--ok { background: var(--bhp-ok-soft); border-color: rgba(15, 122, 79, .22); }
.bhp-auth__notice--ok .icon-key { color: var(--bhp-ok); }
.com-users-login .bhp-auth__head { margin-bottom: 22px; }

/* Moje dane (com_bhposcampus, widok account): dane tylko do odczytu, data urodzenia, zmiana hasła */
.bhp-account-page__data { display: grid; gap: 10px 18px; margin: 0 0 12px; }
.bhp-account-page__data > div { min-width: 0; padding: 10px 14px; background: var(--bhp-surface-2); border: 1px solid var(--bhp-line); border-radius: var(--bhp-radius-sm); }
.bhp-account-page__data dt { margin: 0 0 2px; font-size: .8125rem; font-weight: 400; color: var(--bhp-muted); }
.bhp-account-page__data dd { margin: 0; font-weight: 700; color: var(--bhp-heading); overflow-wrap: anywhere; }
@media (min-width: 640px) { .bhp-account-page__data { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bhp-account-page__form { margin-top: 18px; }
.bhp-account-page__form .btn { min-width: 220px; }
@media (max-width: 639px) { .bhp-account-page__form .btn { width: 100%; } }
.bhp-account-page__mail { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--bhp-line); }

/* Moduł logowania bez karty (styl modułu "bez obramowania") dostaje własną kartę; w karcie - bez podwójnej ramki. */
.mod-login.bhp-login {
	padding: 22px;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
}
.bhp-card .mod-login.bhp-login { padding: 0; background: none; border: 0; border-radius: 0; }

/* Strona logowania: pola renderuje Joomla - ikona użytkownika w tle pola, kłódka przed polem hasła */
.com-users-login #username {
	padding-left: 42px;
	background: var(--bhp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8189' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") 14px 50% / 18px no-repeat;
}
.com-users-login .password-group .input-group::before {
	content: "";
	flex: none;
	width: 18px;
	margin-left: 14px;
	background-color: var(--bhp-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='11' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E") center / 18px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='11' rx='2.5'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.com-users-login .password-group .input-group > .form-control { padding-left: 10px; }

/* ==================================================================
   10. Stopka, powrót na górę, pasek postępu
   ================================================================== */
.bhp-footer {
	position: relative;
	margin-top: auto;
	background: var(--bhp-footer-bg);
	color: var(--bhp-footer-text);
	font-size: .9375rem;
	line-height: 1.6;
}

/* Cienki pasek koloru marki u góry - oddziela stopkę od treści bez ciężkiej krawędzi. */
.bhp-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--bhp-primary); }

.bhp-footer a { color: var(--bhp-footer-text); text-decoration: none; transition: color var(--bhp-motion) ease; }
.bhp-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bhp-footer a:focus-visible { outline: 2px solid var(--bhp-primary); outline-offset: 3px; border-radius: 4px; }
.bhp-footer h1, .bhp-footer h2, .bhp-footer h3, .bhp-footer h4, .bhp-footer h5, .bhp-footer h6 { color: #fff; }
.bhp-footer .bhp-module { margin: 0; }
.bhp-footer .bhp-module__title { font-family: var(--bhp-font); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; color: #fff; }
.bhp-footer ul.mod-menu, .bhp-footer ul:is(.menu,.mod-menu) { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bhp-footer ul.mod-menu a, .bhp-footer ul:is(.menu,.mod-menu) a { padding: 0; color: var(--bhp-footer-text); background: none; }

/* Cztery równe kolumny (telefon: jedna, tablet: dwie) - symetrycznie na każdej szerokości. */
.bhp-footer__grid {
	display: grid;
	gap: 36px 32px;
	grid-template-columns: minmax(0, 1fr);
	padding-top: 56px;
	padding-bottom: 48px;
}

@media (min-width: 640px) { .bhp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .bhp-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 48px; } }

.bhp-footer__col { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.bhp-footer__title { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.bhp-footer__name { margin: 0 0 12px; font-family: var(--bhp-font-heading); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: .01em; color: #fff; }
.bhp-footer__tagline { margin: 0; max-width: 34ch; color: var(--bhp-footer-muted); }
.bhp-footer__brand > .bhp-module { margin-top: 16px; }

.bhp-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bhp-footer__list a { display: inline-block; padding: 2px 0; }

.bhp-footer__contact { display: flex; flex-direction: column; gap: 12px; font-style: normal; }
.bhp-footer__contact a, .bhp-footer__address { display: inline-flex; align-items: flex-start; gap: 10px; overflow-wrap: anywhere; }
.bhp-footer__contact svg { flex-shrink: 0; margin-top: 3px; color: var(--bhp-primary); }
.bhp-footer__address { color: var(--bhp-footer-muted); }

.bhp-footer__bar { border-top: 1px solid var(--bhp-footer-outline); }
.bhp-footer__bar-in {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	padding-bottom: 24px;
	font-size: 13px;
	color: var(--bhp-footer-muted);
}

.bhp-footer__copy, .bhp-footer__meta { margin: 0; }
/* Pływające przyciski (powrót na górę, uwagi) w prawym dolnym rogu nie zasłaniają tekstu paska. */
@media (min-width: 640px) { .bhp-footer__bar-in { padding-right: 80px; } }
.bhp-footer__menu ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.bhp-footer__menu a, .bhp-footer__bar a { color: var(--bhp-footer-muted); }
.bhp-footer__menu a:hover, .bhp-footer__bar a:hover { color: #fff; }

@media (max-width: 639px) {
	.bhp-footer__bar-in { flex-direction: column; align-items: flex-start; }
	/* Miejsce na pływające przyciski w prawym dolnym rogu (powrót na górę, uwagi). */
	.bhp-footer__bar-in { padding-bottom: 88px; }
}

.bhp-totop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 48px;
	height: 48px;
	z-index: 90;
	border: 0;
	border-radius: var(--bhp-radius-pill);
	background: var(--bhp-graphite);
	color: #fff;
	box-shadow: var(--bhp-shadow-2);
	cursor: pointer;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity var(--bhp-motion) ease, transform var(--bhp-motion) ease, background var(--bhp-motion) ease;
}

.bhp-totop[hidden] { display: none; }
.bhp-totop.is-visible { opacity: 1; transform: none; }
.bhp-totop:hover { background: #343941; }

.bhp-totop span {
	display: block;
	width: 10px;
	height: 10px;
	margin: 0 auto;
	border-left: 2px solid currentColor;
	border-top: 2px solid currentColor;
	transform: rotate(45deg) translate(2px, 2px);
}

.bhp-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.bhp-progress span { display: block; height: 100%; width: 0; background: var(--bhp-primary); transition: width 80ms linear; }

/* ==================================================================
   11. Elementy wspólne widoków platformy (BHP)
   ================================================================== */
.bhp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bhp-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bhp-link); }
.bhp-eyebrow--muted { color: var(--bhp-muted); }
.bhp-page-title { margin: 0; font-size: var(--bhp-h1); line-height: 1.1; }
.bhp-lead { margin: 0; color: var(--bhp-muted); font-size: 1.0625rem; max-width: 820px; }
.bhp-lead p:last-child { margin-bottom: 0; }
.bhp-muted { color: var(--bhp-muted); }
.bhp-section-title { font-size: 24px; margin: 0 0 4px; }

.bhp-page-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }

.bhp-page-head--band {
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
	padding: clamp(22px, 3vw, 40px);
}

.bhp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--bhp-muted); }
.bhp-crumbs a { color: var(--bhp-link); }

.bhp-chip { display: inline-flex; align-self: flex-start; padding: 4px 12px; border-radius: var(--bhp-radius-pill); font-size: 13px; font-weight: 600; background: var(--bhp-soft); color: var(--bhp-text); }
.bhp-chip--dark { background: #3a2615; color: #ffb877; }

.bhp-tag { display: inline-flex; align-self: flex-start; padding: 2px 10px; border-radius: 6px; background: var(--bhp-soft); font-size: 13px; color: #4b5159; }

.bhp-status { display: inline-flex; padding: 4px 10px; border-radius: var(--bhp-radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bhp-status--done { background: var(--bhp-ok-bg); color: var(--bhp-ok-ink); }
.bhp-status--progress { background: var(--bhp-warn-bg); color: var(--bhp-warn-ink); }
.bhp-status--new { background: var(--bhp-soft); color: #4b5159; }

.bhp-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.bhp-pills li { padding: 4px 12px; border-radius: var(--bhp-radius-pill); background: var(--bhp-soft); color: #4b5159; }

.bhp-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--bhp-link); text-decoration: none; }
.bhp-more:hover { text-decoration: none; gap: 9px; }

.bhp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.bhp-panel {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(20px, 2.4vw, 30px);
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
}

.bhp-panel > h2 { font-size: 22px; margin: 0; }
.bhp-panel > *:last-child { margin-bottom: 0; }
.bhp-panel--warm { background: var(--bhp-warm); border-color: var(--bhp-warm-line); }
.bhp-panel--ok { background: var(--bhp-ok-soft); border-color: var(--bhp-ok-line); gap: 10px; }
.bhp-panel--ok > strong { color: var(--bhp-ok-ink); }
.bhp-panel--ok ul { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

.bhp-block { display: flex; flex-direction: column; gap: 20px; }
.bhp-block__head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; }
.bhp-block__head h2 { margin: 0; font-size: 26px; }
.bhp-panel .bhp-block__head h2 { font-size: 22px; }

.bhp-split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .bhp-split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }

.bhp-help-links { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }

.bhp-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 24px;
	text-align: center;
	background: var(--bhp-surface);
	border: 1px dashed var(--bhp-btn-line);
	border-radius: var(--bhp-card-radius);
	color: var(--bhp-muted);
}

.bhp-empty p { margin: 0; max-width: 520px; }
.bhp-empty--filter { margin-top: 24px; }
.bhp-empty[hidden] { display: none; }

.bhp-note {
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 28px 0 0;
	padding: 18px 22px;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: 16px;
	color: var(--bhp-muted);
	font-size: 15px;
}

.bhp-note a { font-weight: 600; }

/* Pasek postępu i koło */
.bhp-bar { display: block; height: 8px; border-radius: var(--bhp-radius-pill); background: var(--bhp-track); overflow: hidden; }
.bhp-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--bhp-primary); transition: width 400ms ease; }
.bhp-bar--ok > span { background: var(--bhp-ok); }

.bhp-progress-line { display: flex; flex-direction: column; gap: 8px; }
.bhp-progress-line__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--bhp-muted); }
.bhp-progress-line__meta strong { color: var(--bhp-heading); }

.bhp-ring { position: relative; flex-shrink: 0; width: var(--size, 140px); height: var(--size, 140px); }
.bhp-ring svg { display: block; }
.bhp-ring__track { fill: none; stroke: var(--bhp-track); }
.bhp-ring__bar { fill: none; stroke: var(--bhp-primary); stroke-linecap: round; transition: stroke-dasharray 600ms ease; }
.bhp-ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.bhp-ring__label strong { font-family: var(--bhp-font-heading); font-size: calc(var(--size, 140px) * .23); color: var(--bhp-heading); }
.bhp-ring__label span { font-size: 13px; color: var(--bhp-muted); }

/* Kafelek logo (obraz kursu = logo firmy) */
.bhp-logo-tile {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--bhp-tile);
	border-bottom: 1px solid var(--bhp-line-2);
}

.bhp-logo-tile--center { justify-content: center; }
.bhp-logo-tile__img { max-height: 64px; max-width: 70%; width: auto; object-fit: contain; }
.bhp-logo-tile__text { font-family: var(--bhp-font-heading); font-weight: 800; font-size: 20px; color: #3b4048; letter-spacing: .02em; text-align: center; padding: 0 12px; }
.bhp-logo-tile .bhp-status { position: absolute; top: 12px; right: 12px; }
/* Logo z wyrównaniem optycznym (wymiary z pliku, BhpTplOsc::logoSize) - bez limitów z CSS; contain chroni proporcje,
   gdy wąska karta zmniejszy pole. Logo bez wymiarów (np. SVG) - stałe pole, wpasowane, przy lewej krawędzi. */
.bhp-logo-tile__img.is-fitted { max-height: none; max-width: 100%; object-fit: contain; object-position: left center; flex-shrink: 1; min-width: 0; }
.bhp-course-card__logo .bhp-logo-tile__img:not(.is-fitted) { width: 200px; height: 64px; max-width: 70%; object-fit: contain; object-position: left center; }
.bhp-course-hero__logo .bhp-logo-tile__img.is-fitted { object-position: center; }

/* Klikalna cała karta: link rozciągnięty, przyciski nad nim */
.bhp-stretched { color: inherit; }
.bhp-stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bhp-stretched:hover { color: var(--bhp-link); text-decoration: none; }
.bhp-above { position: relative; z-index: 2; }

/* Siatka kart kursów */
.bhp-cards { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .bhp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .bhp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bhp-course-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
	overflow: hidden;
	transition: box-shadow var(--bhp-motion) ease, transform var(--bhp-motion) ease, border-color var(--bhp-motion) ease;
}

.bhp-course-card:hover { box-shadow: 0 10px 28px rgba(29, 32, 37, .08); border-color: var(--bhp-btn-line); transform: translateY(-2px); }
.bhp-course-card[hidden] { display: none; }
.bhp-course-card__logo { height: 104px; padding: 0 20px; }
.bhp-course-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex-grow: 1; }
.bhp-course-card__body h2, .bhp-course-card__body h3 { margin: 0; font-family: var(--bhp-font); font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: 0; }
.bhp-course-card__body .bhp-progress-line { margin-top: auto; }
.bhp-course-card__body > .bhp-btn { margin-top: 4px; }
.bhp-course-card__body > .bhp-meta + .bhp-btn { margin-top: 2px; }

.bhp-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--bhp-muted); margin-top: auto; }
.bhp-meta > span { display: inline-flex; align-items: center; gap: 6px; }

/* ==================================================================
   12. Pulpit kursanta (mycourses)
   ================================================================== */
.bhp-dash { display: flex; flex-direction: column; gap: 40px; }

.bhp-dash__intro { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-end; }
.bhp-dash__hello { display: flex; flex-direction: column; gap: 8px; flex: 1 1 380px; }

.bhp-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.bhp-stat { display: flex; flex-direction: column-reverse; padding: 14px 20px; min-width: 116px; background: var(--bhp-surface); border: 1px solid var(--bhp-line); border-radius: 14px; }
.bhp-stat dt { font-size: 13px; color: var(--bhp-muted); font-weight: 400; }
.bhp-stat dd { margin: 0; font-family: var(--bhp-font-heading); font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--bhp-heading); }
.bhp-stat--ok dd { color: var(--bhp-ok); }

@media (max-width: 575px) {
	.bhp-stats { width: 100%; flex-wrap: nowrap; gap: 8px; }
	.bhp-stat { flex: 1 1 0; min-width: 0; padding: 12px 14px; }
	.bhp-stat dd { font-size: 24px; }
	.bhp-stat dt { font-size: 12px; overflow-wrap: anywhere; }
}

.bhp-continue {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	background: var(--bhp-graphite);
	border-radius: 22px;
	overflow: hidden;
	color: #eef0f2;
}

@media (min-width: 992px) { .bhp-continue { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }

.bhp-continue__main { display: flex; flex-wrap: wrap; gap: 28px; padding: clamp(24px, 3.4vw, 44px); align-items: center; }
.bhp-continue__body { display: flex; flex-direction: column; gap: 14px; flex: 1 1 300px; min-width: 0; }
.bhp-continue__body h2 { margin: 0; color: #fff; font-size: clamp(21px, 1.2vw + 14px, 26px); line-height: 1.25; }
.bhp-continue__next { margin: 0; font-size: 15px; color: var(--bhp-graphite-text); }
.bhp-continue__next strong { color: #fff; }
.bhp-continue .bhp-ring__track { stroke: var(--bhp-graphite-line); }
.bhp-continue .bhp-ring__label strong { color: #fff; }
.bhp-continue .bhp-ring__label span { color: var(--bhp-graphite-muted); }

.bhp-continue__side { display: flex; flex-direction: column; gap: 4px; padding: clamp(24px, 3vw, 36px); background: var(--bhp-graphite-2); }
.bhp-continue__side .bhp-eyebrow { color: var(--bhp-graphite-muted); margin-bottom: 8px; }

.bhp-upnext { list-style: none; margin: 0; padding: 0; }
.bhp-upnext li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--bhp-graphite-line); }
.bhp-upnext li:last-child { border-bottom: 0; }
.bhp-upnext a { flex-grow: 1; color: #e3e5e8; font-size: 15px; }
.bhp-upnext a:hover { color: #fff; }
.bhp-upnext__meta { font-size: 13px; color: var(--bhp-graphite-muted); }

.bhp-upnext__no {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	background: var(--bhp-graphite-line);
	color: var(--bhp-graphite-text);
}

.bhp-upnext li.is-current .bhp-upnext__no { background: var(--bhp-primary); color: #1d2025; }

.bhp-cert-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 18px;
	padding: 16px 18px;
	background: var(--bhp-ok-soft);
	border: 1px solid var(--bhp-ok-line);
	border-radius: 14px;
}

.bhp-cert-row__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--bhp-ok); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bhp-cert-row__body { display: flex; flex-direction: column; flex: 1 1 220px; min-width: 0; }
.bhp-cert-row__body strong { color: var(--bhp-heading); }
.bhp-cert-row__body span { font-size: 14px; color: var(--bhp-muted); }

/* ==================================================================
   13. Katalog (pathways / pathway)
   ================================================================== */
.bhp-pathways { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .bhp-pathways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bhp-pathway {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
	overflow: hidden;
	transition: box-shadow var(--bhp-motion) ease, transform var(--bhp-motion) ease;
}

.bhp-pathway:hover { box-shadow: 0 10px 28px rgba(29, 32, 37, .08); transform: translateY(-2px); }
.bhp-pathway__img { height: 150px; }
.bhp-pathway__img .bhp-logo-tile__img { max-height: 110px; }
.bhp-pathway__body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px; flex-grow: 1; }
.bhp-pathway__body h2 { margin: 0; font-size: 22px; }
.bhp-pathway__text { color: var(--bhp-muted); font-size: 15px; }
.bhp-pathway__text > *:last-child { margin-bottom: 0; }
.bhp-pathway__body .bhp-more { margin-top: auto; }

.bhp-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.bhp-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 420px; }

.bhp-chip-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--bhp-btn-line);
	border-radius: var(--bhp-radius-pill);
	background: var(--bhp-surface);
	color: var(--bhp-text);
	font: inherit;
	font-size: 15px;
	cursor: pointer;
	transition: background var(--bhp-motion) ease, color var(--bhp-motion) ease, border-color var(--bhp-motion) ease;
}

.bhp-chip-btn span { opacity: .7; font-size: 14px; }
.bhp-chip-btn:hover { border-color: var(--bhp-graphite); }
.bhp-chip-btn[aria-pressed="true"] { background: var(--bhp-graphite); border-color: var(--bhp-graphite); color: #fff; font-weight: 700; }

.bhp-search { position: relative; display: flex; flex: 0 1 320px; min-width: 220px; }
.bhp-search .bhp-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bhp-muted); pointer-events: none; }
.bhp-search input { padding-left: 42px; }

/* ==================================================================
   14. Kurs (course)
   ================================================================== */
.bhp-course-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	align-items: center;
	padding: clamp(22px, 3vw, 40px);
	margin-bottom: 32px;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
}

.bhp-course-hero__logo { width: 220px; height: 140px; flex-shrink: 0; border: 1px solid var(--bhp-line-2); border-radius: 18px; padding: 16px; }
.bhp-course-hero__logo .bhp-logo-tile__img { max-height: 100px; max-width: 100%; }
.bhp-course-hero__body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 380px; min-width: 0; }
.bhp-course-hero__body .bhp-page-title { font-size: clamp(26px, 1.6vw + 16px, 36px); line-height: 1.15; }

@media (max-width: 575px) { .bhp-course-hero__logo { width: 100%; height: 110px; } }

.bhp-course-layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .bhp-course-layout { grid-template-columns: minmax(0, 1fr) 360px; } }

.bhp-course-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bhp-course-side { display: flex; flex-direction: column; gap: 16px; }

@media (min-width: 992px) { .bhp-course-side { position: sticky; top: 100px; } }

.bhp-progress-card { align-items: center; }
.bhp-progress-card .bhp-btn { width: 100%; }

.bhp-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; width: 100%; margin: 0; font-size: 14px; }
.bhp-facts dt { color: var(--bhp-muted); }
.bhp-facts dd { margin: 0; text-align: right; font-weight: 600; }

/* Moduły kursu - natywne <details> (działa bez JavaScriptu) */
.bhp-module-acc { background: var(--bhp-surface); border: 1px solid var(--bhp-line); border-radius: var(--bhp-card-radius); overflow: hidden; }

.bhp-module-acc > summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	list-style: none;
	transition: background var(--bhp-motion) ease;
}

.bhp-module-acc > summary::-webkit-details-marker { display: none; }
.bhp-module-acc > summary:hover { background: var(--bhp-tile); }

.bhp-module-acc__no {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-family: var(--bhp-font-heading);
	font-weight: 800;
	background: var(--bhp-soft);
	color: #4b5159;
}

.bhp-module-acc.is-done .bhp-module-acc__no { background: var(--bhp-ok-bg); color: var(--bhp-ok-ink); }
.bhp-module-acc.is-progress .bhp-module-acc__no { background: var(--bhp-warn-bg); color: var(--bhp-warn-ink); }

.bhp-module-acc__title { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.bhp-module-acc__title strong { font-size: 17px; color: var(--bhp-heading); line-height: 1.35; }
.bhp-module-acc__title span { font-size: 14px; color: var(--bhp-muted); }
.bhp-module-acc__chev { display: flex; color: var(--bhp-muted); transition: transform var(--bhp-motion) ease; }
.bhp-module-acc[open] .bhp-module-acc__chev { transform: rotate(180deg); }

.bhp-lesson-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bhp-line-2); }
.bhp-lesson-list li + li { border-top: 1px solid var(--bhp-soft); }

.bhp-lesson-list a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 22px;
	color: var(--bhp-text);
	font-size: 15px;
	text-decoration: none;
	transition: background var(--bhp-motion) ease;
}

.bhp-lesson-list a:hover { background: var(--bhp-tile); color: var(--bhp-heading); }
.bhp-lesson-list li.is-todo a { color: #6b7178; }
.bhp-lesson-list li.is-current a { background: var(--bhp-warm); color: var(--bhp-heading); font-weight: 700; }
.bhp-lesson-list__title { flex-grow: 1; min-width: 0; }
.bhp-lesson-list__meta { font-size: 13px; color: #6b7178; white-space: nowrap; }

.bhp-lesson-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 800;
	background: var(--bhp-soft);
	color: #8a9097;
}

.is-done > a .bhp-lesson-dot { background: var(--bhp-ok-bg); color: var(--bhp-ok-ink); }
.is-failed > a .bhp-lesson-dot { background: var(--bhp-danger-bg); color: var(--bhp-danger); }
.is-visited > a .bhp-lesson-dot { background: var(--bhp-warn-bg); color: var(--bhp-warn-ink); }
.is-current > a .bhp-lesson-dot { background: var(--bhp-primary); color: #1d2025; }

.bhp-course-desc { margin-top: 16px; }

.bhp-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bhp-files a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--bhp-line-2); border-radius: 12px; color: var(--bhp-text); }
.bhp-files a:hover { background: var(--bhp-tile); text-decoration: none; }
.bhp-files a span { display: flex; flex-direction: column; }
.bhp-files small { color: var(--bhp-muted); }

/* ==================================================================
   15. Lekcja (lesson)
   ================================================================== */
.bhp-lesson-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 12px 16px;
	margin-bottom: 24px;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: 16px;
}

.bhp-lesson-top__title { display: flex; flex-direction: column; flex: 1 1 280px; min-width: 0; line-height: 1.25; }
.bhp-lesson-top__course { font-size: 13px; color: var(--bhp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bhp-lesson-top__course strong { color: var(--bhp-link); font-weight: 700; }
.bhp-lesson .bhp-lesson-top__h1 { margin: 2px 0 0; font-size: clamp(18px, .6vw + 14px, 22px); line-height: 1.25; letter-spacing: -.005em; overflow: hidden; text-overflow: ellipsis; }
.bhp-lesson-top__pos { font-size: 14px; color: var(--bhp-muted); white-space: nowrap; }
.bhp-lesson-top__bar { width: 180px; max-width: 40vw; }

.bhp-lesson-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }

/* Spis lekcji chowany: z JavaScriptem domyślnie ukryty (treść na pełną szerokość), przycisk
   "Spis lekcji" go pokazuje; bez JavaScriptu spis jest zawsze widoczny. */
@media (min-width: 1080px) {
	.bhp-lesson-layout.has-side { grid-template-columns: 290px minmax(0, 1fr); }
	.has-js .bhp-lesson-layout.has-side:not(.is-side-open) { grid-template-columns: minmax(0, 1fr); }
}

.has-js .bhp-lesson-layout.has-side:not(.is-side-open) .bhp-lesson-side { display: none; }
.bhp-lesson-toggle { display: none; }
.has-js .bhp-lesson-toggle { display: inline-flex; }
.bhp-lesson-toggle[aria-expanded="true"] { background: var(--bhp-graphite); border-color: var(--bhp-graphite); color: #fff; }

.bhp-lesson-side {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 12px;
	background: var(--bhp-tile);
	border: 1px solid var(--bhp-line);
	border-radius: 16px;
	font-size: 15px;
	line-height: 1.4;
}

@media (min-width: 1080px) { .bhp-lesson-side { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; } }

.bhp-lesson-side .bhp-eyebrow { padding: 4px 10px 8px; font-size: 12px; }
.bhp-lesson-side ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bhp-lesson-side a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--bhp-text); text-decoration: none; }
.bhp-lesson-side a:hover { background: var(--bhp-surface); }
.bhp-lesson-side li.is-todo a { color: #6b7178; }
.bhp-lesson-side li.is-current a { background: var(--bhp-surface); color: var(--bhp-heading); font-weight: 700; box-shadow: 0 1px 0 var(--bhp-line), 0 0 0 1px var(--bhp-warm-line); }
.bhp-lesson-side .bhp-lesson-dot { width: 24px; height: 24px; font-size: 12px; }

.bhp-lesson-article {
	min-width: 0;
	padding: clamp(22px, 3.4vw, 48px);
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
}

.bhp-lesson-article > .bhp-eyebrow { font-size: 14px; letter-spacing: .02em; text-transform: none; }
.bhp-lesson-article > .bhp-page-title { margin: 6px 0 22px; font-size: clamp(26px, 1.8vw + 16px, 38px); line-height: 1.15; }

/* Treść lekcji i opisy: szerokość wiersza do czytania, czytelna typografia */
.bhp-prose { font-size: 17px; line-height: 1.7; color: #3d434b; max-width: 760px; }

/* Treść lekcji na całą szerokość karty - slidery, infografiki i ćwiczenia bez pustych pasów. */
.bhp-lesson .bhp-prose { max-width: none; }
.bhp-lesson .bhp-prose > * { max-width: 100%; }
.bhp-lesson .bhp-prose .ls-container, .bhp-lesson .bhp-prose .ls-wp-container,
.bhp-lesson .bhp-prose [class*="layerslider"], .bhp-lesson .bhp-prose [id^="layerslider"] { max-width: 100% !important; margin-left: auto; margin-right: auto; }
.bhp-lesson-article { padding: clamp(18px, 2.6vw, 36px); }
.bhp-prose h2 { font-size: 26px; margin-top: 1.6em; }
.bhp-prose h3 { font-size: 21px; margin-top: 1.4em; }
.bhp-prose h4 { font-size: 18px; margin-top: 1.2em; }
.bhp-prose img { border-radius: 14px; }
.bhp-prose ul, .bhp-prose ol { padding-left: 1.3em; }
.bhp-prose li { margin-bottom: .35em; }
.bhp-prose table { font-size: 15px; display: block; overflow-x: auto; }
.bhp-prose iframe, .bhp-prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 14px; }
.bhp-prose .alert, .bhp-prose .important, .bhp-prose .uwaga, .bhp-prose .note {
	display: block;
	padding: 18px 20px;
	margin: 1.4em 0;
	background: var(--bhp-warm);
	border: 1px solid var(--bhp-warm-line);
	border-radius: 14px;
	color: var(--bhp-text);
}

.bhp-lesson .oscampus-lesson-description { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--bhp-line-2); color: var(--bhp-muted); }
.bhp-lesson .oscampus-lesson-files { margin-top: 24px; }

.bhp-lesson-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--bhp-line); }

.bhp-lesson-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bhp-lesson-nav__spacer { flex-grow: 1; }

@media (max-width: 575px) {
	.bhp-hide-sm { display: none; }
	.bhp-lesson-nav .bhp-btn { padding: 0 14px; }
}

/* Nawigacja w nagłówku testu (układ OSCampusa: tytuł + przyciski) */
.oscampus-quiz .osc-section:first-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
/* Formularz testu: jego pierwszy blok (kontener pytań) też jest :first-child - pytania jedno pod drugim, nie w rzędzie. */
.bhp-site .oscampus-quiz form .osc-section { display: block; }
.bhp-site .osc-quiz-question { display: block; width: auto; float: none; clear: both; }
.oscampus-quiz .osc-lesson-title { margin: 0; font-size: clamp(24px, 1.6vw + 14px, 34px); }
.oscampus-quiz .osc-lesson-links .bhp-lesson-nav__spacer { display: none; }

/* Lekcja: tryb skupienia - treść ma się zmieścić w oknie bez przewijania. */
body.view-lesson .bhp-main { padding-top: 16px; }
body.view-lesson .bhp-header { --bhp-header-pad-y: 8px; --bhp-nav-pad-y: 20px; }
body.view-lesson .bhp-header__inner { min-height: 64px; }
body.view-lesson .bhp-brand__img { height: min(var(--bhp-logo-h), 40px); }
body.view-lesson .bhp-contact { display: none; }
body.view-lesson .bhp-breadcrumbs { display: none; }
body.view-lesson .bhp-lesson-top { margin-bottom: 14px; padding: 8px 12px; }
body.view-lesson .bhp-lesson-layout { gap: 16px; }
body.view-lesson .bhp-lesson-article { padding: clamp(12px, 1.6vw, 24px); }
body.view-lesson .bhp-lesson-bottom { margin-top: 16px; padding-top: 14px; }


/* Media w treści lekcji: skrypt dopasowuje je do wysokości okna (data-bhp-fit). */
.bhp-lesson [data-bhp-fit] iframe, .bhp-lesson [data-bhp-fit] video { display: block; margin-left: auto; margin-right: auto; }
.bhp-lesson [data-bhp-fit] .bhp-fitted { margin-left: auto !important; margin-right: auto !important; }
/* Ramka slidera (Creative Slider mierzy szerokość rodzica) - skrypt zwęża ją tak, by slider i nawigacja zmieściły się w oknie. */
.bhp-slider-frame { max-width: 100%; margin-left: auto; margin-right: auto; }

/* ==================================================================
   16. Zaświadczenia (mycertificates)
   ================================================================== */
.bhp-cert-list { display: flex; flex-direction: column; gap: 14px; }

.bhp-cert {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 24px;
	padding: 22px 26px;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
}

.bhp-cert__icon { width: 64px; height: 64px; border-radius: 16px; background: var(--bhp-ok-bg); color: var(--bhp-ok-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bhp-cert__body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 320px; min-width: 0; }
.bhp-cert__body h2 { margin: 0; font-family: var(--bhp-font); font-size: 19px; letter-spacing: 0; line-height: 1.35; }
.bhp-cert__body h2 a { color: var(--bhp-heading); }
.bhp-cert__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--bhp-muted); }
.bhp-cert__meta strong { color: var(--bhp-text); }

/* ==================================================================
   17. OSCampus - pozostałe widoki (testy, statystyki, komunikaty)
   ================================================================== */
.bhp-site .osc-container { color: var(--bhp-text); }

.bhp-site .osc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid var(--bhp-btn-line);
	border-radius: var(--bhp-radius-btn);
	background: var(--bhp-surface);
	color: var(--bhp-heading);
	font: inherit;
	font-weight: 700;
	font-size: .9375rem;
	line-height: 1.25;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: background var(--bhp-motion) ease, border-color var(--bhp-motion) ease;
}

.bhp-site .osc-btn:hover { background: var(--bhp-soft); color: var(--bhp-heading); text-decoration: none; }
.bhp-site .osc-btn-main, .bhp-site .osc-btn.bhp-btn--primary { background: var(--bhp-primary); border-color: var(--bhp-primary); color: var(--bhp-on-primary); }
.bhp-site .osc-btn-main:hover, .bhp-site .osc-btn.bhp-btn--primary:hover { background: var(--bhp-primary-hover); border-color: var(--bhp-primary-hover); color: var(--bhp-on-primary); }
.bhp-site .osc-btn.bhp-btn--dark { background: var(--bhp-graphite); border-color: var(--bhp-graphite); color: #fff; }
.bhp-site .osc-btn-active { background: var(--bhp-ok); border-color: var(--bhp-ok); color: #fff; }
.bhp-site .osc-btn-group { display: flex; flex-wrap: wrap; gap: 10px; }
.bhp-site .osc-btn-group > .osc-btn { margin: 0; border-radius: var(--bhp-radius-btn); }

.bhp-site .osc-label { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--bhp-radius-pill); background: var(--bhp-soft); color: #4b5159; font-size: 13px; font-weight: 600; }
.bhp-site .osc-label-passed, .bhp-site .osc-label-viewed { background: var(--bhp-ok-bg); color: var(--bhp-ok-ink); }
.bhp-site .osc-label-failed { background: var(--bhp-danger-bg); color: var(--bhp-danger); }
.bhp-site .osc-label-in-progress { background: var(--bhp-warn-bg); color: var(--bhp-warn-ink); }

.bhp-site [class*="osc-alert"] { padding: 16px 20px; border-radius: 14px; border: 1px solid var(--bhp-line); background: var(--bhp-surface); margin-bottom: 16px; }
.bhp-site .osc-alert-warning { background: var(--bhp-warm); border-color: var(--bhp-warm-line); }
.bhp-site .osc-alert-success { background: var(--bhp-ok-soft); border-color: var(--bhp-ok-line); }
.bhp-site .osc-alert-danger, .bhp-site .osc-alert-error { background: var(--bhp-danger-bg); border-color: #f3c3bf; }

.bhp-site .osc-positive-color { color: var(--bhp-ok) !important; }
.bhp-site .osc-negative-color { color: var(--bhp-danger) !important; }

/* Test: karta wyniku i pytania */
.bhp-site .osc-quiz-details {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	padding: 20px 24px;
	margin: 20px 0;
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
}

.bhp-site .osc-quiz-details > [class*="block"] { float: none; width: auto; margin: 0; padding: 0; }
.bhp-site .osc-quiz-details > .block8 { flex: 1 1 320px; }
.bhp-site .osc-quiz-big-icon { font-size: 40px; line-height: 1; }
.bhp-site .osc-quiz-percentage { font-family: var(--bhp-font-heading); font-size: 34px; font-weight: 700; color: var(--bhp-heading); display: block; line-height: 1.1; }
.bhp-site .osc-quiz-score-label { display: block; font-size: 13px; color: var(--bhp-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.bhp-site .osc-quiz-left, .bhp-site .osc-quiz-right { padding: 0; border: 0; background: none; }

.bhp-site .oscampus-quiz .oscampus-lesson-content,
.bhp-site .oscampus-quiz form > .osc-section {
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-line);
	border-radius: var(--bhp-card-radius);
	padding: clamp(18px, 3vw, 36px);
}

.bhp-site .osc-quiz-question { padding: 18px 0 22px; border-bottom: 1px solid var(--bhp-line-2); background: none; }
.bhp-site .osc-quiz-question:last-child { border-bottom: 0; }
.bhp-site .osc-quiz-question h4, .bhp-site .osc-quiz-question h3 { font-family: var(--bhp-font); font-size: 18px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.bhp-site .osc-quiz-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.bhp-site .osc-quiz-options li { margin: 0; padding: 0; background: none; border: 0; }

.bhp-site .osc-quiz-options label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--bhp-line);
	border-radius: 12px;
	background: var(--bhp-surface);
	font-weight: 500;
	color: var(--bhp-text);
	cursor: pointer;
	transition: border-color var(--bhp-motion) ease, background var(--bhp-motion) ease;
}

.bhp-site .osc-quiz-options label:hover { border-color: var(--bhp-btn-line); background: var(--bhp-tile); }
.bhp-site .osc-quiz-options input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.bhp-site .osc-quiz-options label:has(input:checked) { border-color: var(--bhp-primary); background: var(--bhp-warm); }
.bhp-site .osc-quiz-submit { margin-top: 20px; }
.bhp-site .osc-quiz-submit .osc-btn { min-height: 50px; padding: 0 28px; }
.bhp-site .osc-timer-alert { margin-top: 12px; }

/* Tabele wierszy OSCampusa (statystyki, listy w innych widokach) */
.bhp-site .osc-table { background: var(--bhp-surface); border: 1px solid var(--bhp-line); border-radius: 14px; overflow: hidden; }
.bhp-site .osc-table .osc-section { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--bhp-line-2); background: none; }
.bhp-site .osc-table .osc-section:last-child { border-bottom: 0; }
.bhp-site .osc-row-heading { background: var(--bhp-tile) !important; font-weight: 700; color: var(--bhp-heading); }

.bhp-site .osc-progress-bar { display: block; height: 8px; border-radius: var(--bhp-radius-pill); background: var(--bhp-track); overflow: hidden; }
.bhp-site .osc-progress-bar > span { display: block; height: 100%; background: var(--bhp-primary); border-radius: inherit; }
.bhp-site .osc-progress-bar > span > span { display: none; }
.bhp-site .osc-progress-bar-completed { background: var(--bhp-ok) !important; }

/* Nakładka "brak dostępu" do lekcji */
.bhp-site #signup-overlay { padding: 24px; background: var(--bhp-warm); border: 1px solid var(--bhp-warm-line); border-radius: 14px; text-align: center; }
.bhp-site #signup-overlay h3 { font-size: 19px; }


/* ==================================================================
   17a. Pomoc / FAQ (com_bhposcampus, widok help)
   ================================================================== */
.bhp-help { display: flex; flex-direction: column; gap: 28px; }
.bhp-help__hero { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 56px); border-radius: var(--bhp-radius-lg); background: var(--bhp-accent); color: var(--bhp-on-accent); }
.bhp-help__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f4b26b; }
.bhp-help__title { margin: 0; font-family: var(--bhp-font-heading); font-size: clamp(28px, 2.6vw + 14px, 44px); line-height: 1.1; color: inherit; }
.bhp-help__lead { margin: 0; max-width: 640px; color: rgba(255, 255, 255, .78); }
.bhp-help__search { position: relative; max-width: 680px; }
.bhp-help__search::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: #6b7078; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.bhp-help__search input { width: 100%; height: 56px; padding: 0 18px 0 48px; border: 0; border-radius: 14px; font-size: 16px; color: var(--bhp-heading); background: #ffffff; box-sizing: border-box; }
.bhp-help__search input:focus-visible { outline: 3px solid var(--bhp-primary); outline-offset: 2px; }
.bhp-help__popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.bhp-help__chip { min-height: 36px; padding: 4px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--bhp-radius-pill); background: rgba(255, 255, 255, .08); color: #ffffff; font: inherit; font-size: 14px; cursor: pointer; }
.bhp-help__chip:hover { background: rgba(255, 255, 255, .16); }
.bhp-help__layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.bhp-help__cats { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 10px; background: var(--bhp-surface); border: 1px solid var(--bhp-line); border-radius: var(--bhp-radius); }
.bhp-help__cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--bhp-heading); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.bhp-help__cat:hover { background: var(--bhp-surface-2); }
.bhp-help__cat.is-active { background: var(--bhp-accent); color: var(--bhp-on-accent); font-weight: 700; }
.bhp-help__count { font-size: 13px; font-weight: 400; opacity: .75; }
.bhp-help__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.bhp-help__list { background: var(--bhp-surface); border: 1px solid var(--bhp-line); border-radius: var(--bhp-radius); overflow: hidden; }
.bhp-help__item + .bhp-help__item { border-top: 1px solid var(--bhp-line-2); }
.bhp-help__item[hidden] { display: none; }
.bhp-help__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 20px 24px; list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; color: var(--bhp-heading); }
.bhp-help__q::-webkit-details-marker { display: none; }
.bhp-help__q:focus-visible { outline: 3px solid var(--bhp-primary); outline-offset: -3px; }
.bhp-help__qtext { display: flex; flex-direction: column; gap: 4px; }
.bhp-help__qcat { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bhp-link); }
.bhp-help__sign { position: relative; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--bhp-line); border-radius: 50%; }
.bhp-help__sign::before, .bhp-help__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--bhp-muted); transition: transform var(--bhp-motion, .2s) ease; }
.bhp-help__sign::after { transform: rotate(90deg); }
.bhp-help__item[open] > .bhp-help__q .bhp-help__sign::after { transform: rotate(0deg); }
.bhp-help__item[open] { background: var(--bhp-surface-2); }
.bhp-help__a { max-width: 760px; padding: 0 24px 4px; color: var(--bhp-text); }
.bhp-help__a > :first-child { margin-top: 0; }
.bhp-help__a img { max-width: 100%; height: auto; }
.bhp-help__vote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 24px 22px; font-size: 14px; color: var(--bhp-muted); }
.bhp-help__vbtn { min-height: 36px; padding: 4px 16px; border: 1px solid var(--bhp-btn-line, var(--bhp-line)); border-radius: var(--bhp-radius-pill); background: var(--bhp-surface); color: var(--bhp-heading); font: inherit; font-size: 14px; cursor: pointer; }
.bhp-help__vbtn:hover { border-color: var(--bhp-primary); }
.bhp-help__vbtn[disabled] { opacity: .5; cursor: default; }
.bhp-help__vmsg:empty { display: none; }
.bhp-help__noresults { margin: 0; padding: 40px 24px; text-align: center; color: var(--bhp-muted); }
.bhp-help__contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border: 1px solid var(--bhp-line); border-radius: var(--bhp-radius); background: var(--bhp-primary-container); }
.bhp-help__contact > div { display: flex; flex-direction: column; gap: 4px; }
.bhp-help__contact strong { font-family: var(--bhp-font-heading); font-size: 18px; color: var(--bhp-heading); }
.bhp-help__empty-all { padding: 40px; text-align: center; color: var(--bhp-muted); background: var(--bhp-surface); border: 1px solid var(--bhp-line); border-radius: var(--bhp-radius); }
@media (max-width: 767px) {
	.bhp-help__cats { flex-direction: row; overflow-x: auto; padding: 6px; }
	.bhp-help__cat { flex-shrink: 0; }
	.bhp-help__q { padding: 16px; font-size: 16px; }
	.bhp-help__a { padding: 0 16px 4px; }
	.bhp-help__vote { padding: 12px 16px 18px; }
	.bhp-help__contact .bhp-btn { width: 100%; justify-content: center; }
}

/* ==================================================================
   18. Strona błędu i tryb offline
   ================================================================== */
.bhp-error { text-align: center; padding: 12vh 20px; max-width: 620px; margin: 0 auto; }
.bhp-error__code { font-family: var(--bhp-font-heading); font-size: clamp(64px, 18vw, 140px); font-weight: 800; line-height: 1; margin: 0; color: var(--bhp-primary); }
.bhp-error__title { margin: 12px 0; }
.bhp-error__msg { color: var(--bhp-muted); margin-bottom: 28px; }
.bhp-error__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.bhp-error__trace { text-align: left; margin-top: 32px; font-size: .8125rem; overflow-x: auto; }

.bhp-offline { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 20px; }
.bhp-offline__box { width: 100%; max-width: 440px; background: var(--bhp-surface); border: 1px solid var(--bhp-line); border-radius: 22px; box-shadow: var(--bhp-shadow-2); padding: 36px; text-align: center; }
.bhp-offline__img { max-height: 90px; width: auto; margin-bottom: 20px; }
.bhp-offline__msg { color: var(--bhp-muted); margin-bottom: 24px; }
.bhp-offline__form { text-align: left; }
.bhp-offline__form .bhp-btn { width: 100%; }

.bhp-component__inner { padding-top: 24px; padding-bottom: 24px; }

/* ==================================================================
   19. Dostępność, druk, preferencje ruchu
   ================================================================== */
.bhp-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 300;
	padding: 12px 20px;
	background: var(--bhp-graphite);
	color: #fff;
	border-radius: 0 0 var(--bhp-radius-sm) 0;
}

.bhp-skip:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--bhp-primary); outline-offset: 2px; }
.bhp-stretched:focus-visible { outline: 0; }
.bhp-stretched:focus-visible::after { outline: 3px solid var(--bhp-primary); outline-offset: -3px; }

.sr-only, .element-invisible, .visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

html.smooth-scroll { scroll-behavior: smooth; }

body.no-motion *,
body.no-motion *::before,
body.no-motion *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
	.bhp-course-card:hover, .bhp-pathway:hover { transform: none; }
}

@media print {
	.bhp-header, .bhp-topbar, .bhp-menubar, .bhp-footer, .bhp-totop, .bhp-nav, .bhp-backdrop, .bhp-sidebar,
	.bhp-progress, .bhp-skip, .bhp-breadcrumbs, .bhp-lesson-side, .bhp-lesson-bottom, .bhp-lesson-top .bhp-btn { display: none !important; }

	body { background: #fff; color: #000; font-size: 12pt; display: block; }
	.bhp-container { max-width: none; padding: 0; }
	.bhp-lesson-article, .bhp-panel, .bhp-card, .com-content-article { border: 0; padding: 0; box-shadow: none; }
	.bhp-lesson-layout { display: block; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}

/* ==================================================================
   Okna modalne Joomli
   Szablon nie ładuje CSS Bootstrapa, a Joomla otwiera część okien przez Bootstrap (np. polityka
   prywatności przy rejestracji: data-bs-toggle="modal") albo przez <joomla-dialog>. Bez tych reguł
   okno wyświetla się w treści strony, a skrypt blokuje przewijanie (body.modal-open).
   Selektor div.modal: <body> widoku komponentu (component.php) ma klasę "modal" i nie może zniknąć.
   ================================================================== */
div.modal {
	position: fixed;
	inset: 0;
	z-index: 1055;
	display: none;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	outline: 0;
}
div.modal .modal-dialog {
	position: relative;
	display: flex;
	align-items: center;
	width: auto;
	max-width: 800px;
	min-height: calc(100% - 48px);
	margin: 24px auto;
	pointer-events: none;
}
div.modal .modal-dialog.modal-lg { max-width: 960px; }
div.modal .modal-dialog[class*="jviewport-width"] { width: min(80vw, 1100px); max-width: calc(100vw - 24px); }
div.modal .modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100vh - 48px);
	pointer-events: auto;
	background: var(--bhp-surface);
	color: var(--bhp-text);
	border: 1px solid var(--bhp-outline);
	border-radius: var(--bhp-radius);
	box-shadow: 0 24px 64px rgba(29, 32, 37, .28);
	outline: 0;
	overflow: hidden;
}
div.modal .modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 14px 22px;
	border-bottom: 1px solid var(--bhp-line);
}
div.modal .modal-title { margin: 0; font-size: var(--bhp-h4); line-height: 1.3; }
div.modal .modal-body { position: relative; flex: 1 1 auto; min-height: 0; padding: 20px 22px; overflow-y: auto; }
div.modal.joomla-modal .modal-body { padding: 0; overflow: hidden; }
div.modal .modal-body.jviewport-height60 { height: 60vh; }
div.modal .modal-body.jviewport-height70 { height: 70vh; }
div.modal .modal-body.jviewport-height80 { height: 80vh; }
div.modal .modal-body.jviewport-height90 { height: 90vh; }
div.modal .modal-body > iframe { display: block; width: 100%; height: 100%; border: 0; }
div.modal .modal-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	padding: 12px 22px;
	border-top: 1px solid var(--bhp-line);
}
div.modal .btn-close, joomla-dialog .btn-close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: var(--bhp-radius-sm);
	background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231d2025'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 14px no-repeat;
	opacity: .7;
	cursor: pointer;
}
div.modal .btn-close:hover, joomla-dialog .btn-close:hover { opacity: 1; background-color: var(--bhp-soft); }
div.modal .btn-close:focus-visible, joomla-dialog .btn-close:focus-visible { opacity: 1; outline: 3px solid var(--bhp-primary-a16); outline-offset: 2px; }
/* Tryb ciemny: jasny krzyżyk. */
body[data-bhp-theme-mode="always"] :is(div.modal, joomla-dialog) .btn-close,
html[data-theme="dark"] body[data-bhp-theme-mode="toggle"] :is(div.modal, joomla-dialog) .btn-close { filter: invert(1); }
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) body[data-bhp-theme-mode="toggle"] :is(div.modal, joomla-dialog) .btn-close { filter: invert(1); }
}
.modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1050;
	width: 100vw;
	height: 100vh;
	background: #1d2025;
	opacity: .55;
}
.modal-backdrop.fade:not(.show) { opacity: 0; }
.modal-backdrop.fade { transition: opacity .15s linear; }
div.modal.fade:not(.show) { opacity: 0; }
div.modal.fade { transition: opacity .15s linear; }
div.modal.fade .modal-dialog { transform: translateY(-24px); transition: transform .2s ease-out; }
div.modal.show .modal-dialog { transform: none; }
@media (max-width: 600px) {
	div.modal .modal-dialog { min-height: calc(100% - 24px); margin: 12px; }
	div.modal .modal-dialog[class*="jviewport-width"] { width: auto; }
	div.modal .modal-content { max-height: calc(100vh - 24px); }
}

/* <joomla-dialog> (Joomla 5/6): style pochodzą z szablonu, rdzeń ich nie ma. */
joomla-dialog dialog {
	width: 80vw;
	max-width: 1100px;
	height: 80vh;
	padding: 0;
	color: var(--bhp-text);
	background: var(--bhp-surface);
	border: 1px solid var(--bhp-outline);
	border-radius: var(--bhp-radius);
	box-shadow: 0 24px 64px rgba(29, 32, 37, .28);
}
joomla-dialog dialog::backdrop { background: rgba(29, 32, 37, .55); }
joomla-dialog dialog[open] { display: flex; }
joomla-dialog[type="image"] dialog { width: fit-content; height: fit-content; }
joomla-dialog[type="iframe"] dialog { overflow: hidden; }
joomla-dialog iframe.iframe-content { width: 100%; height: 100%; border: 0; }
.joomla-dialog-container { box-sizing: border-box; display: flex; flex-flow: column; width: 100%; position: relative; }
.joomla-dialog-container .buttons-holder { display: flex; align-items: center; justify-content: flex-end; margin-inline-start: auto; gap: 8px; }
.joomla-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--bhp-line); position: relative; }
.joomla-dialog-header h3 { margin: 0; font-size: var(--bhp-h4); }
.joomla-dialog-header.empty, .joomla-dialog-footer.empty { display: none; }
.joomla-dialog-body { box-sizing: border-box; flex: auto; position: relative; }
.joomla-dialog-body .buttons-holder { position: absolute; top: 1rem; right: 1rem; }
.joomla-dialog-body joomla-dialog[type="inline"], joomla-dialog[type="ajax"] .joomla-dialog-body { overflow: auto; }
joomla-dialog.loading .joomla-dialog-body { opacity: 0; }
joomla-dialog.loaded .joomla-dialog-body { opacity: 1; transition: opacity .3s; }
.joomla-dialog-footer { padding: 12px 22px; border-top: 1px solid var(--bhp-line); position: relative; }
.joomla-dialog-alert dialog, .joomla-dialog-confirm dialog { width: 600px; max-width: 90vw; height: fit-content; }
.joomla-dialog-alert .joomla-dialog-body, .joomla-dialog-confirm .joomla-dialog-body { padding: 20px 22px; }
@media (max-width: 600px) {
	joomla-dialog dialog { width: calc(100vw - 24px); height: calc(100vh - 24px); }
}

/* Treść w oknie (widok komponentu): bez pływającego przycisku ustawień ciasteczek - jest na stronie pod oknem. */
/* Pływający przycisk ustawień ciasteczek wyłączony - ustawienia otwiera link "Ustawienia cookies" w stopce.
   Skrypt komponentu zdejmuje z przycisku atrybut hidden, dlatego reguła z !important. */
.cc-reopen { display: none !important; }

/* Kierunek RTL */
[dir="rtl"] .bhp-brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .bhp-header__tools { margin-left: 0; margin-right: auto; }
[dir="rtl"] .bhp-nav ul:is(.menu,.mod-menu) ul { margin: 0 12px 0 0; border-left: 0; border-right: 2px solid var(--bhp-line); }
[dir="rtl"] .bhp-submenu-toggle { right: auto; left: 4px; }
[dir="rtl"] .bhp-account__menu { right: auto; left: 0; }
[dir="rtl"] blockquote { border-left: 0; border-right: 4px solid var(--bhp-primary); border-radius: var(--bhp-radius-sm) 0 0 var(--bhp-radius-sm); }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }

/* Motyw OSCampusa stylizuje nagłówki przez #oscampus - tekst na ciemnej karcie musi pozostać jasny. */
#oscampus .bhp-continue__body h2 { color: #fff; }
#oscampus .bhp-continue a:not(.bhp-btn) { color: #e3e5e8; }

/* ==================================================================
   Lekcja: tryb skupienia (opcja "Tryb skupienia w lekcji")
   Nagłówek strony i pasek lekcji to jeden pasek; nawigacja lekcji w nim, treść na całą wysokość okna pod nim.
   ================================================================== */
body.has-focus-bar .bhp-header .bhp-container,
body.has-focus-bar .bhp-main > .bhp-container { max-width: max(var(--bhp-container), 1440px); }
body.has-focus-bar .bhp-main { padding-top: 12px; }
body.has-focus-bar .bhp-header { --bhp-header-pad-y: 8px; }
.bhp-header.bhp-header--focus .bhp-header__inner { min-height: 60px; gap: 12px; }
.bhp-header.bhp-header--focus .bhp-brand { margin-right: 0; flex: none; }
.bhp-header.bhp-header--focus .bhp-brand__img { height: min(var(--bhp-logo-h), 48px); margin: -6px 0; }
.bhp-header.bhp-header--focus .bhp-brand img:not(.bhp-brand__img) { max-height: 48px; width: auto; margin: -6px 0; }
.bhp-header.bhp-header--focus .bhp-brand__tagline { display: none; }
.bhp-header.bhp-header--focus .bhp-header__tools { margin-left: 0; gap: 8px; }
.bhp-header.bhp-header--focus .bhp-btn { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.bhp-header.bhp-header--focus .bhp-icon-btn,
.bhp-header.bhp-header--focus .bhp-btn.bhp-help-btn { width: 38px; height: 38px; padding: 0; }
.bhp-header.bhp-header--focus .bhp-account__btn { height: 38px; padding: 0 3px; }
.bhp-header.bhp-header--focus .bhp-account__avatar { width: 30px; height: 30px; font-size: 12px; }
.bhp-header.bhp-header--focus .bhp-account__name,
.bhp-header.bhp-header--focus .bhp-account__btn > .bhp-ico { display: none; }

.bhp-header.bhp-header--focus .bhp-lesson-top {
	flex: 1 1 auto;
	flex-wrap: nowrap;
	min-width: 0;
	gap: 10px;
	margin: 0;
	padding: 0 0 0 12px;
	background: none;
	border: 0;
	border-left: 1px solid var(--bhp-line);
	border-radius: 0;
}
.bhp-header.bhp-header--focus .bhp-lesson-top__title { flex: 1 1 0; min-width: 0; }
.bhp-header.bhp-header--focus .bhp-lesson-top__course { font-size: 12px; }
.bhp-header.bhp-header--focus .bhp-lesson-top__h1 { margin: 0; font-size: 17px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bhp-header.bhp-header--focus .bhp-lesson-top__bar { width: 120px; flex: none; }
.bhp-lesson-top__nav { flex: none; }
.bhp-lesson-top__nav .bhp-lesson-nav { flex-wrap: nowrap; gap: 8px; }
.bhp-lesson-top__nav .bhp-lesson-nav__home,
.bhp-lesson-top__nav .bhp-lesson-nav__spacer { display: none; }
body.has-focus-bar .bhp-lesson-side { top: 76px; max-height: calc(100vh - 92px); }

/* Węższe ekrany: najpierw znikają podpisy przycisków, potem pasek postępu i logo */
@media (max-width: 1399px) {
	.bhp-header.bhp-header--focus .bhp-lesson-top__back span,
	.bhp-header.bhp-header--focus .bhp-lesson-toggle span,
	.bhp-lesson-top__nav #prevbut span { display: none; }
	.bhp-header.bhp-header--focus .bhp-lesson-top > .bhp-btn { padding: 0 11px; }
}
@media (max-width: 1199px) {
	.bhp-header.bhp-header--focus .bhp-lesson-top__bar { display: none; }
}
@media (max-width: 991px) {
	.bhp-header.bhp-header--focus .bhp-brand { display: none; }
	.bhp-header.bhp-header--focus .bhp-lesson-top { padding-left: 0; border-left: 0; }
}
/* Telefon: nawigacja lekcji w drugim wierszu paska (pasek lekcji "rozpuszcza się" w wierszu nagłówka) */
@media (max-width: 767px) {
	.bhp-header.bhp-header--focus .bhp-header__inner { flex-wrap: wrap; row-gap: 8px; }
	.bhp-header.bhp-header--focus .bhp-lesson-top { display: contents; }
	.bhp-header.bhp-header--focus .bhp-header__tools { order: 2; }
	.bhp-header.bhp-header--focus .bhp-lesson-top__nav { order: 3; flex: 1 0 100%; }
	.bhp-lesson-top__nav .bhp-lesson-nav__spacer { display: block; }
	.bhp-header.bhp-header--focus .bhp-lesson-top__course { display: none; }
	.bhp-header.bhp-header--focus .bhp-lesson-top__h1 { font-size: 15px; }
	body.has-focus-bar .bhp-lesson-side { top: auto; max-height: none; }
}

/* ==================================================================
   Postępy pracowników (Kadry, com_bhposcampus view=hr) - tylko podgląd
   ================================================================== */
.bhp-hr { display: grid; gap: 18px; }
.bhp-hr__title { margin: 0; font-size: clamp(24px, 1.2vw + 18px, 32px); }
.bhp-hr__lead { margin: 4px 0 0; color: var(--bhp-muted); font-size: 14px; }
.bhp-hr__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.bhp-hr__stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--bhp-surface); border: 1px solid var(--bhp-line);
	border-top: 4px solid var(--bhp-line); border-radius: var(--bhp-radius-sm, 12px); }
.bhp-hr__stat span { font-size: 13px; color: var(--bhp-muted); }
.bhp-hr__stat strong { font-size: 28px; line-height: 1.1; color: var(--bhp-heading); font-variant-numeric: tabular-nums; }
.bhp-hr__stat.is-ok { border-top-color: var(--bhp-ok); }
.bhp-hr__stat.is-progress { border-top-color: var(--bhp-primary); }
.bhp-hr__stat.is-idle { border-top-color: var(--bhp-muted); }
.bhp-hr__filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; padding: 16px; }
.bhp-hr__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 160px; min-width: 0; }
.bhp-hr__field--wide { flex: 2 1 240px; }
.bhp-hr__field label { font-size: 13px; font-weight: 600; color: var(--bhp-muted); }
.bhp-hr__field :is(input, select) { width: 100%; min-height: 44px; }
.bhp-hr__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bhp-hr__list { padding: 0; overflow: hidden; }
.bhp-hr__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--bhp-line); }
.bhp-hr__bar form { margin: 0; }
.bhp-hr__bar .bhp-chip-btn { text-decoration: none; }
.bhp-hr__bar .bhp-chip-btn.is-active { background: var(--bhp-graphite); border-color: var(--bhp-graphite); color: #fff; }
.bhp-hr__empty { margin: 0; padding: 28px 16px; color: var(--bhp-muted); text-align: center; }
.bhp-hr__scroll { overflow-x: auto; }
.bhp-hr__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bhp-hr__table th { padding: 10px 14px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bhp-muted);
	background: var(--bhp-bg); border-bottom: 1px solid var(--bhp-line); white-space: nowrap; }
.bhp-hr__table th a { color: inherit; text-decoration: none; }
.bhp-hr__table th a:hover { color: var(--bhp-link); }
.bhp-hr__table td { padding: 12px 14px; border-bottom: 1px solid var(--bhp-line); vertical-align: middle; }
.bhp-hr__table tbody tr:last-child td { border-bottom: 0; }
.bhp-hr__person strong { display: block; color: var(--bhp-heading); }
.bhp-hr__person span { font-size: 12px; color: var(--bhp-muted); overflow-wrap: anywhere; }
.bhp-hr__course { min-width: 16rem; }
.bhp-hr__course .bhp-chip { display: block; width: max-content; margin-top: 4px; padding: 1px 8px; font-size: 11px; }
.bhp-hr__progress { min-width: 150px; }
.bhp-hr__pct { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bhp-hr__pct small { font-weight: 400; color: var(--bhp-muted); }
.bhp-hr__status { display: inline-block; padding: 2px 10px; border-radius: var(--bhp-radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.bhp-hr__status.is-ok { background: color-mix(in srgb, var(--bhp-ok) 14%, #fff); color: var(--bhp-ok); }
.bhp-hr__status.is-progress { background: color-mix(in srgb, var(--bhp-primary) 14%, #fff); color: var(--bhp-heading); }
.bhp-hr__status.is-idle { background: var(--bhp-soft); color: var(--bhp-muted); }
.bhp-hr__table td small { display: block; margin-top: 2px; color: var(--bhp-muted); font-size: 12px; }
.bhp-hr__pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--bhp-line);
	font-size: 13px; color: var(--bhp-muted); }
.bhp-hr__pages { display: flex; align-items: center; gap: 10px; }
