/*
 * Last Dawn Members — homepage blocks.
 * Values match the /home-2/ Elementor design (dark raid cards, gold sign-up
 * buttons, teal-glass cards with gold hairlines, Marcellus / Archivo / Open Sans).
 */

.ldh {
	--ldh-cream: #f3eee2;
	--ldh-parch: #f5e5cf;
	--ldh-tan: #d9c7a3;
	--ldh-gold: #f8b700;
	--ldh-card: #1d1d1d;
	--ldh-teal-card: #0a3340;
	--ldh-line: rgba(245, 229, 207, 0.3);
	--ldh-muted: rgba(255, 255, 255, 0.72);
	--ldh-head: "Marcellus", Georgia, serif;
	--ldh-ui: "Archivo", "Open Sans", -apple-system, sans-serif;
	--ldh-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	width: 100%;
	color: #fff;
	font-family: var(--ldh-body);
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.ldh *,
.ldh *::before,
.ldh *::after {
	box-sizing: border-box;
}

.ldh h3,
.ldh p,
.ldh ul {
	margin: 0;
	padding: 0;
}

.ldh ul {
	list-style: none;
}

.ldh a,
.ldh a:hover,
.ldh a:focus,
.ldh a:visited {
	text-decoration: none !important;
}

.ldh a:focus-visible,
.ldh summary:focus-visible {
	outline: 2px solid var(--ldh-gold);
	outline-offset: 2px;
}

.ldh .ldh-empty {
	grid-column: 1 / -1;
	padding: 22px 24px;
	color: var(--ldh-muted);
	text-align: center;
	background: rgba(0, 0, 0, 0.25);
	border: 1px dashed var(--ldh-line);
	border-radius: 18px;
}

/* ---------- Buttons & pills ---------- */

.ldh .ldh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 16px;
	font-family: var(--ldh-ui);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: filter 0.15s, transform 0.15s, background 0.15s;
}

.ldh .ldh-btn:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.ldh .ldh-btn--gold,
.ldh .ldh-btn--gold:hover,
.ldh .ldh-btn--gold:visited {
	color: #4a2608;
	background: linear-gradient(135deg, #fff1b8 0%, #ffd98a 55%, #f7b267 100%);
	box-shadow: rgba(120, 70, 10, 0.35) 0 4px 12px -4px;
}

.ldh .ldh-btn--teal,
.ldh .ldh-btn--teal:hover,
.ldh .ldh-btn--teal:visited {
	color: #fff;
	background: linear-gradient(135deg, #3fb8cc 0%, #0f6e84 100%);
	box-shadow: rgba(7, 56, 72, 0.6) 0 4px 14px -4px;
}

.ldh .ldh-btn--ghost,
.ldh .ldh-btn--ghost:hover,
.ldh .ldh-btn--ghost:visited {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(245, 229, 207, 0.42);
}

.ldh .ldh-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.14);
}

.ldh .ldh-btn--sm {
	padding: 6px 12px;
	font-size: 13px;
}

.ldh .ldh-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ldh .ldh-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	font-family: var(--ldh-ui);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	border-radius: 20px;
}

.ldh .ldh-pill--green { color: #6fe0a8; background: rgba(79, 195, 138, 0.14); }
.ldh .ldh-pill--gold { color: #ffc93d; background: rgba(248, 183, 0, 0.14); }
.ldh .ldh-pill--blue { color: #9fd0ff; background: rgba(120, 180, 255, 0.14); }
.ldh .ldh-pill--muted { color: #dcdcdc; background: rgba(255, 255, 255, 0.1); }
.ldh .ldh-pill--red { color: #ff9ab3; background: rgba(255, 110, 150, 0.14); }

/* Progress bar */
.ldh .ldh-bar-head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
	font-family: var(--ldh-ui);
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.75);
}

.ldh .ldh-bar {
	height: 8px;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.33);
	border-radius: 5px;
}

.ldh .ldh-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #dc9e48, #f8dc9a);
	border-radius: inherit;
}

/* ---------- Next raid bar ---------- */

.ldh-next {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) auto minmax(150px, 0.8fr) auto;
	gap: 28px;
	align-items: center;
}

