/**
 * AIContestList — Prompt Library (design-system §51–§54, §93, §103–§104, §117).
 * /prompts/ and /prompts/model|style|use-case|color/[slug]/.
 *
 * Immersive Dark · container 1600 · media-first · motion 7/10.
 * The artwork carries the colour; the UI stays quiet around it. The hero's only
 * atmosphere is borrowed from the lead artwork itself (a blurred copy of it), so the
 * page never invents a palette. Hover and focus add emphasis, never information.
 *
 * Loaded after browse.css (filter form, toolbar, chips, pagination) and
 * prompt-gallery.css (copy control, justified gallery, Prompt Card, toast).
 * Tokens only. Breakpoints: 1024 (exhibit, instrument bar).
 */

/* ---------------------------------------------------------------
   PAGE SURFACE — Obsidian from edge to edge (and on overscroll)
--------------------------------------------------------------- */
body.acl.acl-surface-dark {
	/* The page canvas itself: the one place the dark primitive is read directly,
	   because <body> sits outside every [data-theme] scope. */
	background: var(--acl-obsidian);
	color-scheme: dark;
}

.acl .acl-pl { position: relative; }

/* ---------------------------------------------------------------
   HERO — answer first, one prompt on view
--------------------------------------------------------------- */
.acl .acl-pl-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden; /* fallback */
	overflow-x: clip;
	overflow-y: visible; /* the artwork's light fades into the filter area, no hard edge */
	padding: clamp(16px, 2vw, 28px) 0 clamp(32px, 4vw, 64px);
}

/* The canvas is already Obsidian: sections stay transparent so the hero light can fall
   across them instead of stopping at a section edge. */
.acl .acl-pl > [data-theme="dark"] { background: transparent; }

/* The homepage's editorial column lines, at dark-surface strength */
.acl .acl-pl-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 -1px;
	z-index: -1;
	background-image: linear-gradient(to right, var(--overlay-white-04) 1px, transparent 1px);
	background-size: calc(100% / 6) 100%;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 94%);
	mask-image: linear-gradient(to bottom, #000 0%, transparent 94%);
	pointer-events: none;
}

/* Ambient light in the lead artwork's own colours (four quadrant averages sampled on
   the server, painted as soft gradients: no image request, no blur filter).
   Without one it falls back to the brand's quiet Iris glow. */
.acl .acl-pl-hero__atmos {
	position: absolute;
	top: calc(min(1100px, 130vw) * -.32); /* in viewport units, not % of the hero: no shift when fonts swap */
	right: -22%;
	z-index: -2;
	width: min(1100px, 130vw);
	aspect-ratio: 1;
	background: radial-gradient(closest-side, var(--iris-16) 0%, rgba(88, 199, 255, .05) 60%, transparent 100%);
	pointer-events: none;
}

.acl .acl-pl-hero[style] .acl-pl-hero__atmos {
	background:
		radial-gradient(closest-side at 28% 30%, var(--acl-a1), transparent),
		radial-gradient(closest-side at 72% 30%, var(--acl-a2), transparent),
		radial-gradient(closest-side at 28% 72%, var(--acl-a3), transparent),
		radial-gradient(closest-side at 72% 72%, var(--acl-a4), transparent);
	opacity: .3;
	transform: translate3d(calc(var(--acl-mx, 0) * 28px), calc(var(--acl-my, 0) * 28px), 0);
	transition: transform 1.2s var(--ease-enter);
}

.acl .acl-pl-hero__grid {
	display: grid;
	gap: clamp(32px, 4vw, 56px);
}

.acl .acl-pl-hero__eyebrow {
	margin-bottom: var(--space-5);
}

.acl .acl-pl-hero__title {
	width: fit-content;
	max-width: 100%;
	margin: 0 0 clamp(20px, 2.4vw, 32px);
	font-size: clamp(2.75rem, 6.6vw, 6.5rem);
	font-weight: 600;
	line-height: .94;
	letter-spacing: -.052em;
}

.acl .acl-pl-hero__lead,
.acl .acl-pl-hero__accent {
	display: block;
}

.acl .acl-pl-hero__accent {
	font-style: italic;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.022em;
	padding: 0 .06em .08em 0;
}

