/*
 * Washier index2 — tekst- en inhoudsrollen.
 * Koppen, labels, meta, waarden, pills en staten; waarden uit de tokens.
 * Wordt na index2_ui.css geladen.
 */

/* ---------- Basis en koppen ---------- */

main.ys-page {
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--text-md);
	line-height: var(--leading-normal);
}

main.ys-page :is(h1, h2, h3, h4, p, dl, dt, dd, figure) {
	margin: 0;
}

main.ys-page h1 {
	color: var(--text);
	font-family: var(--font-emphasis);
	font-size: var(--text-2xl);
	font-weight: 600;
	letter-spacing: var(--tracking-tight);
	line-height: var(--leading-tight);
	white-space: normal;
}

/* Accent binnen een titel: cursief en in de primaire accentkleur. */
main.ys-page .ys-title-em {
	color: var(--color-primary);
	font-style: italic;
}

main.ys-page h2 {
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--card-title-size);
	font-weight: 600;
	letter-spacing: var(--tracking-tight-sm);
	line-height: var(--leading-snug);
	white-space: normal;
}

main.ys-page .ys-card-title {
	color: var(--text);
	font-family: var(--font-emphasis);
	font-size: var(--card-title-size);
	font-weight: 600;
	letter-spacing: var(--tracking-tight-sm);
	line-height: var(--leading-snug);
	white-space: normal;
}

main.ys-page h3 {
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--section-title-size);
	font-weight: 600;
	letter-spacing: var(--tracking-tight-sm);
	line-height: var(--leading-snug);
}

main.ys-page h4 {
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: var(--leading-snug);
}

/* Eén displaytitel voor weer, vrienden, zoeken en profiel; padding voorkomt
   afgeknipte Fraunces-afstekers. */
main.ys-page .ys-display-title {
	padding: var(--display-title-pad) 0;
	color: var(--text);
	font-family: var(--font-emphasis);
	font-size: var(--display-title-size);
	font-weight: 500;
	letter-spacing: var(--tracking-snug);
	line-height: var(--display-title-leading);
	white-space: normal;
	overflow-wrap: anywhere;
}

main.ys-page p {
	color: var(--text-secondary);
	font-family: var(--font-sans);
	font-size: var(--body-size);
	line-height: var(--leading-normal);
}

main.ys-page strong {
	font-weight: 600;
}

main.ys-page small {
	font-size: var(--meta-size);
}

/* ---------- Micro-labels ---------- */

main.ys-page :is(
	.pf-label,
	.quicklog-label,
	.ys-rate-eyebrow,
	.ys-rate-current-label,
	.ys-rate-fields-label,
	.ys-appendix-head-label,
	.ys-appendix-label-text,
	.ys-overview-music-label,
	.ys-hero-eyebrow,
	.ys-hero-subdate,
	.ys-detail-category,
	.ys-detail-top-rank,
	.ys-auth-label
) {
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: var(--label-size);
	font-weight: var(--label-weight);
	letter-spacing: var(--tracking-label);
	line-height: var(--leading-label);
	text-transform: uppercase;
}

/* Compact terracotta accentlabel (o.a. "Meest geluisterd" en "Eerste nummer"). */
main.ys-page .ys-label--accent {
	color: var(--color-primary);
	font-size: var(--micro-size);
	letter-spacing: var(--tracking-label);
}

main.ys-page .ys-hero .ys-hero-subdate {
	color: var(--hero-on-bg);
}

main.ys-page .ys-hero .ys-hero-eyebrow {
	color: var(--hero-on-bg-muted);
}

main.ys-page .ys-detail-page :is(.ys-detail-category, .ys-detail-top-rank) {
	color: var(--ys-detail-hero-from);
}

main.ys-page :is(.ys-detail-stat-label, .ys-overview-stat-label) {
	font-size: var(--micro-size);
	letter-spacing: var(--tracking-wide-lg);
}

/* ---------- Metadata en waarden ---------- */

main.ys-page :is(
	.ys-card-subtitle,
	.ys-week-day-country,
	.ys-telemetry,
	.ys-telemetry-pill,
	.ys-telemetry-nav,
	.pf-acc-count,
	.pf-hint,
	.pf-note-meta,
	.pf-note-time,
	.pf-note-edited,
	.ys-detail-top-x,
	.ys-detail-item-context,
	.ys-place-meta,
	.ys-detail-filter-bar,
	.ys-detail-filter-clear,
	.ys-detail-more summary,
	.ys-rate-date,
	.ys-rate-scale,
	.search-item-meta
) {
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: var(--meta-size);
	font-weight: var(--meta-weight);
	line-height: var(--leading-comfort);
}

