/* Atomik Rack tutorials. Builds on release.css (.ac-rel tokens, dark base). Everything is scoped under .ac-tut. */

.ac-tut {
	/* Techy secondary accent (teal/cyan) next to the site's neon pink. */
	--rack-accent: #31e0d0;
	--rack-accent-2: #5ab8ff;
	--rack-accent-ink: #03201d;
	--rack-glow: rgba(49, 224, 208, .32);
	--rack-line: rgba(49, 224, 208, .26);
	--rack-surface: rgba(22, 20, 31, .86);
	--rack-top: 116px;
	--rack-pad: 16px;
	position: relative;
	display: block;
	isolation: isolate;
	overflow-x: clip;
	padding: var(--rack-top) var(--rack-pad) 64px;
	background:
		radial-gradient(760px 460px at 88% 6%, rgba(142, 92, 255, .24), transparent 62%),
		radial-gradient(700px 460px at 4% 18%, rgba(49, 224, 208, .13), transparent 60%),
		#0b0a10;
}
@media (min-width: 922px) { .ac-tut { --rack-top: 136px; --rack-pad: 32px; } }
body:not(.ast-theme-transparent-header) .ac-tut { --rack-top: 32px; }
body.ac-tut-page, body.ac-tut-page .site-content { background: #0b0a10; }

/* faint floor grid behind the top of the page */
.ac-tut::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; z-index: -1; pointer-events: none;
	background:
		repeating-linear-gradient(90deg, rgba(49, 224, 208, .07) 0 1px, transparent 1px 56px),
		repeating-linear-gradient(0deg, rgba(49, 224, 208, .07) 0 1px, transparent 1px 56px);
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

.ac-tut__wrap { max-width: 1120px; margin: 0 auto; min-width: 0; }
.ac-tut a { color: var(--rack-accent); }
.ac-tut a:focus-visible, .ac-tut button:focus-visible, .ac-tut summary:focus-visible {
	outline: 2px solid var(--rack-accent); outline-offset: 3px; border-radius: 6px;
}

/* ---------- Breadcrumb ---------- */
.ac-tut__crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: .875rem; color: var(--ac-muted); }
.ac-tut__crumbs li { margin: 0; display: inline-flex; align-items: center; min-width: 0; }
.ac-tut__crumbs li + li::before { content: "\203A"; margin: 0 8px; opacity: .6; }
.ac-tut__crumbs a { color: var(--ac-muted); text-decoration: none; padding: 10px 0; }
.ac-tut__crumbs a:hover { color: var(--rack-accent); text-decoration: underline; }
.ac-tut__crumbs [aria-current] span { color: var(--ac-text); overflow-wrap: anywhere; }

/* ---------- Headings ---------- */
.ac-tut__head, .ac-tut__hero { margin: 14px 0 28px; max-width: 860px; }
.ac-tut .ac-tut__eyebrow { color: var(--rack-accent); font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.ac-tut .ac-tut__title { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; margin: 0; }
.ac-tut .ac-tut__lede { color: var(--ac-muted); font-size: 1.125rem; line-height: 1.6; margin: 16px 0 0; max-width: 62ch; }
.ac-tut .ac-tut__h { font-size: clamp(1.375rem, 4vw, 1.75rem); font-weight: 800; line-height: 1.2; margin: 0 0 14px; }
.ac-tut .ac-tut__h-small { font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rack-accent); margin: 0 0 12px; }
.ac-tut__sec-sub { color: var(--ac-muted); margin: -6px 0 18px; }

/* ---------- Buttons ---------- */
.ac-tut__actions, .ac-tut__cta-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.ac-tut__cta-actions { margin-top: 0; }
@media (min-width: 600px) { .ac-tut__actions, .ac-tut__cta-actions { flex-direction: row; flex-wrap: wrap; } }
.ac-tut .ac-tut__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
	border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
	transition: transform .15s ease, filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.ac-tut .ac-tut__btn .ac-i { width: 22px; height: 22px; }
.ac-tut .ac-tut__btn--primary { background: var(--rack-accent); color: var(--rack-accent-ink); box-shadow: 0 0 28px -6px var(--rack-glow); }
.ac-tut .ac-tut__btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: var(--rack-accent-ink); }
.ac-tut .ac-tut__btn--pink { background: var(--ac-accent); color: var(--ac-accent-ink); box-shadow: 0 0 28px -6px rgba(251, 95, 171, .5); }
.ac-tut .ac-tut__btn--pink:hover { color: var(--ac-accent-ink); }
.ac-tut .ac-tut__btn--ghost { background: transparent; color: var(--ac-text); border-color: var(--ac-border); }
.ac-tut .ac-tut__btn--ghost:hover { border-color: var(--rack-accent); color: var(--rack-accent); }