/* White into Iris — the directory's "ink into Iris", inverted for the dark stage (AA) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.acl .acl-pl-hero__accent {
		background: linear-gradient(100deg, var(--acl-white) 0%, var(--acl-white) 24%, var(--acl-iris-dark-text) 86%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}

.acl .acl-pl-hero__copy {
	max-width: 62ch;
}

.acl .acl-pl-hero__intro {
	margin: 0 0 var(--space-5);
	font-size: var(--text-md);
	line-height: 1.6;
	color: var(--text-secondary);
}

/* Answer-first summary: a quiet Quick Answer (article-template §4.1 recipe) */
.acl .acl-pl-hero__answer {
	margin: 0;
	padding-left: var(--space-4);
	border-left: 2px solid var(--interactive-primary);
	font-size: clamp(1.0625rem, .5vw + .9rem, 1.25rem);
	line-height: 1.55;
	letter-spacing: -.01em;
	color: var(--text-primary);
	text-wrap: pretty;
}

/* Working states (filtered / paged): heading only, results right beneath */
.acl .acl-pl-hero--compact { padding-bottom: var(--space-6); }
.acl .acl-pl-hero--compact .acl-pl-hero__title { font-size: clamp(2.25rem, 4.6vw, 4.25rem); margin-bottom: 0; }
.acl .acl-pl-hero--compact .acl-pl-hero__lead,
.acl .acl-pl-hero--compact .acl-pl-hero__accent { display: inline; }

/* Staged entrance, once (design-system §59). No JS or reduced motion: static. */
.acl-js .acl .acl-pl-hero [data-acl-stage] { animation: acl-rise var(--motion-hero) var(--ease-enter) both; }
.acl-js .acl .acl-pl-hero [data-acl-stage="1"] { animation-delay: 60ms; }
.acl-js .acl .acl-pl-hero [data-acl-stage="2"] { animation-delay: 120ms; }
.acl-js .acl .acl-pl-hero [data-acl-stage="3"] { animation-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
	.acl-js .acl .acl-pl-hero [data-acl-stage] { animation: none; }
	.acl .acl-pl-hero[style] .acl-pl-hero__atmos { transform: none; }
}

/* ---------------------------------------------------------------
   EXHIBIT — the lead prompt, its result and its words (desktop)
--------------------------------------------------------------- */
.acl .acl-pl-exhibit { display: none; }

