/* ============================================================
   DrawCub theme stylesheet — sketchbook style, mobile-first.
   Tokens per SPEC section 1. Vanilla CSS, no frameworks.
   ============================================================ */

:root {
	--paper: #FAF6EC;
	--card: #FFFFFF;
	--ink: #2A2620;
	--heading: #222222;
	--red: #E63946;
	--red-deep: #C1272D;
	--cta: linear-gradient(135deg, #F25C54, #E63946);
	--darkbtn: #3B332A;
	--easy: #34A76C;
	--medium: #F0A93C;
	--hard: #A55FE0;
	--grey: #8A8378;
	--footerbg: #4A3B2C;
	--footertext: #F5EDE0;
	--line: #EDE3D2;
	--shadow: 0 4px 18px rgba(60, 40, 20, .08);
	--radius: 18px;
	--radius-sm: 14px;
	--font-head: 'Fredoka', 'Nunito', system-ui, sans-serif;
	--font-body: 'Nunito', system-ui, -apple-system, sans-serif;
	--tabbar-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	background-image: radial-gradient(rgba(60, 40, 20, .045) 1px, transparent 1px);
	background-size: 26px 26px;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: clip;
}

h1, h2, h3, h4 {
	font-family: var(--font-head);
	color: var(--heading);
	line-height: 1.25;
	margin: 0 0 .6em;
	font-weight: 600;
}

/* Grid blowout guard: grid/flex items default to min-width:auto, which lets a
   single wide child (e.g. a search input's default size) force its track wider
   than the viewport on phones. Forcing min-width:0 lets tracks shrink. */
.dc-hero-inner > *, .dc-tiles > *, .dc-grid-cards > *, .dc-grid-3 > *,
.dc-band-steps > *, .dc-allsteps-list > *, .dc-related-grid > *,
.dc-footer-inner > *, .dc-lead > * {
	min-width: 0;
}

p { margin: 0 0 1em; }

a { color: var(--red-deep); }
a:hover, a:active, a:focus { color: var(--red); }

img { max-width: 100%; height: auto; display: block; }

button, input, select, textarea { font: inherit; }

/* Visible focus everywhere (keyboard + touch). */
:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 2px;
	border-radius: 6px;
}

.dc-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
}

.dc-narrow { max-width: 780px; }