/* ---------- Stage: player + chapters ---------- */
.ac-tut__stage { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); margin: 0 0 40px; }
@media (min-width: 1000px) { .ac-tut__stage.has-chapters { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.ac-tut__stage-video { min-width: 0; }
.ac-tut__player {
	position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--ac-radius); overflow: hidden; background: #000;
	box-shadow: 0 0 0 1px var(--rack-line), 0 0 60px -10px var(--rack-glow), 0 24px 60px rgba(0, 0, 0, .55);
}
.ac-tut .ac-tut__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: #000; cursor: pointer; display: block; border-radius: 0; }
.ac-tut .ac-tut__facade-img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s ease, transform .4s ease; }
.ac-tut .ac-tut__facade:hover .ac-tut__facade-img { opacity: 1; transform: scale(1.02); }
.ac-tut .ac-tut__playbtn {
	position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; background: var(--rack-accent); color: var(--rack-accent-ink);
	box-shadow: 0 0 0 8px rgba(49, 224, 208, .22), 0 10px 40px rgba(0, 0, 0, .5); transition: transform .15s ease;
}
.ac-tut .ac-tut__playbtn .ac-i { width: 34px; height: 34px; margin-left: 4px; }
.ac-tut .ac-tut__facade:hover .ac-tut__playbtn { transform: scale(1.07); }
.ac-tut .ac-tut__dur { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(0, 0, 0, .78); font-size: .8125rem; font-weight: 700; }
.ac-tut .ac-tut__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ac-tut__nojs { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(0, 0, 0, .8); padding: 8px 12px; border-radius: 8px; }
.ac-tut__yt-line { margin: 12px 0 0; color: var(--ac-muted); font-size: .9375rem; }
.ac-tut__yt-line a { display: inline-block; padding: 8px 0; font-weight: 700; text-decoration: none; }
.ac-tut__yt-line a:hover { text-decoration: underline; }
.ac-tut__yt-line span { margin: 0 8px; }

.ac-tut__chapters-box { padding: 18px; border: 1px solid var(--rack-line); border-radius: var(--ac-radius); background: var(--rack-surface); min-width: 0; }
@media (min-width: 1000px) { .ac-tut__chapters-box { max-height: 480px; overflow: auto; } }
.ac-tut__chapters { display: grid; gap: 2px; }
.ac-tut__chapters li { margin: 0; }
.ac-tut .ac-tut__chap {
	display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%; min-height: 44px; padding: 8px 10px;
	text-align: left; font: inherit; font-size: .9375rem; line-height: 1.35; color: var(--ac-text); background: transparent; border: 0; border-radius: 8px; cursor: pointer;
	text-transform: none; letter-spacing: normal;
}
.ac-tut .ac-tut__chap:hover { background: rgba(49, 224, 208, .1); color: var(--ac-text); }
.ac-tut .ac-tut__chap.is-active { background: rgba(49, 224, 208, .16); }
.ac-tut__t { color: var(--rack-accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.ac-tut__chap span:last-child { overflow-wrap: anywhere; }

/* ---------- Reading column ---------- */
.ac-tut__body { max-width: 70ch; margin: 0 auto 0 0; min-width: 0; }
.ac-tut__learn { margin: 0 0 36px; padding: 22px 22px 14px; border: 1px solid var(--rack-line); border-left: 4px solid var(--rack-accent); border-radius: var(--ac-radius); background: var(--rack-surface); }
.ac-tut__points { display: grid; gap: 10px; margin: 0 0 8px; }
.ac-tut__points li { position: relative; margin: 0; padding-left: 28px; line-height: 1.5; }
.ac-tut__points li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--rack-accent); box-shadow: 0 0 12px var(--rack-glow); }