@media (min-width: 1024px) {
	.acl .acl-pl-hero.has-exhibit .acl-pl-hero__grid {
		grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
		align-items: end;
	}

	.acl .acl-pl-exhibit {
		--frame-h: min(54vh, 500px);
		position: relative;
		display: grid;
		margin: 0;
		align-self: end;
	}

	/* Portrait and square: the label stands beside the work, overlapping its edge */
	.acl .acl-pl-exhibit--tall {
		/* The label keeps a readable measure; the work takes what is left, up to its size. */
		grid-template-columns: minmax(230px, 1fr) minmax(0, min(calc(var(--frame-h) * var(--r)), 380px));
		align-items: end;
	}

	.acl .acl-pl-exhibit--tall .acl-pl-exhibit__frame { grid-column: 2; grid-row: 1; }

	.acl .acl-pl-exhibit--tall .acl-pl-exhibit__label {
		grid-column: 1;
		grid-row: 1;
		margin: 0 calc(var(--space-10) * -1) var(--space-8) 0;
	}

	/* Landscape: the work spans the column, the label is pinned below its corner */
	.acl .acl-pl-exhibit--wide { justify-items: end; }

	.acl .acl-pl-exhibit--wide .acl-pl-exhibit__label {
		justify-self: start;
		width: min(400px, 78%);
		margin: calc(var(--space-12) * -1) 0 0 calc(var(--space-6) * -1);
	}

	.acl .acl-pl-exhibit__frame {
		position: relative;
		display: block;
		width: min(100%, calc(var(--frame-h) * var(--r)));
		aspect-ratio: var(--r);
		border-radius: var(--radius-md);
	}

	.acl .acl-pl-exhibit--tall .acl-pl-exhibit__frame { width: 100%; }

	/* The artwork's own light spilling onto the wall behind it */
	.acl .acl-pl-exhibit__glow {
		position: absolute;
		inset: 8% -10% -14% -10%;
		z-index: -1;
		background-position: center;
		background-size: cover;
		filter: blur(56px) saturate(1.35);
		opacity: .55;
		transform: translate3d(calc(var(--acl-mx, 0) * -18px), calc(var(--acl-my, 0) * -18px), 0);
		transition: transform 1s var(--ease-enter);
		pointer-events: none;
	}

	.acl .acl-pl-exhibit__frame picture,
	.acl .acl-pl-exhibit__img {
		display: block;
		width: 100%;
		height: 100%;
	}

	.acl .acl-pl-exhibit__img {
		object-fit: cover;
		border-radius: inherit;
		box-shadow: 0 0 0 1px var(--overlay-white-10), 0 40px 80px -24px rgba(8, 9, 11, .8);
		transform: translate3d(calc(var(--acl-mx, 0) * 8px), calc(var(--acl-my, 0) * 8px), 0);
		transition: transform 1s var(--ease-enter);
	}

	.acl .acl-pl-exhibit__label {
		position: relative;
		z-index: 1;
		padding: var(--space-5) var(--space-5) var(--space-4);
		border: 1px solid var(--overlay-white-10);
		border-radius: var(--radius-md);
		background: var(--glass-bg-solid);
		-webkit-backdrop-filter: saturate(140%) blur(18px);
		backdrop-filter: saturate(140%) blur(18px);
	}

	/* A gradient hairline: the brand's signature detail, once */
	.acl .acl-pl-exhibit__label::before {
		content: "";
		position: absolute;
		top: -1px;
		left: var(--space-5);
		width: 64px;
		height: 1px;
		background: var(--gradient-ai);
	}

	.acl .acl-pl-exhibit__kicker {
		display: flex;
		align-items: center;
		gap: var(--space-2);
		margin: 0 0 var(--space-3);
		font-size: 11px;
		font-weight: 600;
		letter-spacing: .12em;
		text-transform: uppercase;
		color: var(--interactive-soft-text);
	}

	.acl .acl-pl-exhibit__kicker::before {
		content: "";
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: var(--acl-iris-dark-text);
		box-shadow: 0 0 10px var(--iris-36);
	}

	.acl .acl-pl-exhibit__title {
		margin: 0 0 var(--space-1);
		font-size: var(--text-lg);
		line-height: 1.25;
		letter-spacing: -.015em;
	}

	.acl .acl-pl-exhibit__title a { color: var(--text-primary); border-radius: var(--radius-xs); }
	.acl .acl-pl-exhibit__title a:hover { color: var(--text-link); }

	.acl .acl-pl-exhibit__meta {
		margin: 0 0 var(--space-4);
		font-size: var(--text-sm);
		color: var(--text-secondary);
	}

	/* The prompt itself — the primary artifact, set to be read */
	.acl .acl-pl-exhibit__prompt {
		margin: 0 0 var(--space-3);
		padding: var(--space-4) 0 0;
		border: 0;
		border-top: 1px solid var(--border-default);
	}

	.acl .acl-pl-exhibit__prompt p {
		margin: 0;
		font-family: var(--font-serif);
		font-size: 1.1875rem;
		font-style: italic;
		line-height: 1.4;
		letter-spacing: -.005em;
		color: var(--text-primary);
		quotes: "“" "”";
	}

	.acl .acl-pl-exhibit__prompt p::before { content: open-quote; color: var(--text-tertiary); margin-right: .04em; }
	.acl .acl-pl-exhibit__prompt p::after { content: close-quote; color: var(--text-tertiary); margin-left: .04em; }

	.acl .acl-pl-exhibit__actions {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-2) var(--space-4);
	}
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
	.acl .acl-pl-exhibit__glow,
	.acl .acl-pl-exhibit__img { transform: none; }
}

/* ---------------------------------------------------------------
   BROWSER — the shared form on the dark stage
--------------------------------------------------------------- */
.acl .acl-pl-browser {
	position: relative;
	padding-bottom: 0;
}

