/**
 * Reader profile pages + card tweaks — "Celestial Almanac"
 * Класи .rprof-*; кольори й шрифти беруться з tokens.css.
 */

/* ---- Card tweaks (home + Our Readers) ---- */
.reader-card__image { display: block; }
.reader-card__name a { color: var(--color-ink); }
.reader-card__name a:hover { color: var(--color-copper); }
.reader-card__ask {
	align-self: center;
	font-size: var(--text-body-sm);
	font-weight: 700;
	color: var(--color-copper);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	padding: var(--space-2) var(--space-2);
}
.reader-card__ask:hover { color: var(--color-copper-hover); }

/* ---- Breadcrumbs ---- */
.rprof-crumbs { background: var(--color-parchment); }
.rprof-crumbs ol {
	list-style: none; margin: 0; padding: var(--space-3) 0;
	display: flex; flex-wrap: wrap; gap: var(--space-2);
	font-size: var(--text-caption); color: var(--color-text-light);
}
.rprof-crumbs a { color: var(--color-text-muted); }
.rprof-crumbs a:hover { color: var(--color-copper); }

/* ---- Hero ---- */
.rprof-hero {
	background: var(--color-parchment);
	border-bottom: 1px solid var(--color-hairline);
	padding: var(--space-12) 0 var(--space-16);
}
.rprof-hero__grid {
	display: grid; grid-template-columns: 280px 1fr;
	gap: var(--space-12); align-items: center;
}
.rprof-portrait {
	position: relative; width: 280px; height: 280px; margin: 0;
}
.rprof-portrait::before {
	content: ""; position: absolute; inset: 14px -14px -14px 14px;
	border: 1px solid var(--color-copper); border-radius: var(--radius-xl);
}
.rprof-portrait img {
	position: relative; width: 100%; height: 100%; object-fit: cover;
	border-radius: var(--radius-xl); border: 1px solid var(--color-hairline);
	box-shadow: var(--shadow-md); background: var(--color-ivory);
}
.rprof-hero h1 { font-size: var(--text-h1); font-weight: 500; margin: 0 0 var(--space-2); }
.rprof-role {
	font-family: var(--font-heading); font-style: italic;
	font-size: var(--text-h4); color: var(--color-copper); margin: 0 0 var(--space-4);
}
.rprof-tagline {
	font-size: var(--text-body-lg); line-height: var(--leading-body-lg);
	color: var(--color-text-muted); max-width: 40rem; margin: 0 0 var(--space-6);
}
.rprof-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0 0 var(--space-6); }
.rprof-chips li {
	padding: var(--space-1) var(--space-3); font-size: var(--text-caption); font-weight: 700;
	color: var(--color-ink); background: var(--color-ivory);
	border: 1px solid var(--color-hairline); border-radius: var(--radius-full);
}
.rprof-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- About ---- */
.rprof-two { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.rprof-bio h2, .rprof-h2 { font-size: var(--text-h2); font-weight: 500; margin: 0 0 var(--space-5); }
.rprof-bio p { font-size: var(--text-body-lg); line-height: var(--leading-body-lg); color: var(--color-charcoal); margin: 0 0 var(--space-5); }
.rprof-figure { margin: 0; position: sticky; top: calc(var(--header-height, 72px) + var(--space-6)); }
.rprof-figure img {
	width: 100%; height: auto; display: block;
	border: 1px solid var(--color-hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.rprof-figure figcaption {
	margin-top: var(--space-3); font-family: var(--font-heading); font-style: italic;
	font-size: var(--text-body-sm); color: var(--color-text-muted); text-align: center;
}

/* ---- Specialties / steps ---- */
.rprof-head { text-align: center; max-width: var(--container-narrow); margin: 0 auto var(--space-10); }
.rprof-head .rprof-h2 { margin-bottom: var(--space-3); }
.rprof-card {
	background: var(--color-ivory); border: 1px solid var(--color-hairline);
	border-top: 3px solid var(--color-copper); border-radius: var(--radius-lg); padding: var(--space-6);
}
.rprof-card h3 { font-size: var(--text-h5); font-weight: 600; margin: 0 0 var(--space-2); }
.rprof-card p { font-size: var(--text-body-sm); line-height: 1.6; color: var(--color-text-muted); margin: 0; }
.rprof-step { text-align: center; padding: var(--space-4); }
.rprof-step__n {
	width: 52px; height: 52px; margin: 0 auto var(--space-4); border-radius: var(--radius-full);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--font-heading); font-size: var(--text-h4); font-weight: 600;
	color: var(--color-copper); background: var(--color-copper-light); border: 1px solid var(--color-copper);
}
.rprof-step h3 { font-size: var(--text-h5); font-weight: 600; margin: 0 0 var(--space-2); }
.rprof-step p { font-size: var(--text-body-sm); line-height: 1.6; color: var(--color-text-muted); margin: 0; }

/* ---- Questions ---- */
.rprof-questions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.rprof-questions li {
	font-family: var(--font-heading); font-style: italic; font-size: var(--text-body-lg);
	color: var(--color-ink); padding: var(--space-4) var(--space-5);
	background: var(--color-parchment-deep); border-left: 3px solid var(--color-sage); border-radius: var(--radius-md);
}
.rprof-note {
	margin: var(--space-8) auto 0; max-width: var(--container-medium);
	font-size: var(--text-body-sm); color: var(--color-text-muted); text-align: center;
}
.rprof-note a { color: var(--color-copper); text-decoration: underline; }

/* ---- Other readers ---- */
.rprof-others { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
.rprof-other {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-2);
	padding: var(--space-5) var(--space-3); background: var(--color-ivory);
	border: 1px solid var(--color-hairline); border-radius: var(--radius-lg);
	transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}
.rprof-other:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rprof-other img { width: 72px; height: 72px; border-radius: var(--radius-full); object-fit: cover; border: 1px solid var(--color-hairline); }
.rprof-other strong { font-family: var(--font-heading); font-size: var(--text-body); color: var(--color-ink); }
.rprof-other span { font-size: var(--text-caption); color: var(--color-text-muted); line-height: 1.4; }
.rprof-more { text-align: center; margin-top: var(--space-6); font-weight: 700; }
.rprof-more a { color: var(--color-copper); }

@media (max-width: 1023px) {
	.rprof-hero__grid { grid-template-columns: 220px 1fr; gap: var(--space-8); }
	.rprof-portrait { width: 220px; height: 220px; }
	.rprof-hero h1 { font-size: 2.5rem; }
	.rprof-two { grid-template-columns: 1fr; gap: var(--space-8); }
	.rprof-figure { position: static; max-width: 560px; margin: 0 auto; }
	.rprof-others { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.rprof-hero { padding: var(--space-8) 0 var(--space-12); }
	.rprof-hero__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.rprof-portrait { width: 200px; height: 200px; }
	.rprof-hero h1 { font-size: 2.1rem; }
	.rprof-chips, .rprof-actions { justify-content: center; }
	.rprof-bio h2, .rprof-h2 { font-size: 1.75rem; }
	.rprof-questions { grid-template-columns: 1fr; }
	.rprof-others { grid-template-columns: repeat(2, 1fr); }
}

/* Контраст тексту локальних профілів; декоративні кольори збережено. */
.rprof-crumbs ol { color: #6B6459; }
.reader-card__ask,
.rprof-role,
.rprof-step__n,
.rprof-note a,
.rprof-more a { color: #994D28; }
.reader-card__ask:hover,
.reader-card__name a:hover,
.rprof-crumbs a:hover,
.rprof-note a:hover,
.rprof-more a:hover { color: #803D20; }
