/* ═══════════════════════════════════════════════════════════════════════════
   Justin Derrico — the member screens: dashboard, course directory, account.

   Loads alongside jd-course.css, which carries the shared primitives (.jd-btn,
   --jd-cut). Nothing here redefines a primitive — a second copy of .jd-btn
   would drift from the course page's within a release.

   Every colour is a token from style.css, which is why this file needs no light
   palette of its own: the light blocks at the bottom of style.css out-specify
   :root, so the tokens change underneath these rules. Hard-coding one hex here
   would be the one thing that breaks light mode.
   ══════════════════════════════════════════════════════════════════════════ */

.jd-dash,
.jd-dir { padding-bottom: clamp(56px, 7vw, 96px) }

/* ── headings ──────────────────────────────────────────────────────────── */

.jd-dash-h {
	margin: .2rem 0 0;
	font-family: var(--jd-display);
	font-weight: 900;
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: .92;
	text-transform: uppercase;
	color: var(--jd-bone);
}
.jd-dash-h em {
	font-style: normal;
	background: var(--jd-fire);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.jd-dash-h2 {
	margin: 0 0 1.4rem;
	font-family: var(--jd-display);
	font-weight: 800;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	line-height: 1;
	text-transform: uppercase;
	color: var(--jd-bone);
}
.jd-dash-lede { margin: 1rem 0 0; max-width: 54ch; color: var(--jd-text) }
.jd-dash-lede--sm { font-size: .94rem; color: var(--jd-ash) }
.jd-dash-head { margin: 0 0 clamp(28px, 4vw, 44px) }
.jd-dash-sec { margin-top: clamp(40px, 5vw, 68px) }
.jd-dash-note {
	margin: 1.6rem 0 0;
	padding: 1.1rem 1.3rem;
	background: var(--jd-panel);
	box-shadow: inset 0 0 0 1px var(--jd-line);
	border-radius: 4px;
}
.jd-dash-note > :first-child { margin-top: 0 }
.jd-dash-note > :last-child { margin-bottom: 0 }
.jd-dash-more { margin: 1.6rem 0 0 }

/* ── the stat strip ────────────────────────────────────────────────────── */

.jd-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
	gap: 1px;
	margin: 0 0 clamp(28px, 4vw, 40px);
	padding: 0;
	list-style: none;
	background: var(--jd-line);
	box-shadow: 0 0 0 1px var(--jd-line);
}
.jd-stats li {
	padding: 1.05rem 1.1rem .95rem;
	background: var(--jd-coal);
}
.jd-stats b {
	display: block;
	font-family: var(--jd-display);
	font-weight: 900;
	font-size: clamp(1.8rem, 3.4vw, 2.5rem);
	line-height: 1;
	color: var(--jd-bone);
}
.jd-stats span {
	display: block;
	margin-top: .35rem;
	font-size: .7rem;
	font-weight: 750;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--jd-ash);
}

/* ── resume ────────────────────────────────────────────────────────────── */

.jd-resume {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: clamp(18px, 2.6vw, 34px);
	align-items: center;
	padding: clamp(16px, 2vw, 22px);
	background: var(--jd-card);
	box-shadow: inset 0 0 0 1px var(--jd-line);
}
.jd-resume-art {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--jd-ink);
}
.jd-resume-art img { width: 100%; height: 100%; object-fit: cover; display: block }
.jd-resume-play {
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	background: var(--jd-fire);
	color: var(--jd-on-fire);
	clip-path: var(--jd-cut);
}
.jd-resume-play svg { width: 22px; height: 22px }
.jd-resume-title {
	margin: .3rem 0 .2rem;
	font-family: var(--jd-display);
	font-weight: 800;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	line-height: 1.02;
	text-transform: uppercase;
	color: var(--jd-bone);
}
.jd-resume-sub { margin: 0 0 1rem; font-size: .92rem; color: var(--jd-ash) }
.jd-resume-bar {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin: 0 0 1.2rem;
}
.jd-resume-bar span {
	flex: 1;
	height: 4px;
	background: rgba(243, 236, 224, .14);
	overflow: hidden;
}
.jd-resume-bar i { display: block; height: 100%; background: var(--jd-fire) }
.jd-resume-bar b {
	font-size: .72rem;
	font-weight: 750;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--jd-ash);
	white-space: nowrap;
}

/* ── the product grid ──────────────────────────────────────────────────── */

.jd-pgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
	gap: clamp(16px, 2vw, 26px);
}
.jd-pcard {
	display: flex;
	flex-direction: column;
	background: var(--jd-card);
	box-shadow: inset 0 0 0 1px var(--jd-line);
}
.jd-pcard-art {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--jd-ink);
}
.jd-pcard-art img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
a.jd-pcard-art:hover img { transform: scale(1.04) }
.jd-pcard--soon .jd-pcard-art img { filter: grayscale(1) brightness(.5) }