.dc-sr {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

.dc-skip {
	position: absolute;
	left: 12px; top: -60px;
	background: var(--darkbtn);
	color: #fff;
	padding: 10px 18px;
	border-radius: 10px;
	z-index: 200;
	text-decoration: none;
	transition: top .2s;
}
.dc-skip:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.dc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--cta);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 14px 30px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 17px;
	text-decoration: none;
	cursor: pointer;
	min-height: 48px;
	box-shadow: 0 4px 14px rgba(230, 57, 70, .35);
	transition: transform .15s, box-shadow .15s, filter .15s;
}
.dc-btn:hover, .dc-btn:active, .dc-btn:focus { color: #fff; filter: brightness(1.06); }
.dc-btn:active { transform: scale(.97); }

.dc-btn-dark { background: var(--darkbtn); box-shadow: 0 4px 14px rgba(59, 51, 42, .3); }
.dc-btn-ghost { background: transparent; color: var(--ink); box-shadow: none; border: 2px solid var(--line); }
.dc-btn-ghost:hover, .dc-btn-ghost:active, .dc-btn-ghost:focus { color: var(--red-deep); border-color: var(--red); }
.dc-btn-light { background: #fff; color: var(--red-deep); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.dc-btn-light:hover, .dc-btn-light:active, .dc-btn-light:focus { color: var(--red); }

.dc-mini-btn {
	border: 2px solid var(--line);
	background: #fff;
	border-radius: 999px;
	padding: 10px 16px;
	min-height: 44px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	color: var(--ink);
	transition: border-color .15s, color .15s, background .15s;
}
.dc-mini-btn:hover, .dc-mini-btn:active, .dc-mini-btn:focus { border-color: var(--red); color: var(--red-deep); }
.dc-mini-btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.dc-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border: 0;
	background: transparent;
	color: var(--ink);
	border-radius: 12px;
	cursor: pointer;
}
.dc-icon-btn:hover, .dc-icon-btn:active, .dc-icon-btn:focus { color: var(--red); background: rgba(230, 57, 70, .08); }

/* ---------- Badges ---------- */
.dc-badge {
	display: inline-block;
	color: #fff;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 12px;
	border-radius: 999px;
}
.dc-badge-easy { background: var(--easy); }
.dc-badge-medium { background: var(--medium); }
.dc-badge-hard { background: var(--hard); }

.dc-meta-time, .dc-meta-steps { color: var(--grey); font-size: 14px; font-weight: 700; }

/* ---------- Sections / grids / cards ---------- */
.dc-section { padding: 44px 0; }

.dc-section-title {
	font-size: 30px;
	text-align: center;
	margin-bottom: 26px;
	position: relative;
	padding-bottom: 14px;
}
.dc-section-title::after {
	content: "";
	position: absolute;
	left: 50%; bottom: 0;
	transform: translateX(-50%);
	width: 120px; height: 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10'%3E%3Cpath d='M2 6c10-4 16 4 26 0s16 4 26 0 16 4 26 0 16 4 26 0' fill='none' stroke='%23E63946' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.dc-grid { display: grid; gap: 22px; }
.dc-grid-cards { grid-template-columns: 1fr; }
.dc-grid-3 { grid-template-columns: 1fr; }

.dc-card {
	background: var(--card);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .18s, box-shadow .18s;
}
.dc-card:hover, .dc-card:active, .dc-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 10px 26px rgba(60, 40, 20, .14);
}
.dc-card-link { display: block; text-decoration: none; color: inherit; }
.dc-card-link:hover, .dc-card-link:active, .dc-card-link:focus { color: inherit; }
.dc-card-thumb {
	display: block;
	aspect-ratio: 1 / 1;
	background: #F6EEDC;
	overflow: hidden;
}
.dc-card-thumb-wide { aspect-ratio: 16 / 10; }
.dc-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dc-card-thumb-fallback { object-fit: contain; padding: 40px; }
.dc-card-body { display: block; padding: 16px 18px 18px; }
.dc-card-title {
	display: block;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 18px;
	color: var(--heading);
	margin-bottom: 8px;
	line-height: 1.35;
}
.dc-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.dc-empty {
	text-align: center;
	background: var(--card);
	border: 2px dashed var(--line);
	border-radius: var(--radius);
	padding: 44px 24px;
	color: var(--grey);
}
.dc-empty img { margin: 0 auto 14px; }
.dc-empty .dc-search-form { max-width: 420px; margin: 18px auto 0; }

/* ---------- Search form ---------- */
.dc-search-form { display: flex; gap: 10px; width: 100%; }
.dc-search-form .dc-btn, .dc-search-form .dc-icon-btn { flex-shrink: 0; }
.dc-search-form input[type="search"],
.dc-search-form input[type="text"],
.dc-search-form input[type="email"] {
	flex: 1;
	min-width: 0;
	border: 2px solid var(--line);
	border-radius: 999px;
	padding: 13px 22px;
	min-height: 52px;
	background: #fff;
	color: var(--ink);
}
.dc-search-form input:focus { border-color: var(--red); outline: none; }

/* ---------- Header ---------- */
.dc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 246, 236, .96);
	backdrop-filter: blur(6px);
	border-bottom: 2px solid var(--line);
}
.dc-header-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-top: 10px;
	padding-bottom: 10px;
	min-height: 68px;
}
.dc-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	margin-right: auto;
}
.dc-logo:hover, .dc-logo:active, .dc-logo:focus { text-decoration: none; }
.dc-logo-cub { width: 44px; height: 44px; }
.dc-logo.is-small .dc-logo-cub { width: 34px; height: 34px; }
.dc-logo-word {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 26px;
	color: var(--heading);
	letter-spacing: .01em;
}
.dc-logo-word span { color: var(--red); }
.dc-logo img.custom-logo { max-height: 52px; width: auto; }