/* Foto-overlaytekst in de tijdlijn: dezelfde metarol, maar als losse regel
   zodat de tweeledige selector de specificiteit van de hele metarol niet optilt. */
main.ys-page .ys-timeline-photo .photoOverlay {
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: var(--meta-size);
	font-weight: var(--meta-weight);
	line-height: var(--leading-comfort);
}

main.ys-page .ys-detail-list-title {
	display: block;
	margin-bottom: var(--space-1);
	color: var(--text);
	font-family: var(--font-emphasis);
	font-size: var(--text-base);
	font-weight: 400;
	letter-spacing: var(--tracking-tight-sm);
	line-height: var(--leading-snug);
}

main.ys-page :is(.pf-value, dd) {
	color: var(--text);
	font-family: var(--font-sans);
	font-size: var(--value-size);
	font-weight: 500;
	line-height: var(--leading-snug);
	overflow-wrap: anywhere;
}

/* ---------- Pills, badges en statussen ---------- */

main.ys-page :is(
	.ys-badge,
	.ys-stop-time,
	.ys-week-keyword,
	.ys-hero-pill,
	.ys-detail-detail,
	.ys-detail-golden,
	.ys-detail-streak-period,
	.ys-detail-event-action,
	.tr-tag
) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	padding: 3px 9px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill-soft);
	background: var(--surface-2);
	color: var(--text-secondary);
	font-family: var(--font-mono);
	font-size: var(--meta-size);
	font-weight: var(--meta-weight);
	line-height: var(--leading-snug-sm);
	white-space: nowrap;
}

main.ys-page .ys-hero-pill[aria-current="page"] {
	border-color: var(--accent);
	background: var(--accent);
	color: var(--on-accent);
}

main.ys-page .ys-badge--label {
	border-radius: var(--radius-pill);
	background: var(--surface-1);
	color: var(--text-muted);
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
}

main.ys-page .ys-label-dot {
	flex: 0 0 auto;
	width: var(--status-dot-size);
	height: var(--status-dot-size);
	border-radius: 50%;
	background: var(--accent);
}

main.ys-page :is(.pf-status, .pf-note-new) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 9px;
	border: 1px solid transparent;
	border-radius: var(--radius-pill-soft);
	font-family: var(--font-mono);
	font-size: var(--meta-size);
	font-weight: 600;
	line-height: var(--leading-snug-sm);
	white-space: nowrap;
}

main.ys-page .pf-status {
	background: var(--success-soft);
	color: var(--color-secondary-dark);
}

main.ys-page .pf-status--off {
	background: var(--surface-3);
	color: var(--text-muted);
}

main.ys-page .pf-note-new {
	background: var(--accent-soft);
	color: var(--accent-strong);
}

/* Ongelezen-notificatieteller: één rol voor tabbar, profiel en inbox. */
:is(.ys-tab-icon-wrap .notification-badge,
	main.ys-page .pf-badge,
	main.ys-page .pf-notes-badge,
	main.ys-page .pf-notes-count) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--badge-size);
	height: var(--badge-size);
	padding: 0 3px;
	border-radius: var(--radius-pill);
	background: var(--accent);
	color: var(--on-accent);
	font-family: var(--font-mono);
	font-size: var(--micro-size);
	font-weight: 600;
	line-height: var(--badge-size);
	white-space: nowrap;
}

/* ---------- Lege, laad- en foutstaten ---------- */

main.ys-page :is(
	.ys-empty,
	.ys-search-hint,
	.ys-search-loading,
	.ys-search-error,
	.ys-rate-loading,
	.ys-rate-error,
	.ys-profile-loading,
	.ys-profile-error,
	.ys-detail-filter-empty,
	.pf-empty,
	.pf-notes-empty
) {
	padding: var(--space-4);
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-lg);
	color: var(--text-muted);
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	line-height: var(--leading-normal);
	text-align: center;
}

main.ys-page :is(.ys-search-error, .ys-rate-error, .ys-profile-error, .ys-auth-error) {
	color: var(--color-quaternary-dark);
}

main.ys-page .ys-auth-success {
	color: var(--color-secondary-dark);
	font-weight: 600;
}
