/* ==========================================================================
   Little Detective Club: main stylesheet
   The page is a detective's desk; every product is a manila case file.
   Colours come from the Customizer as CSS custom properties (--ldc-*).
   Mobile first. Logical properties (inline/block) so RTL mostly just works.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--ldc-ink: #1d2340;
	--ldc-paper: #f7edd0;
	--ldc-desk: #fffaf0;
	--ldc-clue: #e5483b;
	--ldc-mint: #2fa58a;
	--ldc-sun: #f5b82e;
}

body {
	/* Derived tokens (recomputed from the Customizer colours). */
	--ldc-on-sun: #1d2340;
	--ldc-muted: color-mix(in srgb, var(--ldc-ink) 72%, var(--ldc-desk));
	--ldc-line: color-mix(in srgb, var(--ldc-ink) 22%, transparent);
	--ldc-clue-text: color-mix(in srgb, var(--ldc-clue) 78%, #000);
	--ldc-mint-soft: color-mix(in srgb, var(--ldc-mint) 14%, var(--ldc-desk));
	--ldc-night: var(--ldc-ink);
	--ldc-on-night: var(--ldc-paper);
	--ldc-note: #fff6a8;
	--ldc-font-display: "Lilita One", "Baloo Bhaijaan 2", "Arial Rounded MT Bold", system-ui, sans-serif;
	--ldc-font-body: Nunito, "Baloo Bhaijaan 2", "Segoe UI", system-ui, sans-serif;
	--ldc-font-file: "Special Elite", "Courier New", ui-monospace, monospace;
	--ldc-radius: 14px;
	--ldc-border: 2.5px solid var(--ldc-ink);
	--ldc-shadow: 4px 4px 0 var(--ldc-ink);
	--ldc-wrap: 1180px;
	--ldc-gutter: 16px;
	--ldc-header-h: 68px;
}

@media (prefers-color-scheme: dark) {
	body:not(.ldc-no-dark) {
		--ldc-ink: #f3ead2;
		--ldc-paper: #2a2f4d;
		--ldc-desk: #161a2e;
		--ldc-clue-text: color-mix(in srgb, var(--ldc-clue) 62%, #fff);
		--ldc-night: #0c0f20;
		--ldc-on-night: #f3ead2;
		color-scheme: dark;
	}
}

@media (min-width: 600px) {
	body { --ldc-gutter: 20px; }
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ldc-header-h) + 16px); }
body {
	margin: 0;
	background: var(--ldc-desk);
	color: var(--ldc-ink);
	font: 400 1.0625rem/1.6 var(--ldc-font-body);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--ldc-clue-text); }
h1, h2, h3, h4 {
	font-family: var(--ldc-font-display);
	font-weight: 400;
	line-height: 1.1;
	margin: 0 0 .5em;
	letter-spacing: .01em;
	text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ldc-sun); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ldc-sun); color: var(--ldc-on-sun); }
mark { background: none; color: inherit; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	inset-block-start: 12px; inset-inline-start: 12px; z-index: 1000;
	background: var(--ldc-sun); color: var(--ldc-on-sun); padding: 12px 18px; border-radius: 999px; font-weight: 800;
}
.ldc-main:focus { outline: none; }

/* 3. Layout helpers -------------------------------------------------------- */
.ldc-wrap { width: 100%; max-width: calc(var(--ldc-wrap) + 2 * var(--ldc-gutter)); margin-inline: auto; padding-inline: var(--ldc-gutter); }
.ldc-section { padding-block: clamp(44px, 7vw, 88px); }
.ldc-stack { display: grid; gap: 10px; }
.ldc-stack > * { margin: 0; }
.ldc-band { background: var(--ldc-paper); border-block: var(--ldc-border); }
.ldc-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.ldc-section-head h2 { margin: 0; }
.ldc-eyebrow {
	font-family: var(--ldc-font-file);
	font-size: .9rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ldc-clue-text);
	margin: 0 0 .4em;
}
.ldc-eyebrow a { color: inherit; text-decoration: none; }
.ldc-lede { font-size: 1.15rem; color: var(--ldc-muted); max-width: 56ch; }
.ldc-icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: middle; }
.ldc-admin-hint { padding: 12px 16px; border: 2px dashed var(--ldc-line); border-radius: var(--ldc-radius); }
hr, .wp-block-separator { border: 0; border-top: 2px dashed var(--ldc-line); margin-block: 32px; }