.acl .acl-pl-filters { margin-top: 0; }
.acl .acl-pl-filters .acl-filters__input { text-overflow: ellipsis; }

/* Result count is the gallery's heading (h2) — styled as the directory's count line */
.acl .acl-pl .acl-pl-count {
	margin: 0;
	font-size: var(--text-sm);
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	color: var(--text-secondary);
	text-wrap: wrap;
}

.acl .acl-pl-results {
	transition: opacity var(--motion-base) var(--ease-standard);
}

.acl .acl-pl-results[aria-busy="true"] { opacity: .45; }

/* Orientation — a segmented choice with shape glyphs */
.acl .acl-filters__field--orient {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.acl .acl-filters__field--orient > legend {
	float: left;
	width: 100%;
	padding: 0;
}

.acl .acl-seg {
	clear: both;
	display: flex;
	gap: var(--space-1);
	padding: var(--space-1);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
}

.acl .acl-seg__opt {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	cursor: pointer;
}

.acl .acl-seg__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.acl .acl-seg__ui {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-height: 44px;
	padding: 0 var(--space-2);
	border-radius: var(--radius-xs);
	font-size: .875rem;
	font-weight: 600;
	color: var(--text-secondary);
	white-space: nowrap;
	transition: background-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard);
}

.acl .acl-seg__opt:hover .acl-seg__ui { color: var(--text-primary); }

.acl .acl-seg__input:checked + .acl-seg__ui {
	background: var(--interactive-soft);
	color: var(--interactive-soft-text);
}

.acl .acl-seg__input:focus-visible + .acl-seg__ui {
	outline: 2px solid var(--focus-outline);
	outline-offset: 1px;
}

.acl .acl-seg__input:disabled,
.acl .acl-seg__input:disabled + .acl-seg__ui { cursor: not-allowed; }
.acl .acl-seg__input:disabled + .acl-seg__ui { opacity: .38; }

.acl .acl-seg__glyph {
	flex: none;
	width: 12px;
	height: 12px;
	border: 1.5px solid currentColor;
	border-radius: 2px;
}

.acl .acl-seg__glyph--portrait { width: 10px; height: 14px; }
.acl .acl-seg__glyph--landscape { width: 16px; height: 10px; }
.acl .acl-seg__glyph--any { border-style: dashed; }

/* Phones & tablets (the sheet): glyph over label, four even columns */
@media (max-width: 1023px) {
	.acl .acl-seg__ui {
		flex-direction: column;
		gap: 6px;
		min-height: 60px;
		padding: var(--space-2) var(--space-1);
		font-size: .8125rem;
	}

	.acl .acl-seg__glyph { margin-top: auto; }
	.acl .acl-seg__text { margin-bottom: auto; }
}

