/**
 * Mouton Library — Wish Board
 *
 * @package Mouton
 */

body.mouton-page-library-wish .site-header,
body.mouton-page-library-wish .menu-toggle,
body.mouton-page-library-wish .nav-modal,
body.mouton-page-library-wish .site-footer {
	display: none !important;
}

body.mouton-page-library-wish #page.site {
	max-width: none;
}

body.mouton-page-library-wish .site-main,
body.mouton-page-library-wish .site-main--library-wish {
	width: 100%;
	max-width: none !important;
	padding: 0 !important;
}

.library-wish {
	--wish-ink: #14213d;
	--wish-accent: #3d6a8c;
	--wish-paper: #f7f4ee;
	--wish-sky: #e8eef4;
	color: var(--wish-ink);
	background: #f8f9fa;
}

.library-wish__container {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 20px;
}

.library-wish__breadcrumb {
	margin: 28px 0 20px;
	font-size: 0.85rem;
	color: #868e96;
}

.library-wish__breadcrumb a:hover {
	color: var(--wish-accent);
}

.library-wish__breadcrumb-sep {
	margin: 0 0.4em;
}

.library-wish__header {
	margin-bottom: 36px;
	text-align: center;
}

.library-wish__eyebrow {
	margin: 0 0 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--wish-accent);
}

.library-wish__title {
	margin: 0 0 12px;
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	font-weight: 900;
	letter-spacing: 0.04em;
}

.library-wish__lead {
	max-width: 36em;
	margin: 0 auto 20px;
	line-height: 1.8;
	color: #555;
}

.library-wish__jumps {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.library-wish__jump {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 700;
	color: #fff !important;
	background: var(--wish-ink);
}

.library-wish__jump:hover {
	background: var(--wish-accent);
	color: #fff !important;
}

.library-wish__jump--ghost {
	color: var(--wish-ink) !important;
	background: #fff;
	border: 1px solid rgba(20, 33, 61, 0.18);
}

.library-wish__jump--ghost:hover {
	color: #fff !important;
	background: var(--wish-accent);
	border-color: var(--wish-accent);
}

.library-wish__coming {
	margin: 8px 0 40px;
	padding: 8px 0 0;
	background: transparent;
	color: var(--wish-ink);
}

.library-wish__coming-head {
	margin: 0 0 22px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--wish-ink);
}

.library-wish__coming-kicker {
	margin: 0 0 6px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	color: var(--wish-accent);
}

.library-wish__coming-heading {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 900;
	line-height: 1.25;
	color: var(--wish-ink);
}

.library-wish__coming-lead {
	margin: 0;
	max-width: 36em;
	line-height: 1.75;
	color: #555;
}

.library-wish__coming-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(20, 33, 61, 0.12);
}

.library-wish__coming-row {
	display: grid;
	grid-template-columns: minmax(7.5rem, 9.5rem) minmax(0, 1fr);
	gap: 16px 24px;
	align-items: start;
	padding: 18px 0;
	border-bottom: 1px solid rgba(20, 33, 61, 0.12);
}

.library-wish__coming-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 2px;
}

.library-wish__coming-badge {
	align-self: flex-start;
	margin: 0;
	padding: 0;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--wish-accent);
	background: transparent;
	border-radius: 0;
}

.library-wish__coming-row--schedule .library-wish__coming-badge {
	color: #8a4b2e;
}

.library-wish__coming-date {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
	color: var(--wish-ink);
}

.library-wish__coming-date--soon {
	font-size: 0.95rem;
	color: #666;
}

.library-wish__coming-body {
	min-width: 0;
}

.library-wish__coming-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1.4;
	color: var(--wish-ink);
}

.library-wish__coming-title a {
	color: inherit !important;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.library-wish__coming-title a:hover {
	color: var(--wish-accent) !important;
}

.library-wish__coming-sub {
	margin: 8px 0 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #555;
}

.library-wish__coming-sep {
	margin: 0 0.4em;
	color: #999;
}

.library-wish__board-section {
	margin: 0 0 48px;
	padding: 28px 0 48px;
	background: linear-gradient(180deg, var(--wish-sky) 0%, #f8f9fa 100%);
}

.library-wish__board-intro {
	margin-bottom: 16px;
	text-align: center;
}

.library-wish__section-title {
	margin: 0 0 10px;
	font-size: 1.45rem;
	font-weight: 900;
	color: var(--wish-ink);
}

.library-wish__section-lead {
	margin: 0 0 20px;
	color: #666;
	line-height: 1.7;
}

.library-wish__sky {
	position: relative;
	width: min(1480px, calc(100% - 16px));
	height: max(560px, calc(var(--wish-rows, 4) * 150px));
	min-height: 560px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid rgba(20, 33, 61, 0.08);
	border-radius: 18px;
	background:
		radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.7), transparent 50%),
		radial-gradient(ellipse at 80% 70%, rgba(61, 106, 140, 0.08), transparent 45%),
		var(--wish-paper);
}

