/* Artists directory and festival artist page (FLO-981). Source: docs/design/artists.css, tokens from theme.json.
   The artist page also loads shop.css (same template as the shop artist page). */

.st-artists, .st-shop--artist {
	--ink: var(--wp--preset--color--ink);
	--ink-2: var(--wp--preset--color--ink-2);
	--ink-3: var(--wp--preset--color--ink-3);
	--hairline: var(--wp--preset--color--hairline);
	--hairline-dark: var(--wp--preset--color--hairline-dark);
	--canvas-subtle: var(--wp--preset--color--canvas-subtle);
	--fs-small: var(--wp--preset--font-size--small);
	--fs-xs: var(--wp--preset--font-size--xs);
	--r-card: var(--wp--custom--radius--card);
	--r-media: var(--wp--custom--radius--media);
	--r-pill: var(--wp--custom--radius--pill);
	--gutter: var(--wp--custom--gutter);
	--font-mono: var(--wp--preset--font-family--mono);
}

/* Directory page shell */
.st-artists .wrap { max-width: var(--wp--style--global--wide-size, 72rem); margin-inline: auto; padding-inline: var(--gutter); }
.st-artists .section { padding: 24px 0 clamp(48px, 7vw, 88px); }
.st-artists .section--subtle { background: var(--canvas-subtle); }
.st-artists h1, .st-artists h2 { margin: 0; }
.st-artists .pagehead { padding-bottom: clamp(8px, 2vw, 16px); }
.st-artists .pagehead h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 8px 0 12px; }
.st-artists .lead { font-size: 1.125rem; color: var(--ink-2); max-width: 40rem; margin: 0; }
.st-artists .crumbs { font-size: var(--fs-xs); color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.st-artists .crumbs a { text-decoration: none; }
.st-artists .crumbs a:hover { text-decoration: underline; }
.st-artists .block-head { margin: 0 0 24px; }
.st-artists .block-head h2 { font-size: var(--wp--preset--font-size--h-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.st-artists .small { font-size: var(--fs-small); color: var(--ink-2); margin: 4px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Represented artists */
.rep { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .rep { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .rep { grid-template-columns: repeat(6, 1fr); } }
.rcard { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hairline); background: var(--canvas-subtle); text-decoration: none; color: #fff; transition: border-color 150ms ease; }
.rcard:hover { border-color: var(--ink); }
.rcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.rcard:hover img { transform: scale(1.05); }
.rcard span.l { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 14px; background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); }
.rcard b { display: block; font-size: 1rem; letter-spacing: -0.01em; }
.rcard small { font-size: var(--fs-xs); opacity: .8; }
.rcard .star { position: absolute; top: 10px; left: 10px; z-index: 1; background: #fff; color: #000; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; padding: 3px 9px; }
.rcard:not(:has(img)) { color: var(--ink); }
.rcard:not(:has(img)) span.l { background: none; }

/* Search and list */
.cfilter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cfilter[hidden] { display: none; }
.cchip { padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--hairline-dark); background: var(--wp--preset--color--canvas); font: 600 var(--fs-sm, 0.875rem)/1 inherit; color: var(--ink); cursor: pointer; transition: background 150ms ease, color 150ms ease, border-color 150ms ease; }
.cchip:hover { border-color: var(--ink); }
.cchip[aria-pressed="true"] { background: var(--ink); color: var(--wp--preset--color--canvas); border-color: var(--ink); }
.finder { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.finder input { flex: 1 1 240px; padding: 12px 16px; border: 1px solid var(--hairline-dark); border-radius: var(--r-pill); font: inherit; background: var(--wp--preset--color--canvas); }
.alpha { background: var(--wp--preset--color--canvas); border-radius: var(--r-card); padding: 4px 16px; border: 1px solid var(--hairline); }
.arow { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--hairline); text-decoration: none; transition: background 150ms ease; }
.arow:hover { background: var(--canvas-subtle); }
.arow[hidden] { display: none; }
.arow b { font-size: 1.0625rem; letter-spacing: -0.01em; }
.arow .c { font-size: var(--fs-xs); color: var(--ink-3); margin-left: 8px; font-weight: 600; }
.arow .y { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--ink-2); text-align: right; }
.nores { display: none; padding: 24px 0; color: var(--ink-2); margin: 0; }
.nores.on { display: block; }

/* Artist page: portrait beside the text, years as links, works, photos */
.st-shop .ahead--portrait { display: grid; gap: 28px; }
@media (min-width: 900px) { .st-shop .ahead--portrait { grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; } }
.aportrait { aspect-ratio: 4 / 5; border-radius: var(--r-media); overflow: hidden; background: var(--canvas-subtle); }
.aportrait a { display: block; height: 100%; }
.aportrait img { width: 100%; height: 100%; object-fit: cover; }
.yearlinks a { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; padding: 5px 10px; border: 1px solid var(--hairline-dark); border-radius: 8px; text-decoration: none; }
.yearlinks a:hover { background: var(--ink); color: var(--wp--preset--color--canvas); border-color: var(--ink); }
.worklist { margin: 16px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; font-size: var(--fs-small); }
.worklist li { padding: 6px 0; break-inside: avoid; border-bottom: 1px solid var(--hairline); }
.worklist small { color: var(--ink-3); }
@media (max-width: 560px) { .worklist { columns: 1; } }
.st-shop--artist .edblock h2 { font-size: var(--wp--preset--font-size--h-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.st-shop--artist .edblock .jg { margin-top: 16px; }
.st-shop--artist .jg > a[hidden] { display: none; }
.st-shop--artist [data-photos-more] { margin-top: 16px; padding: 10px 20px; border-radius: var(--r-pill); border: 1px solid var(--hairline-dark); background: transparent; font: 600 var(--fs-small)/1 var(--wp--preset--font-family--inter); cursor: pointer; }
.st-shop--artist [data-photos-more]:hover { background: var(--ink); color: var(--wp--preset--color--canvas); border-color: var(--ink); }