/* Desktop instrument bar: model · style · use case · orientation (a hub drops its own) */
@media (min-width: 1024px) {
	.acl .acl-pl-filters .acl-filters__fields[data-dims="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
	.acl .acl-pl-filters .acl-filters__fields[data-dims="1"] { grid-template-columns: minmax(0, 1fr) auto; }

	.acl .acl-pl-filters .acl-filters__fields > .acl-filters__field--orient {
		padding: var(--space-3) var(--space-3) var(--space-2) var(--space-4);
		border-left: 1px solid var(--border-default);
	}

	.acl .acl-pl-filters .acl-seg {
		padding: 0;
		border: 0;
		background: transparent;
	}

	.acl .acl-pl-filters .acl-seg__ui {
		min-height: 36px;
		padding: 0 var(--space-2);
		font-size: .8125rem;
	}
}

/* Color — a row of swatches, chosen by eye.
   Quiet by default: flat discs with no labels; a colour's name appears on hover or focus,
   and stays beside the one that is chosen. The selection is a monochrome hairline ring in
   the text colour, so the only colour in the row is the seven colours themselves.
   A colour no prompt matches is struck through, not hidden: the row never changes shape. */
.acl .acl-filters__field--color {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.acl .acl-filters__field--color > legend {
	float: left;
	width: 100%;
	padding: 0;
}

.acl .acl-palette {
	clear: both;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--space-4) var(--space-2);
	padding-top: var(--space-2);
}

.acl .acl-palette__opt {
	position: relative;
	min-width: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.acl .acl-palette__input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.acl .acl-palette__ui {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	font-size: .75rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .01em;
	color: var(--text-tertiary);
	white-space: nowrap;
	transition: color var(--motion-base) var(--ease-standard);
}

.acl .acl-palette__ui .acl-swatch {
	width: 30px;
	height: 30px;
	transition: transform var(--motion-base) var(--ease-standard), outline-color var(--motion-base) var(--ease-standard), opacity var(--motion-base) var(--ease-standard);
	outline: 1px solid transparent;
	outline-offset: 3px;
}

.acl .acl-palette__opt:hover .acl-palette__ui { color: var(--text-secondary); }
.acl .acl-palette__opt:hover .acl-swatch { transform: scale(1.06); }

/* Chosen: a hairline ring in the text colour, and the name in full strength */
.acl .acl-palette__input:checked + .acl-palette__ui { color: var(--text-primary); }
.acl .acl-palette__input:checked + .acl-palette__ui .acl-swatch { outline-color: var(--text-primary); transform: none; }

.acl .acl-palette__input:focus-visible + .acl-palette__ui .acl-swatch { outline: 2px solid var(--focus-outline); }

/* Unavailable under the current filters: faded and struck through */
.acl .acl-palette__input:disabled,
.acl .acl-palette__input:disabled + .acl-palette__ui { cursor: not-allowed; }
.acl .acl-palette__input:disabled + .acl-palette__ui { color: var(--text-tertiary); }
.acl .acl-palette__input:disabled + .acl-palette__ui .acl-swatch { opacity: .35; transform: none; }

.acl .acl-palette__input:disabled + .acl-palette__ui .acl-swatch::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -2px;
	right: -2px;
	height: 1px;
	background: var(--text-primary);
	transform: rotate(-45deg);
}

/* Desktop instrument bar: one quiet line under the selects — "Color  Any ● ● ● ● ● ● ◐" */
@media (min-width: 1024px) {
	.acl .acl-pl-filters .acl-filters__fields > .acl-filters__field--color {
		grid-column: 1 / -1;
		padding: var(--space-2) var(--space-4);
		border-left: 0;
		border-top: 1px solid var(--border-default);
		border-radius: 0 0 var(--radius-md) var(--radius-md); /* a straight divider; rounded where it meets the bar's edge */
	}

	/* The label sits on the line, to the left of the swatches */
	.acl .acl-pl-filters .acl-filters__field--color > legend {
		width: auto;
		margin-right: var(--space-5);
		line-height: 36px;
	}

	.acl .acl-pl-filters .acl-palette {
		clear: none;
		display: flex;
		align-items: center;
		gap: 0;
		padding: 0;
	}

	.acl .acl-pl-filters .acl-palette__ui {
		flex-direction: row;
		gap: var(--space-2);
		height: 36px;
		padding: 0 7px;
		font-size: .8125rem;
	}

	.acl .acl-pl-filters .acl-palette__ui .acl-swatch {
		width: 16px;
		height: 16px;
		outline-offset: 2px;
	}

	/* "Any" is a word, not a disc */
	.acl .acl-pl-filters .acl-palette__opt--any .acl-swatch { display: none; }
	.acl .acl-pl-filters .acl-palette__opt--any { margin-right: var(--space-2); }
	.acl .acl-pl-filters .acl-palette__opt--any .acl-palette__text { position: relative; }
	.acl .acl-pl-filters .acl-palette__opt--any .acl-palette__input:focus-visible + .acl-palette__ui {
		outline: 2px solid var(--focus-outline);
		outline-offset: -4px;
		border-radius: var(--radius-xs);
	}

	.acl .acl-pl-filters .acl-palette__opt--any .acl-palette__input:checked + .acl-palette__ui .acl-palette__text::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -5px;
		height: 1px;
		background: currentColor;
	}

	/* A colour's name: a small tooltip above it on hover or keyboard focus… */
	.acl .acl-pl-filters .acl-palette__opt:not(.acl-palette__opt--any) .acl-palette__text {
		position: absolute;
		bottom: calc(100% - 4px);
		left: 50%;
		z-index: 5;
		padding: 5px var(--space-2);
		border: 1px solid var(--border-default);
		border-radius: var(--radius-xs);
		background: var(--bg-elevated);
		box-shadow: var(--shadow-2);
		color: var(--text-primary);
		font-size: .75rem;
		opacity: 0;
		pointer-events: none;
		transform: translate(-50%, 4px);
		transition: opacity var(--motion-fast) var(--ease-standard), transform var(--motion-base) var(--ease-enter);
	}

	.acl .acl-pl-filters .acl-palette__opt:not(.acl-palette__opt--any):hover .acl-palette__text,
	.acl .acl-pl-filters .acl-palette__opt:not(.acl-palette__opt--any) .acl-palette__input:focus-visible + .acl-palette__ui .acl-palette__text {
		opacity: 1;
		transform: translate(-50%, 0);
	}

	/* …and, for the chosen colour, simply its name beside it */
	.acl .acl-pl-filters .acl-palette__opt:not(.acl-palette__opt--any) .acl-palette__input:checked + .acl-palette__ui {
		padding-right: var(--space-3);
	}

	.acl .acl-pl-filters .acl-palette__opt:not(.acl-palette__opt--any) .acl-palette__input:checked + .acl-palette__ui .acl-palette__text {
		position: static;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
		font-size: .8125rem;
		opacity: 1;
		transform: none;
	}
}

