/**
 * plg_system_menuclick — "Narzędziowniki": a navy line at the top of the page with a tab
 * hanging from it (two buttons). The plugin inserts it right before #sp-header.
 * The line and the tab scroll away with the page; the sticky header
 * (#sp-header.menu-fixed, z-index 9999) covers them.
 */

.mc-tools {
	position: relative;
	z-index: 334; /* above #sp-header (333) until the header gets fixed */
	height: 4px;
	background: #00447c;
}
.mc-tools > .container { position: relative; height: 4px; }
/* focused link stays visible even above the sticky header (the plugin also scrolls to the top) */
.mc-tools:focus-within { z-index: 10000; }

/* room for the tab above the logo and menu (the template fixes #sp-header at 90px);
   the sticky header goes back to 90px */
#sp-header:not(.menu-fixed) { height: 104px; padding-top: 14px; box-sizing: border-box; }

.mc-tools-tab {
	--mc-tools-r: 14px;
	position: absolute;
	top: 100%;
	right: 15px;
	display: flex;
	align-items: center;
	gap: 5px;
	height: 34px;
	padding: 0 5px;
	background: #00447c;
	border-radius: 0 0 var(--mc-tools-r) var(--mc-tools-r);
	box-sizing: border-box;
	line-height: 1.2;
}
/* concave corners: the tab flows out of the line */
.mc-tools-tab::before,
.mc-tools-tab::after {
	content: "";
	position: absolute;
	top: 0;
	width: var(--mc-tools-r);
	height: var(--mc-tools-r);
}
.mc-tools-tab::before {
	left: calc(-1 * var(--mc-tools-r));
	background: radial-gradient(circle at 0 100%, transparent calc(var(--mc-tools-r) - .5px), #00447c var(--mc-tools-r));
}
.mc-tools-tab::after {
	right: calc(-1 * var(--mc-tools-r));
	background: radial-gradient(circle at 100% 100%, transparent calc(var(--mc-tools-r) - .5px), #00447c var(--mc-tools-r));
}

.mc-tools-lbl { display: none; }

.mc-tools-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background .15s ease;
}
.mc-tools-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* student */
.mc-tools-student { background: #cf4a4a; color: #fff !important; }
.mc-tools-student:hover,
.mc-tools-student:focus { background: #b93838; color: #fff !important; }

/* staff */
.mc-tools-staff { background: #f1d36b; color: #4d3d00 !important; }
.mc-tools-staff:hover,
.mc-tools-staff:focus { background: #e4c453; color: #3d3000 !important; }

/* tablet: the template shows a large logo here (about 66px), so the tab needs more room */
@media (max-width: 991px) {
	#sp-header:not(.menu-fixed) { height: 120px; padding-top: 30px; }
}

/* phone: full-width tab, short names */
@media (max-width: 600px) {
	#sp-header:not(.menu-fixed) { height: 106px; padding-top: 16px; }
	.mc-tools-tab { left: 10px; right: 10px; justify-content: center; gap: 4px; padding: 0 4px; }
	.mc-tools-lbl {
		display: inline-flex;
		padding: 0 3px 0 4px;
		color: rgba(255, 255, 255, .75);
		font-size: 11.5px;
		font-weight: 600;
		white-space: nowrap;
	}
	.mc-tools-long { display: none; }
	.mc-tools-link { padding: 0 8px; font-size: 12px; gap: 4px; }
}

/* very narrow phones (320px): no room for the label */
@media (max-width: 359px) {
	.mc-tools-lbl { display: none; }
}
