@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@500;600&display=swap");
@import url("brand-logo.css");
@import url("dartboard-theme.css");

/* Mon Darts — сайт нийтлэг chrome + нүүр
   Winmau 2 фон: хэээт хар header · sisal цайвар body */

.site-body {
	--ink: var(--db-ink);
	--ink-dim: var(--db-ink-muted);
	--bg: var(--db-cream);
	--panel: #ffffff;
	--line: color-mix(in srgb, var(--db-black) 12%, var(--db-cream));
	--line-soft: color-mix(in srgb, var(--db-black) 10%, var(--db-cream));
	--brand: var(--db-black);
	--brand-deep: var(--db-black-deep);
	--live: var(--db-red);
	--blue: #155a96;
	--gold: var(--db-green);
	--green: var(--db-green);
	--highlight: var(--db-green);

	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: "Segoe UI", system-ui, sans-serif;
	line-height: 1.45;
	min-height: 100%;
}

.site-body a {
	color: #155a96;
}

/* ---------- HEADER ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
}

.site-header-in {
	max-width: 72rem;
	margin: 0 auto;
	padding: 0.55rem 1rem;
	padding-top: calc(0.55rem + env(safe-area-inset-top));
	display: flex;
	align-items: center;
	gap: 1rem;
}

.site-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
	color: #f2f4f6;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.9rem;
	align-items: center;
	margin-left: auto;
	justify-content: flex-end;
}

.site-nav a {
	color: rgba(255, 255, 255, 0.94);
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.site-nav a:hover {
	color: #fff;
}

/* admin.css / profile.css `a { цэнхэр|шар }` — хар header дээр уншигдахгүй */
.site-header .site-nav a,
.site-body .site-header .site-nav a,
.profile-body .site-header .site-nav a,
.archive-body .site-header .site-nav a,
.club-body .site-header .site-nav a {
	color: rgba(255, 255, 255, 0.94);
}

.site-header .site-nav a:hover,
.site-body .site-header .site-nav a:hover {
	color: #fff;
}

.site-header .site-nav .nav-cta,
.profile-body .site-header .site-nav .nav-cta,
.archive-body .site-header .site-nav .nav-cta {
	color: #fff;
}

.site-nav .nav-cta {
	border: 1.5px solid rgba(255, 255, 255, 0.75);
	border-radius: 2em;
	padding: 0.28rem 0.75rem;
	color: #fff;
}

.site-nav .nav-cta-alt {
	border-color: #ffe066;
	color: #ffe066;
}

.site-header .site-nav .nav-cta-alt {
	color: #ffe066;
}

.site-nav .nav-live {
	color: var(--live);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.75rem;
}

/* ---------- HERO ---------- */

.home-hero {
	position: relative;
	overflow: hidden;
	background:
		url("../assets/deco/dartboard.svg") right -10% center / min(380px, 70vw) no-repeat,
		radial-gradient(90% 80% at 8% 100%, rgba(255, 77, 77, 0.16), transparent 55%),
		linear-gradient(165deg, #0f3d34 0%, #000 78%);
	color: #e8f2ee;
	padding: clamp(2rem, 5.5vw, 3.4rem) 1rem clamp(2.2rem, 5vw, 3.2rem);
	text-align: left;
}

.home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='30' cy='30' r='26' fill='none' stroke='%23ffffff' stroke-width='1'/><circle cx='30' cy='30' r='16' fill='none' stroke='%23ffffff' stroke-width='1'/></svg>");
	opacity: 0.03;
	pointer-events: none;
}

.home-hero-in {
	position: relative;
	z-index: 1;
	max-width: 38rem;
	margin: 0 auto 0 0;
	margin-left: max(0px, calc((100% - 72rem) / 2));
	padding-right: 1rem;
}

@media (min-width: 72rem) {
	.home-hero-in {
		margin-left: calc((100% - 72rem) / 2);
	}
}

.hero-brand {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #ffe066;
}

.hero-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.65rem, 5vw, 2.55rem);
	font-weight: 900;
	letter-spacing: -0.02em;
	line-height: 1.12;
	color: #fff;
}

.hero-lead {
	margin: 0 0 1.2rem;
	max-width: 34rem;
	color: #d5e8e0;
	font-size: clamp(0.95rem, 2.2vw, 1.08rem);
	line-height: 1.55;
}

