/* =========================================================
   DAB – Sidebar enhancements (Journal Style Sheet)
   1. Header-style gold shine sweep on sidebar menu hover
   2. Information block text sized like the Main Menu
   ========================================================= */

/* ---------- 1. Shine sweep on custom-block menu rows ---------- */
.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img)) {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: background-color .3s ease, box-shadow .3s ease, filter .3s ease;
}

.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img)) > a {
	position: relative;
	z-index: 3;
	display: inline-block;
	transition: letter-spacing .3s ease, color .3s ease, transform .3s ease;
}

/* light band – same gradient as the header shine */
.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img))::before,
.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img))::after {
	content: "";
	position: absolute;
	z-index: 2;
	top: -20%;
	bottom: -20%;
	left: 0;
	pointer-events: none;
	opacity: 0;
}

.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img))::before {
	width: 38%;
	transform: translateX(-160%) skewX(-18deg);
	background:
		repeating-linear-gradient(90deg,
			rgba(255, 246, 214, 0) 0, rgba(255, 246, 214, 0) 9px,
			rgba(255, 246, 214, .12) 9px, rgba(255, 246, 214, .12) 10px),
		linear-gradient(90deg,
			rgba(255, 246, 214, 0) 0%,
			rgba(255, 246, 214, .05) 30%,
			rgba(255, 238, 190, .38) 50%,
			rgba(255, 246, 214, .05) 70%,
			rgba(255, 246, 214, 0) 100%);
	mix-blend-mode: screen;
}

/* bright gold edge – same as the header edge line */
.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img))::after {
	width: 2px;
	transform: skewX(-18deg);
	background: linear-gradient(transparent,
		rgba(227, 200, 135, .9) 30%,
		#fff6d6 50%,
		rgba(227, 200, 135, .9) 70%,
		transparent);
	box-shadow: 0 0 14px 3px rgba(227, 200, 135, .55);
}

.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img)):hover::before {
	animation: dabSideShine .95s cubic-bezier(.55, .1, .3, 1) forwards;
}

.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img)):hover::after {
	animation: dabSideEdge .95s cubic-bezier(.55, .1, .3, 1) forwards;
}

.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img)):hover {
	filter: brightness(1.12);
	box-shadow: inset 3px 0 0 #c9a45c, inset -3px 0 0 #c9a45c;
}

.pkp_structure_sidebar .block_custom td:has(> a):not(:has(img)):hover > a {
	letter-spacing: .03em;
	transform: translateX(2px);
}

@keyframes dabSideShine {
	0%   { transform: translateX(-160%) skewX(-18deg); opacity: 1; }
	100% { transform: translateX(330%)  skewX(-18deg); opacity: 1; }
}

@keyframes dabSideEdge {
	0%   { left: 0%;   opacity: 0; }
	12%  {             opacity: .95; }
	82%  {             opacity: .95; }
	100% { left: 100%; opacity: 0; }
}

/* Reference-tool logos: gentle lift instead of the sweep */
.pkp_structure_sidebar .block_custom td:has(img) a img {
	transition: transform .25s ease, filter .25s ease;
}
.pkp_structure_sidebar .block_custom td:has(img) a:hover img {
	transform: translateY(-2px);
	filter: drop-shadow(0 4px 8px rgba(14, 59, 36, .25));
}

/* ---------- 2. Information block – match Main Menu size ---------- */
.pkp_structure_sidebar .block_information .title {
	font-size: 14px;
}

.pkp_structure_sidebar .block_information .content li a {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
	.pkp_structure_sidebar .block_custom td::before,
	.pkp_structure_sidebar .block_custom td::after {
		display: none !important;
	}
	.pkp_structure_sidebar .block_custom td > a,
	.pkp_structure_sidebar .block_custom td a img {
		transition: none !important;
		transform: none !important;
	}
}