.dc-nav { display: none; }
.dc-menu {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: 4px;
}
.dc-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 6px 14px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--ink);
	font-weight: 700;
	font-size: 16px;
}
.dc-menu a:hover, .dc-menu a:active, .dc-menu a:focus { background: rgba(230, 57, 70, .1); color: var(--red-deep); }

.dc-header-cta { display: none; }
.dc-search-toggle { display: inline-flex; }

/* Mobile search overlay: slides down under the header. */
.dc-search-overlay {
	border-top: 2px dashed var(--line);
	padding: 14px 0;
	background: var(--paper);
	animation: dc-slide-down .22s ease;
}
@keyframes dc-slide-down {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: none; }
}
.dc-search-form-overlay { align-items: center; }

/* ---------- Hero ---------- */
.dc-hero { padding: 36px 0 30px; overflow: hidden; }
.dc-hero-inner {
	display: grid;
	gap: 26px;
	align-items: center;
}
.dc-hero-title { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.dc-hero-title .dc-red { color: var(--red); }
.dc-hero-sub { font-size: 18px; color: #5A5347; max-width: 34em; }
.dc-hero-search { max-width: 520px; margin: 20px 0 14px; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dc-chips-label { font-weight: 800; color: var(--grey); font-size: 14px; }
.dc-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 18px;
	background: #fff;
	border: 2px solid var(--line);
	border-radius: 999px;
	text-decoration: none;
	color: var(--ink);
	font-weight: 700;
	font-size: 15px;
	transition: border-color .15s, color .15s;
}
.dc-chip:hover, .dc-chip:active, .dc-chip:focus { border-color: var(--red); color: var(--red-deep); }
.dc-hero-art { position: relative; text-align: center; }
.dc-hero-art img { width: min(340px, 80%); margin: 0 auto; }
.dc-doodle { position: absolute; }
.dc-doodle-star1 { top: 6%; left: 8%; animation: dc-float 4s ease-in-out infinite; }
.dc-doodle-star2 { bottom: 18%; right: 6%; animation: dc-float 5s ease-in-out infinite reverse; }
.dc-doodle-squiggle { bottom: 2%; left: 12%; }
@keyframes dc-float {
	0%, 100% { transform: translateY(0) rotate(-6deg); }
	50% { transform: translateY(-10px) rotate(6deg); }
}

/* ---------- Category tiles ---------- */
.dc-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.dc-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	text-decoration: none;
	color: var(--heading);
	border-radius: var(--radius);
	padding: 22px 12px;
	min-height: 150px;
	box-shadow: var(--shadow);
	transition: transform .18s, box-shadow .18s;
}
.dc-tile:hover, .dc-tile:active, .dc-tile:focus { transform: translateY(-4px); color: var(--heading); box-shadow: 0 10px 26px rgba(60, 40, 20, .14); }
.dc-tile-icon { color: var(--red-deep); }
.dc-tile-name { font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.3; }
.dc-tile-count { font-size: 13px; color: var(--grey); font-weight: 700; }

/* ---------- Red-line explainer band ---------- */
.dc-band {
	border-top: 3px dashed var(--red);
	border-bottom: 3px dashed var(--red);
	background: #FFFDF6;
	padding: 44px 0;
}
.dc-band-sub { text-align: center; color: #5A5347; margin-bottom: 26px; }
.dc-band-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 22px;
	max-width: 860px;
	margin: 0 auto;
}
.dc-band-step {
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 22px;
	text-align: center;
}
.dc-band-step svg { margin: 0 auto 8px; }
.dc-band-step p { margin: 0; }

/* ---------- Idea generator ---------- */
.dc-idea-card {
	background: var(--card);
	border-radius: 22px;
	box-shadow: var(--shadow);
	border: 2px dashed var(--red);
	padding: 40px 28px;
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}
.dc-idea-sub { color: var(--grey); margin-bottom: 6px; }
.dc-idea-text {
	font-family: var(--font-head);
	font-size: 30px;
	font-weight: 600;
	color: var(--red-deep);
	min-height: 2.4em;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .18s;
}
.dc-idea-text.is-swapping { opacity: 0; }

/* ---------- Lead magnet ---------- */
.dc-lead {
	background: var(--darkbtn);
	color: #fff;
	border-radius: 22px;
	padding: 40px 28px;
	text-align: center;
	box-shadow: var(--shadow);
}
.dc-lead h2 { color: #fff; font-size: 28px; }
.dc-lead-copy p { color: #EDE3D2; max-width: 36em; margin: 0 auto 20px; }
.dc-lead-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 560px;
	margin: 0 auto;
}
.dc-lead-form input {
	border: 2px solid transparent;
	border-radius: 999px;
	padding: 13px 22px;
	min-height: 52px;
	background: #fff;
	color: var(--ink);
	width: 100%;
}
.dc-lead-form input:focus { border-color: var(--red); outline: none; }
.dc-lead-note { color: #CBBFA9; font-size: 14px; margin: 16px 0 0; }

/* ---------- PDF banner ---------- */
.dc-pdf-banner {
	background: var(--cta);
	border-radius: 22px;
	color: #fff;
	padding: 36px 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	align-items: flex-start;
	box-shadow: 0 8px 24px rgba(230, 57, 70, .3);
}
.dc-pdf-banner h2 { color: #fff; margin-bottom: 6px; font-size: 26px; }
.dc-pdf-banner p { margin: 0; color: #FFE9E4; }

/* ---------- Latest articles strip ---------- */
.dc-strip-section { padding-bottom: 54px; }
.dc-strip-viewport {
	position: relative;
	overflow: hidden;
	padding: 6px 0 18px;
	touch-action: pan-y;
}
.dc-strip-drag {
	transform: translateX(var(--dx, 0px));
	transition: transform .25s ease;
	will-change: transform;
}
.dc-strip-drag.is-dragging { transition: none; cursor: grabbing; }
.dc-strip-track {
	display: flex;
	gap: 18px;
	width: max-content;
	animation: dc-strip-scroll 46s linear infinite;
}
.dc-strip-track.is-paused { animation-play-state: paused; }
.dc-strip-viewport:hover .dc-strip-track { animation-play-state: paused; }
@keyframes dc-strip-scroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.dc-strip-item { width: 250px; flex: 0 0 auto; }
.dc-strip-item .dc-card { height: 100%; }
.dc-strip-fade {
	position: absolute;
	top: 0; bottom: 0;
	width: 56px;
	pointer-events: none;
	z-index: 2;
}
.dc-strip-fade-left { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.dc-strip-fade-right { right: 0; background: linear-gradient(to left, var(--paper), transparent); }

/* ---------- Footer ---------- */
.dc-footer {
	background: var(--footerbg);
	color: var(--footertext);
	margin-top: 20px;
}
.dc-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	padding-top: 44px;
	padding-bottom: 34px;
}
.dc-footer .dc-logo-word { color: #fff; }
.dc-footer-tagline { color: #D9CBB4; }
.dc-social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.dc-social a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	border: 1px solid rgba(245, 237, 224, .35);
	border-radius: 999px;
	color: var(--footertext);
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
}
.dc-social a:hover, .dc-social a:active, .dc-social a:focus { background: rgba(245, 237, 224, .14); color: #fff; }
.dc-footer-heading { color: #fff; font-size: 18px; margin-bottom: 12px; }
.dc-footer-col ul { list-style: none; margin: 0; padding: 0; }
.dc-footer-col li { margin-bottom: 4px; }
.dc-footer-col a {
	color: var(--footertext);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
.dc-footer-col a:hover, .dc-footer-col a:active, .dc-footer-col:focus { color: #fff; text-decoration: underline; }
.dc-footer-bottom { border-top: 1px solid rgba(245, 237, 224, .2); }
.dc-footer-bottom-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding-top: 16px;
	padding-bottom: 16px;
	font-size: 14px;
	color: #D9CBB4;
}
.dc-copy { margin-left: auto; }

/* ---------- Mobile app tab bar ---------- */
.dc-tabbar { display: none; }

@media (max-width: 767px) {
	/* Room for the fixed tab bar + iPhone home indicator. */
	body {
		padding-bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom, 0px));
	}

	.dc-tabbar {
		display: flex;
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 150;
		height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
		padding-bottom: env(safe-area-inset-bottom, 0px);
		padding-left: env(safe-area-inset-left, 0px);
		padding-right: env(safe-area-inset-right, 0px);
		background: rgba(255, 255, 255, .97);
		backdrop-filter: blur(8px);
		border-top: 2px solid var(--line);
		box-shadow: 0 -4px 18px rgba(60, 40, 20, .1);
	}
	.dc-tabbar a, .dc-tabbar button {
		flex: 1 1 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-height: var(--tabbar-h);
		border: 0;
		background: none;
		color: var(--grey);
		text-decoration: none;
		font-size: 11.5px;
		font-weight: 800;
		cursor: pointer;
		font-family: var(--font-body);
	}
	.dc-tabbar a:hover, .dc-tabbar a:active, .dc-tabbar a:focus,
	.dc-tabbar button:hover, .dc-tabbar button:active, .dc-tabbar button:focus {
		color: var(--red-deep);
	}
	.dc-tabbar .is-active { color: var(--red); }
	.dc-tabbar .is-active svg { transform: scale(1.12); }

	/* Compact mobile header: logo + search icon only. */
	.dc-nav, .dc-header-cta { display: none; }
	.dc-search-toggle { display: inline-flex; margin-left: auto; }
	.dc-header-inner { min-height: 60px; }
	.dc-logo { margin-right: 0; }
	.dc-logo-word { font-size: 22px; }
}

/* ---------- Tutorial page + Step Player v2 ---------- */
.dc-tutorial-head { margin-bottom: 22px; }
.dc-tutorial-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.dc-tutorial-intro { font-size: 18px; color: #5A5347; }

.dc-player {
	background: var(--card);
	border-radius: 22px;
	box-shadow: 0 10px 34px rgba(60, 40, 20, .12);
	padding: 18px;
	margin-bottom: 26px;
	border: 1px solid var(--line);
}

.dc-player-stage {
	position: relative;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: #fff;
	border: 2px solid var(--line);
	touch-action: pan-y;
}
.dc-player-stage[data-paper="grid"] {
	background-color: #fff;
	background-image:
		linear-gradient(rgba(46, 134, 222, .14) 1px, transparent 1px),
		linear-gradient(90deg, rgba(46, 134, 222, .14) 1px, transparent 1px);
	background-size: 34px 34px;
}
.dc-player-stage[data-paper="dotted"] {
	background-color: #fff;
	background-image: radial-gradient(rgba(60, 40, 20, .22) 1.6px, transparent 1.6px);
	background-size: 26px 26px;
}
.dc-player-stage img#dc-step-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
}

.dc-ring {
	position: absolute;
	top: 12px; right: 12px;
	display: none;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25));
}
.dc-ring.is-live { display: block; }
.dc-ring svg { animation: dc-ring-pulse 1s ease-in-out infinite; }
@keyframes dc-ring-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

.dc-step-caption {
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	margin: 14px 0 10px;
	min-height: 2.6em;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dc-player-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
}
.dc-step-count {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 16px;
	white-space: nowrap;
}
.dc-progress {
	flex: 1;
	height: 12px;
	background: var(--line);
	border-radius: 999px;
	overflow: hidden;
}
.dc-progress-fill {
	display: block;
	height: 100%;
	background: var(--cta);
	border-radius: 999px;
	transition: width .3s ease;
}

/* Controls stack under the image (mobile-first). */
.dc-player-controls { display: grid; gap: 12px; }
.dc-controls-nav {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
}
.dc-nav-btn { padding: 14px 8px; font-size: 16px; min-height: 56px; }
#dc-play.is-playing { background: var(--easy); box-shadow: 0 4px 14px rgba(52, 167, 108, .35); }

.dc-controls-extra {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
}
.dc-paper-toggle { display: flex; gap: 8px; }
.dc-peek { user-select: none; -webkit-user-select: none; touch-action: none; }

.dc-player-hint {
	text-align: center;
	color: var(--grey);
	font-size: 14px;
	margin: 12px 0 0;
}

/* ---------- Draw Here canvas ---------- */
.dc-drawhere {
	position: absolute;
	inset: 0;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.dc-drawhere[hidden] { display: none; }
#dc-canvas {
	width: 100%;
	aspect-ratio: 1 / 1;
	touch-action: none;
	cursor: crosshair;
	background: #fff;
}
.dc-dh-tools {
	border-top: 2px solid var(--line);
	padding: 10px 12px 14px;
	background: #FFFDF6;
	display: grid;
	gap: 10px;
}
.dc-dh-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}
.dc-dh-btn {
	border: 2px solid var(--line);
	background: #fff;
	border-radius: 12px;
	padding: 10px 14px;
	min-height: 44px;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	color: var(--ink);
}
.dc-dh-btn:hover, .dc-dh-btn:active, .dc-dh-btn:focus { border-color: var(--red); color: var(--red-deep); }
.dc-dh-btn.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.dc-dh-save { background: var(--darkbtn); border-color: var(--darkbtn); color: #fff; }
.dc-dh-save:hover, .dc-dh-save:active, .dc-dh-save:focus { color: #fff; filter: brightness(1.15); }
.dc-dh-colors { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dc-dh-swatch {
	width: 44px; height: 44px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--line);
	cursor: pointer;
	padding: 0;
}
.dc-dh-swatch:hover, .dc-dh-swatch:active, .dc-dh-swatch:focus { transform: scale(1.1); }
.dc-dh-swatch.is-active { box-shadow: 0 0 0 3px var(--red); }
.dc-dh-size input[type="range"] { width: 130px; accent-color: var(--red); min-height: 44px; }

/* ---------- Final screen ---------- */
.dc-final-screen {
	background: var(--card);
	border-radius: 22px;
	box-shadow: 0 10px 34px rgba(60, 40, 20, .12);
	border: 2px dashed var(--red);
	padding: 30px 22px;
	text-align: center;
	margin-bottom: 26px;
}
.dc-final-screen h2 { font-size: 30px; }
.dc-final-screen img {
	max-width: 420px;
	margin: 0 auto 20px;
	border-radius: var(--radius-sm);
	border: 2px solid var(--line);
}
.dc-final-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- All steps (SEO layer) ---------- */
.dc-allsteps { margin: 40px 0; }
.dc-allsteps h2 { font-size: 26px; margin-bottom: 20px; }
.dc-allsteps-list {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}
.dc-allsteps-item {
	background: var(--card);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	padding: 16px;
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 16px;
	align-items: center;
}
.dc-allsteps-item img { border-radius: 10px; border: 1px solid var(--line); }
.dc-allsteps-item p { margin: 0; }

/* ---------- Archives / pages ---------- */
.dc-page-head { margin-bottom: 24px; }
.dc-page-title { font-size: 34px; margin-bottom: 8px; }
.dc-page-sub { color: #5A5347; font-size: 18px; }

.dc-breadcrumbs { font-size: 14px; color: var(--grey); margin-bottom: 14px; }
.dc-breadcrumbs a { color: var(--grey); text-decoration: none; font-weight: 700; }
.dc-breadcrumbs a:hover, .dc-breadcrumbs a:active, .dc-breadcrumbs a:focus { color: var(--red-deep); }
.dc-crumb-sep { margin: 0 8px; }

.dc-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.dc-filter-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 20px;
	border: 2px solid var(--line);
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
	color: var(--ink);
	font-weight: 800;
	font-size: 15px;
}
.dc-filter-link:hover, .dc-filter-link:active, .dc-filter-link:focus { border-color: var(--red); color: var(--red-deep); }
.dc-filter-link.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Article single ---------- */
.dc-prose { font-size: 18px; }
.dc-prose h2 { font-size: 27px; margin-top: 1.6em; }
.dc-prose h3 { font-size: 22px; margin-top: 1.4em; }
.dc-prose ul, .dc-prose ol { padding-left: 1.4em; }
.dc-prose li { margin-bottom: .5em; }
.dc-prose img { border-radius: var(--radius-sm); }
.dc-post-meta { color: var(--grey); font-weight: 700; }
.dc-featured { margin: 0 0 24px; }
.dc-featured img { border-radius: var(--radius); box-shadow: var(--shadow); }
.dc-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 2px solid var(--line);
}
.dc-post-nav a {
	font-weight: 800;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}
.dc-post-nav-next { margin-left: auto; text-align: right; }

.dc-related { background: #FFFDF6; border-top: 2px solid var(--line); }

/* ---------- Pagination ---------- */
.dc-pagination, .pagination { margin-top: 34px; text-align: center; }
.dc-pagination .nav-links, .pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.dc-pagination a, .dc-pagination span,
.pagination a, .pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px; min-height: 44px;
	padding: 8px 14px;
	border-radius: 12px;
	background: #fff;
	border: 2px solid var(--line);
	text-decoration: none;
	font-weight: 800;
	color: var(--ink);
}
.dc-pagination a:hover, .dc-pagination a:active, .dc-pagination a:focus,
.pagination a:hover, .pagination a:active, .pagination a:focus { border-color: var(--red); color: var(--red-deep); }
.dc-pagination .current, .pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- 404 ---------- */
.dc-404 { text-align: center; padding: 30px 0; }
.dc-404 img { margin: 0 auto 18px; }
.dc-404 .dc-search-form { max-width: 480px; margin: 22px auto 34px; }

/* ---------- Comments ---------- */
.dc-comments { margin-top: 40px; }
.dc-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.dc-comment-list .comment {
	background: var(--card);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	padding: 18px;
	margin-bottom: 16px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 2px solid var(--line);
	border-radius: 12px;
	padding: 12px 16px;
	background: #fff;
	margin-bottom: 12px;
}
.comment-form .submit {
	background: var(--cta);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 13px 30px;
	min-height: 48px;
	font-weight: 700;
	cursor: pointer;
}

/* ---------- Responsive: 480px+ ---------- */
@media (min-width: 480px) {
	.dc-grid-cards { grid-template-columns: 1fr 1fr; }
	.dc-grid-3 { grid-template-columns: 1fr 1fr; }
	.dc-allsteps-list { grid-template-columns: 1fr 1fr; }
	.dc-allsteps-item { grid-template-columns: 1fr; }
	.dc-lead-form { flex-direction: row; flex-wrap: wrap; }
	.dc-lead-form input[type="text"] { flex: 1 1 150px; }
	.dc-lead-form input[type="email"] { flex: 2 1 200px; }
	.dc-lead-form .dc-btn { flex: 1 1 100%; }
}

/* ---------- Responsive: 768px+ (desktop) ---------- */
@media (min-width: 768px) {
	body { font-size: 18px; }

	/* Desktop header: full nav + CTA, no search icon, no tab bar. */
	.dc-nav { display: block; }
	.dc-header-cta { display: inline-flex; }
	.dc-search-toggle { display: none; }
	.dc-tabbar { display: none !important; }

	.dc-hero { padding: 60px 0 44px; }
	.dc-hero-inner { grid-template-columns: 1.1fr .9fr; gap: 40px; }
	.dc-hero-title { font-size: 56px; }
	.dc-hero-art img { width: min(400px, 100%); }

	.dc-tiles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
	.dc-band-steps { grid-template-columns: repeat(3, 1fr); }

	.dc-grid-cards { grid-template-columns: repeat(3, 1fr); }
	.dc-grid-3 { grid-template-columns: repeat(3, 1fr); }

	.dc-pdf-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px 44px; }

	.dc-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }

	/* Player: roomier card, controls in one row on desktop. */
	.dc-player { padding: 30px; }
	.dc-player-controls { grid-template-columns: 1fr auto; align-items: center; }
	.dc-controls-extra { justify-content: flex-end; }

	.dc-allsteps-list { grid-template-columns: repeat(3, 1fr); }

	.dc-section { padding: 60px 0; }
	.dc-section-title { font-size: 36px; }

	/* Desktop search overlay becomes a centered dropdown under the header. */
	.dc-search-overlay .dc-wrap { max-width: 640px; }
}

@media (min-width: 1024px) {
	.dc-strip-item { width: 290px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
	.dc-strip-track { animation: none; }
	.dc-strip-viewport { overflow-x: auto; }
}
