/* Changelog feed — accordion cards, type colors, git-hash identity */

.changelog-page,
.changelog-page * {
	text-transform: none !important;
	letter-spacing: normal;
}

.changelog-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.changelog-add {
	margin-bottom: 1.25rem;
}

.changelog-add select,
.changelog-add input[type="text"] {
	width: 100%;
}

.cl-category-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.7rem;
	margin: 0 0 1.35rem;
}

.cl-category-tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	min-width: 0;
	padding: 0.72rem 0.85rem;
	border: 1px solid rgba(201, 162, 39, 0.2);
	border-radius: 9px;
	color: rgba(243, 234, 208, 0.76);
	background: rgba(0, 0, 0, 0.28);
	text-decoration: none;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cl-category-tab:hover,
.cl-category-tab:focus-visible {
	color: #f3ead0;
	border-color: rgba(201, 162, 39, 0.55);
	background: rgba(201, 162, 39, 0.1);
	transform: translateY(-1px);
	text-decoration: none;
}

.cl-category-tab--active {
	color: #100b03;
	border-color: #d7b84f;
	background: linear-gradient(135deg, #efd467 0%, #bd8e24 100%);
	box-shadow: 0 5px 16px rgba(201, 162, 39, 0.2);
}

.cl-category-tab--active:hover,
.cl-category-tab--active:focus-visible {
	color: #100b03;
	background: linear-gradient(135deg, #f6df7c 0%, #ca9a2e 100%);
}

.cl-category-tab__label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	overflow: hidden;
	font-weight: 700;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cl-category-tab__label i {
	flex: 0 0 auto;
	color: #d2ad38;
}

.cl-category-tab--active .cl-category-tab__label i {
	color: #241908;
}

.cl-category-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.7rem;
	height: 1.7rem;
	padding: 0 0.42rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	color: inherit;
	background: rgba(0, 0, 0, 0.24);
}

.cl-category-tab--active .cl-category-tab__count {
	color: #fff4c7;
	background: rgba(19, 12, 3, 0.82);
	border: 1px solid rgba(255, 241, 184, 0.3);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	text-shadow: 0 1px 1px #000;
}

.cl-feed {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.cl-category {
	border: 1px solid rgba(201, 162, 39, 0.22);
	border-radius: 12px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.28);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.cl-category__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 1rem 1.15rem;
	cursor: pointer;
	list-style: none;
	background: linear-gradient(90deg, rgba(201, 162, 39, 0.22) 0%, rgba(201, 162, 39, 0.05) 100%);
	border-bottom: 1px solid rgba(201, 162, 39, 0.16);
}

.cl-category__header::-webkit-details-marker {
	display: none;
}

.cl-category__heading {
	min-width: 0;
	flex: 1 1 auto;
}

.cl-category__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	color: #f3ead0;
	font-family: inherit;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
}

.cl-category__title i {
	color: #c9a227;
}

.cl-category__count {
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 600;
	color: rgba(243, 234, 208, 0.85);
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(201, 162, 39, 0.18);
}

.cl-category__chevron {
	width: 0.75rem;
	height: 0.75rem;
	border-right: 2px solid rgba(201, 162, 39, 0.85);
	border-bottom: 2px solid rgba(201, 162, 39, 0.85);
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
	flex-shrink: 0;
}

.cl-category[open] .cl-category__chevron {
	transform: rotate(45deg);
}

.cl-category__body {
	display: flex;
	flex-direction: column;
}

.cl-year,
.cl-month {
	border-top: 1px solid rgba(201, 162, 39, 0.14);
}

.cl-year:first-child,
.cl-month:first-child {
	border-top: none;
}

.cl-year__header,
.cl-month__header {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.72rem 1.15rem;
	cursor: pointer;
	list-style: none;
	border-bottom: 1px solid transparent;
}

.cl-year__header::-webkit-details-marker,
.cl-month__header::-webkit-details-marker {
	display: none;
}

.cl-year__header {
	background: linear-gradient(90deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.035));
}

.cl-month__header {
	padding-left: 1.35rem;
	background: linear-gradient(90deg, rgba(201, 162, 39, 0.1), rgba(201, 162, 39, 0.015));
}