/* 4. Buttons --------------------------------------------------------------- */
.ldc-btn,
.wp-block-button__link,
.wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font: 400 1.12rem/1.1 var(--ldc-font-display); letter-spacing: .02em;
	min-height: 52px; padding: 14px 26px;
	border-radius: 999px; border: 3px solid var(--ldc-ink);
	background: var(--ldc-sun); color: var(--ldc-on-sun);
	text-decoration: none; cursor: pointer; text-align: center;
	box-shadow: var(--ldc-shadow);
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s;
}
.ldc-btn:hover, .wp-block-button__link:hover, .wp-element-button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ldc-ink); color: var(--ldc-on-sun); }
.ldc-btn:active, .wp-block-button__link:active, .wp-element-button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ldc-ink); }
.ldc-btn--ghost { background: transparent; color: var(--ldc-ink); }
.ldc-btn--ghost:hover { color: var(--ldc-ink); background: var(--ldc-paper); }
.ldc-btn--small { min-height: 44px; padding: 10px 18px; font-size: 1rem; box-shadow: 3px 3px 0 var(--ldc-ink); }
.ldc-btn[disabled], .ldc-btn.disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ldc-iconbtn {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 999px;
	border: 2px solid transparent; background: transparent; color: var(--ldc-ink);
	cursor: pointer; text-decoration: none;
}
.ldc-iconbtn:hover { border-color: var(--ldc-ink); color: var(--ldc-ink); }
.ldc-iconbtn .ldc-icon { width: 24px; height: 24px; }

/* 5. Announcement + header ------------------------------------------------- */
.ldc-announce { background: var(--ldc-night); color: var(--ldc-on-night); text-align: center; font-family: var(--ldc-font-file); font-size: .86rem; padding: 8px var(--ldc-gutter); }
.ldc-header {
	position: sticky; inset-block-start: 0; z-index: 50;
	background: var(--ldc-desk);
	border-bottom: 2px dashed var(--ldc-line);
}
.admin-bar .ldc-header { inset-block-start: 46px; }
@media (min-width: 783px) { .admin-bar .ldc-header { inset-block-start: 32px; } }
@media (max-width: 600px) { .admin-bar .ldc-header { inset-block-start: 0; } }
.ldc-header__inner {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
	min-height: var(--ldc-header-h);
}
.ldc-header__brand { min-width: 0; }
.ldc-header__tools { display: flex; align-items: center; gap: 2px; }
.ldc-header__account { display: none; }
.ldc-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.25rem/1 var(--ldc-font-display); color: var(--ldc-ink); }
.ldc-logo:hover { color: var(--ldc-ink); }
.ldc-logo .ldc-icon { width: 40px; height: 40px; }
.ldc-logo { max-width: 100%; }
.ldc-logo .ldc-icon { flex: none; }
.ldc-logo__name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.custom-logo-link img { max-height: 52px; width: auto; }
.ldc-nav { display: none; }
.ldc-cartbtn {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
	padding: 6px 12px; border: 2px solid var(--ldc-ink); border-radius: 999px;
	text-decoration: none; font-weight: 800; color: var(--ldc-ink); margin-inline-start: 4px;
}
.ldc-cartbtn .ldc-icon { width: 22px; height: 22px; }
.ldc-cart-count {
	display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px;
	border-radius: 999px; background: var(--ldc-clue); color: #fff; font-size: .8rem; font-weight: 800;
}
.ldc-cart-count[data-count="0"] { background: var(--ldc-line); color: var(--ldc-ink); }

@media (max-width: 380px) {
	.ldc-logo__name { font-size: 1.05rem; }
	.ldc-logo .ldc-icon { width: 34px; height: 34px; }
}