.ac-tut__prose { font-size: 1.0625rem; line-height: 1.75; color: #e9e6f2; overflow-wrap: anywhere; }
.ac-tut__prose > :first-child { margin-top: 0; }
.ac-tut .ac-tut__prose h2 { font-size: clamp(1.375rem, 4vw, 1.75rem); font-weight: 800; line-height: 1.2; margin: 2em 0 .6em; }
.ac-tut .ac-tut__prose h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.3; margin: 1.6em 0 .5em; color: var(--rack-accent); }
.ac-tut .ac-tut__prose p { margin: 0 0 1.1em; }
.ac-tut .ac-tut__prose ul, .ac-tut .ac-tut__prose ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.ac-tut .ac-tut__prose ul { list-style: disc; }
.ac-tut .ac-tut__prose ol { list-style: decimal; }
.ac-tut .ac-tut__prose li { margin: 0 0 .55em; padding-left: .2em; }
.ac-tut .ac-tut__prose li::marker { color: var(--rack-accent); font-weight: 800; }
.ac-tut .ac-tut__prose strong { color: #fff; }
.ac-tut .ac-tut__prose kbd, .ac-tut__prose code {
	display: inline-block; padding: .1em .5em; border-radius: 6px; border: 1px solid var(--rack-line); border-bottom-width: 2px;
	background: rgba(49, 224, 208, .08); color: #fff; font: 600 .875em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap;
}
.ac-tut .ac-tut__prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--ac-accent); background: rgba(251, 95, 171, .08); border-radius: 0 10px 10px 0; }
.ac-tut .ac-tut__prose blockquote p:last-child { margin-bottom: 0; }
.ac-tut .ac-tut__prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .9375rem; display: block; overflow-x: auto; }
.ac-tut .ac-tut__prose th, .ac-tut .ac-tut__prose td { padding: 8px 12px; border: 1px solid var(--ac-border); text-align: left; }
.ac-tut .ac-tut__prose th { background: rgba(49, 224, 208, .1); color: #fff; }

.ac-tut__note { margin: 28px 0 0; color: var(--ac-muted); font-size: .875rem; }

/* ---------- Transcript ---------- */
.ac-tut__transcript { margin: 28px 0 0; border: 1px solid var(--ac-border); border-radius: var(--ac-radius); background: var(--rack-surface); }
.ac-tut__transcript summary { cursor: pointer; padding: 16px 20px; min-height: 52px; font-weight: 800; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ac-tut__transcript summary::-webkit-details-marker { display: none; }
.ac-tut__transcript summary::after { content: "+"; color: var(--rack-accent); font-size: 1.5rem; line-height: 1; }
.ac-tut__transcript[open] summary::after { content: "\2212"; }
.ac-tut__transcript-body { padding: 4px 20px 20px; line-height: 1.7; color: #dcd8e8; }
.ac-tut .ac-tut__transcript-body p { margin: 0 0 .9em; }
.ac-tut .ac-tut__ts { display: inline-block; min-width: 3em; margin-right: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(49, 224, 208, .1); color: var(--rack-accent); font-family: inherit; font-weight: 700; font-size: .8125rem; line-height: 1.6; font-variant-numeric: tabular-nums; border: 0; cursor: pointer; text-align: center; }
.ac-tut button.ac-tut__ts:hover { background: rgba(49, 224, 208, .22); }

/* ---------- CTA band ---------- */
.ac-tut__cta {
	display: grid; gap: 18px; align-items: center; margin: 48px 0 0; padding: 28px 24px; border-radius: 18px;
	border: 1px solid var(--rack-line);
	background: radial-gradient(520px 220px at 100% 0%, rgba(142, 92, 255, .22), transparent 70%), linear-gradient(145deg, rgba(31, 28, 43, .95), rgba(16, 14, 24, .95));
}
.ac-tut__cta p { color: var(--ac-muted); margin: 0; }
.ac-tut__cta .ac-tut__h { margin-bottom: 6px; }
@media (min-width: 760px) { .ac-tut__cta { grid-template-columns: minmax(0, 1fr) auto; padding: 32px 36px; } }

/* ---------- Prev / next ---------- */
.ac-tut__pn { display: grid; gap: 14px; margin: 28px 0 0; }
@media (min-width: 700px) { .ac-tut__pn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-tut .ac-tut__pn-a { display: grid; gap: 4px; padding: 16px 20px; min-height: 44px; border: 1px solid var(--ac-border); border-radius: var(--ac-radius); background: var(--rack-surface); color: var(--ac-text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ac-tut .ac-tut__pn-a:hover { border-color: var(--rack-accent); transform: translateY(-2px); color: var(--ac-text); }
.ac-tut__pn-a--next { text-align: right; }
@media (min-width: 700px) { .ac-tut__pn-a--next:only-child { grid-column: 2; } }
.ac-tut__pn-l { color: var(--rack-accent); font-size: .8125rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ac-tut__pn-t { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Grid / cards ---------- */
.ac-tut__more, .ac-tut__sec { margin-top: 56px; }
.ac-tut-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 560px) { .ac-tut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 922px) { .ac-tut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.ac-tut-card { margin: 0; min-width: 0; }
.ac-tut .ac-tut-card__link { display: block; height: 100%; border: 1px solid var(--ac-border); border-radius: var(--ac-radius); overflow: hidden; background: var(--rack-surface); color: var(--ac-text); text-decoration: none; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.ac-tut .ac-tut-card__link:hover { border-color: var(--rack-accent); transform: translateY(-3px); box-shadow: 0 16px 40px -14px var(--rack-glow); color: var(--ac-text); }
.ac-tut-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.ac-tut-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ac-tut-card__num { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--rack-accent); color: var(--rack-accent-ink); font-weight: 800; font-size: .8125rem; }
.ac-tut .ac-tut__playbtn--sm { width: 48px; height: 48px; margin: -24px 0 0 -24px; box-shadow: 0 0 0 5px rgba(49, 224, 208, .2); opacity: 0; transition: opacity .15s ease; }
.ac-tut .ac-tut__playbtn--sm .ac-i { width: 22px; height: 22px; }
.ac-tut-card__link:hover .ac-tut__playbtn--sm, .ac-tut-card__link:focus-visible .ac-tut__playbtn--sm { opacity: 1; }
.ac-tut-card__body { display: grid; gap: 6px; padding: 14px 16px 18px; }
.ac-tut-card__title { font-weight: 800; font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.ac-tut-card__meta { color: var(--ac-muted); font-size: .875rem; }
.ac-tut__draft { justify-self: start; padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--ac-accent); color: var(--ac-accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Chips ---------- */
.ac-tut__chips ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; }
.ac-tut__chips li { margin: 0; }
.ac-tut .ac-tut__chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ac-border); background: var(--rack-surface); color: var(--ac-text); font-weight: 700; font-size: .9375rem; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.ac-tut .ac-tut__chip:hover { border-color: var(--rack-accent); color: var(--ac-text); }
.ac-tut .ac-tut__chip.is-current { background: var(--rack-accent); border-color: var(--rack-accent); color: var(--rack-accent-ink); }

/* ---------- Start here path ---------- */
.ac-tut__path { display: grid; gap: 12px; position: relative; counter-reset: none; }
.ac-tut__path li { margin: 0; }
.ac-tut .ac-tut__path a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--ac-border); border-radius: var(--ac-radius); background: var(--rack-surface); color: var(--ac-text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ac-tut .ac-tut__path a:hover { border-color: var(--rack-accent); transform: translateX(3px); color: var(--ac-text); }
.ac-tut__path-n { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--rack-accent); color: var(--rack-accent); font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: 0 0 18px -4px var(--rack-glow); }
.ac-tut__path-t { display: grid; gap: 3px; min-width: 0; }
.ac-tut__path-t strong { font-size: 1.0625rem; overflow-wrap: anywhere; }
.ac-tut__path-t span { color: var(--ac-muted); font-size: .9375rem; overflow-wrap: anywhere; }
.ac-tut__path-d { color: var(--ac-muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .ac-tut .ac-tut__path a { grid-template-columns: auto minmax(0, 1fr); } .ac-tut__path-d { display: none; } }

/* ---------- Coming soon ---------- */
.ac-tut__soon-list { columns: 1; column-gap: 28px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 600px) { .ac-tut__soon-list { columns: 2; } }
@media (min-width: 922px) { .ac-tut__soon-list { columns: 3; } }
.ac-tut__soon-list li { break-inside: avoid; margin: 0; padding: 7px 0 7px 22px; position: relative; color: #cfcadc; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ac-tut__soon-list li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--rack-accent); opacity: .7; }

/* ---------- Music link ---------- */
.ac-tut__music { display: flex; align-items: center; gap: 12px; margin: 56px 0 0; color: var(--ac-muted); font-size: .9375rem; }
.ac-tut__music .ac-i { color: var(--ac-accent); width: 24px; height: 24px; }
.ac-tut__music a { color: var(--ac-accent); font-weight: 700; display: inline-block; padding: 8px 0; }

@media (prefers-reduced-motion: reduce) {
	.ac-tut *, .ac-tut *::before, .ac-tut *::after { transition: none !important; }
	.ac-tut .ac-tut__facade:hover .ac-tut__facade-img { transform: none; }
}