.cl-year__body,
.cl-month__body {
	position: relative;
	margin-left: 0.65rem;
	border-left: 2px solid rgba(201, 162, 39, 0.2);
}

.cl-month__body {
	border-left-color: rgba(201, 162, 39, 0.13);
}

.cl-year[open] > .cl-year__header,
.cl-month[open] > .cl-month__header {
	border-bottom-color: rgba(201, 162, 39, 0.12);
}

.cl-year__title,
.cl-month__title {
	flex: 1 1 auto;
	margin: 0;
	font-family: inherit;
	font-weight: 750;
	color: #f3ead0;
}

.cl-year__title {
	font-size: 1.1rem;
}

.cl-month__title {
	font-size: 1rem;
}

.cl-year__title i,
.cl-month__title i {
	width: 1.15rem;
	margin-right: 0.35rem;
	color: #d2ad38;
	text-align: center;
}

.cl-period__count {
	padding: 0.24rem 0.62rem;
	border: 1px solid rgba(201, 162, 39, 0.2);
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 700;
	color: #eadcb8;
	background: rgba(0, 0, 0, 0.4);
}

.cl-period__chevron {
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2px solid rgba(201, 162, 39, 0.8);
	border-bottom: 2px solid rgba(201, 162, 39, 0.8);
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
}

.cl-year[open] > .cl-year__header .cl-period__chevron,
.cl-month[open] > .cl-month__header .cl-period__chevron {
	transform: rotate(45deg);
}

.cl-day {
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cl-day:first-child {
	border-top: none;
}

.cl-day__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	padding: 0.78rem 1.15rem 0.78rem 1.35rem;
	cursor: pointer;
	list-style: none;
	background: linear-gradient(90deg, rgba(201, 162, 39, 0.12) 0%, rgba(201, 162, 39, 0.02) 100%);
	border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

.cl-day__header::-webkit-details-marker {
	display: none;
}

.cl-day[open] > .cl-day__header {
	border-bottom-color: rgba(201, 162, 39, 0.14);
}

.cl-day__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	color: #f3ead0;
	font-family: inherit;
}

.cl-day__ref {
	margin: 0.25rem 0 0;
	font-size: 0.78rem;
	color: rgba(235, 225, 200, 0.55);
}

.cl-day__ref code {
	padding: 0.08rem 0.35rem;
	border-radius: 4px;
	font-size: 0.76rem;
	color: #d4c4a0;
	background: rgba(255, 255, 255, 0.06);
}

a.cl-day__hash-link {
	text-decoration: none;
}

a.cl-day__hash-link:hover code {
	color: #f3ead0;
	background: rgba(201, 162, 39, 0.18);
}

.cl-day__count {
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.76rem;
	font-weight: 600;
	color: rgba(243, 234, 208, 0.85);
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(201, 162, 39, 0.18);
}

.cl-day__chevron {
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2px solid rgba(201, 162, 39, 0.75);
	border-bottom: 2px solid rgba(201, 162, 39, 0.75);
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
	flex-shrink: 0;
	align-self: center;
}

.cl-day[open] .cl-day__chevron {
	transform: rotate(45deg);
}

.cl-group__list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 0.85rem 1rem 1rem;
}

.cl-item {
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	background: rgba(8, 8, 8, 0.55);
	overflow: hidden;
	border-left: 4px solid #7a8594;
}