.hero-slider {
	margin: 0 0 1.5rem;
	max-width: 34rem;
}

.hero-slides {
	position: relative;
	min-height: 6.4rem;
}

.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: translateX(1.25rem);
	transition: opacity 0.45s ease, transform 0.45s ease;
	pointer-events: none;
	padding: 0.85rem 1rem 0.9rem;
	border-left: 3px solid #ff6b6b;
	background: rgba(0, 0, 0, 0.28);
	border-radius: 0 0.55rem 0.55rem 0;
}

.hero-slide:nth-child(2) { border-left-color: #8ec8f0; }
.hero-slide:nth-child(3) { border-left-color: #4ad4b0; }
.hero-slide:nth-child(4) { border-left-color: #ffe066; }
.hero-slide:nth-child(5) { border-left-color: #c4b5fd; }

.hero-slide.is-on {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
	position: relative;
}

.hero-slide strong {
	display: block;
	font-size: 1.02rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 0.28rem;
}

.hero-slide span {
	display: block;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #cfe0d8;
}

.hero-slider-nav {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.7rem;
}

.hero-prev,
.hero-next {
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-size: 1.1rem;
	cursor: pointer;
	line-height: 1;
}

.hero-dots {
	display: flex;
	gap: 0.35rem;
	flex: 1;
	justify-content: center;
}

.hero-dots button {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.32);
	cursor: pointer;
}

.hero-dots button.on {
	background: #ffe066;
	width: 1.15rem;
}

.hero-points {
	list-style: none;
	margin: 0 0 1.6rem;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.hero-points li {
	position: relative;
	padding-left: 1rem;
	border-left: 3px solid var(--live, #ff4d4d);
}

.hero-points li:nth-child(2) { border-left-color: #6eb6e8; }
.hero-points li:nth-child(3) { border-left-color: #2ec4a0; }
.hero-points li:nth-child(4) { border-left-color: #ffe066; }
.hero-points li:nth-child(5) { border-left-color: #c4b5fd; }

.hero-points strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 0.15rem;
	letter-spacing: 0.01em;
}

.hero-points span {
	display: block;
	font-size: 0.86rem;
	line-height: 1.45;
	color: #c5d8d0;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	justify-content: flex-start;
}

.btn-hero {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.7rem 1.25rem;
	border-radius: 0.45rem;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	min-width: 10rem;
}

.btn-hero-primary {
	background: var(--live);
	color: #fff;
}

.btn-hero-primary:hover {
	filter: brightness(1.06);
	color: #fff;
}

.btn-hero-ghost {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.btn-hero-ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

@media (max-width: 40rem) {
	.home-hero-in {
		margin-left: 0;
		max-width: none;
	}
}

/* ---------- BANDS ---------- */

.home-band {
	position: relative;
	padding: 2rem 1rem 2.3rem;
	overflow: hidden;
}

.home-band-in {
	max-width: 72rem;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.home-band h2 {
	margin: 0 0 1rem;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--ink-dim);
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.home-band h2::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--line), transparent);
}

.home-band h2 a {
	order: 3;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 0.22rem 0.7rem;
	background: var(--panel);
	color: var(--blue);
	white-space: nowrap;
}

.band-light {
	--ink: #0a1a16;
	--ink-dim: #4a635a;
	--panel: #ffffff;
	--line: #c5d4ce;
	--line-soft: #c8d8e6;
	--blue: #1a5f9e;
	background: #f3f7f5;
	color: var(--ink);
}

.band-dark {
	--ink: #e8f2ee;
	--ink-dim: #b8cfc6;
	--panel: #122820;
	--line: #2a4a42;
	--line-soft: #355a50;
	--blue: #6eb6e8;
	--gold: #ffe066;
	background:
		url("../assets/deco/chart-bars.svg") right 4% bottom -14% / min(260px, 48%) no-repeat,
		linear-gradient(165deg, #0f3d34 0%, #081412 100%);
	color: var(--ink);
}

.band-dark h2 a {
	background: var(--panel);
	border-color: var(--line);
	color: var(--blue);
}

/* ---------- QUICK LINKS ---------- */

.quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
	gap: 0.65rem;
}

.quick-link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 1.05rem;
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-top: 3px solid var(--accent, var(--blue));
	border-radius: 0.75rem;
	text-decoration: none;
	color: var(--ink);
	transition: transform 0.15s, border-color 0.15s;
}

.quick-link:hover {
	transform: translateY(-2px);
	color: var(--ink);
	border-color: var(--accent, var(--blue));
}

.quick-link strong {
	font-size: 0.95rem;
	font-weight: 800;
}

.quick-link span {
	font-size: 0.78rem;
	color: #3d564e;
}

/* ---------- STATS STRIP ---------- */

.home-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
	gap: 0.6rem;
}

.home-stat {
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-radius: 0.7rem;
	padding: 0.85rem 0.9rem;
	border-top: 3px solid var(--accent);
}

.home-stat b {
	display: block;
	font-size: 1.55rem;
	font-weight: 900;
	color: var(--accent);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.home-stat i {
	font-style: normal;
	font-size: 0.72rem;
	color: var(--ink-dim);
}

/* ---------- FEATURED ---------- */

.home-feat {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 0.65rem;
}

.home-feat-card {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 0.85rem 1rem;
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-radius: 0.75rem;
	text-decoration: none;
	color: var(--ink);
}

.home-feat-card:hover {
	border-color: var(--blue);
	color: var(--ink);
}

.home-feat-card img,
.home-feat-ph {
	width: 3.4rem;
	height: 3.4rem;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid color-mix(in srgb, var(--blue) 40%, var(--line));
}

.home-feat-ph {
	display: grid;
	place-items: center;
	font-weight: 800;
	background: color-mix(in srgb, var(--blue) 12%, var(--panel));
	color: var(--blue);
}

.home-feat-card .nm {
	font-weight: 800;
	font-size: 0.92rem;
	color: var(--ink);
}

.home-feat-card .meta {
	font-size: 0.75rem;
	color: var(--ink-dim);
	margin-top: 0.1rem;
}

.home-feat-card .avg {
	font-weight: 900;
	color: var(--blue);
	font-size: 1.05rem;
}

.home-sec-lead {
	margin: -0.4rem 0 1rem;
	opacity: 1;
	font-size: 0.9rem;
	color: var(--ink-dim);
}

.home-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--line-soft, #d2dde8);
	border-radius: 6px;
	overflow: hidden;
	background: var(--panel, #fff);
}

.home-row {
	display: grid;
	grid-template-columns: 7.2rem 1fr auto;
	gap: 0.65rem;
	align-items: center;
	padding: 0.75rem 0.9rem;
	background: var(--panel, #fff);
	border: 0;
	border-bottom: 1px solid var(--line-soft, #d2dde8);
	border-radius: 0;
	text-decoration: none;
	color: var(--ink);
}

.home-list > .home-row:last-child,
.home-list > *:last-child {
	border-bottom: 0;
}

.home-list > .home-row:nth-child(odd),
.zebra-list > *:nth-child(odd),
.home-series-list > a:nth-child(odd) {
	background: #fff;
}

.home-list > .home-row:nth-child(even),
.zebra-list > *:nth-child(even),
.home-series-list > a:nth-child(even) {
	background: #e8f0f8;
}

.home-row:hover {
	border-color: transparent;
	filter: brightness(0.98);
	color: var(--ink);
}

.tour-row {
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.75rem;
}

.tour-row-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.tour-row-body strong {
	font-size: 1rem;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.25;
}

.tour-row-body i {
	font-style: normal;
	font-size: 0.78rem;
	color: var(--ink-dim);
}

.tour-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	background: #94a3b8;
	color: #fff;
}

.tour-status.is-live {
	background: #dc3a2c;
}

.tour-status.is-open {
	background: #173a5e;
}

.tour-status.is-done {
	background: #64748b;
}

.tour-status.is-prep {
	background: #94a3b8;
}

.scroll-sentinel {
	height: 1px;
	margin: 16px 0 8px;
}

/* ----- Events accordion (Nakka-style years) ----- */
.ev-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: var(--panel, #fff);
	border: 1px solid var(--line-soft, #d2dde8);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.ev-search-icon {
	flex: 0 0 auto;
	color: var(--chrome, #152f4c);
	font-size: 1.1rem;
	line-height: 1;
}

.ev-search input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 0.95rem;
	color: var(--ink, #14283f);
	outline: none;
}

.ev-search input::placeholder {
	color: var(--ink-dim, #64748b);
}

.ev-search:focus-within {
	border-color: var(--chrome, #152f4c);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--highlight, #f5c518) 55%, transparent);
}

.ev-search-clear {
	flex: 0 0 auto;
	width: 1.6rem;
	height: 1.6rem;
	border: 0;
	border-radius: 50%;
	background: var(--line-soft, #dce3ec);
	color: var(--ink, #14283f);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
}

.ev-search-clear.hidden {
	display: none;
}

html.ds .ev-search {
	background: var(--surface);
	border-color: var(--line);
}

html.ds .ev-search input {
	color: var(--ink);
}

.ev-acc {
	border: 1px solid var(--line-soft, #d2dde8);
	border-radius: 8px;
	overflow: hidden;
	background: var(--panel, #fff);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.ev-acc-head {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 0;
	background: var(--chrome, #152f4c);
	color: #fff;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}

.ev-acc-head:focus-visible {
	outline: 2px solid var(--highlight, #f5c518);
	outline-offset: 2px;
}

.ev-acc-titles {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ev-acc-titles strong {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
}

.ev-acc-titles small {
	font-size: 0.78rem;
	color: #c5d0dc;
}

.ev-acc-count {
	flex: 0 0 auto;
	min-width: 2rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--highlight, #f5c518);
	color: #14283f;
	font-size: 0.78rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.ev-acc-chev {
	flex: 0 0 auto;
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
	transition: transform 0.15s ease;
	opacity: 0.9;
}

.ev-acc.is-open .ev-acc-chev {
	transform: rotate(-135deg);
	margin-top: 0.25rem;
}

.ev-acc-body {
	background: var(--bg, #eef2f6);
}

.ev-acc-list {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ev-row {
	grid-template-columns: 1fr auto;
}

.ev-row .tour-row-body strong {
	order: 0;
}

.ev-row .home-row-date {
	order: 1;
	font-weight: 500;
}

.ev-avg {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 0.1rem;
	padding-right: 0.15rem;
	color: var(--ink, #14283f);
}

.ev-avg small {
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-dim, #64748b);
	font-weight: 700;
}

.ev-avg b {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
	color: var(--ink, #14283f);
}

html.ds .ev-acc-titles strong {
	color: #fff;
}

html.ds .ev-acc-titles small {
	color: #c5d0dc;
}

html.ds .ev-avg b,
html.ds .ev-row .tour-row-body strong {
	color: var(--ink);
}

.home-row-date {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--ink-dim);
	font-variant-numeric: tabular-nums;
}

.home-row-main {
	min-width: 0;
}

.home-row-main strong {
	display: block;
	font-size: 0.92rem;
	color: var(--ink);
}

.band-dark .home-row {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.14);
	color: #eef6f2;
}

.band-dark .home-row:hover {
	border-color: #8ec8f0;
	color: #eef6f2;
}

.band-dark .home-row-main strong {
	color: #fff;
}

.band-dark .home-row-date,
.band-dark .home-row-main i,
.band-dark .home-row-side small {
	color: #c5dcd3;
}

.home-row-main i {
	display: block;
	font-style: normal;
	font-size: 0.75rem;
	color: var(--ink-dim);
	margin-top: 0.12rem;
}

.home-row-main em {
	font-style: normal;
	color: var(--accent, #d93a2b);
	font-weight: 800;
	padding: 0 0.2rem;
}

.home-row-side {
	text-align: right;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--ink);
}

.home-row-side small {
	display: block;
	font-weight: 600;
	color: var(--ink-dim);
	font-size: 0.72rem;
}

.home-tier {
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	background: var(--chrome, #173a5e);
	color: #fff;
	white-space: nowrap;
}

@media (max-width: 40rem) {
	.home-row {
		grid-template-columns: 1fr auto;
	}
	.home-row-date {
		grid-column: 1 / -1;
	}
}

.home-clubs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
	gap: 0.65rem;
}

.home-club-card {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: inherit;
	text-decoration: none;
	border-top: 3px solid var(--accent, #0f7a62);
	transition: background 0.15s, transform 0.15s;
}

.home-club-card:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

.home-club-logo {
	width: 3.2rem;
	height: 3.2rem;
	object-fit: contain;
	background: #fff;
	border-radius: 0.55rem;
	margin-bottom: 0.35rem;
}
.home-club-card strong {
	font-size: 0.98rem;
	color: #fff;
}

.home-club-card span {
	font-size: 0.75rem;
	opacity: 0.88;
	color: #d5ebe4;
}

.home-club-actions {
	margin-top: 1rem;
}

/* ---------- MY TOURNAMENTS ---------- */

.home-create {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	align-items: center;
	margin-bottom: 1rem;
}

.btn-site {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.7rem 1.2rem;
	border: 0;
	border-radius: 0.45rem;
	cursor: pointer;
	text-decoration: none;
	background: var(--live);
	color: #fff;
}

.btn-site:hover {
	filter: brightness(1.05);
	color: #fff;
}

.home-create p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--ink-dim);
	max-width: 28rem;
}

.card-list {
	display: grid;
	gap: 0.65rem;
}

.home-series-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--line-soft, #d2dde8);
	border-radius: 6px;
	overflow: hidden;
}

.home-series-link {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.75rem 0.9rem;
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--line-soft, #d2dde8);
	border-radius: 0;
	text-decoration: none;
	color: var(--ink, #0a1a16);
}

.home-series-list > a:last-child {
	border-bottom: 0;
}

.home-series-link:hover {
	background: #dce7f1;
	color: inherit;
}

.home-series-link strong {
	font-size: 0.95rem;
	color: var(--ink);
}

.home-series-link span {
	font-size: 0.8rem;
	color: #3d564e;
}

.site-body .card {
	background: var(--panel);
	border: 1px solid var(--line-soft);
	border-radius: 0.75rem;
	padding: 0.95rem 1.05rem;
}

.site-body .card h3 {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
	color: var(--ink);
}

.site-body .card .meta {
	font-size: 0.8rem;
	color: var(--ink-dim);
	margin-bottom: 0.7rem;
}

.site-body .card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.site-body .card-actions .btn {
	width: auto;
	padding: 0.45rem 0.85rem;
	font-size: 0.85rem;
	margin: 0;
	border-radius: 0.4rem;
	font-weight: 700;
}

.site-body .empty {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--ink-dim);
	background: var(--panel);
	border: 1px dashed var(--line);
	border-radius: 0.75rem;
}

/* ---------- CTA BAND ---------- */

.home-cta {
	text-align: center;
	padding: 2.4rem 1rem;
}

.home-cta h2 {
	justify-content: center;
	font-size: clamp(1.2rem, 3.5vw, 1.6rem);
	letter-spacing: 0;
	text-transform: none;
	color: var(--ink);
	margin-bottom: 0.5rem;
}

.home-cta h2::after {
	display: none;
}

.home-cta p {
	margin: 0 auto 1.1rem;
	max-width: 28rem;
	color: var(--ink-dim);
}

/* ---------- FOOTER ---------- */

.site-footer {
	color: color-mix(in srgb, var(--db-cream) 78%, var(--db-wire));
	padding: 2rem 1rem 2.5rem;
}

.site-footer-in {
	max-width: 72rem;
	margin: 0 auto;
	display: grid;
	gap: 1.2rem;
	grid-template-columns: auto 1fr;
	align-items: start;
}

.site-footer img {
	height: 2.6rem;
	width: auto;
	opacity: 0.95;
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.1rem;
	justify-content: flex-end;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 0.82rem;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer .copy {
	grid-column: 1 / -1;
	font-size: 0.72rem;
	color: color-mix(in srgb, var(--db-cream) 62%, var(--db-wire));
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 0.9rem;
	margin-top: 0.3rem;
}

@media (max-width: 40rem) {
	.site-header-in {
		flex-wrap: wrap;
	}

	.site-nav {
		width: 100%;
		margin-left: 0;
		justify-content: flex-start;
	}

	.site-footer-in {
		grid-template-columns: 1fr;
	}

	.site-footer nav {
		justify-content: flex-start;
	}
}