.jd-pcard-kind,
.jd-pcard-flag {
	position: absolute;
	top: 10px;
	padding: .3rem .55rem .25rem;
	font-size: .64rem;
	font-weight: 750;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.jd-pcard-kind {
	left: 10px;
	background: rgba(9, 7, 6, .72);
	color: var(--jd-bone);
	backdrop-filter: blur(3px);
}
.jd-pcard-flag {
	right: 10px;
	background: var(--jd-fire);
	color: var(--jd-on-fire);
}
.jd-pcard-flag--done { background: none; box-shadow: inset 0 0 0 1px var(--jd-ember); color: var(--jd-ember) }
.jd-pcard-flag--soon { background: rgba(9, 7, 6, .78); color: var(--jd-ash) }

.jd-pcard-bar {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: rgba(9, 7, 6, .55);
}
.jd-pcard-bar i { display: block; height: 100%; background: var(--jd-fire) }

.jd-pcard-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem 1.05rem 1.05rem;
}
.jd-pcard-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .3rem .9rem;
	margin: 0 0 .45rem;
	font-size: .7rem;
	font-weight: 750;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--jd-ash);
}
.jd-pcard-title {
	margin: 0 0 .5rem;
	font-family: var(--jd-display);
	font-weight: 800;
	font-size: 1.22rem;
	line-height: 1.05;
	text-transform: uppercase;
	color: var(--jd-bone);
}
.jd-pcard-desc {
	margin: 0 0 1rem;
	font-size: .9rem;
	line-height: 1.5;
	color: var(--jd-text);
}
.jd-pcard-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .8rem;
	margin-top: auto;
}
.jd-pcard-price {
	font-family: var(--jd-display);
	font-weight: 900;
	font-size: 1.4rem;
	line-height: 1;
	color: var(--jd-bone);
	white-space: nowrap;
}
.jd-pcard-price s { margin-right: .35rem; font-size: .8em; color: var(--jd-ash) }
.jd-pcard-price--soon {
	font-family: var(--jd-body);
	font-size: .72rem;
	font-weight: 750;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jd-ash);
}
.jd-pcard-foot .jd-btn { flex: 0 0 auto }
.jd-pcard--owned .jd-pcard-foot .jd-btn,
.jd-pcard--open .jd-pcard-foot .jd-btn { flex: 1 }

/* ── tools ─────────────────────────────────────────────────────────────── */

.jd-tool {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding: 1.1rem 1.2rem;
	background: var(--jd-card);
	box-shadow: inset 0 0 0 1px var(--jd-line);
	color: var(--jd-text);
	text-decoration: none;
}
.jd-tool:hover { box-shadow: inset 0 0 0 1px rgba(255, 138, 31, .5) }
.jd-tool-i {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 46px; height: 46px;
	background: var(--jd-fire);
	color: var(--jd-on-fire);
	clip-path: var(--jd-cut);
}
.jd-tool-i svg { width: 22px; height: 22px }
.jd-tool-copy b {
	display: block;
	font-family: var(--jd-display);
	font-weight: 800;
	font-size: 1.15rem;
	text-transform: uppercase;
	color: var(--jd-bone);
}
.jd-tool-copy span { display: block; margin-top: .2rem; font-size: .88rem; color: var(--jd-ash) }

/* ── gates, empties, notes ─────────────────────────────────────────────── */

.jd-dash-gate,
.jd-dash-empty { padding: clamp(28px, 5vw, 56px) 0 }
.jd-dash-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.8rem 0 0 }
.jd-dir-head { margin: 0 0 clamp(26px, 4vw, 40px) }
.jd-dir-adminnote {
	margin: 0 0 1.8rem;
	padding: .9rem 1.1rem;
	font-size: .88rem;
	background: rgba(255, 138, 31, .09);
	box-shadow: inset 0 0 0 1px rgba(255, 138, 31, .4);
	color: var(--jd-text);
}
.jd-dir-soon .jd-dash-h2 { color: var(--jd-ash) }

/* ── narrow ────────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
	.jd-resume { grid-template-columns: 1fr }
	.jd-pgrid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) }
}

/* ── account ───────────────────────────────────────────────────────────── */

.jd-kv { margin: 0; padding: 0; list-style: none }
.jd-kv li {
	display: grid;
	grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
	padding: .85rem 0;
	border-top: 1px solid var(--jd-line);
}
.jd-kv li:last-child { border-bottom: 1px solid var(--jd-line) }
.jd-kv span {
	font-size: .7rem;
	font-weight: 750;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--jd-ash);
}
.jd-kv b { color: var(--jd-bone); font-weight: 700 }
.jd-note { margin: 1rem 0 0; font-size: .85rem; color: var(--jd-ash) }
.jd-account .jd-dash-more { display: flex; flex-wrap: wrap; gap: .7rem }

@media (max-width: 620px) {
	.jd-kv li { grid-template-columns: 1fr; gap: .3rem }
}
.jd-pcard-flag--open { background: rgba(9, 7, 6, .72); color: var(--jd-bone); box-shadow: inset 0 0 0 1px var(--jd-line) }