/* Two-column bar (search | filters): the search sits centred against both filter rows */
@media (min-width: 1280px) {
	.acl .acl-pl-filters--palette .acl-filters__field--search { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
	.acl .acl-palette__opt:hover .acl-swatch { transform: none; }
}

/* ---------------------------------------------------------------
   BROWSE THE LIBRARY — hub index
--------------------------------------------------------------- */
.acl .acl-pl-browse { padding-block: var(--section-y-compact); }

.acl .acl-pl-index {
	display: grid;
	gap: var(--space-10);
	padding-top: var(--space-8);
	border-top: 1px solid var(--border-strong);
}

.acl .acl-pl-index__title {
	margin: 0 0 var(--space-3);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--text-secondary);
}

.acl .acl-pl-index__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--space-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.acl .acl-pl-index__link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-3);
	min-height: 52px;
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--border-default);
	color: var(--text-primary);
	border-radius: var(--radius-xs);
}

.acl .acl-pl-index__name {
	min-width: 0;
	overflow: hidden;
	font-size: var(--text-base);
	font-weight: 500;
	letter-spacing: -.015em;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: transform var(--motion-slow) var(--ease-enter), color var(--motion-base) var(--ease-standard);
}

.acl .acl-pl-index__count {
	flex: none;
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-secondary);
	font-variant-numeric: tabular-nums;
	transition: color var(--motion-base) var(--ease-standard);
}

.acl .acl-pl-index__link:hover .acl-pl-index__name { transform: translateX(4px); color: var(--text-link); }
.acl .acl-pl-index__link:hover .acl-pl-index__count { color: var(--text-link); }

.acl .acl-pl-index__link[aria-current="page"] .acl-pl-index__name { color: var(--text-link); }

.acl .acl-pl-index__link[aria-current="page"] .acl-pl-index__name::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 var(--space-2) 0 0;
	border-radius: 50%;
	background: var(--acl-iris-dark-text);
	vertical-align: .15em;
}

@media (min-width: 768px) {
	.acl .acl-pl-index__name { font-size: var(--text-lg); }
}

@media (min-width: 1024px) {
	.acl .acl-pl-index {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--space-12);
	}

	.acl .acl-pl-index__list { grid-template-columns: minmax(0, 1fr); }
}

/* By color: the color hubs as a palette row under the three lists, in spectrum order.
   A short fixed list, so it is never a drum (tag-drum.js only turns .acl-pl-index__list). */
.acl .acl-pl-index__group--color { grid-column: 1 / -1; }

.acl .acl-pl-hues {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.acl .acl-pl-hue {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-height: 56px;
	padding: var(--space-3) var(--space-4);
	overflow: hidden;
	border: 1px solid var(--border-default);
	border-radius: var(--radius-md);
	color: var(--text-primary);
	transition: border-color var(--motion-base) var(--ease-standard);
}

/* The colour's own light, spilling in from the swatch side on hover */
.acl .acl-pl-hue::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(120% 160% at 0% 50%, color-mix(in srgb, var(--hue) 22%, transparent), transparent 62%);
	opacity: 0;
	transition: opacity var(--motion-slow) var(--ease-standard);
}