.ldh-next--empty {
	grid-template-columns: 1fr;
}

.ldh .ldh-next__info {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.ldh .ldh-next__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 46px;
	height: 46px;
	color: var(--ldh-parch);
	border: 2px solid rgba(245, 229, 207, 0.7);
	border-radius: 50%;
}

.ldh .ldh-next__icon svg {
	width: 24px;
	height: 24px;
}

.ldh .ldh-next__title {
	font-family: var(--ldh-head);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ldh-cream);
}

.ldh .ldh-next__when {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.8);
}

.ldh .ldh-countdown {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.ldh .ldh-countdown__unit {
	display: grid;
	justify-items: center;
	min-width: 48px;
}

.ldh .ldh-countdown__unit b {
	font-family: var(--ldh-ui);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.05;
	color: var(--ldh-cream);
	font-variant-numeric: lining-nums tabular-nums;
}

.ldh .ldh-countdown__unit small {
	font-family: var(--ldh-ui);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.78);
	text-transform: uppercase;
}

.ldh .ldh-countdown__sep {
	font-size: 22px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.55);
}

.ldh .ldh-next__action {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ldh-next .ldh-bar span {
	background: linear-gradient(90deg, #e9f6f7, #a9e3ec);
}

/* ---------- Raid cards ---------- */

.ldh-raids {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}

.ldh .ldh-raid {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ldh-card);
	border-radius: 20px;
	box-shadow: rgba(0, 0, 0, 0.45) 0 8px 24px 0;
}

.ldh .ldh-raid__img {
	position: relative;
	height: 150px;
	background: linear-gradient(135deg, #0b4a5c, #062a35) center / cover no-repeat;
}

.ldh .ldh-raid__date {
	position: absolute;
	top: 10px;
	left: 10px;
	display: grid;
	justify-items: center;
	padding: 6px 9px;
	background: rgba(0, 0, 0, 0.66);
	border-radius: 12px;
}

.ldh .ldh-raid__date b {
	font-family: var(--ldh-ui);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.05;
	color: var(--ldh-parch);
}

.ldh .ldh-raid__date small {
	font-family: var(--ldh-ui);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 1.4px;
	color: #ddd;
	text-transform: uppercase;
}

.ldh .ldh-raid__size {
	position: absolute;
	top: 10px;
	right: 10px;
	padding: 3px 8px;
	font-family: var(--ldh-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	color: #fff;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.66);
	border-radius: 6px;
}

.ldh .ldh-raid__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 14px 14px;
}

.ldh .ldh-raid__title {
	font-family: var(--ldh-ui);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
}

.ldh .ldh-raid__title a {
	color: #fff;
}

.ldh .ldh-raid__title a:hover {
	color: var(--ldh-parch);
}

.ldh .ldh-raid__when {
	margin-top: -4px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.72);
}

.ldh .ldh-raid__bar {
	margin-top: auto;
	padding-top: 6px;
}

.ldh .ldh-raid__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ldh .ldh-raid__note,
.ldh .ldh-raid__you {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--ldh-ui);
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.75);
}

/* ---------- Your status ---------- */

.ldh-status {
	display: grid;
	gap: 16px;
}

.ldh .ldh-status__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	overflow: hidden;
	background: var(--ldh-teal-card);
	border: 1px solid var(--ldh-tan);
	border-radius: 20px;
	box-shadow: rgba(0, 0, 0, 0.5) 0 10px 30px 0;
}

.ldh .ldh-status__body {
	display: grid;
	align-content: center;
	gap: 14px;
	padding: clamp(24px, 4vw, 40px);
}

.ldh .ldh-status__eyebrow {
	font-family: "Marcellus SC", var(--ldh-head);
	font-size: 15px;
	letter-spacing: 0.4px;
	color: var(--ldh-cream);
	text-transform: uppercase;
}

.ldh .ldh-status__title {
	font-family: var(--ldh-head);
	font-size: clamp(26px, 3vw, 32px);
	font-weight: 400;
	line-height: 1.15;
	color: var(--ldh-cream);
}

.ldh .ldh-status__name {
	--ldh-class: var(--ldh-cream);
	color: var(--ldh-class);
}