.library-wish__bubble {
	position: absolute;
	left: var(--wish-left, 10%);
	top: var(--wish-top, 10%);
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: min(220px, 42vw);
	padding: 12px 14px 10px;
	border: 1px solid rgba(20, 33, 61, 0.08);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 24px rgba(20, 33, 61, 0.08);
	transform: rotate(var(--wish-rot, 0deg));
	animation: library-wish-float var(--wish-dur, 16s) ease-in-out var(--wish-delay, 0s) infinite;
	will-change: transform;
}

.library-wish__bubble--coming {
	border-color: rgba(61, 106, 140, 0.35);
	background: rgba(232, 241, 248, 0.95);
}

.library-wish__bubble--fulfilled {
	border-color: rgba(199, 81, 70, 0.3);
	background: rgba(255, 246, 244, 0.95);
}

.library-wish__bubble-badge {
	align-self: flex-start;
	margin-bottom: 2px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 700;
	color: #fff;
	background: var(--wish-accent);
}

.library-wish__bubble--fulfilled .library-wish__bubble-badge {
	background: #c75146;
}

.library-wish__bubble-title {
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--wish-ink);
}

.library-wish__bubble-formation {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--wish-accent);
}

.library-wish__bubble-note {
	font-size: 0.75rem;
	line-height: 1.45;
	color: #666;
}

.library-wish__vote {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	align-self: flex-start;
	margin-top: 6px;
	padding: 4px 10px;
	border: 1px solid rgba(20, 33, 61, 0.15);
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--wish-ink);
	background: #fff;
	cursor: pointer;
}

.library-wish__vote:hover,
.library-wish__vote.is-voted {
	color: #fff;
	border-color: var(--wish-accent);
	background: var(--wish-accent);
}

.library-wish__vote--static,
.library-wish__vote--demo {
	cursor: default;
	opacity: 0.75;
	pointer-events: none;
}

.library-wish__vote--demo {
	border-style: dashed;
	color: #868e96;
}

.library-wish__vote-count {
	min-width: 1.2em;
	text-align: center;
}

.library-wish__lower {
	padding-bottom: 64px;
}

.library-wish__form-section,
.library-wish__schedule,
.library-wish__stories {
	margin-bottom: 48px;
}

.library-wish__notice,
.library-wish__error {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 8px;
	font-weight: 700;
}

.library-wish__notice {
	color: #1f3b2f;
	background: #e8f5ee;
}

.library-wish__error {
	color: #7a1f1f;
	background: #fdecec;
}

.library-wish__form {
	padding: 28px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.library-wish__form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	font-weight: 700;
}

.library-wish__required {
	margin-left: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #c75146;
}

.library-wish__form input[type="text"],
.library-wish__form input[type="email"],
.library-wish__form select,
.library-wish__form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d7dee8;
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.library-wish__form input:focus,
.library-wish__form select:focus,
.library-wish__form textarea:focus {
	outline: 2px solid rgba(61, 106, 140, 0.35);
	outline-offset: 1px;
}

.library-wish__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.library-wish__form-actions {
	margin-bottom: 0;
}

.library-wish__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 200px;
	padding: 14px 22px;
	border: 0;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 800;
	color: #fff;
	background: var(--wish-ink);
	cursor: pointer;
}

.library-wish__submit:hover {
	background: var(--wish-accent);
}

.library-wish__schedule-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.library-wish__schedule-card {
	padding: 18px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.library-wish__schedule-date {
	margin-bottom: 12px;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--wish-accent);
}

.library-wish__schedule-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.library-wish__schedule-list li {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f3f5;
}

.library-wish__schedule-list li:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.library-wish__schedule-cat {
	display: block;
	margin-bottom: 2px;
	font-size: 0.75rem;
	font-weight: 700;
	color: #868e96;
}

.library-wish__story {
	padding: 24px 28px;
	border-left: 4px solid var(--wish-accent);
	border-radius: 0 12px 12px 0;
	background: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.library-wish__story-title {
	margin: 0 0 10px;
	font-size: 1.1rem;
	font-weight: 800;
}

.library-wish__story-body {
	margin: 0;
	line-height: 1.8;
	color: #555;
}

@keyframes library-wish-float {
	0%,
	100% {
		transform: translate3d(0, 0, 0) rotate(var(--wish-rot, 0deg));
	}

	50% {
		transform: translate3d(0, -14px, 0) rotate(calc(var(--wish-rot, 0deg) + 1.5deg));
	}
}

@media (prefers-reduced-motion: reduce) {
	.library-wish__bubble {
		animation: none;
	}
}

@media (max-width: 900px) {
	.library-wish__schedule-grid {
		grid-template-columns: 1fr;
	}

	.library-wish__coming-row {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.library-wish__coming-meta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 10px;
	}

	.library-wish__sky {
		width: calc(100% - 12px);
		height: max(480px, calc(var(--wish-rows, 4) * 140px));
		min-height: 480px;
	}
}

@media (max-width: 640px) {
	.library-wish__bubble {
		max-width: 46%;
		padding: 10px 12px;
	}

	.library-wish__bubble-title {
		font-size: 0.85rem;
	}

	.library-wish__form {
		padding: 20px;
	}

	.library-wish__sky {
		height: max(520px, calc(var(--wish-rows, 4) * 160px));
	}
}