@media (min-width: 960px) {
	.ldc-header__inner { grid-template-columns: auto 1fr auto; gap: 24px; }
	.ldc-header__burger { display: none; }
	.ldc-header__account { display: inline-grid; }
	.ldc-nav { display: block; justify-self: center; }
	.ldc-nav__list, .ldc-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
	.ldc-nav li { position: relative; }
	.ldc-nav a { display: block; padding: 10px 14px; border-radius: 999px; font-weight: 800; text-decoration: none; }
	.ldc-nav a:hover, .ldc-nav .current-menu-item > a:not([href*="#"]) { background: var(--ldc-paper); color: var(--ldc-ink); }
	.ldc-nav .sub-menu {
		position: absolute; inset-block-start: 100%; inset-inline-start: 0; min-width: 220px;
		list-style: none; margin: 0; padding: 8px; background: var(--ldc-desk);
		border: var(--ldc-border); border-radius: var(--ldc-radius); box-shadow: var(--ldc-shadow);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
	}
	.ldc-nav li:hover > .sub-menu, .ldc-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
}

/* 6. Drawers (mobile menu, search, mini cart) ----------------------------- */
.ldc-drawer { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, #0c0f20 55%, transparent); }
.ldc-drawer[hidden] { display: none; }
.ldc-drawer__panel {
	position: absolute; background: var(--ldc-desk); color: var(--ldc-ink);
	overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--ldc-gutter) 32px;
	transition: transform .25s ease;
}
.ldc-drawer--start .ldc-drawer__panel { inset-block: 0; inset-inline-start: 0; width: min(88vw, 360px); border-inline-end: var(--ldc-border); transform: translateX(-100%); }
.ldc-drawer--end .ldc-drawer__panel { inset-block: 0; inset-inline-end: 0; width: min(92vw, 420px); border-inline-start: var(--ldc-border); transform: translateX(100%); }
.ldc-drawer--top .ldc-drawer__panel { inset-inline: 0; inset-block-start: 0; border-bottom: var(--ldc-border); transform: translateY(-100%); padding-block: 20px; }
.ldc-drawer.is-open .ldc-drawer__panel { transform: none; }
.ldc-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ldc-drawer__title { font: 400 1.5rem/1 var(--ldc-font-display); margin: 0; }
.ldc-mobile-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ldc-mobile-nav a { display: block; padding: 12px 14px; border-radius: 12px; font: 400 1.3rem/1.2 var(--ldc-font-display); text-decoration: none; }
.ldc-mobile-nav a:hover { background: var(--ldc-paper); color: var(--ldc-ink); }
.ldc-mobile-nav .sub-menu { list-style: none; padding-inline-start: 14px; margin: 0; }
.ldc-mobile-nav .sub-menu a { font: 700 1rem/1.3 var(--ldc-font-body); }
.ldc-searchbar { display: flex; align-items: center; gap: 10px; }
.ldc-searchbar form { flex: 1; }
body.ldc-locked { overflow: hidden; }

/* 7. Search form ----------------------------------------------------------- */
.ldc-search, .woocommerce-product-search { display: flex; gap: 8px; width: 100%; }
.ldc-search__input, .woocommerce-product-search .search-field,
.ldc-field input, .ldc-field select,
.ldc-signup__fields input[type="email"] {
	flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 10px 16px;
	border: 2px solid var(--ldc-ink); border-radius: 999px; background: var(--ldc-desk); color: var(--ldc-ink);
}
.woocommerce-product-search button { min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 3px solid var(--ldc-ink); background: var(--ldc-sun); color: var(--ldc-on-sun); font: 400 1rem var(--ldc-font-display); cursor: pointer; }
.ldc-search .ldc-btn span { display: none; }
@media (min-width: 600px) { .ldc-search .ldc-btn span { display: inline; } }