.ldh .ldh-status__lead {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.82);
}

.ldh .ldh-status__list {
	display: grid;
	gap: 6px;
}

.ldh .ldh-status__list li {
	position: relative;
	padding-left: 22px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.9);
}

.ldh .ldh-status__list li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 0.6em;
	width: 8px;
	height: 8px;
	background: var(--ldh-tan);
	transform: rotate(45deg);
}

.ldh .ldh-status__raids {
	display: grid;
	gap: 6px;
}

.ldh .ldh-status__raids li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 12px;
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid var(--ldh-line);
	border-radius: 12px;
}

.ldh .ldh-status__raids a {
	display: grid;
	min-width: 0;
	line-height: 1.3;
	color: #fff;
}

.ldh .ldh-status__raid-date {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.75);
}

.ldh .ldh-status__raid-name {
	overflow: hidden;
	font-family: var(--ldh-ui);
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ldh .ldh-status__art {
	min-height: 260px;
	background: #0b4a5c center / cover no-repeat;
}

.ldh .ldh-status__art--plain {
	display: grid;
	place-items: center;
	color: var(--ldh-tan);
	background: linear-gradient(180deg, #0b4a5c, #062a35);
}

.ldh .ldh-status__art--plain svg {
	width: 96px;
	height: 96px;
}

.ldh .ldh-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.ldh .ldh-stat {
	display: grid;
	justify-items: center;
	gap: 2px;
	padding: 18px 12px;
	text-align: center;
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid var(--ldh-line);
	border-radius: 18px;
}

.ldh .ldh-stat b {
	font-family: var(--ldh-ui);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--ldh-cream);
	font-variant-numeric: lining-nums tabular-nums;
}

.ldh .ldh-stat span {
	font-family: var(--ldh-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ldh-parch);
	text-transform: uppercase;
}

/* ---------- Progression ---------- */

.ldh-progress {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 1024px) {
	.ldh-progress {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ldh-progress {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}
}

.ldh .ldh-prog {
	overflow: hidden;
	background: rgba(20, 24, 26, 0.85);
	border: 1px solid rgba(245, 229, 207, 0.18);
	border-radius: 18px;
}

.ldh .ldh-prog.is-cleared {
	border-color: rgba(248, 183, 0, 0.5);
}

.ldh .ldh-prog__img {
	height: 170px;
	padding: 12px;
	background: linear-gradient(135deg, #0b4a5c, #062a35) center / cover no-repeat;
}

.ldh .ldh-prog__img .ldh-pill {
	background: rgba(0, 0, 0, 0.7);
}

.ldh .ldh-prog__body {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
}

.ldh .ldh-prog__ring {
	position: relative;
	display: grid;
	flex: none;
	place-items: center;
	width: 64px;
	height: 64px;
}

.ldh .ldh-prog__ring span {
	position: absolute;
	font-family: var(--ldh-ui);
	font-size: 15px;
	font-weight: 700;
	color: var(--ldh-cream);
}

.ldh .ldh-ring {
	width: 64px;
	height: 64px;
	transform: rotate(-90deg);
}

.ldh .ldh-ring__track {
	fill: none;
	stroke: rgba(255, 255, 255, 0.14);
	stroke-width: 4;
}

.ldh .ldh-ring__fill {
	fill: none;
	stroke: var(--ldh-gold);
	stroke-width: 4;
	stroke-linecap: round;
}

.ldh .ldh-prog__name {
	font-family: var(--ldh-head);
	font-size: 23px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ldh-cream);
}

.ldh .ldh-prog__count {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
}

/* ---------- Recruitment ---------- */

.ldh-recruit {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ldh .ldh-class {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--ldh-card);
	border-radius: 14px;
	box-shadow: rgba(0, 0, 0, 0.35) 0 6px 18px 0;
}

.ldh .ldh-class__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	color: #1d1d1d;
	border-radius: 8px;
}

.ldh .ldh-class__icon svg {
	width: 20px;
	height: 20px;
}

.ldh .ldh-class__text {
	display: grid;
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}

.ldh .ldh-class__text b {
	font-family: var(--ldh-ui);
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.ldh .ldh-class__text small {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.72);
}

.ldh .ldh-class__prio {
	padding: 3px 10px;
	font-family: var(--ldh-ui);
	font-size: 11.5px;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 20px;
}

.ldh .ldh-class--high .ldh-class__prio {
	color: #2a1a00;
	background: #f8b700;
}

.ldh .ldh-class--closed .ldh-class__prio {
	color: rgba(255, 255, 255, 0.72);
	background: rgba(255, 255, 255, 0.06);
}

/* ---------- News ---------- */

.ldh-news {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	align-items: start;
}

.ldh .ldh-post {
	overflow: hidden;
	background: var(--ldh-card);
	border-radius: 18px;
	box-shadow: rgba(0, 0, 0, 0.45) 0 8px 24px 0;
}

.ldh .ldh-post__art {
	position: relative;
	height: 130px;
	background: linear-gradient(180deg, #2b2a6b, #5a4fb0);
}

.ldh .ldh-post__art svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.ldh .ldh-post__far { fill: rgba(30, 28, 80, 0.75); }
.ldh .ldh-post__near { fill: rgba(16, 14, 48, 0.95); }

.ldh .ldh-post--event .ldh-post__art { background: linear-gradient(180deg, #5a1b10, #c4552b); }
.ldh .ldh-post--event .ldh-post__far { fill: rgba(70, 20, 10, 0.8); }
.ldh .ldh-post--event .ldh-post__near { fill: rgba(30, 8, 4, 0.95); }
.ldh .ldh-post--raid .ldh-post__art,
.ldh .ldh-post--progress .ldh-post__art { background: linear-gradient(180deg, #0b3a46, #1d7f8f); }
.ldh .ldh-post--raid .ldh-post__far,
.ldh .ldh-post--progress .ldh-post__far { fill: rgba(6, 42, 53, 0.8); }
.ldh .ldh-post--raid .ldh-post__near,
.ldh .ldh-post--progress .ldh-post__near { fill: rgba(3, 22, 28, 0.95); }
.ldh .ldh-post--recruitment .ldh-post__art { background: linear-gradient(180deg, #3b2a0c, #b5852c); }
.ldh .ldh-post--recruitment .ldh-post__far { fill: rgba(60, 40, 10, 0.8); }
.ldh .ldh-post--recruitment .ldh-post__near { fill: rgba(25, 16, 4, 0.95); }

.ldh .ldh-post__label {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 9px;
	font-family: var(--ldh-ui);
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 20px;
}

.ldh .ldh-post__body {
	display: grid;
	gap: 8px;
	padding: 16px 16px 18px;
}

.ldh .ldh-post__date {
	font-family: var(--ldh-ui);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.72);
}

.ldh .ldh-post__title {
	font-family: var(--ldh-head);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.25;
	color: #fff;
}

.ldh .ldh-post__text,
.ldh .ldh-post__full {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

.ldh .ldh-post__text p,
.ldh .ldh-post__full p {
	margin: 0 0 8px;
}

.ldh .ldh-post__more summary {
	display: inline-block;
	font-family: var(--ldh-ui);
	font-size: 13px;
	font-weight: 700;
	color: #ffc93d;
	list-style: none;
	cursor: pointer;
}

.ldh .ldh-post__more summary::-webkit-details-marker {
	display: none;
}

.ldh .ldh-post__more[open] summary {
	display: none;
}

/* ---------- Officers ---------- */

.ldh-officers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 14px;
}

.ldh .ldh-officer {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 22px 16px;
	text-align: center;
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid var(--ldh-line);
	border-radius: 18px;
}

.ldh .ldh-officer__icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 6px;
	color: var(--ldh-parch);
	border: 2px solid rgba(245, 229, 207, 0.75);
	border-radius: 50%;
}

.ldh .ldh-officer__icon svg {
	width: 28px;
	height: 28px;
}

.ldh .ldh-officer__name {
	--ldh-class: var(--ldh-cream);
	font-family: var(--ldh-head);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--ldh-class);
}

.ldh .ldh-officer__title {
	font-family: var(--ldh-ui);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ldh-parch);
	text-transform: uppercase;
}

.ldh .ldh-officer__tag {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
}

.ldh .ldh-officer .ldh-btn {
	margin-top: 6px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.ldh-next {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 16px 24px;
	}

	.ldh .ldh-next__signups {
		grid-column: 1;
	}

	.ldh-recruit {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ldh-next {
		grid-template-columns: minmax(0, 1fr);
		justify-items: stretch;
	}

	.ldh .ldh-countdown {
		justify-content: center;
	}

	.ldh .ldh-countdown__unit b {
		font-size: 28px;
	}

	.ldh .ldh-next__action {
		justify-content: center;
	}

	.ldh .ldh-next__action .ldh-btn {
		flex: 1;
	}

	.ldh .ldh-status__card {
		grid-template-columns: minmax(0, 1fr);
	}

	.ldh .ldh-status__art {
		order: -1;
		min-height: 160px;
	}

	.ldh .ldh-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ldh .ldh-stat b {
		font-size: 28px;
	}

	.ldh-recruit {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ldh .ldh-btn {
		transition: none;
	}

	.ldh .ldh-btn:hover {
		transform: none;
	}
}

/* =========================================================================
 * Raid Calendar page
 * ====================================================================== */

/* ---------- Hero stats ---------- */

.ldh-cstats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
}

.ldh .ldh-cstat {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 22px 16px;
	text-align: center;
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(217, 199, 163, 0.3);
	border-radius: 18px;
}

.ldh .ldh-cstat b {
	font-family: var(--ldh-head);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.05;
	color: var(--ldh-parch);
	white-space: nowrap;
}

.ldh .ldh-cstat--long b {
	font-size: 32px;
}

.ldh .ldh-cstat--xl b {
	font-size: 24px;
	white-space: normal;
}

.ldh .ldh-cstat span {
	font-family: var(--ldh-ui);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #cfe6ea;
}

/* ---------- Status dots ---------- */

.ldh .ldh-dot {
	display: inline-block;
	flex: none;
	width: 7px;
	height: 7px;
	margin-right: 5px;
	vertical-align: 1px;
	background: rgba(255, 255, 255, 0.55);
	border-radius: 50%;
}

.ldh .ldh-dot--open { background: #4fc38a; }
.ldh .ldh-dot--posted { background: #e6b450; }
.ldh .ldh-dot--full { background: #e0607a; }
.ldh .ldh-dot--soon { background: #8fb3c9; }

/* ---------- Calendar grid ---------- */

.ldh-cal {
	overflow: hidden;
	background: rgba(22, 24, 26, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	box-shadow: rgba(0, 0, 0, 0.35) 0 8px 24px 0;
}

.ldh .ldh-cal__nav {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ldh .ldh-cal__month {
	flex: 1;
	margin: 0;
	font-family: var(--ldh-head);
	font-size: 22px;
	font-weight: 400;
	text-align: center;
	color: var(--ldh-parch);
}

.ldh .ldh-cal__arrow,
.ldh .ldh-cal__arrow:visited {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	font-size: 24px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(245, 229, 207, 0.25);
	border-radius: 10px;
	transition: background 0.15s;
}

.ldh .ldh-cal__arrow:hover {
	background: rgba(255, 255, 255, 0.14);
}

.ldh .ldh-cal__arrow.is-off {
	opacity: 0.3;
}

.ldh .ldh-cal__today,
.ldh .ldh-cal__today:visited {
	position: absolute;
	right: 70px;
	font-family: var(--ldh-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #f8dc9a;
}

.ldh .ldh-cal__head,
.ldh .ldh-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ldh .ldh-cal__head {
	background: rgba(255, 255, 255, 0.04);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ldh .ldh-cal__head span {
	padding: 12px;
	font-family: var(--ldh-head);
	font-size: 15px;
	color: #cfd8dc;
	font-variant: small-caps;
}

.ldh .ldh-cal__head span.is-night {
	color: #e3a850;
}

.ldh .ldh-cal__grid {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ldh .ldh-cal__day {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 108px;
	min-width: 0;
	padding: 10px 8px;
	border-right: 1px solid rgba(255, 255, 255, 0.07);
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ldh .ldh-cal__day:nth-child(7n) {
	border-right: 0;
}

.ldh .ldh-cal__day:nth-last-child(-n+7) {
	border-bottom: 0;
}

.ldh .ldh-cal__day.is-night {
	background: rgba(227, 168, 80, 0.043);
}

.ldh .ldh-cal__num {
	font-family: var(--ldh-head);
	font-size: 18px;
	line-height: 1.1;
	color: #cfd8dc;
}

.ldh .ldh-cal__num small {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.ldh .ldh-cal__day.is-out .ldh-cal__num,
.ldh .ldh-cal__day.is-past .ldh-cal__num {
	color: rgba(255, 255, 255, 0.4);
}

.ldh .ldh-cal__day.is-out {
	background: rgba(0, 0, 0, 0.18);
}

.ldh .ldh-cal__day.is-today .ldh-cal__num {
	color: #f8dc9a;
}

.ldh .ldh-cal__day.is-today {
	box-shadow: inset 0 2px 0 #e3a850;
}

.ldh .ldh-cal__date {
	display: none;
}

.ldh .ldh-cal__ev,
.ldh .ldh-cal__ev:visited {
	display: grid;
	gap: 2px;
	padding: 6px 8px 6px 10px;
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
	background: color-mix(in srgb, var(--ldh-ev) 18%, transparent);
	border-left: 3px solid var(--ldh-ev);
	border-radius: 9px;
	transition: filter 0.15s, transform 0.15s;
}

.ldh .ldh-cal__ev:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
}

.ldh .ldh-cal__ev b {
	font-family: var(--ldh-ui);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.ldh .ldh-cal__ev small {
	font-family: var(--ldh-ui);
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.78);
}

.ldh .ldh-cal__ev.is-cancelled {
	opacity: 0.75;
}

.ldh .ldh-cal__ev.is-cancelled b {
	text-decoration: line-through;
	color: rgba(255, 255, 255, 0.75);
}

.ldh-cal .ldh-empty {
	margin: 16px;
}

.ldh .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Event rosters ---------- */

.ldh-rost {
	display: grid;
	grid-template-columns: 245px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.ldh .ldh-rost__tabs {
	display: grid;
	gap: 8px;
}

.ldh .ldh-rost__tab {
	padding: 11px 14px;
	font-family: var(--ldh-ui);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	color: #e6eef0;
	text-align: left;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s;
}

.ldh .ldh-rost__tab:hover {
	background: rgba(255, 255, 255, 0.1);
}

.ldh .ldh-rost__tab[aria-selected="true"] {
	color: #24160a;
	background: linear-gradient(135deg, #f8dc9a 0%, #e3a850 100%);
	border-color: transparent;
}

.ldh .ldh-rost__panel {
	padding: 28px;
	background: rgba(10, 20, 24, 0.66);
	border: 1px solid rgba(245, 229, 207, 0.18);
	border-radius: 20px;
}

.ldh .ldh-rost__panel[hidden] {
	display: none;
}

.ldh .ldh-rost__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 20px;
}

.ldh .ldh-rost__eyebrow {
	font-family: var(--ldh-head);
	font-size: 14px;
	font-variant: small-caps;
	letter-spacing: 0.04em;
	color: var(--ldh-parch);
}

.ldh .ldh-rost__title {
	margin: 2px 0 6px;
	font-family: var(--ldh-head);
	font-size: 32px;
	font-weight: 400;
	line-height: 1.15;
	color: #fff;
}

.ldh .ldh-rost__meta {
	font-family: var(--ldh-ui);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.75);
}

.ldh .ldh-rost__meta b {
	color: var(--ldh-parch);
}

.ldh .ldh-rost__action,
.ldh .ldh-rost__you {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.ldh .ldh-rost__you {
	font-family: var(--ldh-ui);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.75);
}

.ldh .ldh-rost__roles,
.ldh .ldh-rost__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.ldh .ldh-rost__row {
	margin-top: 12px;
}

.ldh .ldh-rost__row--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ldh .ldh-rost__row--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ldh .ldh-rost__box {
	min-width: 0;
	padding: 16px 16px 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
}

.ldh .ldh-rost__box h4 {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 10px;
	padding-bottom: 8px;
	font-family: var(--ldh-ui);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ldh .ldh-rost__box h4 b {
	font-family: var(--ldh-head);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0;
	color: #fff;
}

.ldh .ldh-rost__list {
	display: grid;
	gap: 5px;
	font-family: var(--ldh-ui);
	font-size: 13px;
}

.ldh .ldh-rost__list small {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.6);
}

.ldh .ldh-name {
	font-family: var(--ldh-ui);
	font-weight: 600;
	color: var(--ldh-class, #fff);
}

.ldh .ldh-check {
	display: inline-block;
	width: 14px;
	margin-right: 4px;
	font-weight: 700;
	color: #f8dc9a;
}

.ldh .ldh-check--wait {
	color: rgba(255, 255, 255, 0.45);
}

.ldh .ldh-rost__key {
	margin-top: 8px;
	font-family: var(--ldh-ui);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}

.ldh .ldh-rost__names {
	font-family: var(--ldh-ui);
	font-size: 13.5px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.55);
}

.ldh .ldh-rost__hidden,
.ldh .ldh-rost__none {
	font-family: var(--ldh-ui);
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.6);
}

.ldh .ldh-rost__hidden {
	display: block;
	margin-top: 4px;
}

.ldh .ldh-rost__bring {
	display: grid;
	gap: 6px;
}

.ldh .ldh-rost__bring li {
	position: relative;
	padding-left: 24px;
	font-size: 14.5px;
	color: #fff;
}

.ldh .ldh-rost__bring li::before {
	content: "✓";
	position: absolute;
	left: 2px;
	font-weight: 700;
	color: #f8dc9a;
}

.ldh .ldh-rost__notes {
	font-size: 14.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
}

/* ---------- Calendar page: tablet & phone ---------- */

@media (max-width: 1024px) {
	.ldh-rost {
		grid-template-columns: minmax(0, 1fr);
	}

	.ldh .ldh-rost__tabs {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: thin;
	}

	.ldh .ldh-rost__tab {
		flex: none;
		white-space: nowrap;
	}

	.ldh .ldh-rost__row--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ldh-cstats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.ldh .ldh-cstat {
		padding: 16px 10px;
	}

	.ldh .ldh-cstat b {
		font-size: 30px;
	}

	.ldh .ldh-cstat--long b,
	.ldh .ldh-cstat--xl b {
		font-size: 20px;
		white-space: normal;
	}

	/* Calendar becomes an agenda list of days that have events. */
	.ldh .ldh-cal__head {
		display: none;
	}

	.ldh .ldh-cal__grid {
		display: block;
	}

	.ldh .ldh-cal__day {
		min-height: 0;
		padding: 12px 14px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	}

	.ldh .ldh-cal__day.is-empty,
	.ldh .ldh-cal__day.is-out {
		display: none;
	}

	.ldh .ldh-cal__today,
	.ldh .ldh-cal__today:visited {
		position: static;
		order: 4;
	}

	.ldh .ldh-cal__num {
		display: none;
	}

	.ldh .ldh-cal__date {
		display: block;
		font-family: var(--ldh-head);
		font-size: 17px;
		color: var(--ldh-parch);
	}

	.ldh .ldh-cal__ev b {
		font-size: 14px;
	}

	.ldh .ldh-cal__ev small {
		font-size: 12px;
	}

	.ldh .ldh-rost__panel {
		padding: 18px 16px;
	}

	.ldh .ldh-rost__title {
		font-size: 26px;
	}

	.ldh .ldh-rost__roles,
	.ldh .ldh-rost__row,
	.ldh .ldh-rost__row--2,
	.ldh .ldh-rost__row--4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Guild roster ---------- */

.ldh-roster-note p {
	margin: 0 0 12px;
	padding: 10px 14px;
	font-family: var(--ldh-ui);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
	background: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(245, 229, 207, 0.18);
	border-radius: 12px;
}

.ldh-roster-note a,
.ldh-roster-note a:visited {
	font-weight: 700;
	color: #f8dc9a;
}
