/*
 * The Art Agents – Artists: single artist page.
 *
 * Everything is scoped to .taa-artist.
 * - The HERO (textured dark section) uses fixed colors: identical in light and dark mode.
 * - The BODY (tabs, artworks, biography) follows Site Mode Switcher through its --sms-*
 *   variables. The second value in each var() is the fallback when that plugin is not active.
 */

.taa-artist {
	font-family: 'Work Sans', system-ui, sans-serif !important;
	color: var(--sms-text, #1d1a18) !important;
	background: var(--sms-bg, #ffffff) !important;
	line-height: 1.5;
}
.taa-artist *,
.taa-artist *::before,
.taa-artist *::after { box-sizing: border-box; }

.taa-artist h1,
.taa-artist h2,
.taa-artist h3 {
	font-family: 'Playfair Display', Georgia, serif !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.taa-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Hero ---------- */
.taa-artist .taa-hero {
	background-color: #2a201b !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .34  0 0 0 0 .25  0 0 0 1.7 -.66'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), radial-gradient(ellipse at 30% 40%, #3a2c24 0%, #261c17 70%) !important;
	color: #ffffff !important;
	overflow: hidden;
}
.taa-hero .taa-container { padding-top: 24px; padding-bottom: 96px; }

.taa-artist .taa-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #ffffff !important;
	padding-bottom: 72px;
}
.taa-artist .taa-breadcrumb a,
.taa-artist .taa-breadcrumb span { color: #ffffff !important; text-decoration: none; }
.taa-artist .taa-breadcrumb a { display: inline-flex; }
.taa-artist .taa-breadcrumb a:hover { opacity: .8; }
.taa-artist .taa-breadcrumb__current { text-decoration: underline !important; text-underline-offset: 4px; }
.taa-breadcrumb span[aria-hidden] { opacity: .7; }

.taa-hero__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}
.taa-hero__text { position: relative; flex: 1 1 360px; max-width: 700px; padding: 0 0 0 30px; }
/* Thin corner brackets around the text block */
.taa-hero__text::before,
.taa-hero__text::after {
	content: '';
	position: absolute;
	width: 100px;
	height: 100px;
	pointer-events: none;
}
.taa-hero__text::before {
	left: 0;
	top: -30px;
	border-top: 1px solid rgba(255, 255, 255, .35);
	border-left: 1px solid rgba(255, 255, 255, .35);
	border-top-left-radius: 8px;
}
.taa-hero__text::after {
	right: 0;
	bottom: -48px;
	border-right: 1px solid rgba(255, 255, 255, .35);
	border-bottom: 1px solid rgba(255, 255, 255, .35);
	border-bottom-right-radius: 8px;
}
.taa-artist .taa-hero__name {
	margin: 0 0 12px;
	font-size: 64px;
	line-height: 1.15;
	font-weight: 700;
	color: #ffffff !important;
}
.taa-artist .taa-hero__intro {
	margin: 0;
	font-size: 20px;
	line-height: 1.85;
	color: #efe9e3 !important;
}

.taa-hero__portrait { flex: 0 0 auto; max-width: 100%; }
.taa-hero__frame {
	border: 1px solid rgba(255, 255, 255, .4);
	border-radius: 8px;
	padding: 26px;
}
.taa-artist .taa-hero img { filter: none !important; }
.taa-hero__frame img {
	display: block;
	width: 394px;
	height: 442px;
	max-width: 100%;
	object-fit: cover;
	border-radius: 6px;
}
.taa-artist .taa-hero__placeholder {
	width: 394px;
	height: 442px;
	max-width: 100%;
	border-radius: 6px;
	background: #4a3f39 !important;
	color: #d9cfc6 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 14px;
	padding: 16px;
}

/* ---------- Body ---------- */
.taa-artist .taa-body { background: var(--sms-bg, #ffffff) !important; color: var(--sms-text, #1d1a18) !important; }
.taa-body .taa-container { padding-top: 56px; padding-bottom: 88px; }

/* ---------- Tabs (centered text tabs with a line underneath) ---------- */
.taa-artist .taa-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 40px;
	border-bottom: 1px solid var(--sms-border, #e8e4df);
	margin-bottom: 48px;
}
.taa-artist button.taa-tab {
	all: unset;
	display: inline-block;
	box-sizing: border-box;
	min-height: 44px;
	margin: 0 0 -1px;
	padding: 12px 4px;
	font-family: 'Work Sans', system-ui, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--sms-muted, #6b625b);
	background: transparent;
	border-bottom: 2px solid transparent;
	cursor: pointer;
}
.taa-artist button.taa-tab:hover,
.taa-artist button.taa-tab:focus,
.taa-artist button.taa-tab:active {
	color: var(--sms-heading, #1d1a18);
	background: transparent !important;
	box-shadow: none !important;
}
.taa-artist button.taa-tab.is-active {
	color: var(--sms-heading, #1d1a18);
	border-bottom-color: var(--sms-heading, #1d1a18);
}
.taa-artist button.taa-tab:focus-visible {
	outline: 2px solid var(--sms-link, #1d1a18);
	outline-offset: 2px;
}

/* Without JavaScript both panels show; with it only the active one. */
.taa-js .taa-panel { display: none; }
.taa-js .taa-panel.is-active { display: block; }
.taa-panel + .taa-panel { margin-top: 56px; }
.taa-js .taa-panel + .taa-panel { margin-top: 0; }

/* ---------- Artwork grid ---------- */
.taa-artist ul.taa-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 30px;
}
.taa-artist .taa-card {
	margin: 0;
	background: var(--sms-card, #ffffff) !important;
	border: 1px solid var(--sms-border, #e8e4df);
}
.taa-card__top { position: relative; }
.taa-card__media { position: relative; display: block; }
.taa-card__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.taa-artist .taa-badge {
	position: absolute;
	top: 20px;
	left: 0;
	background: #e02424 !important;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	padding: 7px 14px;
	border-radius: 0 4px 4px 0;
}
.taa-artist .taa-card__actions {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #ffffff;
	color: #111111;
}
.taa-card__body { padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.taa-artist .taa-card__title {
	margin: 0;
	font-family: 'Work Sans', system-ui, sans-serif !important;
	font-size: 22px;
	line-height: 1.55;
	font-weight: 400;
}
.taa-artist .taa-card__title a { color: var(--sms-heading, #1d1a18) !important; text-decoration: none; }
.taa-artist .taa-card__title a:hover { text-decoration: underline; }
.taa-artist .taa-card__meta { margin: 0; font-size: 18px; line-height: 1.5; color: var(--sms-muted, #5c524b) !important; }
.taa-artist .taa-card__meta span,
.taa-artist .taa-card__meta bdi,
.taa-artist .taa-card__meta .amount { color: var(--sms-text, #1d1a18) !important; font-weight: 500; }
.taa-artist .taa-card__meta bdi,
.taa-artist .taa-card__meta .amount { font-weight: 400; color: var(--sms-muted, #5c524b) !important; }

.taa-artist .taa-empty { margin: 0; font-size: 16px; color: var(--sms-muted, #5c524b) !important; }

/* ---------- Biography ---------- */
.taa-artist .taa-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.taa-bio { display: block; }
.taa-bio--aside {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 32%;
	gap: 30px;
	align-items: start;
}
.taa-artist .taa-bio__text,
.taa-artist .taa-bio__text p,
.taa-artist .taa-bio__text li {
	font-size: 20px;
	line-height: 2;
	color: var(--sms-muted, #555555) !important;
}
.taa-artist .taa-bio__text p { margin: 0 0 20px; }
.taa-artist .taa-bio__text a { color: var(--sms-link, #8a4b2a) !important; }
.taa-artist .taa-bio__intro { margin-bottom: 24px; }

/* Section cards */
.taa-artist .taa-bio__card {
	margin: 0 0 40px;
	padding: 36px 38px;
	background: var(--sms-bg-alt, #f9f9f9) !important;
}
.taa-artist .taa-bio__subtitle {
	margin: 0 0 22px;
	font-size: 32px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--sms-heading, #1d1a18) !important;
}
.taa-artist .taa-bio__line {
	margin: 0 0 8px;
	font-size: 19px;
	line-height: 2.1;
	color: var(--sms-muted, #555555) !important;
}
.taa-artist .taa-bio__line:last-child { margin-bottom: 0; }
.taa-artist .taa-bio__line strong {
	font-weight: 500;
	color: var(--sms-heading, #1d1a18) !important;
}
.taa-artist ul.taa-bio__list { margin: 0; padding-left: 22px; list-style: disc; }
.taa-artist ul.taa-bio__list li {
	margin: 0 0 8px;
	font-size: 19px;
	line-height: 1.9;
	color: var(--sms-muted, #555555) !important;
}

/* Side card (Nationality / Categories / Themes ...) */
.taa-artist .taa-bio__aside {
	padding: 26px 25px;
	background: var(--sms-bg-alt, #f9f9f9) !important;
}
.taa-artist dl.taa-facts { margin: 0; padding: 0; border: 0; display: block; }
.taa-artist .taa-facts__item { margin: 0 0 22px; }
.taa-artist .taa-facts__item:last-child { margin-bottom: 0; }
.taa-artist .taa-facts dt {
	margin: 0 0 6px;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	color: var(--sms-heading, #111111) !important;
}
.taa-artist .taa-facts dd {
	margin: 0;
	font-size: 18px;
	line-height: 1.8;
	color: var(--sms-muted, #555555) !important;
}

@media (max-width: 1000px) {
	.taa-artist .taa-hero__name { font-size: 52px; }
	.taa-bio--aside { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.taa-hero .taa-container { padding-bottom: 56px; }
	.taa-artist .taa-breadcrumb { padding-bottom: 40px; }
	.taa-artist .taa-hero__name { font-size: 40px; }
	.taa-artist .taa-hero__intro { font-size: 17px; }
	.taa-hero__text { padding-left: 0; }
	.taa-hero__text::before, .taa-hero__text::after { display: none; }
	.taa-hero__frame { padding: 14px; }
	.taa-artist ul.taa-grid { grid-template-columns: 1fr; }
	.taa-artist button.taa-tab { font-size: 17px; }
	.taa-artist .taa-bio__card { padding: 22px; }
	.taa-artist .taa-bio__subtitle { font-size: 26px; }
	.taa-artist .taa-bio__text, .taa-artist .taa-bio__text p, .taa-artist .taa-bio__text li { font-size: 17px; }
	.taa-artist .taa-bio__line, .taa-artist ul.taa-bio__list li { font-size: 16px; }
}