/* 8. Hero ------------------------------------------------------------------ */
.ldc-hero { padding-block: clamp(36px, 6vw, 80px) clamp(44px, 7vw, 88px); overflow: hidden; }
.ldc-hero__grid { display: grid; gap: 32px; align-items: center; }
.ldc-hero__copy { display: grid; gap: 18px; min-width: 0; }
.ldc-hero__copy > * { margin: 0; }
.ldc-hero__title { font-size: clamp(2.3rem, 6.4vw, 4.2rem); }
.ldc-marker {
	background: linear-gradient(transparent 58%, var(--ldc-sun) 58%, var(--ldc-sun) 92%, transparent 92%);
	color: inherit; padding-inline: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ldc-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ldc-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; list-style: none; margin: 0; padding: 0; font-weight: 800; color: var(--ldc-muted); font-size: .95rem; }
.ldc-proof li { display: inline-flex; align-items: center; gap: 6px; }
.ldc-hero__art { max-width: 420px; width: 100%; margin-inline: auto; }
.ldc-hero__art svg, .ldc-hero__img { width: 100%; height: auto; }
.ldc-hero__img { border: var(--ldc-border); border-radius: var(--ldc-radius); box-shadow: 8px 8px 0 var(--ldc-ink); }
@media (min-width: 860px) {
	.ldc-hero__grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
	.ldc-hero__art { max-width: none; }
}