.acl .acl-pl-hue:hover { border-color: var(--border-strong); }
.acl .acl-pl-hue:hover::before,
.acl .acl-pl-hue[aria-current="page"]::before { opacity: 1; }
.acl .acl-pl-hue[aria-current="page"] { border-color: color-mix(in srgb, var(--hue) 55%, var(--border-default)); }

.acl .acl-pl-hue .acl-swatch {
	width: 18px;
	height: 18px;
	transition: transform var(--motion-base) var(--ease-spring-soft);
}

.acl .acl-pl-hue:hover .acl-swatch { transform: scale(1.12); }

.acl .acl-pl-hue__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-size: var(--text-base);
	font-weight: 500;
	letter-spacing: -.015em;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.acl .acl-pl-hue__count {
	flex: none;
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--text-secondary);
	font-variant-numeric: tabular-nums;
}

@media (min-width: 600px) {
	.acl .acl-pl-hues { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
	.acl .acl-pl-hues { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.acl .acl-pl-hue:hover .acl-swatch { transform: none; }
}

/* Color hub hero: the eyebrow carries the hub's swatch, glowing faintly on the stage */
.acl .acl-pl-hero__swatch {
	width: 9px;
	height: 9px;
	margin: -.15em var(--space-2) 0 0;
	box-shadow: inset 0 0 0 1px var(--overlay-white-16), 0 0 14px color-mix(in srgb, var(--hue) 70%, transparent);
}

/* Long lists as a 3D drum. assets/js/tag-drum.js wraps the same ul / li / a nodes in a
   fixed-height viewport (nothing is cloned, so every href stays in the HTML) and sets each
   row's transform, opacity and blur per frame. Without the script the list above is unchanged. */
.acl .acl-pl-index.has-drum .acl-pl-index__group {
	position: relative;
	min-width: 0;
}

/* Position readout, "03 / 20", on the title line */
.acl .acl-drum__pos {
	position: absolute;
	top: 0;
	right: 0;
	font-size: var(--text-xs);
	font-weight: 600;
	line-height: 1.2; /* the title's, so both sit on one baseline */
	letter-spacing: .04em;
	color: var(--text-tertiary);
	font-variant-numeric: tabular-nums;
}

/* Fixed-height viewport: set --drum-h on .acl-pl-index to change it */
.acl .acl-drum {
	--row-h: 52px;
	position: relative;
	height: var(--drum-h, 380px);
	perspective: 900px;
	overflow: hidden; /* fallback */
	overflow: clip;
	touch-action: pan-x;
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
	-webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}

.acl .acl-drum.is-drag { cursor: grabbing; }

/* Focus band: the frame of the centre row */
.acl .acl-drum::before {
	content: "";
	position: absolute;
	inset: 50% 0 auto;
	height: var(--row-h);
	transform: translateY(-50%);
	border-block: 1px solid var(--border-strong);
	background: linear-gradient(90deg, var(--overlay-white-06), transparent 70%);
	pointer-events: none;
}

/* The list is the 3D space; each li is one row on the cylinder (its transform, opacity and
   blur come from the script, frame by frame). Rows far from the focus stay hidden and inert. */
.acl .acl-drum .acl-pl-index__list {
	display: block;
	position: absolute;
	inset: 50% 0 auto;
	height: 0;
	transform-style: preserve-3d;
}

.acl .acl-drum .acl-pl-index__list > li {
	position: absolute;
	inset: calc(var(--row-h) / -2) 0 auto;
	height: var(--row-h);
	opacity: 0;
	pointer-events: none;
	backface-visibility: hidden;
}

.acl .acl-drum .acl-pl-index__list > li.is-on {
	pointer-events: auto;
	will-change: transform, opacity, filter;
}

.acl .acl-drum .acl-pl-index__link {
	position: relative;
	height: 100%;
	min-height: 0;
	box-sizing: border-box;
	padding: 0 var(--space-1);
	align-items: center;
	overflow: hidden;
	transition: transform var(--motion-slow) var(--ease-enter), box-shadow var(--motion-slow) var(--ease-standard);
}

/* Hover / keyboard focus: the row lifts, a sweep of light crosses it, the AI hairline appears */
.acl .acl-drum .acl-pl-index__link::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, var(--iris-24) 50%, transparent 70%);
	transform: translateX(-110%);
	pointer-events: none;
}