.cl-item--fix { border-left-color: #c27ba0; }
.cl-item--feat { border-left-color: #6fa8dc; }
.cl-item--deploy { border-left-color: #9b8ec4; }
.cl-item--changelog { border-left-color: #76a5af; }
.cl-item--security { border-left-color: #d4737a; }
.cl-item--perf { border-left-color: #7eb8a4; }
.cl-item--refactor,
.cl-item--style,
.cl-item--docs,
.cl-item--chore { border-left-color: #8892a0; }
.cl-item--update,
.cl-item--note { border-left-color: #a9927d; }

.cl-item[open] {
	background: rgba(12, 12, 12, 0.72);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.cl-item--target {
	border-color: rgba(236, 198, 82, 0.85);
	box-shadow: 0 0 0 1px rgba(236, 198, 82, 0.35), 0 0 24px rgba(201, 162, 39, 0.22);
}

.cl-item--target-pulse {
	position: relative;
	z-index: 1;
	animation: changelog-target-pulse 0.9s ease-out 3;
}

@keyframes changelog-target-pulse {
	0% {
		border-color: rgba(255, 221, 111, 1);
		box-shadow: 0 0 0 0 rgba(244, 201, 60, 0.82), 0 0 30px rgba(224, 174, 35, 0.46);
	}
	70% {
		border-color: rgba(236, 198, 82, 0.92);
		box-shadow: 0 0 0 11px rgba(244, 201, 60, 0), 0 0 34px rgba(224, 174, 35, 0.3);
	}
	100% {
		border-color: rgba(236, 198, 82, 0.85);
		box-shadow: 0 0 0 14px rgba(244, 201, 60, 0), 0 0 24px rgba(201, 162, 39, 0.22);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cl-item--target-pulse {
		animation: none;
		box-shadow: 0 0 0 2px rgba(236, 198, 82, 0.55), 0 0 24px rgba(201, 162, 39, 0.24);
	}
}

.cl-item__summary {
	display: grid;
	grid-template-columns: 2rem auto minmax(0, 1fr) auto 1rem;
	gap: 0.55rem 0.65rem;
	align-items: center;
	padding: 0.85rem 0.9rem;
	cursor: pointer;
	list-style: none;
}

.cl-item__summary::-webkit-details-marker {
	display: none;
}

.cl-item__index {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	color: #121418;
	background: linear-gradient(180deg, #c8ced8 0%, #8892a0 100%);
}

.cl-badge {
	display: inline-block;
	padding: 0.18rem 0.5rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
	color: #101010;
	background: #8892a0;
}

.cl-badge--fix { background: #c27ba0; color: #1a0a12; }
.cl-badge--feat { background: #6fa8dc; color: #081018; }
.cl-badge--deploy { background: #9b8ec4; color: #120f18; }
.cl-badge--changelog { background: #76a5af; color: #071316; }
.cl-badge--security { background: #d4737a; color: #1a080a; }
.cl-badge--perf { background: #7eb8a4; color: #071316; }
.cl-badge--refactor,
.cl-badge--style,
.cl-badge--docs,
.cl-badge--chore { background: #8892a0; color: #101010; }
.cl-badge--update,
.cl-badge--note { background: #a9927d; color: #101010; }

.cl-item__headline {
	min-width: 0;
}

.cl-item__title {
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.45;
	color: #f3ead0;
}

.cl-item__permalink {
	text-decoration: none;
}

.cl-item__permalink:hover,
.cl-item__permalink:focus-visible {
	color: #e8d08a;
	text-decoration: underline;
}

.cl-item__hash {
	margin-left: 0.35rem;
	font-size: 0.8rem;
	font-weight: 500;
	font-family: Consolas, Monaco, "Courier New", monospace;
	color: rgba(201, 162, 39, 0.72);
	text-decoration: none;
}

a.cl-item__hash:hover {
	color: #e8d08a;
	text-decoration: underline;
}

.cl-item__time {
	font-size: 0.76rem;
	font-weight: 500;
	color: rgba(235, 225, 200, 0.48);
	white-space: nowrap;
}

.cl-item__chevron {
	width: 0.65rem;
	height: 0.65rem;
	border-right: 2px solid rgba(201, 162, 39, 0.75);
	border-bottom: 2px solid rgba(201, 162, 39, 0.75);
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
}

.cl-item[open] .cl-item__chevron {
	transform: rotate(45deg);
}

.cl-item__panel {
	padding: 0 1rem 1rem 3.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cl-item__body {
	margin: 0.85rem 0 0;
	padding: 0.85rem 0.95rem;
	border-radius: 8px;
	font-size: 0.92rem;
	line-height: 1.65;
	color: rgba(235, 225, 200, 0.82);
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.cl-item__body--muted {
	color: rgba(235, 225, 200, 0.45);
	font-style: italic;
}

.cl-item__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	margin-top: 0.85rem;
	font-size: 0.78rem;
	color: rgba(235, 225, 200, 0.55);
}

.cl-item__meta-item i {
	margin-right: 0.25rem;
	color: rgba(201, 162, 39, 0.75);
}

.cl-item__meta-item--author {
	font-size: 0.9rem;
	font-weight: 700;
	color: #f0e2bc;
}

.cl-item__meta-item--author i {
	color: #e8d08a;
}

.cl-item__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.85rem;
}

.cl-stat-card {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	min-height: 2.1rem;
	padding: 0.38rem 0.72rem;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 7px;
	font-size: 0.78rem;
	line-height: 1;
	color: rgba(235, 225, 200, 0.72);
	background: rgba(0, 0, 0, 0.3);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.cl-stat-card i {
	font-size: 0.72rem;
}

.cl-stat-card strong {
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 0.88rem;
	color: #f0e2bc;
}

.cl-stat-card--add {
	border-color: rgba(63, 185, 80, 0.28);
	background: rgba(35, 134, 54, 0.1);
}

.cl-stat-card--add i,
.cl-stat-card--add strong {
	color: #6fcf97;
}

.cl-stat-card--del {
	border-color: rgba(248, 81, 73, 0.28);
	background: rgba(218, 54, 51, 0.1);
}

.cl-stat-card--del i,
.cl-stat-card--del strong {
	color: #ef7b84;
}

.cl-stat-card--files {
	border-color: rgba(201, 162, 39, 0.28);
	background: rgba(201, 162, 39, 0.08);
}

.cl-stat-card--files i,
.cl-stat-card--files strong {
	color: #e8d08a;
}

.cl-item__stats--plain {
	align-items: center;
	font-family: Consolas, Monaco, "Courier New", monospace;
	font-size: 0.82rem;
	color: rgba(235, 225, 200, 0.72);
}

.cl-item__stats--plain i {
	color: rgba(201, 162, 39, 0.75);
}

.cl-item__meta-item--bug {
	color: #e06c75;
}

.cl-item__meta-item--bug i {
	color: #e06c75;
}

.cl-item__admin {
	margin-top: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem 1rem;
}

.cl-item__admin a {
	font-size: 0.78rem;
	color: rgba(201, 162, 39, 0.8);
	text-decoration: none;
}

.cl-item__admin a:hover {
	color: #e8d08a;
	text-decoration: underline;
}

.cl-day.cl-day--flat {
	border: 0;
	background: transparent;
	margin: 0;
}

.cl-day--flat > .cl-group__list {
	padding: 0.55rem 0;
}

/* Adjacent flattened days form one list with the same gap as its entries. */
.cl-day--flat + .cl-day--flat > .cl-group__list {
	padding-top: 0;
}

.cl-month--compact .cl-item__body {
	margin-top: 0.55rem;
	padding: 0.6rem 0.75rem;
}

.cl-month--compact .cl-item__panel {
	padding-bottom: 0.7rem;
}

.cl-day--flat .cl-item__time {
	white-space: normal;
	text-align: right;
}

.changelog-empty {
	padding: 2.5rem 1rem;
	text-align: center;
	color: rgba(235, 225, 200, 0.55);
}

@media (max-width: 760px) {
	.cl-category-tabs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cl-item__summary {
		grid-template-columns: 2rem minmax(0, 1fr) 1rem;
		grid-template-areas:
			"index badge chevron"
			"headline headline headline"
			"time time time";
	}

	.cl-item__index { grid-area: index; }
	.cl-badge { grid-area: badge; justify-self: start; }
	.cl-item__headline { grid-area: headline; }
	.cl-item__time { grid-area: time; justify-self: start; }
	.cl-item__chevron { grid-area: chevron; justify-self: end; }

	.cl-item__panel {
		padding-left: 1rem;
	}

	.cl-year__body,
	.cl-month__body {
		margin-left: 0.35rem;
	}

	.cl-year__header,
	.cl-month__header,
	.cl-day__header {
		padding-left: 0.8rem;
	}
}