/* 9. Case-file card -------------------------------------------------------- */
.ldc-cases, ul.products {
	display: grid; grid-template-columns: 1fr; gap: 30px 22px;
	list-style: none; margin: 0; padding: 0;
}
@media (min-width: 520px) { .ldc-cases, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ldc-cases, ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
ul.products::before, ul.products::after { display: none !important; }
.ldc-cases__item { min-width: 0; margin: 0; }

.ldc-case { position: relative; height: 100%; display: flex; flex-direction: column; padding-top: 24px; transition: transform .18s ease; }
.ldc-case__tab {
	position: absolute; inset-block-start: 0; inset-inline-start: 18px; z-index: 1;
	height: 27px; padding: 4px 14px 0;
	background: var(--ldc-paper); border: var(--ldc-border); border-bottom: 0;
	border-radius: 10px 10px 0 0;
	font: .8rem/1.4 var(--ldc-font-file); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.ldc-case__body {
	flex: 1; display: flex; flex-direction: column; gap: 12px;
	background: var(--ldc-paper); border: var(--ldc-border);
	border-radius: 4px var(--ldc-radius) var(--ldc-radius) var(--ldc-radius);
	padding: 14px;
	transition: box-shadow .18s ease;
}
/* The card link covers the whole folder (tab included); the button sits above it. */
.ldc-case__link { flex: 1; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ldc-ink); }
.ldc-case__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.ldc-case__link:hover { color: var(--ldc-ink); }
.ldc-case:hover, .ldc-case:focus-within { transform: rotate(-1deg) translateY(-3px); }
.ldc-case:hover .ldc-case__body, .ldc-case:focus-within .ldc-case__body { box-shadow: 6px 8px 0 var(--ldc-line); }
.ldc-case__link:focus-visible { outline: none; }
.ldc-case__link:focus-visible::after { outline: 3px solid var(--ldc-sun); outline-offset: 3px; border-radius: var(--ldc-radius); }
.ldc-case .ldc-case__cart,
.woocommerce .ldc-case a.ldc-case__cart {
	position: relative; z-index: 3; width: 100%; margin: 0; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 16px; font-size: 1rem;
}
.ldc-case .ldc-case__cart .ldc-icon { width: 20px; height: 20px; flex: none; }
.ldc-case .ldc-case__cart.loading { opacity: .6; pointer-events: none; }
.ldc-case .ldc-case__cart.added::after { content: "✓"; margin-inline-start: 4px; font-family: inherit; position: static; }
.ldc-case .added_to_cart {
	position: relative; z-index: 3; align-self: center; margin-top: -4px;
	font-weight: 800; color: var(--ldc-ink); text-decoration: underline; text-underline-offset: 3px;
}
.ldc-case__img {
	position: relative; display: block; flex: none; aspect-ratio: 4 / 3; overflow: visible;
	border-radius: 8px; border: var(--ldc-border); background: var(--ldc-night);
}
.ldc-case__img img, .ldc-case__img svg { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.ldc-case__title { font: 400 1.3rem/1.15 var(--ldc-font-display); margin: 0; }
.ldc-case__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ldc-chip { font-size: .8rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; background: var(--ldc-desk); border: 1.5px solid var(--ldc-line); }
.ldc-case__foot { display: flex; width: 100%; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 2px dashed var(--ldc-line); padding-top: 10px; margin-top: auto; }
.ldc-price, .ldc-case .price { font: 400 1.35rem/1 var(--ldc-font-display); color: var(--ldc-ink); }
.ldc-price del, .price del { font: 600 .95rem var(--ldc-font-body); color: var(--ldc-muted); opacity: 1; }
.ldc-price ins, .price ins { text-decoration: none; background: none; }

/* Rubber stamps */
.ldc-stamp {
	position: absolute; inset-block-start: 10px; inset-inline-end: -8px; z-index: 2;
	transform: rotate(8deg);
	font: .78rem/1 var(--ldc-font-file); letter-spacing: .12em; text-transform: uppercase;
	color: var(--ldc-clue-text); background: var(--ldc-paper);
	border: 2.5px solid currentColor; border-radius: 4px; padding: 6px 9px;
	box-shadow: 0 0 0 2px var(--ldc-paper);
	mix-blend-mode: normal;
}
.ldc-stamp--big { position: static; display: inline-block; justify-self: start; width: max-content; font-size: 1.1rem; padding: 10px 16px; transform: rotate(-6deg); margin-bottom: 18px; }

/* Difficulty magnifiers */
.ldc-difficulty { display: inline-flex; align-items: center; gap: 2px; }
.ldc-difficulty .ldc-icon { width: 19px; height: 19px; }
.ldc-difficulty .is-off { opacity: .22; filter: grayscale(1); }
.ldc-difficulty__label { font-family: var(--ldc-font-file); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-inline-end: 8px; }

/* 10. How it works --------------------------------------------------------- */
.ldc-steps { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.ldc-step { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px; border: var(--ldc-border); border-radius: var(--ldc-radius); background: var(--ldc-desk); min-width: 0; }
.ldc-step__num { font: 400 2.6rem/1 var(--ldc-font-display); color: var(--ldc-clue-text); }
.ldc-step__icon { position: absolute; inset-block-start: 22px; inset-inline-end: 22px; width: 34px; height: 34px; color: var(--ldc-ink); opacity: .85; }
.ldc-step__title { margin: 0; }
.ldc-step p { color: var(--ldc-muted); margin: 0; }
@media (min-width: 760px) { .ldc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ldc-step:not(:last-child)::after {
	content: ""; position: absolute; inset-inline-start: 50%; inset-block-end: -20px; height: 20px;
	border-inline-start: 2px dashed var(--ldc-line);
}
@media (min-width: 760px) {
	.ldc-step:not(:last-child)::after { inset-inline-start: 100%; inset-block: 50% auto; width: 20px; height: 0; border-inline-start: 0; border-top: 2px dashed var(--ldc-ink); }
}
.ldc-band--compact { margin-top: 48px; }

/* 11. Shop by age ---------------------------------------------------------- */
.ldc-ages { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .ldc-ages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ldc-age {
	display: grid; gap: 8px; height: 100%; padding: 22px;
	border-radius: var(--ldc-radius); border: 2.5px solid #1d2340; box-shadow: 5px 5px 0 var(--ldc-ink);
	color: #1d2340; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.ldc-age:hover { color: #1d2340; transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ldc-ink); }
.ldc-age__ages { font-family: var(--ldc-font-file); font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
.ldc-age__name { font: 400 1.9rem/1 var(--ldc-font-display); }
.ldc-age__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; margin-top: 6px; }
.ldc-age__go .ldc-icon { transition: transform .15s; }
.ldc-age:hover .ldc-age__go .ldc-icon { transform: translateX(4px); }
.ldc-age--1 { background: #ffd9a8; }
.ldc-age--2 { background: #b9ead7; }
.ldc-age--3 { background: #c9d4ff; }

/* 12. Witness statements (sticky notes) ----------------------------------- */
.ldc-notes { display: grid; gap: 26px; }
@media (min-width: 760px) { .ldc-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ldc-note {
	position: relative; margin: 0; padding: 30px 22px 22px; min-width: 0;
	background: var(--ldc-note); color: #1d2340; border-radius: 3px;
	box-shadow: 0 12px 18px -12px rgb(0 0 0 / .45);
	display: grid; gap: 12px; align-content: space-between;
}
.ldc-note::before { /* tape */
	content: ""; position: absolute; inset-block-start: -10px; inset-inline-start: 50%; width: 90px; height: 22px;
	transform: translateX(-50%) rotate(-3deg); background: rgb(255 255 255 / .55); border: 1px solid rgb(29 35 64 / .1);
}
.ldc-note:nth-child(3n+1) { transform: rotate(-1.6deg); }
.ldc-note:nth-child(3n+2) { transform: rotate(1.1deg); }
.ldc-note:nth-child(3n+3) { transform: rotate(-.7deg); }
.ldc-note blockquote { margin: 0; font-size: 1.05rem; font-weight: 600; }
.ldc-note figcaption { font-family: var(--ldc-font-file); font-size: .88rem; }

/* 13. FAQ (core Details blocks) ------------------------------------------- */
.ldc-faq-section > * { max-width: calc(var(--ldc-wrap) + 2 * var(--ldc-gutter)); margin-inline: auto; padding-inline: var(--ldc-gutter); }
.ldc-faq-section > .ldc-eyebrow { margin-bottom: .4em; }
.ldc-faq { display: grid; gap: 12px; }
.ldc-faq > * { max-width: 780px; margin: 0; }
.ldc-faq-item, .ldc-faq details {
	border: var(--ldc-border); border-radius: var(--ldc-radius); background: var(--ldc-desk); padding: 0;
}
.ldc-faq-item summary {
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 16px 20px; font-weight: 800; cursor: pointer; list-style: none; border-radius: var(--ldc-radius);
}
.ldc-faq-item summary::-webkit-details-marker { display: none; }
.ldc-faq-item summary::after { content: "+"; font: 400 1.6rem/1 var(--ldc-font-display); color: var(--ldc-clue-text); flex: none; }
.ldc-faq-item[open] summary::after { content: "–"; }
.ldc-faq-item[open] summary { border-bottom: 2px dashed var(--ldc-line); border-radius: var(--ldc-radius) var(--ldc-radius) 0 0; }
.ldc-faq-item > :not(summary) { padding: 14px 20px 18px; margin: 0; color: var(--ldc-muted); }

/* 14. Signup band ---------------------------------------------------------- */
.ldc-signup {
	display: grid; gap: 24px; align-items: center;
	background: var(--ldc-night); color: var(--ldc-on-night);
	border-radius: 24px; padding: clamp(26px, 5vw, 56px);
	--ldc-ink: var(--ldc-on-night);
}
.ldc-signup .ldc-eyebrow { color: var(--ldc-sun); }
.ldc-signup .ldc-lede { color: inherit; opacity: .88; }
.ldc-signup h2 { margin: 0; }
.ldc-signup__fields { display: flex; flex-wrap: wrap; gap: 12px; }
.ldc-signup__fields input[type="email"] { flex: 1 1 220px; background: transparent; border-color: currentColor; color: inherit; }
.ldc-signup__fields input::placeholder { color: inherit; opacity: .7; }
.ldc-signup .ldc-btn { box-shadow: 4px 4px 0 var(--ldc-clue); border-color: var(--ldc-on-night); color: var(--ldc-on-sun); }
.ldc-signup .ldc-btn:hover { box-shadow: 6px 6px 0 var(--ldc-clue); }
.ldc-signup__small { font-size: .85rem; opacity: .75; margin-top: 10px; }
.ldc-signup__msg { padding: 10px 14px; border-radius: 12px; margin-bottom: 12px; font-weight: 700; background: rgb(255 255 255 / .1); }
.ldc-signup__msg--ok { border: 2px solid var(--ldc-mint); }
.ldc-signup__msg--invalid, .ldc-signup__msg--error { border: 2px solid var(--ldc-clue); }
.ldc-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 860px) { .ldc-signup { grid-template-columns: 1.2fr 1fr; } }

/* 15. Footer --------------------------------------------------------------- */
.ldc-footer {
	--ldc-ink: var(--ldc-on-night);
	background: var(--ldc-night); color: var(--ldc-on-night);
	padding-block: 56px 28px; margin-top: 0;
}
.ldc-footer a { color: inherit; }
.ldc-footer a:hover { color: var(--ldc-sun); }
.ldc-footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .ldc-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.ldc-footer__text { max-width: 44ch; opacity: .85; margin-top: 14px; }
.ldc-footer__title { font-size: 1.2rem; margin-bottom: 12px; }
.ldc-footer__menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ldc-footer__menu a { text-decoration: none; font-weight: 700; }
.ldc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 2px dashed rgb(255 255 255 / .2); font-size: .9rem; }
.ldc-footer__copy { opacity: .8; margin: 0; }
.ldc-footer .ldc-logo { color: var(--ldc-on-night); }
.ldc-social, .ldc-payments { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.ldc-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid currentColor; border-radius: 999px; }
.ldc-social .ldc-icon { width: 20px; height: 20px; }
.ldc-payments { margin: 0; }
.ldc-payments .ldc-icon { width: 46px; height: 29px; }

/* 16. Pages, posts, blocks ------------------------------------------------- */
.ldc-page-head { margin-bottom: 28px; }
.ldc-page-head h1 { margin-bottom: .2em; }
.ldc-page-head--post { max-width: calc(760px + 2 * var(--ldc-gutter)); }
.ldc-page-head__search { max-width: 560px; margin-top: 18px; }
.ldc-postmeta { font-family: var(--ldc-font-file); font-size: .9rem; color: var(--ldc-muted); margin: 0; }

/* Block content: constrained column with wide/full escapes. */
.ldc-entry > * { max-width: calc(760px + 2 * var(--ldc-gutter)); margin-inline: auto; padding-inline: var(--ldc-gutter); }
.ldc-entry > .alignwide { max-width: calc(var(--ldc-wrap) + 2 * var(--ldc-gutter)); }
.ldc-entry > .alignfull { max-width: none; padding-inline: 0; }
.ldc-entry > .alignfull.has-background, .ldc-entry > .alignfull.wp-block-group { padding-inline: var(--ldc-gutter); }
.ldc-store-page .ldc-entry > * { max-width: calc(var(--ldc-wrap) + 2 * var(--ldc-gutter)); }
.ldc-blocks > * { margin-block: 0; }
.ldc-blocks > :not(.alignfull):not(section) { max-width: calc(var(--ldc-wrap) + 2 * var(--ldc-gutter)); margin-inline: auto; padding-inline: var(--ldc-gutter); }
.ldc-prose { line-height: 1.7; }
.ldc-prose > * + * { margin-top: 1.1em; }
.ldc-prose h2 { margin-top: 1.6em; }
.ldc-prose a:not([class]) { color: var(--ldc-clue-text); font-weight: 700; }
.ldc-store-page .ldc-prose a:not([class]) { color: inherit; }
.ldc-prose blockquote { border-inline-start: 4px solid var(--ldc-sun); margin-inline: 0; padding: 4px 0 4px 18px; font-size: 1.15rem; }
.ldc-prose img { border-radius: var(--ldc-radius); }
.ldc-prose > ul li::marker { color: var(--ldc-clue); }
.wp-block-image figcaption, .wp-caption-text { font-size: .9rem; color: var(--ldc-muted); text-align: center; }
.has-ink-color { color: var(--ldc-ink) !important; }
.wp-block-group.has-background { border-radius: var(--ldc-radius); }

.ldc-posts { display: grid; gap: 28px; }
@media (min-width: 640px) { .ldc-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ldc-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ldc-postcard__link { display: grid; grid-template-rows: auto 1fr; height: 100%; text-decoration: none; color: var(--ldc-ink); border: var(--ldc-border); border-radius: var(--ldc-radius); overflow: hidden; background: var(--ldc-paper); transition: transform .18s; }
.ldc-postcard__link:hover { color: var(--ldc-ink); transform: rotate(-.6deg) translateY(-3px); }
.ldc-postcard__img { aspect-ratio: 4 / 3; border-bottom: var(--ldc-border); background: var(--ldc-night); }
.ldc-postcard__img img, .ldc-postcard__img svg { width: 100%; height: 100%; object-fit: cover; }
.ldc-postcard__body { padding: 18px; display: grid; gap: 8px; align-content: start; }
.ldc-postcard__title { font-size: 1.35rem; margin: 0; }
.ldc-postcard__body p { color: var(--ldc-muted); margin: 0; }
.ldc-single-post__cover img { width: 100%; border-radius: var(--ldc-radius); border: var(--ldc-border); margin-bottom: 32px; }
.ldc-single-post__foot { max-width: calc(760px + 2 * var(--ldc-gutter)); margin-top: 40px; }
.ldc-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border: 1.5px solid var(--ldc-line); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.post-navigation .nav-links { display: grid; gap: 14px; border-top: 2px dashed var(--ldc-line); padding-top: 20px; }
@media (min-width: 640px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } .post-navigation .nav-next { text-align: end; } }
.post-navigation a { text-decoration: none; font: 400 1.2rem/1.2 var(--ldc-font-display); }
.post-navigation .ldc-eyebrow { display: block; font-size: .8rem; }

.pagination, .woocommerce-pagination { margin-top: 40px; }
.nav-links, .woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px; border: 2px solid var(--ldc-ink); border-radius: 999px; text-decoration: none; font-weight: 800; }
.page-numbers.current { background: var(--ldc-sun); color: var(--ldc-on-sun); border-color: var(--ldc-ink); }

.ldc-comments { max-width: calc(760px + 2 * var(--ldc-gutter)); padding-bottom: 60px; }
.ldc-comments__list { list-style: none; padding: 0; }
.ldc-comments .comment-body { border: 2px solid var(--ldc-line); border-radius: var(--ldc-radius); padding: 16px; margin-bottom: 14px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 2px solid var(--ldc-ink); border-radius: 12px; background: var(--ldc-desk);
}

.ldc-empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--ldc-line); border-radius: var(--ldc-radius); }
.ldc-empty__title { font: 400 1.6rem/1.2 var(--ldc-font-display); }

/* 404 */
.ldc-404__file { position: relative; max-width: 760px; margin-inline: auto; padding-top: 26px; }
.ldc-404__file .ldc-case__tab { font-size: .9rem; }
.ldc-404__body { background: var(--ldc-paper); border: var(--ldc-border); border-radius: 4px var(--ldc-radius) var(--ldc-radius) var(--ldc-radius); padding: clamp(24px, 5vw, 48px); display: grid; gap: 18px; }
.ldc-404__body > * { margin: 0; }
.ldc-404__body h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.ldc-404__prints { position: absolute; inset-inline-end: 10px; inset-block-end: -30px; width: 60px; height: 60px; color: var(--ldc-ink); opacity: .35; transform: rotate(20deg); }

/* Notices shared by theme + WooCommerce */
.ldc-notice-download {
	display: flex; gap: 10px; align-items: flex-start;
	padding: 12px 16px; margin: 16px 0; border-radius: 12px;
	background: var(--ldc-mint-soft); border: 2px solid var(--ldc-mint); color: var(--ldc-ink); font-weight: 700;
}
.ldc-notice-download .ldc-icon { width: 22px; height: 22px; margin-top: 1px; }

/* 17. Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.ldc-case:hover, .ldc-case:focus-within,
	.ldc-postcard__link:hover, .ldc-btn:hover, .ldc-age:hover { transform: none; }
}