.acl .acl-drum .acl-pl-index__link::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	background: var(--gradient-ai);
	opacity: 0;
	transition: opacity var(--motion-base) var(--ease-standard);
}

.acl .acl-drum .acl-pl-index__link:is(:hover, :focus-visible) {
	transform: translateY(-6px);
	box-shadow: 0 16px 24px -16px var(--iris-36);
	border-bottom-color: transparent;
}

.acl .acl-drum .acl-pl-index__link:is(:hover, :focus-visible)::before {
	transform: translateX(110%);
	transition: transform .9s var(--ease-enter);
}

.acl .acl-drum .acl-pl-index__link:is(:hover, :focus-visible)::after { opacity: 1; }

/* The viewport clips, so the ring sits inside the row */
.acl .acl-drum .acl-pl-index__link:focus-visible {
	outline: 2px solid var(--focus-outline);
	outline-offset: -2px;
}

/* Phones & tablets: the lists sit side by side in a swipeable row instead of stacking */
@media (max-width: 1023px) {
	.acl .acl-pl-index.has-drum {
		display: flex;
		gap: var(--space-6);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.acl .acl-pl-index.has-drum::-webkit-scrollbar { display: none; }

	.acl .acl-pl-index.has-drum .acl-pl-index__group {
		flex: 0 0 min(84%, 360px);
		scroll-snap-align: start;
	}
}

/* ---------------------------------------------------------------
   METHOD — how prompts are documented
--------------------------------------------------------------- */
.acl .acl-pl-method { padding-top: 0; }

.acl .acl-pl-method__inner {
	position: relative;
	display: grid;
	gap: var(--space-10);
	padding-top: var(--space-10);
	border-top: 1px solid var(--border-strong);
}

.acl .acl-pl-method__inner::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: clamp(64px, 10vw, 160px);
	height: 1px;
	background: var(--gradient-ai);
}

.acl .acl-pl-method__title {
	margin: 0 0 var(--space-4);
	font-size: var(--text-3xl);
	line-height: 1.08;
	letter-spacing: -.03em;
	max-width: 14ch;
}

.acl .acl-pl-method__caveat {
	margin: 0;
	max-width: 26ch;
	font-size: clamp(1.25rem, 1.6vw, 1.625rem);
	font-style: italic;
	line-height: 1.3;
	color: var(--text-secondary);
	text-wrap: pretty;
}

.acl .acl-pl-method__rules {
	display: grid;
	gap: var(--space-8);
	margin: 0;
	padding: 0;
	list-style: none;
}

.acl .acl-pl-method__rule {
	display: grid;
	grid-template-columns: 2.5rem minmax(0, 1fr);
	align-content: start;
	column-gap: var(--space-3);
}

.acl .acl-pl-method__num {
	grid-row: span 2;
	padding-top: 5px;
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--interactive-soft-text);
	font-variant-numeric: tabular-nums;
}

.acl .acl-pl-method__name {
	margin: 0 0 var(--space-2);
	font-size: var(--text-lg);
	line-height: 1.3;
	letter-spacing: -.015em;
}

.acl .acl-pl-method__body {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.6;
	color: var(--text-secondary);
	max-width: 44ch;
}

.acl .acl-pl-method__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--space-8);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 768px) {
	.acl .acl-pl-method__rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
	.acl .acl-pl-method__rule { grid-template-columns: minmax(0, 1fr); }
	.acl .acl-pl-method__num { grid-row: auto; margin-bottom: var(--space-3); padding: 0; }
}

@media (min-width: 1024px) {
	.acl .acl-pl-method__inner {
		grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
		column-gap: var(--space-16);
	}

	.acl .acl-pl-method__links { grid-column: 2; }
}
